<td><input class='tableInput' type='password' name='pwd' id='<? echo $value['id']; ?>' value='<? echo $value['pwd']; ?>' onchange='javascript:updateField(this.name,this.id,this.value);' <? if ($per[0]['editar']==0) echo "disabled"; ?>></td> <td> <select class='tableInput' name='id_rol' id='<? echo $value['id']; ?>' onchange='javascript:updateField(this.name,this.id,this.value);' <? if ($per[0]['editar']==0) echo "disabled"; ?>> <?php foreach ($rol->findAll() as $r) { ?> <option value='<? echo $r['id']; ?>' <? if($r['id']==$value['id_rol']) echo "selected"; ?>><? echo $r['nom']; ?></option> <?php } ?> </select> </td> <td> <select class='tableInput' name='id_est' id='<? echo $value['id']; ?>' onchange='javascript:updateField(this.name,this.id,this.value);' <? if ($per[0]['editar']==0) echo "disabled"; ?>> <?php foreach ($estado->findAll() as $e) { ?> <option value='<? echo $e['id']; ?>' <? if($e['id']==$value['id_est']) echo "selected"; ?>><? echo $e['nom']; ?></option> <?php } ?> </select> </td> <td><?php if ($per[0]['eliminar'] == 1) { echo "<a onclick=\"toast('<span>¿Seguro Desea Borrar usuario?</span><a class="btn-flat yellow-text" href="?op=delete&id=" . $value['id'] . "">Confirmar<a>', 5000)\"><i class='large mdi-content-clear'></i></a>"; } ?> </td>