<!--#include file="Config.asp" -->
<div class='menu'>&nbsp;网站配置信息</div>
<%
Mgt("p01") 'Cookies : Permission
If action = "Save" Then
Set Rs=Server.CreateObject("Adodb.RecordSet")
Rs.Open "Select * From [eims_System] Where ItemID=1",Conn,1,3
Rs("siteName")=Trim(Request.Form("siteName"))
Rs("siteLogo")=Trim(Request.Form("siteLogo"))
Rs("siteTitle")=Trim(Request.Form("siteTitle"))
Rs("siteKeyWord")=Trim(Request.Form("siteKeyWord"))
Rs("siteInfo")=Trim(Request.Form("siteInfo"))
Rs("siteCopyRight")=Trim(Request.Form("siteCopyRight"))
Rs("picMax")=Trim(Request.Form("picMax"))
Rs("picType")=Trim(Request.Form("picType"))
Rs("fileMax")=Trim(Request.Form("fileMax"))
Rs("fileType")=Trim(Request.Form("fileType"))
Rs("pmWidth")=Trim(Request.Form("pmWidth"))
Rs("pmHeight")=Trim(Request.Form("pmHeight"))

if Trim(Request.Form("Thumbnail"))="1" then
Rs("Thumbnail")=1
else
Rs("Thumbnail")=0
end if

Rs("Tel")=Trim(Request.Form("Tel"))
Rs("Add")=Trim(Request.Form("Add"))
Rs("DeCode")=Trim(Request.Form("DeCode"))

Rs.Update
Rs.Close:Set Rs=Nothing
End If

Set Rs=Server.CreateObject("Adodb.RecordSet")
Rs.Open "Select * From [eims_System] Where ItemID=1",Conn,1,1
%>
<div class="content">
<Form name='eForm' method='post' action='?action=Save'>
    <table width="100%" border="0" cellspacing="1" cellpAdding="1" align="center">
      <tr align="center">
        <td width="20%" align="center">网站名称</td>
        <td align="left"><input name="siteName" type="text" value='<%=Rs("siteName")%>' size="<%=InputSize%>"></td>
      </tr>
      <tr align="center">
        <td align="center">网站LOGO</td>
        <td align="left"><iframe src="Upload.asp?eType=pic&fField=siteLogo" scrolling="no" frameborder="0" width="300" height="25"></iframe><br>
		<input name="siteLogo" type="text" value='<%=Rs("siteLogo")%>' size="<%=InputSize%>"> <span class="red">*分享时的图片</span></td>
      </tr>
      <tr align="center">
        <td align="center">简要介绍</td>
        <td align="left"><input name="siteTitle" type="text" value='<%=Rs("siteTitle")%>' size="<%=InputSize%>"> <span class="red">*分享时的介绍</span></td>
      </tr>
      <tr align="center">
        <td align="center">电话</td>
        <td align="left"><input name="Tel" type="text" value='<%=Rs("Tel")%>' size="<%=InputSize%>"></td>
      </tr>
      <tr align="center">
        <td align="center">地址</td>
        <td align="left"><input name="Add" type="text" value='<%=Rs("Add")%>' size="<%=InputSize%>"></td>
      </tr>
      <tr align="center">
        <td align="center">二维码</td>
        <td align="left"><iframe src="Upload.asp?eType=pic&fField=DeCode" scrolling="no" frameborder="0" width="300" height="25"></iframe><br>
		<input name="DeCode" type="text" value='<%=Rs("DeCode")%>' size="<%=InputSize%>"></td>
      </tr>
	  
      <tr align="center">
        <td align="center">图片自动压缩</td>
        <td align="left"><input type="checkbox" value="1" name="Thumbnail" <%if Rs("Thumbnail")=1 then response.write "checked"%>> 
		宽<input type="text" size="3" name="pmWidth" value="<%=Rs("pmWidth")%>">PX
		高<input type="text" size="3" name="pmHeight" value="<%=Rs("pmHeight")%>">PX</td>
      </tr>

      <tr align="center">
        <td align="center">图片上传设置</td>
        <td align="left">大小<input name="picMax" type="text" value='<%=Rs("picMax")%>' size="3"> KB &nbsp; 
          类型<input name="picType" id="picType" type="text" value='<%=Rs("picType")%>' size="<%=InputSize%>">
          <input type="button" value="默认值" onClick="picType.value='gif|jpg|jpeg|jpg|png|bmp'"> 以 | 分割</td>
      </tr>
      <tr align="center">
        <td align="center">附件上传设置</td>
        <td align="left">大小<input name="fileMax" type="text" value='<%=Rs("fileMax")%>' size="3"> KB &nbsp; 
          类型<input name="fileType" id="fileType" type="text" value='<%=Rs("fileType")%>' size="<%=InputSize%>">
          <input type="button" value="默认值" onClick="fileType.value='doc|docx|xls|xlsx|ppt|htm|html|txt|zip|rar|gz|bz2|gif|jpg|jpeg|jpg|png|bmp'"> 以 | 分割</td>
      </tr>

      <tr align="center" bgcolor="#FFFFFF">
        <td align="center" width="20%" ></td>
        <td align="left" height="25"><input type="submit" value="保 存">
          &nbsp;&nbsp;<input type="button" value="返 回" onClick="history.go(-1);"></td>
      </tr>	  
    </table>
</form>
</div>
</body></html>
<%Call CloseConn()%>