Preview: setpassword.php
Size: 2.59 KB
/home/www/idcceurope.com/www/idcceurope.com/admin/setpassword.php
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="main.css" type="text/css" />
<style type="text/css">
.note{
font-family:Arial, Helvetica, sans-serif;
font-size:15px;
font-weight:bold;
color:red;
text-decoration:blink;
font-style:italic;
}
.bang{
clear:both;
padding:20px;
}
#main_center1{
margin:auto;
width:900px;
/*background-color:#FF00FF;
-moz-border-radius: 20px;
-webkit-border-radius: 20px;
-khtml-border-radius: 20px;
border-radius: 20px;*/
height:auto;
}
</style>
<script type="text/javascript">
function them()
{
document.getElementById("service").value = "add";
document.getElementById("login").submit();
}
function sua()
{
document.getElementById("service").value = "edit";
document.getElementById("login").submit();
}
function xoa()
{
document.getElementById("service").value = "delete";
document.getElementById("login").submit();
}
</script>
</head>
<body>
<?php
require "db.php";
$sql = "SELECT * FROM matkhau";
$result = mysql_query($sql);
?>
<div id="main_center1">
<form action="insertpassword.php" id="login" name="flogin" method="post">
<table align="center" width="600px" bgcolor="#EFEFEF" border="0" cellpadding="4px" cellspacing="4px" style="margin-top:10px">
<tr>
<td colspan="2" align="center">NHẬP MẬT KHẨU</td>
</tr>
<tr>
<td class="contact_form">Mật khẩu</td>
<td>
<input type="text" size="40" id="name" name="name">
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="button" value="Thêm" onClick="them();">
<input type="button" value="Sửa" onClick="sua();">
<input type="button" value="Xóa" onClick="xoa();">
</td>
</tr>
</table>
<input type="hidden" id="service" name="service">
</form>
<div class="bang">
<table width="100%" border="1" style="border-collapse:collapse" id="chitiet">
<tr>
<td>STT</td>
<td colspan="3" align="center">
Mật khẩu
</td>
</tr>
<?php
$count = 0;
while($row = mysql_fetch_array($result))
{
$count++;
?>
<tr onClick="show(this.rowIndex);" style="cursor:pointer">
<td align="center"><?php echo $count;?></td>
<td><?php echo $row["matkhau"];?></td>
</tr>
<?php
}
?>
</table>
<a href="index.php?page=o_nasx">Back</a>
</div>
</div>
</body>
</html>
Directory Contents
Dirs: 4 × Files: 101