<form method="post" action="" id="formPost2">
	<table cellspacing="0" cellpadding="0" border="1" id="tabelTab">
		<tr>
			<th>No</th>
			<th>Induk</th>
			<th>Nama Menu</th>
			<th>Url</th>
			<th>Logo</th>
			<th>Ket</th>
			<th>Kode</th>
			<th>Action</th>
		</tr>
		<tr>
			<td><input type="text" name="no" id="no" size="10"></td>
			<td><input type="text" name="induk" id="induk" size="10"></td>
			<td><input type="text" name="nama" id="nama" size="25"></td>
			<td><input type="text" name="url" id="url" size="30"></td>
			<td><input type="text" name="logo" id="logo" size="30"></td>
			<td><input type="text" name="ket" id="ket" size="30"></td>
			<td><input type="text" name="kode" id="kode" size="10"></td>
			<td><input type="submit" value="Simpan"></td>
		</tr>
		<?php 
		foreach($this->data->menu as $r => $k){ 
			if(empty($k->no)){
				$k->no = $k->no_menu;
			}
		
			$kode = '___'.$k->no;
			$kode.= '___'.$k->induk;
			$kode.= '___'.$k->nama;
			$kode.= '___'.$k->url;
			$kode.= '___'.$k->logo;
			$kode.= '___'.$k->ket;
			$kode.= '___'.$k->kode;
		?>
			<tr>
				<td><?php echo $k->no ?>&nbsp;</td>
				<td><?php echo $k->induk ?>&nbsp;</td>
				<td><?php echo $k->nama ?>&nbsp;</td>
				<td><?php echo $k->url ?>&nbsp;</td>
				<td><?php echo $k->logo ?>&nbsp;</td>
				<td><?php echo $k->ket ?>&nbsp;</td>
				<td><?php echo $k->kode ?>&nbsp;</td>
				<td>&nbsp;
					<?php if($k->jenis != '1'){ ?>
						<a href="" class="up" val="<?php echo $kode ?>">UP</a> 
						|
						<a href="" class="delItem" val="<?php echo $r ?>">Del</a> 
					<?php } ?>
				</td>
			</tr>
		<?php } ?>
	</table>
</form>
