<!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">
var webroot_url = '{#$base_weburl#}';
function submitFun()
{
	var idhel_title 	= document.getElementById('hel_title');
	var idhes_id 		= document.getElementById('hes_id');
	
	var hel_detail		= CKEDITOR.instances.hel_detail.getData()
	var idsuggestionInfo 	= document.getElementById('suggestionInfo');
	
	if(idhel_title.value == '')
	{
		idsuggestionInfo.innerHTML = ' 提 示：帮助标题不能为空！请输入！';
		idhel_title.focus();
		return false;
	}else if(idhes_id.value == '')
	{
		idsuggestionInfo.innerHTML = ' 提 示：帮助分类不能为空！请选择！';
		idhes_id.focus();
		return false;
	}else if(hel_detail == '')
	{
		idsuggestionInfo.innerHTML = ' 提 示：内容不能为空请输入！';
		CKEDITOR.instances.hel_detail.focus();
		return false;
	}
	
	document.formSub.action = '{#$base_weburl#}/adminsys/index.php?load=help&act=addinfo';
	document.formSub.target = "_self"
	document.formSub.submit(); 
	
}

	
	function upLoadFile()
	{
		document.formSub.target="hidden_frame"
		document.formSub.action='{#$base_weburl#}/adminsys/uploadfile.php?upLoadName=upfile&getUrl=hel_pic';
		document.formSub.submit(); 
		document.getElementById("lodingdiv").style.display="";
		document.getElementById("lodingdiv").innerHTML="<img src=\"{#$webroot_url#}/uploads/sys/loading2.gif\" />文件正上传，请稍候...";

	}
	
	function upLoadSmall()
	{
		document.formSub.target="smallhidden_frame"
		document.formSub.action='{#$base_weburl#}/adminsys/uploadfile.php?upLoadName=smallupfile&getUrl=hel_file&lodingDiv=lodingdivsmall';
		document.formSub.submit(); 
		document.getElementById("lodingdivsmall").style.display="";
		document.getElementById("lodingdivsmall").innerHTML="<img src=\"{#$webroot_url#}/uploads/sys/loading2.gif\" />文件正上传，请稍候...";

	}
	
	function hiddenLoding()
	{
		document.getElementById("lodingdiv").style.display="none";
		document.getElementById("lodingdiv").innerHTML="";
		document.getElementById("link_logo").value="";
		document.getElementById("upfile").value="";
	}
</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=help&act=infolist" ><img src="{#$base_weburl#}/uploads/sys/h.gif"  width="15" border="0">帮助管理</a> |添加帮助</td>
    <td>&nbsp;</td>
    <td>&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" width="120"><strong>帮助标题：</strong></td>
<td class="tdd"><input name="hel_title" id="hel_title" 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="hes_id" id="hes_id"  style="width:250px;" >
<option value="">请选择上级分类</option>
{#foreach key=key item=item from=$hsInfo#}
<option value="{#$item.hes_id#}"  >{#$item.hes_name#}</option>
	{#foreach item=spitem from=$item.array#}
	<option value="{#$spitem.hes_id#}"  >|__{#$spitem.hes_name#}</option>
	{#/foreach#}
{#/foreach#}
</select>
</td>
</tr>


<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>访问标记：</strong></td>
<td class="tdd"><input name="hel_mark" id="hel_mark" value="" type="text"  style="width:250px;" ></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>关&nbsp;键&nbsp;字：</strong></td>
<td class="tdd"><input name="hel_keyword" id="hel_keyword" 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"><textarea rows="4" cols="56" name="hel_description" id="hel_description"></textarea></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>帮助内容：</strong></td>
<td class="tdd">{#$ckeditorLoad#}
</td>
</tr>

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

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>排&nbsp;&nbsp;&nbsp;&nbsp;序：</strong></td>
<td class="tdd"><input name="hel_list" id="hel_list" value="99999" type="text"  style="width:150px;"></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="buttsubmit" id="buttsubmit" type="button" value="添 加" onclick="submitFun()"  ></td>
</tr>
</table>
</form>
	

</td></tr>
<tr><td></td></tr>
</table>



</body>
</html>