Exemple #1
0
</th>
	<th>&nbsp;</th>
</tr>
</thead>
<tbody>
<? if($list_sub){$i=$startnumber;foreach($list_sub as $lk){$i++;?>
<tr class="<?php 
echo $i % 2 == 1 ? 'row0' : 'row1';
?>
">
	<td><?php 
echo $i;
?>
</td>
	<td><?php 
echo format_kode($lk->id);
?>
</td>
	<td><?php 
echo $lk->kategori;
?>
</td>
	<td><?php 
echo $lk->subkategori;
?>
</td>
	<!--td>( <?php 
echo anchor(config_item('modulename') . '/' . $this->router->class . '/sub2/' . $lk->id, $lk->jmlsub2);
?>
 )</td-->
	<td>( <?php 
Exemple #2
0
	<th>&nbsp;</th>
</tr>
</thead>
<tbody>
<?if($list_kat){?>
<? $i=$startnumber;foreach($list_kat as $lk){$i++;?>
<tr class="<?php 
echo $i % 2 == 1 ? 'row0' : 'row1';
?>
">
	<td><?php 
echo $i;
?>
</td>
	<td><?php 
echo format_kode($lk->kategoriID);
?>
</td>
	<td><?php 
echo $lk->kategori;
?>
</td>
	<td>
	<?php 
echo anchor(config_item('modulename') . '/' . $this->router->class . '/edit/' . $lk->kategoriID, loadImg('icon/edit.png', '', false, config_item('modulename'), true), array('title' => lang('edit')));
?>
	<?php 
echo anchor(config_item('modulename') . '/' . $this->router->class . '/delete/' . $lk->kategoriID, loadImg('icon/delete.png', '', false, config_item('modulename'), true), array('title' => lang('del'), 'class' => 'butdel'));
?>
	</td>
</tr>
</div><br class="clear" /><? }?>

<table class="admintable" cellspacing="1">
<tbody>
<tr>
	<th><?php 
echo lang('k_produk');
?>
</th>
	<td>
	<span id="idkat"><?php 
echo isset($input) ? $idkat : format_kode($idkat);
?>
</span>
	<span id="idsubkat"><?php 
echo isset($input) ? $idsub : format_kode($idsub, 3);
?>
</span>
	<span id="idproduk"><?php 
echo $id;
?>
</span>
	</td>
</tr>
<tr>
	<th><?php 
echo lang('vendor');
?>
</th>
	<td><?php 
echo $vendor ? form_dropdown('vendor', $vendor) : '';
?>
</div><? }?>

<?php 
echo form_open(current_url());
?>
<table class="admintable" cellspacing="1">
<tbody>
<tr>
	<th><?php 
echo lang('kode');
?>
</th>
	<td>
	<?php 
echo format_kode($id, 3);
?>
	<?php 
echo form_hidden('id', $id);
?>
	</td>
</tr>
<tr>
	<th><?php 
echo lang('kat');
?>
</th>
	<td><?php 
echo form_dropdown('kat', $kat, $kategori);
?>
</td>
Exemple #5
0
?>
</div><? }?>

<?php 
echo form_open(current_url());
?>
<table class="admintable" cellspacing="1">
<tbody>
<tr>
	<th><?php 
echo lang('kode');
?>
</th>
	<td>
	<?php 
echo format_kode($id);
?>
	<?php 
echo form_hidden('id', $id);
?>
	</td>
</tr>
<tr>
	<th><?php 
echo lang('kat');
?>
</th>
	<td><input type="text" name="kat" value="<?php 
echo $kategori;
?>
" /></td>