<%@ page language="C#" autoeventwireup="true" inherits="admin_uploadConfig, kfenlei" %><%@ Register Src="inc/adminTop.ascx" TagName="adminTop" TagPrefix="qth8" %>
<!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>
<title>框分类信息系统 后台管理</title>
<link href="css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div align="center">
<div class="main" align="left">
<qth8:adminTop ID="AdminTop1" runat="server" />
<div class="d01">
<form id="uploadConfig" action="action.aspx?s=uploadConfig" class="layui-form" method="post" name="uploadConfig">
<div class="tabTitle">上传设置</div>
<table width="100%" border="0" class="layui-table" cellspacing="0" cellpadding="0">
<tr>
<td class="head">上传图片大小<br />
<span class="comments">(KB)</span></td>
<td><input id="s6" name="s6" type="text" value="<%=sS6 %>" class="layui-input" /></td>
</tr>
<tr>
<td class="head">发布信息上传图片数量<br />
<span class="comments">0为关闭上传</span></td>
<td><input id="picCount" name="picCount" type="text" value="<%=sPicCount %>" class="layui-input" /></td>
</tr>
<tr>
    <td class="head" width="200">水印</td>
    <td><input type="radio" value="0" checked="checked" name="watermark" title="无水印" /><input type="radio" value="1" name="watermark" title="文字水印" /><input type="radio" value="2" name="watermark" title="图片水印" /></td>
  </tr>
<tr><td class="head">水印文字</td>
<td><input id="watermarkText" type="text" class="layui-input" value="<%=sWatermarkText %>" name="watermarkText" /></td></tr>
<tr>
 <td class="head">水印图片</td>
 <td>
 <div class="layui-input-inline"><input id="watermarkPic" type="text" class="layui-input" style="width:500px;" value="<%=sWatermarkPic %>" name="watermarkPic" id="watermarkPic" /></div>
 <div class="layui-btn-group"><a href="/<%=sWatermarkPic %>" target="_blank" class="layui-btn">查看</a> <a href="#nogo" onclick="showDiv('upfileDiv')" class="layui-btn">上传</a></div>
 <div class="upfileDiv" style="width:505px;" id="upfileDiv">
<div class="upfileClose" onclick="hideDiv('upfileDiv')">关闭</div>
<iframe width="400" height="100" style="padding:0px; margin:0px;" src="inc/upFile.aspx?tn=watermarkPic&fn=uploadConfig&js=top.hideDiv('upfileDiv');top.valiUpPic('watermarkPic','','{picUrl}');" frameborder="0" scrolling="no"></iframe>
</div>
 </td></tr>
  <tr>
    <td class="head">&nbsp;</td>
    <td><input id="btPost" type="submit" class="layui-btn" value="确定修改" /></td>
  </tr>
  
</table>
</form>
</div>
</div>
</div>
<script language="javascript" type="text/javascript">
 var s="<%=sWatermark%>"
		  var obj=document.getElementById("uploadConfig").watermark
		  for(i=0;i<obj.length;i++)
		  {
		  	if(obj[i].value==s)
			{
				obj[i].checked="checked"
				break
			}
		  }
		  
function dis(sobj)
{
	document.getElementById(sobj).style.display="block"
}
function changesort(sobj)
{
	document.getElementById("tbSort").value=sobj
	document.getElementById("msort").style.display="none"
}
function changeaddress(sobj)
{
	document.getElementById("tbAddress").value=sobj
	document.getElementById("divAddress").style.display="none"
}
 function showDiv(divId)
  {
  	document.getElementById(divId).style.display="block"
  }
  function hideDiv(divId)
  {
  	document.getElementById(divId).style.display="none"
  }
</script>
</body>
</html>
