<?php $listUser = get_all_user(); ?> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta http-equiv="content-language" content="vi" /> <link rel="shortcut icon" href="./images/logo.ico"/> <title>Danh sách đăng ký</title> <link rel="stylesheet" type="text/css" href="css/materialize.min.css"/> <link rel="stylesheet" type="text/css" href="css/font-awesome.css"/> <link rel="stylesheet" type="text/css" href="css/animate.css"/> <link rel="stylesheet" type="text/css" href="css/Base.css"/> <link rel="stylesheet" type="text/css" href="css/style.css"/> </head> <body> <div class="row container"> <h1 class="center red-text">Danh sách đăng ký</h1> <table class="striped"> <thead> <tr> <th data-field="id">ID</th> <th data-field="name">Họ Tên</th> <th data-field="email">Email</th> <th data-field="phone">Số điện thoại</th> </tr> </thead> <tbody>
<div id="content"> <div id="dash" style="height:325px;"> <div style="width:350px;margin-left:305px;"> <h2>Update Record:</h2> <form action="" method="post" name="" id="form"> <div class="laft-box update"> <fieldset> <legend>Add Device to Existing User :</legend> Select a User <select name="userlist" class="select" id="userlist"> <option value="">--Select One--</option> <?php foreach (get_all_user() as $user) { $name = $user->f_name . ' ' . $user->l_name; ?> <option value="<?php echo $user->user_id; ?> "><?php echo $name; ?> </option> <?php } ?> </select> </fieldset> </div>
</div> <div class="row-fluid"> <div class="span3"> <?php print embed("tpl/add_product.tpl.php", array()); ?> </div> </div> <div class="row-fluid"> <div class="span6"> <div class = "page-header"> <h1><small>Registered Users</small></h1> </div> <?php print embed("tpl/users.tpl.php", array('result' => get_all_user())); ?> </div> <div class="span6"> <div class = "page-header"> <h1><small>Transactions</small></h1> </div> <?php print embed("tpl/transaction.tpl.php", array('result' => get_transactions())); ?> </div> </div> </div> <script type = "text/javascript" src = "js/admin.js"></script> <script src="http://code.jquery.com/jquery-latest.js"></script> <script src="js/bootstrap.min.js"></script>
<tr> <td>Avatar:</td> <td>ID</td> <td>Nombre:</td> <td>E-mail:</td> <td>Estado:</td> <td>Modificar contraseña</td> <td>Cambiar e-mail</td> <td>Actualizar datos personales</td> <td>Eliminar</td> <td>Recuperar</td> <td>Visualizar perfil completo</td> </tr> <?php $user_all = get_all_user(); for ($x = 0; $x < count($user_all); $x++) { echo "<tr>"; echo "<td><img src=" . $user_all[$x]->avatar . "></td>"; echo "<td>" . $user_all[$x]->id . "</td>"; echo "<td>" . $user_all[$x]->nick . "</td>"; echo "<td>" . $user_all[$x]->email . "</td>"; echo "<td>" . $user_all[$x]->status_u . "</td>"; echo "<td>" . "<a href='../update/users_passwd.php?user_id=" . $user_all[$x]->id . "'>Modificar</a>" . "</td>"; echo "<td>" . "<a href='../update/users_email.php?user_id=" . $user_all[$x]->id . "'>Cambiar</a>" . "</td>"; echo "<td>" . "<a href='../update/user.php?user_id=" . $user_all[$x]->id . "'>Actualizar</a>" . "</td>"; echo "<td>" . "<a href='../../../../mio-user/update/disable.php?user_id=" . $user_all[$x]->id . "''>Eliminar</a>" . "</td>"; echo "<td>" . "<a href='../../../../mio-user/update/enable.php?user_id=" . $user_all[$x]->id . "'>Recuperar</a>" . "</td>"; echo "<td>" . "<a href='../../../../mio-user/show/user_profile.php?user_id=" . $user_all[$x]->id . "'>Visualizar P.C</a>" . "</td>"; echo "</tr>"; }
<div class="table-responsive"> <form method="post" action="/danzsecurity/user_edit/"> <table class="table table-border table-hover table-condensed"> <thead> <tr> <th style="width: 5%;">No. </th> <th style="width: 40%;">Name</th> <th style="width: 10%;">ID</th> <th style="width: 30%;">Password</th> <th style="width: 15%;">Action</th> </tr> </thead> <tbody> <?php $no = 1; $user = get_all_user(); if (!empty($user)) { foreach ($user as $row) { ?> <tr> <td><?php echo $no; ?> </td> <td><?php echo $row->name; ?> </td> <td><?php echo $row->userid; ?>