<?php include mymps_tpl('inc_head');?>
<script language=javascript>
function chkform(){
	if(document.form.corpname.value==""){
		alert('请输入分类名称！');
		document.form.corpname.focus();
		return false;
	}
}
</script>
<form method=post onSubmit="return chkform()" name="form" action="?part=edit">
<div id="mymps">
<table width="100%"  border="0" cellspacing="0" cellpadding="0" class="vbm">
<input name="part" value="update" type="hidden">
<input type="hidden" name="corpid" value="<?=$corp[corpid]?>">
<tr bgcolor="#f5fbff">
  <td>商家分类名称</td>
  <td> 
  <input name="corpname" class="text" type="text" id="corpname" value="<?=$corp[corpname]?>" size="30">
   <font color="red">*</font></td>
</tr>
<tr bgcolor="#f5fbff">
  <td>隶属分类</td>
  <td><select name="parentid" id="parentid" >
    	<option value="0">作为根分类...</option>
		<?=cat_list('corp',0,$corp[parentid],true,1)?>
  </select>
  </td>
</tr>
<tr bgcolor="#f5fbff">
  <td>分类排序</td>
  <td><input name="corporder" class="text" type="text" id="corporder" value="<?=$corp[corporder]?>" size="30"></td>
</tr>
</table>
</div>
<center>
<input type="submit" name="<?=CURSCRIPT?>_submit" value="提交保存" class="mymps mini"/>
&nbsp;&nbsp;
<input type="button" onClick=history.back() value="返 回" class="mymps mini">
</center>
</form>
<?php mymps_admin_tpl_global_foot();?>