-
Notifications
You must be signed in to change notification settings - Fork 11
/
aadmin.php
28 lines (27 loc) · 1.16 KB
/
aadmin.php
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
<p class="t cent botli">管理者帳號管理</p>
<form method="post" action="api.php?do=<?=$_GET["redo"]?>">
<table width="100%">
<tbody><tr class="yel">
<td width="45%">帳號</td><td width="23%">密碼</td><td width="7%">刪除</td><td></td>
</tr>
<?php
$result = All(sql("admin", 0));
foreach($result as $row)
{
?>
<tr>
<input type="hidden" name="id[]" value="<?=$row["id"]?>">
<td><input type="text" value="<?=$row["acc"]?>" name="acc[<?=$row["id"]?>]"></td>
<td><input type="password" value="<?=$row["pass"]?>" name="pass[<?=$row["id"]?>]"></td>
<td><input type="checkbox" value="<?=$row["id"]?>" name="del[]"></td>
</tr>
<?php
}
?>
</tbody></table>
<table style="margin-top:40px; width:70%;">
<tbody><tr>
<td width="200px"><input type="button" onclick="op('#cover','#cvr','view.php?do=n<?=$_GET["redo"]?>')" value="新增管理者帳號"></td><td class="cent"><input type="submit" value="修改確定"><input type="reset" value="重置"></td>
</tr>
</tbody></table>
</form>