Viewing file: user.php (1.54 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
defined('_JEXEC') or die;
$ap = new app; $ap->get_('data'); $db = new data;
echo '<div class="head">QUẢN LÝ NGƯỜI DÙNG HỆ THỐNG</div>';
$sql = "SELECT * FROM $db->db_".$_GET['module']." LIMIT 0, 30 ";
$result = mysql_query($sql, $db->conn);
echo '<Table border="3" cellspacing="3" align="center"><th colspan="2" width=50 height = 30><a href="index.php?module='.$_GET['module'].'&task=register"><img src="'.$db->local.'images/new.png" width=50 height=40 title="Add user"/></a></th><th width=30>TT</th><th width=30>ID</th><th width=150>Họ và tên</th>';
echo '<th width=150>Tên đăng nhập</th><th width=250>Mật khẩu</th><th width=100>Quyền user</th><th width=80>Khóa</th><th width=250>Địa chỉ email</th>';
$i = 0; while($r = mysql_fetch_array($result)) { $i++;
echo '<tr><td><a href="index.php?module='.$_GET['module'].'&task=update&id='.$r[id].'&name='.$r[name].'&username='.$r[username].'&password='.$ap->de_code($r[password]).'&usertype='.$r[usertype].'&block='.$r[block].'&email='.$r[email].'"><img src="'.$db->local.'images/b_edit.png" title="Sửa"/></a></td>';
echo '<td><a href="index.php?module='.$_GET['module'].'&task=delete&id='.$r[id].'"><img src="'.$obj->local.'images/b_drop.png" title="Xóa" /></a></td>'; echo '<td>'.$i.'</td>';
echo '<td>'.$r[id].'</td><td>'.$r[name].'</td><td>'.$r[username].'</td><td>'.$r[password].'</td><td>'.$r[usertype].'</td><td>'.$r[block].'</td><td>'.$r[email].'</td></tr>';
} echo '</Table>';
?>
|