<iframe src="" name="catemodify" style="display:none"></iframe>

<SCRIPT LANGUAGE="JavaScript">
<!--
	function checkform(theform)
	{
		if(theform.catename.value=='')
		{
			alert('分类名不能为空');
			return false;
		}
		if(theform.keywords.value=='')
		{
			alert('关键字不能为空');
			return false;
		}
		
	}
//-->
</SCRIPT>
<FORM METHOD="POST" ACTION="index.php?con=admin&act=catemodify" onsubmit="return checkform(this);" target="catemodify">

<INPUT TYPE="hidden" NAME="updateid" value="<?php echo $cate['id'];?>">
<INPUT TYPE="hidden" NAME="commit" value="1">
<table width="100%" border="0" align="center"  cellpadding="3" cellspacing="1" class="table_form">
<tr>
<td width="70px" class="left_title_1"><span class="left-title">上级分类</span></td>
<td>
<SELECT NAME="parentid">
<OPTION VALUE="0">顶级分类</option>
<?php if($GLOBALS['cate']){foreach($GLOBALS['cate'] as $k=>$v){?>
<OPTION VALUE="<?php echo $k;?>" <?php if($_REQUEST['parentid']==$k || $cate['parentid']==$k){?>selected<?php }?>><?php echo $v['catename'];?></option>
<?php }}?>
</SELECT>
</td>
</tr>
<tr>
<td width="70px" class="left_title_1"><span class="left-title">分类名</span></td>
<td><INPUT TYPE="text" class="input-text" NAME="catename"   id="catename"   value="<?php echo $cate['catename'];?>"></td>
</tr>
<tr>
<td width="70px" class="left_title_1"><span class="left-title">排序</span></td>
<td><INPUT TYPE="text" class="input-text" NAME="sortorder"   id="sortorder"  value="<?php echo $cate['sortorder'];?>"></td>
</tr>
<tr>
<td width="70px" class="left_title_1"><span class="left-title">推荐</span></td>
<td><select name="recommend">
	<option value="1" <?php if($cate['recommend']>0){?>selected<?php }?>>推荐
	<option value="0" <?php if($cate['recommend']==0){?>selected<?php }?>>不推荐
</select></td>
</tr>
<tr>
<th width="120px">
字体颜色：</th><td><SELECT NAME="css[color]">
<OPTION VALUE="">选择颜色</option>
	<OPTION VALUE="#ff0000" style="background:#ff0000;">#ff0000</option>
	<OPTION VALUE="#339900" style="background:#339900;">#339900</option>
	<OPTION VALUE="#3300FF" style="background:#3300FF;">#3300FF</option>
	<OPTION VALUE="#990000" style="background:#990000;">#990000</option>
	<OPTION VALUE="#FFFF00" style="background:#FFFF00;">#FFFF00</option>
	<OPTION VALUE="#FF9900" style="background:#FF9900;">#FF9900</option>
	<OPTION VALUE="#660000" style="background:#660000;">#660000</option>
</SELECT>
<input type="checkbox" name="css[font-weight]" value="bold">加粗  <?php if($cate['css']){?><span style="<?php echo $cate['css'];?>">已有样式</span><?php }?></td>
</tr>
<tr>
<td width="70px" class="left_title_1"><span class="left-title">关键字</span></td>

<td><textarea style="width:200px;height:100px;" class="input-text" NAME="keywords"  id="keywords"  ><?php echo $cate['keywords'];?></textarea></td>

</tr>
<td colspan="2" align="center"><INPUT TYPE="submit" value="提交" class="button"></td>
</tr>
</table>
</FORM>