This repository was archived by the owner on May 9, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAdmin.aspx
More file actions
89 lines (73 loc) · 4.11 KB
/
Copy pathAdmin.aspx
File metadata and controls
89 lines (73 loc) · 4.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<%@ Page Title="Admin" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Admin.aspx.cs" Inherits="Admin" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<ul id="myTab" class="nav nav-tabs">
<li>
<a href="#news" data-toggle="tab">News
</a>
</li>
<li class="active"><a href="#reports" data-toggle="tab">Reports</a></li>
</ul>
<div id="myTabContent" class="tab-content">
<!-- News Forma -->
<div class="tab-pane fade" id="news">
<div class="form-group">
<asp:TextBox ID="TitleTextBox" runat="server" CssClass="form-control" placeholder="Title"></asp:TextBox>
<asp:TextBox ID="NewsTextBox" runat="server" CssClass="form-control" TextMode="MultiLine" Height="200" placeholder="News"></asp:TextBox>
<asp:Button ID="Button1" runat="server" OnClick="submitNews" CssClass="btn btn-primary" Text="Post" />
</div>
</div>
<!-- /News Forma -->
<!-- Lista sa report-ovima -->
<div class="tab-pane fade in active" id="reports">
<asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand">
<ItemTemplate>
<div class="panel panel-info">
<div class="panel-body">
<p id="id" runat="server"><strong>ID: <%#Eval("idReports") %></strong></p>
<p><strong>Name: <%#Eval("Name") %></strong></p>
<p><strong>Email: <%#Eval("Email") %></strong></p>
<p><strong>Contact Number: <%#Eval("Mobile") %></strong></p>
<p><strong>Address: <%#Eval("Address") %></strong></p>
<p><strong>Complaint Description: <%#Eval("Description") %></strong> </p>
<p><strong>Status: <%#Eval("StatusMessage") %></strong> </p>
</div>
<div class="panel-footer">
<%#Eval("DateTime") %>  
<button type="button" class="btn btn-info" onclick="$('#TextBox2').val('<%#Eval("idReports") %>'); $('#DownloadButton').click();">Download File</button>
 
<button type="button" class="btn btn-success" data-toggle="modal" data-target="#myModal" onclick="$('#TextBox2').val('<%#Eval("idReports") %>')">Respond</button>
</div>
</div>
</ItemTemplate>
</asp:Repeater>
</div>
<!-- /Lista sa report-ovima -->
</div>
<!-- Modal za update status poruke o slucaju-->
<div id="myModal" class="modal fade" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Enter Message</h4>
</div>
<div class="modal-body">
<asp:TextBox ID="TextBox2" CssClass="hidden" ClientIDMode="Static" runat="server"></asp:TextBox>
<asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine" CssClass="form-control"></asp:TextBox>
</div>
<div class="modal-footer">
<button type="button" id="ResponseSubmit" runat="server" onserverclick="respondToReportWithStatusMsg" class="btn btn-default">Submit</button>
</div>
</div>
</div>
</div>
<!-- /Modal za update status poruke o slucaju-->
<asp:Button ID="DownloadButton" ClientIDMode="Static" OnClick="DownloadButton_Click" runat="server" Text="Button" CssClass="hidden" />
<div runat="server" id="alert">
</div>
</asp:Content>