Пример #1
0
						<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(&apos;<span>¿Seguro Desea Borrar usuario?</span><a class=&quot;btn-flat yellow-text&quot; href=&quot;?op=delete&id=" . $value['id'] . "&quot;>Confirmar<a>&apos;, 5000)\"><i class='large mdi-content-clear'></i></a>";
}
?>
</td>