<%'guidedisplay=1%>

<!--#include file="admin_start.asp" -->

<%
id=request("sort_id")

if not MySys.check.isInteger(id) then
   MySys.Error.info = "请提交合法的帮助分类id！"
   MySys.Error.location = "back"
   MySys.Error.err()
End If

id=int(id)

rs.open"select * from jins_help_sort where sort_id="&id&" ",conn,1,1
if rs.eof and id>0 then
   MySys.Error.info = "您请求的帮助分类不存在！"
   MySys.Error.location = "back"
   MySys.Error.err()
End If

session("FB_EM_1_SQL_uppath")="../HELPPIC/$_TEMP_$"

%>
<body topmargin="30" marginwidth="10" marginheight="10">
<form name=edit_html target=admin_edit_html method=post><input type=hidden name=c value=''><input type=hidden name=formname value=''><input type=hidden name=inputname value=''></form>
<form name=edit_template target=admin_edit_template method=post><input type=hidden name=c value=''><input type=hidden name=c_sql value=''><input type=hidden name=formname value=''><input type=hidden name=inputname value=''></form>
<form name=help_list action="admin_info_help_edit_handle.asp?action=add&id=<%=id%>" method=post>
<table cellpadding="3" cellspacing="4" width="90%" height="30" align=center style='border:1px solid #ebebeb' >
	<tr>
		<td width="2%" align=right><img alt='点击弹开编辑框' onclick="opencat(basic_open)" style='CURSOR: hand' src="Images/index_search.gif" width="8" height="16"></td>
		<td  width="98%" align=left>
		<font color="#ebebeb"> | </font>
		<img alt='点击弹开提示信息框' onclick="opencat(help_ads_open)" style='CURSOR: hand' src="Images/icon_info.gif" width="13" height="13" hspace="0" align="absmiddle">			
		<font color="#ebebeb"> | </font>
		添加帮助
	    </td>
	</tr>		
	<tr id="help_ads_open" style="display:  ">
		<td colspan="10" align=left>
		<table cellpadding="4" cellspacing="2" width="99%" height="30" align=center style='border:1px dashed #B7B7B7' >
			<tr>
				<td colspan="8" width='100%' style="line-height:150% ">
				·帮助内容可以点击 <img border=0 src="Images/old.gif" width="21" height="20" align="absmiddle"> 在新窗口中进行详细的编辑。<br>
			</td>
			</tr>
		</table>
		</td>
	</tr>
	
	<tr id="basic_open" >
		<td colspan="10" align=left style='padding-bottom:5px'>
		<table cellpadding="4" cellspacing="2" bgcolor='#f7f7f7' width="99%" height="30" align=center style='border:1px dashed #808080;padding:20px' >
			<tr>
				<td  width="10%" align=right>帮助类型:</td>
				<td  colspan="2"  width="90%" align=left>
				<select name=sort_id >
				<%
				dim s
				set s=MySys.temp.search
				s.list_Sort "", "jins_help_sort",0,"根目录|"&id
				response.write s.sort_list
				set s=nothing
				%>
				</select>
				·加入时间:
				<input value='<%=now()%>' name='help_addtime' size=20>
				·帮助开关:
				<select name=help_open >
				<option value=1 >打开</option>
				<option value=0 >关闭</option>
				</select>
				·浏览量:
				<input value='0' name='help_clicknum' size=7>
				</td>
			</tr>

		</table><br>

		<table cellpadding="4" cellspacing="2" bgcolor='#f7f7f7' width="99%" height="30" align=center style='border:1px dashed #808080;padding:20px' >
			<tr>
				<td  width="10%" align=right>帮助标题:</td>
				<td colspan="2" width="90%" align=left>
				<input value='' name='help_title' size=90>
				</td>
			</tr>
			<tr>
				<td  width="10%" align=right>作者:</td>
				<td  colspan="2"  width="90%" align=left>
				<input value='' name='help_writer' size=45>
			    <img alt='点击查看帮助预览！' style='CURSOR: hand' onclick='javascript:window.open("../"+help.help_content.value);' border=0 src='images/btn_pre2.gif' align='absbottom' >
				</td>
			</tr>
		    <tr>
			  <td  width="10%" align=right valign=top>帮助内容:</td>
			  <td  width="90%" align=left>
                <textarea id="help_content" name="help_content" cols="76" rows="30"></textarea>
                <a title='点击进行详细编辑！' href="javascript:openedit_template('help_list','help_content','','','<%=int(timer)%>','帮助内容编辑 > 新的帮助 > '+help_list.help_title.value,'yes');" >
				<img border=0 src="Images/old.gif" width="21" height="20" align="top"><br>
				</a>
			</td>
			</tr>

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

	<tr>
		<td height='1' colspan="9" background='images/dot03.gif'></td>
	</tr>
	
	<tr>
	  <td height='30' colspan="8" width='100%' align=center >
	  <input type=submit value="提交帮助！" >
	   <input type=reset value="重置" > 
	   <input onclick='history.back(-1)' type=button value="返回" >	  </td>
	</tr>
</table>		
<SCRIPT language=javascript>
	function opencat(cat)
	{
 	 	if(cat.style.display=="none"){
     	cat.style.display="";
  		} else {
     	cat.style.display="none"; 
  		}
	}</SCRIPT>
</form>
<%
rs.close
%>
<!--#include file="admin_end.asp" -->