( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ
<?php
$result = $db->editcata($catid);
$catalognamex = $result[0]["catalogname"];
$description = $result[0]["description"];
$parentid = $result[0]["parentid"];
$productnos = $result[0]["productnos"];
$comments = $result[0]["keywords"];
$vcat = $result[0]["vcat"];
$manufacture = $result[0]["manufacture"];
$expiry = $result[0]["expiry"];
$batchid = $result[0]["batchid"];
$status = $result[0]["status"];
if (!empty($editcatalog)) {
$db->editcatalog($catalogname,$description,$catid,$status);
}
?>
<!--<form action="?mode=cate&msg=Successfully+Edited+Batch" method="POST">-->
<form action="javascript:editBatch()" method="post" name="batchForm" id="batchForm">
<input type="hidden" name="catid" id="catid" value="<?php print "$catid"; ?>">
<table width="100%" height="520" border="0" cellpadding="4" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td align="center"> <table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td><span id="buttoned"><strong>Edit Product Batch</strong> </span><br />
<br />
<br />
<table width="611" height="520" border="0" align="center" cellpadding="4" cellspacing="5">
<tr bgcolor="#FFFFFF">
<td width="139" bgcolor="#FFFFFF"><span class="style1">Category Name :</span></td>
<td width="400"><input type="text" name="catalognamex" id="catalognamex" class="bigsearch" value="<?php print "$catalognamex"; ?>" /></td>
</tr>
<tr bgcolor="#FFFFFF">
<td bgcolor="#FFFFFF"> Description: <br />
</td>
<td><textarea name="descriptionx" id="descriptionx" maxlength="50" class="bigsearch" style="height:100px" cols="40" rows="5"><?php print "$description"; ?></textarea></td>
</tr>
<tr>
<td>Display </td>
<td><select class="bigsearch" name="status" id="status">
<option value="">Default</option>
<?php if (!empty($status)) {?>
<option value="<?php echo $status ; ?>" style="display:none" selected="selected"><?php echo $status ; ?></option>
<?php } ?>
<option value="1">Display</option>
<option value="0">Do not Display</option>
</select></td>
</tr>
</table></td>
</tr>
</table>
<p>
<span id="loading"><input type="submit" name="editcatalog" value="Edit Batch" id="buttoned4" style="width:200px; padding:18px; margin:0px; border:0px" > </span>
</p>
</td>
</tr>
</table>
</form></div>
</div>