<!--#include file="Access.asp"  -->
<!-- #include file="inc/functions.asp" -->
<!-- #include file="x_to_html/index_to_html.asp" -->
<%
web_name=trim(request.form("web_name"))
web_url=trim(request.form("web_url"))
web_image=trim(request.form("web_image"))
web_title=trim(request.form("web_title"))
web_keywords=trim(request.form("web_keywords"))
web_description=trim(request.form("web_description"))
web_copyright=trim(request.form("web_copyright"))
web_person=trim(request.form("web_person"))
web_email=trim(request.form("web_email"))
web_tel=trim(request.form("web_tel"))
web_time=trim(request.form("web_time"))
if web_time="" then
 web_time=now()
end if 

set rs=server.createobject("adodb.recordset")
sql="select * from web_settings"
rs.open(sql),cn,1,3
rs("web_name")=web_name
rs("web_url")=web_url
rs("web_image")=web_image
rs("web_title")=web_title
rs("web_keywords")=web_keywords
rs("web_description")=web_description
rs("web_copyright")=web_copyright
rs("web_person")=web_person
rs("web_email")=web_email
rs("web_tel")=web_tel
rs("web_time")=web_time
rs.update
rs.close
set rs=nothing
call index_to_html()
end if
 %>
	<%
Call header()

%>
<%set rs=server.createobject("adodb.recordset")
sql="select * from web_settings"
rs.open(sql),cn,1,1
if not rs.eof and not rs.bof then
%>
  <form id="form1" name="form1" method="post" action="?act=save">
         <script language='javascript'>
function checksignup1() {
if ( document.form1.web_name.value == '' ) {
window.alert('请输入网站名称^_^');
document.form1.web_name.focus();
return false;}

if ( document.form1.web_email.value.length> 0 &&!document.form1.web_email.value.indexOf('@')==-1|document.form1.web_email.value.indexOf('.')==-1 ) {
window.alert('请设置正确的Email地址^_^');
document.form1.web_email.focus();
return false;}
return true;}
</script>
	<table cellpadding='3' cellspacing='1' border='0' class='tableBorder' align=center>
	<tr>
	  <th class='tableHeaderText' colspan=2 height=25>网站信息设置</th>
	<tr>
	<tr>
	<td width="15%" height=23 class='forumRow'>网站名称</td>
	<td class='forumRow'><input name='web_name' type='text' id='web_name' value="<%=rs("web_name")%>" size='40'></td>
	</tr>
	<tr>
	<td class='forumRow' height=23>网站网址</td>
<td class='forumRow'><input type='text' id='web_url' name='web_url' value="<%=rs("web_url")%>" size='40'> 
  &nbsp;请以http://开头，如：http://www.baidu.com/</td>
	</tr>
	  <tr>
	    <td class='forumRow' height=23>网站标志</td>
	   <td width="85%" class='forumRow'><table width="100%" border="0" cellspacing="0" cellpadding="0">
         <tr>
           <td width="22%"  class='forumRow'><input name="web_image" type="text" id="web_image"  value="<%=rs("web_image")%>"  size="30"></td>
           <td width="78%"  class='forumRow'><iframe width="500" name="ad" frameborder=0 height=30 scrolling=no src=upload.asp></iframe></td>
         </tr>
       </table></td>
      </tr>
	  <td class='forumRow' height=23>网站标题</td>
	<td class='forumRow'><input type='text' id='web_title' name='web_title'   value="<%=rs("web_title")%>" size='80'></td>
	</tr>
	  <td class='forumRow' height=11>网站关键字</td>
	<td class='forumRow'><input type='text' id='v3' name='web_keywords'   value="<%=rs("web_keywords")%>" size='80'>
	  &nbsp;请以，隔开</td>
	</tr><tr>
	  <td class='forumRow' height=11>网站描述</td>
	  <td class='forumRow'><textarea name='web_description'  cols="100" rows="4" ><%=rs("web_description")%></textarea></td>
	</tr>
	<tr>
	  <td class='forumRow' height=23>版权信息</td>
	  <td class='forumRow'> <textarea name='web_copyright' style='display:none' dataType='Require'  ><%=rs("web_copyright")%></textarea>
 <iframe ID='eWebEditor1' src='editor/ewebeditor.htm?id=web_copyright&style=coolblue&originalfilename=d_originalfilename&savefilename=d_savefilename&savepathfilename=d_savepathfilename' frameborder='0' scrolling='no' width='100%' HEIGHT='260'></iframe></td>
	</tr>
	<tr>
	  <td class='forumRow' height=23>网站站长</td>
	  <td class='forumRow'><input type='text' id='v42' name='web_person'  value="<%=rs("web_person")%>"  size='40'></td>
	</tr>
	<tr>
	  <td class='forumRow' height=23>网站邮箱</td>
	  <td class='forumRow'><input type='text' id='v43' name='web_email'   value="<%=rs("web_email")%>"  size='40'></td>
	</tr>
	<tr>
	  <td class='forumRow' height=23>联系电话</td>
	  <td class='forumRow'><input type='text' id='v44' name='web_tel'  value="<%=rs("web_tel")%>" size='40'></td>
	</tr>
	<tr>
	  <td class='forumRow' height=23>修改时间</td>
	  <td class='forumRow'><input type='text' id='v45' name='web_time'  value="<%=rs("web_time")%>" size='40'> 
	  &nbsp;<a href="#" class="green" onClick="document.form1.web_time.value='<%=now()%>'">同步到现在时间</a>     </td>
	</tr>
	<tr><td height="50" colspan=2  class='forumRow'><div align="center">
	  <INPUT type=submit value='提交' onClick='javascript:return checksignup1()' name=Submit>
	  </div></td></tr>
	</table>
	</form>

<%
Call DbconnEnd()
else
response.write "暂时无数据"
end if %>