/
Admin.aspx
96 lines (95 loc) · 4.58 KB
/
Admin.aspx
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
89
90
91
92
93
94
95
96
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Layout.master" AutoEventWireup="true" CodeFile="Admin.aspx.cs" Inherits="Views_Admin" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server">
<script type="text/javascript">
function showDiv1(checked) {
document.getElementById("user").style.display = "none";
if (checked == 1) {
document.getElementById("user").style.display = "block";
}
}
function showDiv2(checked) {
document.getElementById("network").style.display = "none";
if (checked == 1) {
document.getElementById("network").style.display = "block";
}
}
function showDiv3(checked) {
document.getElementById("tags").style.display = "none";
if (checked == 1) {
document.getElementById("tags").style.display = "block";
}
}
</script>
Hello Admin!<br />
<br />
<div style="text-align: center"><span style="font-size: xx-large">This is the admin page!</span><br />
<br />
<br />
</div>
<div>
<asp:CheckBox ID="UserCheckBox" runat="server" Text="User" onclick="showDiv1(this.checked)" />
<asp:CheckBox ID="NetworkCheckBox" runat="server" Text="Network" onclick="showDiv2(this.checked)" />
<asp:CheckBox ID="TagCheckBox" runat="server" Text="Tags" onclick="showDiv3(this.checked)" />
<table style="table-layout:fixed; width: 100%;">
<tr>
<td>
<div id="user" style="display: block; text-align: left">
<br /><br />
Query User:<br />
<br />
<asp:TextBox ID="TextBox1" runat="server" Height="21px" Width="328px"></asp:TextBox>
<br />
<asp:Button ID="Usersearch" runat="server" OnClick="User_search" Text="Search" />
<br />
<br />
<asp:ListBox ID="ListBox1" runat="server" Width="201px"></asp:ListBox>
<br />
<br />
<asp:Button ID="Deleteuser" runat="server" Text="Delete User" OnClick="Delete_user" />
<br />
<br />
</div>
</td>
<td>
<div id="network" style="display: block; text-align: left">
<br /><br />
Query Network:<br />
<br />
<asp:TextBox ID="TextBox2" runat="server" Height="21px" Width="328px"></asp:TextBox>
<br />
<asp:Button ID="Networksearch" runat="server" OnClick="Network_search" Text="Search" />
<br />
<br />
<asp:ListBox ID="ListBox2" runat="server" Width="201px"></asp:ListBox>
<br />
<br />
<asp:Button ID="Deletenetwork" runat="server" Text="Delete Network" OnClick="Delete_network" />
<br />
<br />
</div>
</td>
<td>
<div id="tags" style="display: block; text-align: left">
<br /><br />
Query Tags:<br />
<br />
<asp:TextBox ID="TextBox3" runat="server" Height="21px" Width="328px"></asp:TextBox>
<br />
<asp:Button ID="Tagsearch" runat="server" OnClick="Tag_search" Text="Search" />
<br />
<br />
<asp:ListBox ID="ListBox3" runat="server" Width="201px"></asp:ListBox>
<br />
<br />
<asp:Button ID="Deletetag" runat="server" Text="Delete Tag" OnClick="Delete_tag" />
<br />
<br />
</div>
</td>
</tr>
</table>
</div>
</asp:Content>