<?php 
require_once '../../Config.php';
if (intval ( BLL_Admin::isLogin () ) === 0) {
	header ( 'Location:../index.html' );
	die ();
}
$theObj = BLL_WebSet::getOne ( 1 );
?>
<!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>后台管理系统</title>
<link rel="stylesheet" type="text/css" href="../Css/RightFrm.css" />
<script type="text/javascript" src="../jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="../../Bianji/ueditor.config.js"></script>
<script type="text/javascript" src="../../Bianji/ueditor.all.min.js"></script>
<script type="text/javascript" src="../Comm.js"></script>
<script type="text/javascript" src="jscolor.js"></script>
<script type="text/javascript" src="ThisJs.js"></script>
</head>
<body>
<table  border="0" cellpadding="0" cellspacing="1" class="headTable">
  <tr>
    <th width="100%">系统设置</th>
  </tr>
</table>
<form name="theForm" method="post" action="TheAction.php">
<input type="hidden" name="action" value="edit" />
<input type="hidden" name="theId" value="<?php echo $theObj['id']; ?>" />
<table border="0" cellpadding="0" cellspacing="1" class="formTable">
  <tr>
    <th width="15%">网站名称：</th>
    <td width="35%"><input type="text" name="webName_txt" value="<?php echo $theObj['webName']; ?>" style="width:95%" /></td>
   <!-- <th width="15%">< 网站LOGO： </th>
    <td width="35%">
    	 <input type="text" name="webLogo_txt" value="<?php echo $theObj['webLogo']; ?>" size="40" />
    	<input type="button" value=" 图片上传 " class="btn" onclick="showUploadDialog('image','theForm.webLogo_txt')" /> 
    </td>-->
    <th width="15%">微信二维码：</th>
    <td width="35%">
    <input type="text" name="weixin_txt" value="<?php echo $theObj['weixin']; ?>" size="40" />
    	<input type="button" value=" 图片上传 " class="btn" onclick="showUploadDialog('image','theForm.weixin_txt')" />
    </td>
  </tr>
  <tr>
    <th width="15%">电话：</th>
    <td width="35%"><input type="text" name="tel_txt" value="<?php echo $theObj['tel']; ?>" style="width:95%" /></td>
    <th width="15%">QQ：</th>
    
    <td width="35%"><input type="text" name="qq_txt" value="<?php echo $theObj['qq']; ?>" style="width:95%" /></td>
    
  </tr>
  <tr>
    <th width="15%">邮箱：</th>
    <td width="35%"><input type="text" name="email_txt" value="<?php echo $theObj['email']; ?>" style="width:95%" /></td>
    <th width="15%">地址：</th>
    
    <td width="35%"><input type="text" name="address_txt" value="<?php echo $theObj['address']; ?>" style="width:95%" /></td>
    
  </tr>
  <!-- 
  <tr>
    <th width="15%">微信二维码：</th>
    <td width="35%">
    <input type="text" name="weixin_txt" value="<?php echo $theObj['weixin']; ?>" size="40" />
    	<input type="button" value=" 图片上传 " class="btn" onclick="showUploadDialog('image','theForm.weixin_txt')" />
    </td>
    <th width="15%"></th>
    
    <td width="35%"></td>
  </tr>
   -->
  <tr>
    <th valign="top">网站首页关键字：</th>
    <td><textarea name="webKeywords_txt" rows="4" style="width:95%;"><?php echo $theObj['webKeywords']; ?></textarea></td>
    <th valign="top">网站首页描述：</th>
    <td><textarea name="webDescription_txt" rows="4" style="width:95%;"><?php echo $theObj['webDescription']; ?></textarea></td>
  </tr>
</table>
<table  border="0" cellpadding="0" cellspacing="1" class="headTable">
  <tr>
    <th width="100%">其它设置</th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="1" class="formTable">
  <tr>
    <th width="15%">是否启用漂浮：</th>
    <td width="35%">
    	<input type="radio" name="isShowPf_int" value="1" /> 开启
    	<input type="radio" name="isShowPf_int" value="0" /> 关闭
    	背景颜色：<input type="text" name="ShowPfColor_txt" value="<?php echo $theObj['ShowPfColor']; ?>" size="5" class='color' />
    	<script type="text/javascript">
    	setDxk("isShowPf_int","<?php echo $theObj['isShowPf']; ?>");
    	</script>
    </td>
    <th width="15%">默认是否启用生成缩略图：</th>
    <td width="35%">
    	<input type="radio" name="isSetImg_int" value="1" /> 开启
    	<input type="radio" name="isSetImg_int" value="0" /> 关闭
    	<script type="text/javascript">
    	setDxk("isSetImg_int","<?php echo $theObj['isSetImg']; ?>");
    	</script>
    </td>
  </tr>
  <tr>
    <th>其它第三方代码：</th>
    <td colspan="3"><textarea name="otherCode_noreplace" id="otherCode_noreplace" rows="8" style="width:98%;"><?php echo htmlspecialchars($theObj['otherCode']); ?></textarea></td>
  </tr>
</table>
<table  border="0" cellpadding="0" cellspacing="1" class="headTable">
  <tr>
    <th width="100%">水印设置</th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="1" class="formTable">
  <tr>
    <th width="15%">图片水印使用状态：</th>
    <td width="35%">
    	<input type="radio" name="isWaterMark_int" value="1" /> 开启
    	<input type="radio" name="isWaterMark_int" value="0" /> 关闭
    	<script type="text/javascript">
    	setDxk("isWaterMark_int","<?php echo $theObj['isWaterMark']; ?>");
    	</script>
    </td>
    <th width="15%">图片水印启用条件：</th>
    <td width="35%">
    	宽:
        <input type="text" name="waterMarkWidth_int" size="4" title='图形的宽度只有达到此最小宽度要求时才会生成水印，数字型' value='<?php echo $theObj['waterMarkWidth']; ?>' />
        px
        &nbsp;
       	 高:
        <input type="text" name="waterMarkHeight_int" size="4" title='图形的高度只有达到此最小高度要求时才会生成水印，数字型' value='<?php echo $theObj['waterMarkHeight']; ?>' />
        px
    </td>
  </tr>
  <tr>
    <th valign="top">图片水印位置：</th>
    <td>
    	<select name='waterMarkPosition_int' id ='waterMarkPosition_int'>
    		<option value="1">左上</option>
    		<option value="2">左中</option>
    		<option value="3">左下</option>
    		<option value="4">中上</option>
    		<option value="5">中中</option>
    		<option value="6">中下</option>
    		<option value="7">右上</option>
    		<option value="8">右中</option>
    		<option value="9" selected>右下</option>
    	</select>
    	<script type="text/javascript">
    	document.getElementById("waterMarkPosition_int").value="<?php echo $theObj['waterMarkPosition']; ?>";
    	</script>
    </td>
    <th valign="top">图片水印边距：</th>
    <td>
    	宽:
        <input type="text" name="waterMarkMarginW_int" size='4' title='居左时作用为左边距，居右时作用为右边距，数字型' value='<?php echo $theObj['waterMarkMarginW']; ?>' />
        px
        &nbsp;
       	 高:
        <input type="text" name="waterMarkMarginH_int" size='4' title='居上时作用为上边距，居下时作用为下边柜，数字型' value='<?php echo $theObj['waterMarkMarginH']; ?>' />
        px
    </td>
  </tr>
  <tr>
    <th valign="top">图片水印图片路径：</th>
    <td colspan="3">
    	<input type="text" name="waterMarkPath_txt" value="<?php echo $theObj['waterMarkPath']; ?>" size="40" />
    	<input type="button" value=" 图片上传 " class="btn" onclick="showWaterMarkDialog()" />
    </td>
  </tr>
</table>
<table  border="0" cellpadding="0" cellspacing="1" class="headTable">
  <tr>
    <th width="100%">编辑器设置</th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="1" class="formTable">
  <tr>
    <th width="15%">编辑器路径：</th>
    <td width="35%"><input type="text" name="editorBase_txt" value="<?php echo $theObj['editorBase']; ?>" size="30" /> <span style="color:#ff0000;">* 根目录直接使用 “/”</span></td>
    <th width="15%">允许上传的文件最大大小：</th>
    <td width="35%"><input type="text" name="editorMaxSize_int" value="<?php echo $theObj['editorMaxSize']; ?>" size="5" /> (单位 M) 超过<?php echo get_cfg_var("upload_max_filesize"); ?>无效</td>
  </tr>
  <tr>
    <th>允许上传的图片后缀：</th>
    <td><input type="text" name="editorImgExt_txt" value="<?php echo $theObj['editorImgExt']; ?>" size="40" /> 为空表示关闭</td>
    <th>允许上传的附件后缀：</th>
    <td><input type="text" name="editorLinkExt_txt" value="<?php echo $theObj['editorLinkExt']; ?>" size="40" /> 为空表示关闭</td>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="1" class="headTable">
  <tr>
    <th width="100%">网站底部信息：</th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="1" class="formTable" style="margin-top:-1px;">
  <tr>
    <td colspan="2"><textarea name="webCopyright_noreplace" id="webCopyright_noreplace"><?php echo htmlspecialchars($theObj['webCopyright']); ?></textarea></td>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="1" class="formTable" style="margin-top:-1px;">
  <tr>
    <th width="15%">&nbsp;</th>
    <td width="85%"><input type="submit" value=" 立 即 提 交 " class="btn" /></td>
  </tr>
  <tr>
    <td colspan="2">&nbsp;</td>
  </tr>
</table>
</form>
<script type="text/javascript">
$(function(){
	var toobarsStr="";
	toobarsStr+="['source', ";
	toobarsStr+="'|', 'undo', 'redo', '|','bold', 'italic', 'underline', ";
	toobarsStr+="'fontborder', 'strikethrough', 'superscript', 'subscript', 'removeformat'";
	toobarsStr+=", 'formatmatch', 'autotypeset','|','justifyleft', 'justifycenter', ";
	toobarsStr+="'justifyright', 'justifyjustify','forecolor','link', 'unlink']";
	UE.getEditor('webCopyright_noreplace',{toolbars:[eval(toobarsStr)],initialFrameHeight:150,initialFrameWidth:'99%'});
	setTableColor("no");
});
</script>
</body>
</html>