<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加文章分类 {#$LA_poweredby#} -  Powered by GV32.COM</title>
<link rel="stylesheet" type="text/css" href="{#$base_weburl#}/templates/adminsys/css/list.css" />
<script language="javascript">
	function submitFun()
	{
		var idars_name 		= document.getElementById('ars_name');
		var idars_enabled 			= document.getElementById('ars_enabled');
		var idars_list 			= document.getElementById('ars_list');
		var idsuggestionInfo 	= document.getElementById('suggestionInfo');

		if(idars_name.value=='')
		{
			idsuggestionInfo.innerHTML = ' 提 示：分类名称不能为空！请输入！';
			idars_name.focus();
			return false;
		}else if(idars_enabled.value=='')
		{
			idsuggestionInfo.innerHTML = ' 提 示：是否显示不能为空！请输入！';
			idars_enabled.focus();
			return false;
		}else if(idars_list.value=='')
		{
			idsuggestionInfo.innerHTML = ' 提 示：排序不能为空！请输入！';
			idars_list.focus();
			return false;
		}
		
		
	}
</script>
</head>
<body>

<table  cellpadding="0" cellspacing="0" border="0" style="width:100%">

<tr><td><table cellpadding="0" cellspacing="0" border="0" style="width:100%; color:#000000; font-weight:normal; background-color:#3EC3EF;"  >
  <tr>
    <td>&nbsp;<a href="{#$base_weburl#}/adminsys/index.php?load=artsort&act=infolist" ><img src="{#$base_weburl#}/uploads/sys/h.gif"  width="15" border="0">文章分类</a> | 添加文章分类 </td>
    <td>&nbsp;</td>
    <td align="right"><a href="http://help.gv32.com/type_artsort-add.html" target="_blank" title="点击-在线帮助"><img src="{#$base_weburl#}/images/sys/adminhelp.png"  width="21" border="0" alt="点击-在线帮助"></a>&nbsp;&nbsp;</td>
  </tr>
</table>
</td></tr>

<tr><td>

<form action="{#$actUrl#}" method="post" onsubmit="return submitFun(this)" enctype="multipart/form-data" name="formSub">
<table cellpadding="0" cellspacing="1" border="0" style="width:100%" class="tableborder">

<tr>
<th colspan="2">添加文章分类</th>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>分类名称：</strong></td>
<td class="tdd"><input name="ars_name" id="ars_name" value="" type="text"  style="width:250px;" ></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>上级分类：</strong></td>
<td class="tdd">
<select   name="ars_parentid" id="ars_parentid"  style="width:250px;" >
<option value="0"   >请选择上级分类</option>
{#foreach key=key item=item from=$asInfo#}
<option value="{#$item.ars_id#}"   >{#$item.ars_name#}</option>
{#/foreach#}
</select>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>是否锁定：</strong></td>
<td class="tdd">锁定<input name="ars_locked" id="ars_locked[0]" value="1" type="radio" checked="checked"  >&nbsp;&nbsp;&nbsp;&nbsp;解锁<input name="ars_locked" id="ars_locked[1]" value="0" type="radio"  ></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>是否显示：</strong></td>
<td class="tdd">显示<input name="ars_enabled" id="ars_enabled[0]" value="1" type="radio" checked="checked"  >&nbsp;&nbsp;&nbsp;&nbsp;隐藏<input name="ars_enabled" id="ars_enabled[1]" value="0" type="radio"  ></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>排序：</strong></td>
<td class="tdd"><input name="ars_list" id="ars_list " value="99" type="text" style="width:250px;"></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td colspan="2"  class="tdcenter"><div id="suggestionInfo">&nbsp;</div></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td colspan="2"  class="tdcenter"> <input name="submit" id="submit" type="submit" value="添 加" ></td>
</tr>
</table>
</form>


</td></tr>
<tr><td></td></tr>
</table>
	
</body>
</html>