<th>System Role</th> <th>User Name</th> <th>Email</th> <th>Mobile</th> <th>Created At</th> <th width="5%">Action</th> </tr> </thead> <tbody> <?php $tableDataRes = $sys_user_ob->selectAction("flag=0"); for ($r = 0; $r < count($tableDataRes); $r++) { $pk = $tableDataRes[$r]['sys_user_id']; $sys_role = new SystemRoleConrtoller(); $sys_role_data = $sys_role->selectAction("sys_role_id=" . $tableDataRes[$r]['sys_role_id']); $sys_role_name = $sys_role_data[0]['sys_role']; ?> <tr> <td><?php echo $r + 1; ?> </td> <td><?php echo $tableDataRes[$r]['sys_name']; ?> </td> <td><?php echo $sys_role_name; ?> </td>
<div class="form-group"> <label>System User Name</label> <input class="form-control" type="text" name="sys_name" id="sys_name" value="<?php echo $tableDatas['sys_name']; ?> "> </div> <div class="form-group"> <label>System User Role</label> <select class="form-control" id="sys_role_id" name="sys_role_id"> <option>--Select--</option> <?php $tableDataRes = $sys_role_ob->selectAction("flag=0"); for ($r = 0; $r < count($tableDataRes); $r++) { $role_pk = $tableDataRes[$r]['sys_role_id']; $role_name = $tableDataRes[$r]['sys_role']; ?> <option value="<?php echo $role_pk; ?> " <?php if ($role_pk == $tableDatas['sys_role_id']) { echo "Selected"; } ?> ><?php echo $role_name; ?>