예제 #1
0
파일: submenu.php 프로젝트: pedrubiano/pos
				<input class='btn' type="submit" value="Guardar">
				<input class='btn modal-close' type="button" value="Cancelar">
			</div>
		</form>
  	</div>
  	<? } ?>
	
	<h5>Menú <? echo $m[0]['ver']; ?></h5>
	<div class='content'>
			<table class="bordered hoverable" align='center' style='width:600px;'>
				<th>Menú Principal</th>
				<th>Orden</th>
				<th>Ver</th>
				<th>Link</th>
				<? 
					if ($lista=$submenu->findMenuId($_GET['id']))
					foreach ($lista as $value) {
						?>
						<tr>
							<td>
								<select class='tableInput' name='id_menu' id='<? echo $value['id']; ?>' onchange='javascript:updateField(this.name,this.id,this.value);' <? if ($per[0]['editar']==0) echo "disabled"; ?>>
								<?php 
foreach ($menu->findAll() as $e) {
    ?>
									<option value='<? echo $e['id']; ?>' <? if($e['id']==$value['id_menu']) echo "selected"; ?>><? echo $e['ver']; ?></option>
								<?php 
}
?>
								</select>
							</td>
							<td><input size='2' class='tableInput' type='text' name='orden' id='<? echo $value['id']; ?>' value='<? echo $value['orden']; ?>' onchange='javascript:updateField(this.name,this.id,this.value);' <? if ($per[0]['editar']==0) echo "disabled"; ?>></td>