<?php
require("../class/connect.php");
include("../class/db_sql.php");
include("../class/config.php");
include("../class/functions.php");
$link=db_connect();
$empire=new mysqlquery();
$logininid=getcvar('loginuserid');
$loginin=getcvar('loginusername');
$loginrnd=getcvar('loginrnd');
$loginlevel=getcvar('loginlevel');
is_login($logininid,$loginin,$loginrnd);
//验证权限
CheckLevel($logininid,$loginin,$classid,"public");
$r=$empire->fetch1("select * from {$dbtbpre}enewspublic limit 1");
//文件类别
$filetype=substr($r[filetype],1,strlen($r[filetype]));
$filetype=substr($filetype,0,strlen($filetype)-1);
//投稿图片扩展名
$qaddimgtype=substr($r[qaddtranimgtype],1,strlen($r[qaddtranimgtype]));
$qaddimgtype=substr($qaddimgtype,0,strlen($qaddimgtype)-1);
//投稿附件扩展名
$qaddfiletype=substr($r[qaddtranfiletype],1,strlen($r[qaddtranfiletype]));
$qaddfiletype=substr($qaddfiletype,0,strlen($qaddfiletype)-1);
//反馈附件
$feedbackfiletype=substr($r[feedbackfiletype],1,strlen($r[feedbackfiletype])-2);
//会员表单
$memberimgtype=substr($r[memberimgtype],1,strlen($r[memberimgtype]));
$memberimgtype=substr($memberimgtype,0,strlen($memberimgtype)-1);
$memberfiletype=substr($r[memberfiletype],1,strlen($r[memberfiletype]));
$memberfiletype=substr($memberfiletype,0,strlen($memberfiletype)-1);
//-----------审核
$checked0=" checked";
if($r[checked])
{$checked1=" checked";$checked0="";}
//权限
$filechmod0=" checked";
$filechmod1="";
if($r[filechmod])
{
	$filechmod0="";
	$filechmod1=" checked";
}
//-----------关闭注册
$register_ok0=" checked";
if($r[register_ok])
{$register_ok1=" checked";$register_ok0="";}
//-----------关闭注册
$addnews_ok0=" checked";
if($r[addnews_ok])
{$addnews_ok1=" checked";$addnews_ok0="";}
//-----------关闭验证码
$loginkey_ok0=" checked";
if($r[loginkey_ok])
{$loginkey_ok1=" checked";$loginkey_ok0="";}
//-----------关闭验证码
$plkey_ok0=" checked";
if($r[plkey_ok])
{$plkey_ok1=" checked";$plkey_ok0="";}
//----------会员组
$sql1=$empire->query("select groupid,groupname from {$dbtbpre}enewsmembergroup order by level");
while($l_r=$empire->fetch($sql1))
{
	if($r[defaultgroupid]==$l_r[groupid])
	{$select=" selected";}
	else
	{$select="";}
	//搜索会员组
	if($r[searchgroupid]==$l_r[groupid])
	{$s_select=" selected";}
	else
	{$s_select="";}
	//查看资料权限
	if($r[showinfolevel]==$l_r[groupid])
	{$showinfo_select=" selected";}
	else
	{$showinfo_select="";}
	$membergroup.="<option value=".$l_r[groupid].$select.">".$l_r[groupname]."</option>";
	$searchmembergroup.="<option value=".$l_r[groupid].$s_select.">".$l_r[groupname]."</option>";
	$showinfolevel.="<option value=".$l_r[groupid].$showinfo_select.">".$l_r[groupname]."</option>";
}
//安装类型
if($r[install])
{$install1=" selected";}
else
{$install0=" selected";}
//检查标题
if($r[sametitle])
{$sametitle1=" checked";}
else
{$sametitle0=" checked";}
//php模式
if($r[phpmode])
{$phpmode=" checked";}
//上传模式
if($r[ftpmode]!="FTP_BINARY")
{$ftpmode1=" selected";}
else
{$ftpmode0=" selected";}
if($r[hotplshowdate])
{$hotplshowdate=" checked";}
if($r[goodshowdate])
{$goodshowdate=" checked";}
if($r[hotshowdate])
{$hotshowdate=" checked";}
if($r[newshowdate])
{$newshowdate=" checked";}
if($r[firstshowdate])
{$firstshowdate=" checked";}
if($r[addrehtml])
{$addrehtml=" checked";}
if($r[limittype])
{$limittype=" checked";}
if($r[qaddtran])
{$qaddtran=" checked";}
if($r[ebakthisdb])
{$ebakthisdb=" checked";}
if($r[havefp])
{$havefp=" checked";}
if($r[candocode])
{
	$candocode1=" checked";
}
else
{
	$candocode0=" checked";
}
if($r[opennotcj])
{
	$opennotcj1=" checked";
}
else
{
	$opennotcj0=" checked";
}
if($r[openclasspv])
{
	$openclasspv=" checked";
}
if($r[openpagepv])
{
	$openpagepv=" checked";
}
//水印位置
db_close();
$empire=null;
//风格
$loginadminstyleid=(int)getcvar('loginadminstyleid');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>参数设置</title>
<link href="adminstyle/<?=$loginadminstyleid?>/adminstyle.css" rel="stylesheet" type="text/css">
<link id="luna-tab-style-sheet" type="text/css" rel="stylesheet" href="adminstyle/<?=$loginadminstyleid?>/tab.winclassic.css" disabled="disabled" /> 
<!-- the id is not needed. It is used here to be able to change css file at runtime -->
<style type="text/css"> 
   .dynamic-tab-pane-control .tab-page { 
         height:                100px; 
 } 
  .dynamic-tab-pane-control .tab-page .dynamic-tab-pane-control .tab-page { 
         height:                150px; 
 } 
  form { 
         margin:        0; 
         padding:        0; 
 } 
  /* over ride styles from webfxlayout */ 
  .dynamic-tab-pane-control h2 { 
         text-align:        center; 
         width:                auto;
		 height:            20; 
 } 
   .dynamic-tab-pane-control h2 a { 
         display:        inline; 
         width:                auto; 
 } 
  .dynamic-tab-pane-control a:hover { 
         background: transparent; 
 } 
  </style>
 <script type="text/javascript" src="../data/images/tabpane.js"></script> <script type="text/javascript"> 
  function setLinkSrc( sStyle ) { 
         document.getElementById( "luna-tab-style-sheet" ).disabled = sStyle != "luna"; 
  
         //document.documentElement.style.background = "";
         //document.body.style.background = sStyle == "webfx" ? "white" : "ThreeDFace"; 
 } 
function chgBg(obj,color){
 if (document.all || document.getElementById)
   obj.style.backgroundColor=color;
 else if (document.layers)
   obj.bgColor=color;
}
  setLinkSrc( "luna" ); 
  
  function foreColor()
{
  if (!Error())	return;
  var arr = showModalDialog("editor/selcolor.html", "", "dialogWidth:18.5em; dialogHeight:17.5em; status:0");
  if (arr != null) document.form1.markfontcolor.value=arr;
  else document.form1.markfontcolor.focus();
}
  </script> 
</head>

<body>
<table width="100%%" border="0" align="center" cellpadding="3" cellspacing="1">
  <tr>
    <td>位置：<a href="SetEnews.php">参数设置</a></td>
  </tr>
</table>
<form name="form1" method="post" action="enews.php">
<div class="tab-pane" id="TabPane1"> <script type="text/javascript">
tb1 = new WebFXTabPane( document.getElementById( "TabPane1" ) );
</script>
<div class="tab-page" id="baseinfo"> 
                    
      <h2 class="tab">&nbsp;<font class=tabcolor>基本属性</font>&nbsp;</h2>
                    <script type="text/javascript">tb1.addTabPage( document.getElementById( "baseinfo" ) );</script>
      <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
        <input type=hidden name=enews value=SetEnews>
        <tr class="header"> 
          <td height="25" colspan="2">基本信息设置</td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">安装形式</td>
          <td height="25" bgcolor="#FFFFFF"><select name="install" id="select">
              <option value="0"<?=$install0?>>服务端</option>
              <option value="1"<?=$install1?>>客户端</option>
            </select> <font color="#666666">(如是远程发布，请选客户端，并且需配置FTP选项)</font></td>
        </tr>
        <tr> 
          <td width="22%" height="25" bgcolor="#FFFFFF">站点名称</td>
          <td width="78%" height="25" bgcolor="#FFFFFF"> <input name="sitename" type="text" id="sitename" value="<?=$r[sitename]?>" size="38"></td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">网站地址</td>
          <td height="25" bgcolor="#FFFFFF"> <input name="newsurl" type="text" id="newsurl4" value="<?=$r[newsurl]?>" size="38"> 
            <font color="#666666">(后面需加“/”，如：http://www.phome.net/)</font></td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">安装地址</td>
          <td height="25" bgcolor="#FFFFFF"> <input name="siteurl" type="text" id="siteurl2" value="<?=$r[siteurl]?>" size="38"> 
            <font color="#666666">(与“网站地址”相同)</font></td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">附件地址</td>
          <td height="25" bgcolor="#FFFFFF"><input name="fileurl" type="text" id="fileurl" value="<?=$r[fileurl]?>" size="38"> 
            <font color="#666666">(后面需加“/”，如：http://www.phome.net/d/file/)</font></td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">管理员邮箱</td>
          <td height="25" bgcolor="#FFFFFF"> <input name="email" type="text" id="email" value="<?=$r[email]?>" size="38"></td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">首页文件扩展名</td>
          <td height="25" bgcolor="#FFFFFF"><input name="indextype" type="text" id="indextype" value="<?=$r[indextype]?>" size="38"> 
            <font color="#666666"> 
            <select name="select" onchange="document.form1.indextype.value=this.value">
              <option value=".html">扩展名</option>
              <option value=".html">.html</option>
              <option value=".htm">.htm</option>
              <option value=".php">.php</option>
              <option value=".shtml">.shtml</option>
            </select>
            <input name="oldindextype" type="hidden" id="oldindextype" value="<?=$r[indextype]?>">
            <font color="#666666"></font>(如：.html,.htm,.xml,.php)</font></td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF"><p>会员注册</p></td>
          <td height="25" bgcolor="#FFFFFF"><p> 
              <input type="radio" name="register_ok" value="0"<?=$register_ok0?>>
              开启
              <input type="radio" name="register_ok" value="1"<?=$register_ok1?>>
              关闭</p></td>
        </tr>
        <tr> 
          <td width="22%" height="25" bgcolor="#FFFFFF">注册会员默认会员组</td>
          <td height="25" bgcolor="#FFFFFF"><select name="defaultgroupid">
              <?=$membergroup?>
            </select></td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">注册赠送积分</td>
          <td height="25" bgcolor="#FFFFFF"><input name="reggetfen" type="text" id="reggetfen" value="<?=$r[reggetfen]?>" size="38"></td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">投稿功能</td>
          <td height="25" bgcolor="#FFFFFF"> <input type="radio" name="addnews_ok" value="0"<?=$addnews_ok0?>>
            开启 
            <input type="radio" name="addnews_ok" value="1"<?=$addnews_ok1?>>
            关闭</td>
        </tr>
        <tr>
          <td height="25" bgcolor="#FFFFFF">会员空间</td>
          <td height="25" bgcolor="#FFFFFF"><input type="radio" name="openspace" value="0"<?=$r[openspace]==0?' checked':''?>>
            开启 
            <input type="radio" name="openspace" value="1"<?=$r[openspace]==1?' checked':''?>>
            关闭 </td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">后台登陆验证码</td>
          <td height="25" bgcolor="#FFFFFF"><input type="radio" name="adminloginkey" value="0"<?=$r[adminloginkey]==0?' checked':''?>>
            开启 
            <input type="radio" name="adminloginkey" value="1"<?=$r[adminloginkey]==1?' checked':''?>>
            关闭</td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">会员登陆验证码</td>
          <td height="25" bgcolor="#FFFFFF"><input type="radio" name="loginkey_ok" value="1"<?=$loginkey_ok1?>>
            开启 
            <input type="radio" name="loginkey_ok" value="0"<?=$loginkey_ok0?>>
            关闭</td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">PHP超时时间设置</td>
          <td height="25" bgcolor="#FFFFFF"><input name="php_outtime" type="text" id="php_outtime" value="<?=$r[php_outtime]?>" size="38">
            秒 <font color="#666666">(一般不需要设置)</font></td>
        </tr>
        <tr> 
          <td height="25" valign="top" bgcolor="#FFFFFF">远程保存忽略地址<br> <br> <font color="#666666">(一行为一个地址)</font></td>
          <td height="25" bgcolor="#FFFFFF"><textarea name="notsaveurl" cols="80" rows="8" id="notsaveurl"><?=$r[notsaveurl]?></textarea></td>
        </tr>
        <tr> 
          <td height="25" valign="top" bgcolor="#FFFFFF">前台允许提交的来源地址<br> <br> 
            <font color="#666666">(一行为一个地址)</font></td>
          <td height="25" bgcolor="#FFFFFF"><textarea name="canposturl" cols="80" rows="8" id="canposturl"><?=$r[canposturl]?></textarea></td>
        </tr>
      </table>
  </div>
    <div class="tab-page" id="login"> 
      <h2 class="tab">&nbsp;<font class="tabcolor">控制面板设置</font>&nbsp;</h2>
                    <script type="text/javascript">tb1.addTabPage( document.getElementById( "login" ) );</script>
	<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
    <tr class="header"> 
          <td height="25" colspan="2">后台设置</td>
    </tr>
    <tr> 
          <td width="22%" height="25" bgcolor="#FFFFFF">后台登陆次数限制</td>
      <td height="25" bgcolor="#FFFFFF"><input name="loginnum" type="text" id="loginnum" value="<?=$r[loginnum]?>" size="6">
        次</td>
    </tr>
    <tr> 
          <td height="25" bgcolor="#FFFFFF">重新登陆时间间隔</td>
      <td height="25" bgcolor="#FFFFFF"><input name="logintime" type="text" id="logintime" value="<?=$r[logintime]?>" size="6">
        分钟</td>
    </tr>
    <tr> 
          <td height="25" bgcolor="#FFFFFF">登陆超时限制</td>
      <td height="25" bgcolor="#FFFFFF"><input name="exittime" type="text" id="exittime" value="<?=$r[exittime]?>" size="6">
        分钟</td>
    </tr>
	</table>
	
	  <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
        <tr class="header"> 
          <td height="25" colspan="2">前台设置</td>
        </tr>
        <tr> 
          <td width="22%" height="25" bgcolor="#FFFFFF">注册用户名限制</td>
          <td height="25" bgcolor="#FFFFFF"><input name="min_userlen" type="text" id="min_userlen" value="<?=$r[min_userlen]?>" size="6">
            ~ 
            <input name="max_userlen" type="text" id="max_userlen" value="<?=$r[max_userlen]?>" size="6">
            个字节</td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">注册密码限制</td>
          <td height="25" bgcolor="#FFFFFF"><input name="min_passlen" type="text" id="min_passlen" value="<?=$r[min_passlen]?>" size="6">
            ~ 
            <input name="max_passlen" type="text" id="max_passlen" value="<?=$r[max_passlen]?>" size="6">
            个字节</td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">查看会员资料权限</td>
          <td height="25" bgcolor="#FFFFFF"><select name="showinfolevel" id="showinfolevel">
              <option value=0>游客</option>
              <?=$showinfolevel?>
            </select></td>
        </tr>
      </table>
	</div>
	  
    <div class="tab-page" id="file"> 
      <h2 class="tab">&nbsp;<font class="tabcolor">文件设置</font>&nbsp;</h2>
                    <script type="text/javascript">tb1.addTabPage( document.getElementById( "file" ) );</script>
	  <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
        <tr class="header"> 
          <td height="25" colspan="2">文件设置</td>
        </tr>
        <tr> 
          <td rowspan="2" valign="top" bgcolor="#FFFFFF">附件存放目录</td>
          <td height="25" bgcolor="#FFFFFF"><input type="radio" name="fpath" value="0"<?=$r[fpath]==0?' checked':''?>>
            栏目目录 
            <input type="radio" name="fpath" value="1"<?=$r[fpath]==1?' checked':''?>>
            /d/file/p目录 
            <input type="radio" name="fpath" value="2"<?=$r[fpath]==2?' checked':''?>>
            /d/file目录</td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF"><input name="filepath" type="text" id="filepath" value="<?=$r[filepath]?>" size="38"> 
            <select name="select6" onchange="document.form1.filepath.value=this.value">
              <option value="Y-m-d">选择</option>
              <option value="Y-m-d">2005-01-27</option>
              <option value="Y/m-d">2005/01-27</option>
              <option value="Y/m/d">2005/01/27</option>
              <option value="Ymd">20050127</option>
              <option value="">不设置目录</option>
            </select> <font color="#666666">(如Y-m-d，Y/m-d，Y/m/d，Ymd等形式)</font></td>
        </tr>
        <tr> 
          <td width="22%" height="25" bgcolor="#FFFFFF">后台上传附件大小</td>
          <td height="25" bgcolor="#FFFFFF"><input name="filesize" type="text" id="filesize" value="<?=$r[filesize]?>" size="38">
            KB</td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">后台上传文件扩展名</td>
          <td height="25" bgcolor="#FFFFFF"><input name="filetype" type="text" id="filetype" value="<?=$filetype?>" size="38"> 
            <font color="#666666">(多个请用“|”格开，如：.gif|.jpg)</font></td>
        </tr>
        <tr> 
          <td rowspan="2" valign="top" bgcolor="#FFFFFF">前台投稿附件设置</td>
          <td height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="1" cellpadding="3">
              <tr> 
                <td><input name="qaddtran" type="checkbox" value="1"<?=$qaddtran?>>
                  开启上传图片,最大图片： 
                  <input name="qaddtransize" type="text" id="qaddtransize" value="<?=$r[qaddtransize]?>" size="6">
                  KB </td>
              </tr>
              <tr> 
                <td>图片扩展名: 
                  <input name="qaddtranimgtype" type="text" value="<?=$qaddimgtype?>" size="30"> 
                  <font color="#666666"> (多个用&quot;|&quot;格开) </font></td>
              </tr>
            </table></td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="1" cellpadding="3">
              <tr> 
                <td><input name="qaddtranfile" type="checkbox" value="1"<?=$r[qaddtranfile]==1?' checked':''?>>
                  开启上传附件,最大附件： 
                  <input name="qaddtranfilesize" type="text" value="<?=$r[qaddtranfilesize]?>" size="6">
                  KB </td>
              </tr>
              <tr> 
                <td>附件扩展名: 
                  <input name="qaddtranfiletype" type="text" value="<?=$qaddfiletype?>" size="30"> 
                  <font color="#666666">(多个用&quot;|&quot;格开)</font></td>
              </tr>
            </table></td>
        </tr>
        <tr> 
          <td height="25" valign="top" bgcolor="#FFFFFF">前台反馈附件设置</td>
          <td height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="1" cellpadding="3">
              <tr> 
                <td><input name="feedbacktfile" type="checkbox" id="feedbacktfile" value="1"<?=$r[feedbacktfile]==1?' checked':''?>>
                  开启上传附件,最大附件： 
                  <input name="feedbackfilesize" type="text" value="<?=$r[feedbackfilesize]?>" size="6">
                  KB </td>
              </tr>
              <tr> 
                <td>附件扩展名: 
                  <input name="feedbackfiletype" type="text" value="<?=$feedbackfiletype?>" size="30"> 
                  <font color="#666666">(多个用&quot;|&quot;格开)</font></td>
              </tr>
            </table></td>
        </tr>
        <tr> 
          <td rowspan="2" valign="top" bgcolor="#FFFFFF">会员表单附件设置</td>
          <td height="25" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="1" cellpadding="3">
              <tr> 
                <td><input name="openmembertranimg" type="checkbox" id="openmembertranimg" value="1"<?=$r[openmembertranimg]==1?' checked':''?>>
                  开启上传图片,最大图片： 
                  <input name="memberimgsize" type="text" id="memberimgsize" value="<?=$r[memberimgsize]?>" size="6">
                  KB </td>
              </tr>
              <tr> 
                <td>图片扩展名: 
                  <input name="memberimgtype" type="text" id="memberimgtype" value="<?=$memberimgtype?>" size="30"> 
                  <font color="#666666"> (多个用&quot;|&quot;格开) </font></td>
              </tr>
            </table></td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="1" cellpadding="3">
              <tr> 
                <td><input name="openmembertranfile" type="checkbox" id="openmembertranfile" value="1"<?=$r[openmembertranfile]==1?' checked':''?>>
                  开启上传附件,最大附件： 
                  <input name="memberfilesize" type="text" id="memberfilesize" value="<?=$r[memberfilesize]?>" size="6">
                  KB </td>
              </tr>
              <tr> 
                <td>附件扩展名: 
                  <input name="memberfiletype" type="text" id="memberfiletype" value="<?=$memberfiletype?>" size="30"> 
                  <font color="#666666">(多个用&quot;|&quot;格开)</font></td>
              </tr>
            </table></td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">文件生成权限</td>
          <td height="25" bgcolor="#FFFFFF"><input type="radio" name="filechmod" value="0"<?=$filechmod0?>>
            0777 
            <input type="radio" name="filechmod" value="1"<?=$filechmod1?>>
            不限制</td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">广告JS文件前缀</td>
          <td height="25" bgcolor="#FFFFFF"><input name="adfile" type="text" id="adfile" value="<?=$r[adfile]?>" size="38"></td>
        </tr>
      </table>
		<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
        <tr class="header"> 
          <td height="25" colspan="2">备份设置</td>
        </tr>
        <tr> 
          <td width="22%" height="25" bgcolor="#FFFFFF">数据备份存放目录</td>
          <td height="25" bgcolor="#FFFFFF">admin/ebak/ 
            <input name="bakdbpath" type="text" id="bakdbpath" value="<?=$r[bakdbpath]?>"></td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">压缩包存放目录</td>
          <td height="25" bgcolor="#FFFFFF">admin/ebak/ 
            <input name="bakdbzip" type="text" id="bakdbzip" value="<?=$r[bakdbzip]?>"></td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">备份只选择当前数据库</td>
          <td height="25" bgcolor="#FFFFFF"><input name="ebakthisdb" type="checkbox" id="ebakthisdb" value="1"<?=$ebakthisdb?>>
            是</td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">支持MYSQL查询方式</td>
          <td height="25" bgcolor="#FFFFFF"><input name="limittype" type="checkbox" id="limittype" value="1"<?=$limittype?>>
            支持</td>
        </tr>
      </table>
	</div>
	  
    <div class="tab-page" id="dojs"> 
      <h2 class="tab">&nbsp;<font class="tabcolor">JS设置</font>&nbsp;</h2>
                    <script type="text/javascript">tb1.addTabPage( document.getElementById( "dojs" ) );</script>
  <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
    <tr class="header"> 
      <td height="25" colspan="2">信息排行设置(JS)</td>
    </tr>
    <tr> 
          <td width="22%" height="25" bgcolor="#FFFFFF">热门信息显示</td>
      <td height="25" bgcolor="#FFFFFF"><input name="hotnum" type="text" id="hotnum" value="<?=$r[hotnum]?>" size="6">
            条信息，标题截取 
            <input name="sub_hot" type="text" id="sub_hot" value="<?=$r[sub_hot]?>" size="6">
        字， 
            <input name="hotshowdate" type="checkbox" id="hotshowdate" value="1"<?=$hotshowdate?>>
            显示时间<font color="#666666">(为0的话，系统默认10条,26字)</font></td>
    </tr>
    <tr> 
          <td height="25" bgcolor="#FFFFFF">最新信息显示</td>
      <td height="25" bgcolor="#FFFFFF"><input name="newnum" type="text" id="newnum" value="<?=$r[newnum]?>" size="6">
            条信息，标题截取 
            <input name="sub_new" type="text" id="sub_new" value="<?=$r[sub_new]?>" size="6">
        字， 
            <input name="newshowdate" type="checkbox" id="newshowdate" value="1"<?=$newshowdate?>>
            显示时间<font color="#666666">(为0的话，系统默认10条,26字)</font></td>
    </tr>
    <tr> 
          <td height="25" bgcolor="#FFFFFF">推荐信息显示</td>
      <td height="25" bgcolor="#FFFFFF"><input name="goodnum" type="text" id="goodnum" value="<?=$r[goodnum]?>" size="6">
            条信息，标题截取 
            <input name="sub_good" type="text" id="sub_good" value="<?=$r[sub_good]?>" size="6">
        字， 
            <input name="goodshowdate" type="checkbox" id="goodshowdate" value="1"<?=$goodshowdate?>>
            显示时间<font color="#666666">(为0的话，系统默认10条,26字)</font></td>
    </tr>
    <tr> 
          <td height="25" bgcolor="#FFFFFF">热门评论显示</td>
      <td height="25" bgcolor="#FFFFFF"><input name="hotplnum" type="text" id="hotplnum" value="<?=$r[hotplnum]?>" size="6">
            条信息，标题截取 
            <input name="sub_hotpl" type="text" id="sub_hotpl" value="<?=$r[sub_hotpl]?>" size="6">
        字， 
            <input name="hotplshowdate" type="checkbox" id="hotplshowdate" value="1"<?=$hotplshowdate?>>
            显示时间<font color="#666666">(为0的话，系统默认10条,26字)</font></td>
    </tr>
    <tr> 
          <td height="25" bgcolor="#FFFFFF">头条信息显示</td>
      <td height="25" bgcolor="#FFFFFF"><input name="firstnum" type="text" id="firstnum" value="<?=$r[firstnum]?>" size="6">
            条信息，标题截取 
            <input name="sub_first" type="text" id="sub_first" value="<?=$r[sub_first]?>" size="6">
        字， 
            <input name="firstshowdate" type="checkbox" id="firstshowdate" value="1"<?=$firstshowdate?>>
            显示时间<font color="#666666">(为0的话，系统默认10条,26字)</font></td>
    </tr>
  </table>
	</div>
	  
    <div class="tab-page" id="rehtml"> 
      <h2 class="tab">&nbsp;<font class="tabcolor">分组生成</font>&nbsp;</h2>
                    <script type="text/javascript">tb1.addTabPage( document.getElementById( "rehtml" ) );</script>
      <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
        <tr class="header"> 
          <td height="25" colspan="2">分组生成设置（依服务器配置设置大小）</td>
        </tr>
        <tr>
          <td height="25" bgcolor="#FFFFFF">每组生成间隔</td>
          <td height="25" bgcolor="#FFFFFF"><input name="realltime" type="text" id="realltime" value="<?=$r[realltime]?>" size="38">
            秒<font color="#666666">(0为连续生成)</font></td>
        </tr>
        <tr> 
          <td width="22%" height="25" bgcolor="#FFFFFF">栏目生成每组</td>
          <td height="25" bgcolor="#FFFFFF"><input name="relistnum" type="text" id="relistnum" value="<?=$r[relistnum]?>" size="38">
            个</td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">信息生成每组</td>
          <td height="25" bgcolor="#FFFFFF"><input name="renewsnum" type="text" id="renewsnum" value="<?=$r[renewsnum]?>" size="38">
            个</td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">更新相关链接每组</td>
          <td height="25" bgcolor="#FFFFFF"><input name="infolinknum" type="text" id="infolinknum" value="<?=$r[infolinknum]?>" size="38">
            个</td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">生成自定义JS每组</td>
          <td height="25" bgcolor="#FFFFFF"><input name="reuserjsnum" type="text" id="reuserjsnum" value="<?=$r[reuserjsnum]?>" size="38">
            个</td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">生成自定义列表每组</td>
          <td height="25" bgcolor="#FFFFFF"><input name="reuserlistnum" type="text" id="reuserlistnum" value="<?=$r[reuserlistnum]?>" size="38">
            个</td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">自定义页面每组</td>
          <td height="25" bgcolor="#FFFFFF"> <input name="reuserpagenum" type="text" id="reuserpagenum" value="<?=$r[reuserpagenum]?>" size="38">
            个</td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">投票JS每组</td>
          <td height="25" bgcolor="#FFFFFF"><input name="revotejsnum" type="text" id="revotejsnum" value="<?=$r[revotejsnum]?>" size="38">
            个</td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">广告JS每组</td>
          <td height="25" bgcolor="#FFFFFF"><input name="readjsnum" type="text" id="readjsnum" value="<?=$r[readjsnum]?>" size="38">
            个</td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">替换字段值每组</td>
          <td height="25" bgcolor="#FFFFFF"><input name="dorepnum" type="text" id="dorepnum" value="<?=$r[dorepnum]?>" size="38">
            个</td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">替换地址权限每组</td>
          <td height="25" bgcolor="#FFFFFF"><input name="dorepdlevelnum" type="text" id="dorepdlevelnum" value="<?=$r[dorepdlevelnum]?>" size="38">
            个</td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">批量删除信息每组</td>
          <td height="25" bgcolor="#FFFFFF"><input name="delnewsnum" type="text" id="delnewsnum" value="<?=$r[delnewsnum]?>" size="38">
            个</td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">导入栏目模板每组</td>
          <td height="25" bgcolor="#FFFFFF"><input name="loadtempnum" type="text" id="loadtempnum" value="<?=$r[loadtempnum]?>" size="38">
            个</td>
        </tr>
      </table>
  </div>
    <div class="tab-page" id="setsearch"> 
      <h2 class="tab">&nbsp;<font class="tabcolor">搜索设置</font>&nbsp;</h2>
                    <script type="text/javascript">tb1.addTabPage( document.getElementById( "setsearch" ) );</script>
	  <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
        <tr class="header"> 
          <td height="25" colspan="2">搜索设置</td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">搜索用户组</td>
          <td height="25" bgcolor="#FFFFFF"><select name="searchgroupid" id="searchgroupid">
              <option value=0>游客</option>
              <?=$searchmembergroup?>
            </select></td>
        </tr>
        <tr> 
          <td width="22%" height="25" bgcolor="#FFFFFF">搜索关键字</td>
          <td height="25" bgcolor="#FFFFFF">在 
            <input name="min_keyboard" type="text" id="min_keyboard" value="<?=$r[min_keyboard]?>" size="6">
            个字符与 
            <input name="max_keyboard" type="text" id="max_keyboard" value="<?=$r[max_keyboard]?>" size="6">
            个字符之间</td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">搜索时间间隔</td>
          <td height="25" bgcolor="#FFFFFF">在 
            <input name="searchtime" type="text" id="searchtime" value="<?=$r[searchtime]?>" size="6">
            秒</td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">页面显示</td>
          <td height="25" bgcolor="#FFFFFF">每页 
            <input name="search_num" type="text" id="search_num" value="<?=$r[search_num]?>" size="6">
            显示条记录， 
            <input name="search_pagenum" type="text" id="search_pagenum" value="<?=$r[search_pagenum]?>" size="6">
            个分页链接<font color="#666666">(为0的话，系统默认25条，12个链接)</font></td>
        </tr>
        <tr>
          <td height="25" bgcolor="#FFFFFF">支持公共模板变量</td>
          <td height="25" bgcolor="#FFFFFF"><input type="radio" name="searchtempvar" value="0"<?=$r['searchtempvar']==0?' checked':''?>>
            不支持
            <input type="radio" name="searchtempvar" value="1"<?=$r['searchtempvar']==1?' checked':''?>>
            支持<font color="#666666">(搜索模板及动态页面)</font></td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">搜索列表简介截取</td>
          <td height="25" bgcolor="#FFFFFF"><input name="searchsubnews" type="text" id="searchsubnews" value="<?=$r[searchsubnews]?>" size="10">
            个字符</td>
        </tr>
        <tr> 
          <td width="22%" height="25" bgcolor="#FFFFFF">搜索表单表格颜色</td>
          <td height="25" bgcolor="#FFFFFF"><input name="search_color" type="text" id="search_color" value="<?=$r[search_color]?>" size="10"></td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">搜索页面扩展名</td>
          <td height="25" bgcolor="#FFFFFF"><input name="searchtype" type="text" id="searchtype" value="<?=$r[searchtype]?>" size="10">
            <font color="#666666">
            <select name="select2" onchange="document.form1.searchtype.value=this.value">
              <option value=".html">扩展名</option>
              <option value=".html">.html</option>
              <option value=".htm">.htm</option>
              <option value=".php">.php</option>
              <option value=".shtml">.shtml</option>
            </select>
            (如：.html,.htm,.xml,.php)</font></td>
        </tr>
      </table>
	</div>
	  
    <div class="tab-page" id="donews"> 
      <h2 class="tab">&nbsp;<font class="tabcolor">信息设置</font>&nbsp;</h2>
                    <script type="text/javascript">tb1.addTabPage( document.getElementById( "donews" ) );</script>
	  <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
        <tr class="header"> 
          <td height="25" colspan="2">信息设置</td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">导航分隔符号</td>
          <td height="25" bgcolor="#FFFFFF"><input name="navfh" type="text" id="navfh" value="<?=$r[navfh]?>" size="38"> 
            <font color="#666666">(如:“首页 &gt; 新闻”中的“&gt;”)</font></td>
        </tr>
        <tr> 
          <td width="22%" height="25" bgcolor="#FFFFFF">信息简介截取</td>
          <td height="25" bgcolor="#FFFFFF"> <input name="smalltextlen" type="text" id="smalltextlen" value="<?=$r[smalltextlen]?>" size="38">
            个字<font color="#666666">(简介为空时，截取信息内容)</font></td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">相关链接依据</td>
          <td height="25" bgcolor="#FFFFFF"><select name="newslink" id="newslink">
              <option value="0"<?=$r['newslink']==0?' selected':''?>>标题包含关键字</option>
              <option value="1"<?=$r['newslink']==1?' selected':''?>>关键字相同</option>
              <option value="2"<?=$r['newslink']==2?' selected':''?>>标题包含与关键字相同</option>
            </select> </td>
        </tr>
        <tr> 
          <td width="22%" height="25" bgcolor="#FFFFFF">评论内容限制</td>
          <td height="25" bgcolor="#FFFFFF"><input name="plsize" type="text" id="plsize" value="<?=$r[plsize]?>" size="38">
            个字节<font color="#666666">(两个字节为一个汉字)</font></td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">评论时间间隔</td>
          <td height="25" bgcolor="#FFFFFF"><input name="pltime" type="text" id="pltime" value="<?=$r[pltime]?>" size="38">
            秒</td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">评论验证码</td>
          <td height="25" bgcolor="#FFFFFF"><input type="radio" name="plkey_ok" value="1"<?=$plkey_ok1?>>
            开启 
            <input type="radio" name="plkey_ok" value="0"<?=$plkey_ok0?>>
            关闭 </td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">重复留言时间限制</td>
          <td height="25" bgcolor="#FFFFFF"><input name="regbooktime" type="text" id="regbooktime" value="<?=$r[regbooktime]?>" size="6">
            秒</td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">重复投票时间限制</td>
          <td height="25" bgcolor="#FFFFFF"><input name="revotetime" type="text" id="revotetime" value="<?=$r[revotetime]?>" size="6">
            秒</td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">模板支持程序代码</td>
          <td height="25" bgcolor="#FFFFFF"><input type="radio" name="candocode" value="1"<?=$candocode1?>>
            开启 
            <input type="radio" name="candocode" value="0"<?=$candocode0?>>
            关闭</td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">防采集</td>
          <td height="25" bgcolor="#FFFFFF"><input type="radio" name="opennotcj" value="1"<?=$opennotcj1?>>
            开启 
            <input type="radio" name="opennotcj" value="0"<?=$opennotcj0?>>
            关闭</td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">内容防复制</td>
          <td height="25" bgcolor="#FFFFFF"> <input type="radio" name="opencopytext" value="1"<?=$r[opencopytext]==1?' checked':''?>>
            开启 
            <input type="radio" name="opencopytext" value="0"<?=$r[opencopytext]==0?' checked':''?>>
            关闭<font color="#666666"> (内容随机字符)</font></td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">统计点击</td>
          <td height="25" bgcolor="#FFFFFF"><input name="openclasspv" type="checkbox" value="1"<?=$openclasspv?>>
            开启栏目， 
            <input name="openpagepv" type="checkbox" value="1"<?=$openpagepv?>>
            开启信息页</td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">列表分页函数(下拉)</td>
          <td height="25" bgcolor="#FFFFFF"><input name="listpagefun" type="text" id="listpagefun" value="<?=$r[listpagefun]?>" size="38"> 
            <font color="#666666"> (可加到e/class/userfun.php文件里)</font></td>
        </tr>
        <tr> 
          <td rowspan="2" valign="top" bgcolor="#FFFFFF">列表分页函数(列表)</td>
          <td height="25" bgcolor="#FFFFFF"><input name="listpagelistfun" type="text" id="listpagelistfun" value="<?=$r[listpagelistfun]?>" size="38"> 
            <font color="#666666">(可加到e/class/userfun.php文件里)</font></td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">每页显示 
            <input name="listpagelistnum" type="text" id="listpagelistnum" value="<?=$r[listpagelistnum]?>" size="6">
            /2个页码</td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">内容分页函数</td>
          <td height="25" bgcolor="#FFFFFF"><input name="textpagefun" type="text" id="textpagefun" value="<?=$r[textpagefun]?>" size="38"> 
            <font color="#666666">(可加到e/class/userfun.php文件里)</font></td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">RSS/XML设置</td>
          <td height="25" bgcolor="#FFFFFF">显示最新 
            <input name="rssnum" type="text" id="rssnum" value="<?=$r[rssnum]?>" size="6">
            条记录，简介截取 
            <input name="rsssub" type="text" id="rsssub" value="<?=$r[rsssub]?>" size="6">
            个字</td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">信息外部链接设置</td>
          <td height="25" bgcolor="#FFFFFF"><input type="radio" name="opentitleurl" value="0"<?=$r[opentitleurl]==0?' checked':''?>>
            统计点击 
            <input type="radio" name="opentitleurl" value="1"<?=$r[opentitleurl]==1?' checked':''?>>
            显示原链接</td>
        </tr>
      </table>
	</div>
	  
    <div class="tab-page" id="doftp"> 
      <h2 class="tab">&nbsp;<font class="tabcolor">FTP/EMAIL</font>&nbsp;</h2>
                    <script type="text/javascript">tb1.addTabPage( document.getElementById( "doftp" ) );</script>
	  <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
        <tr class="header"> 
          <td height="25" colspan="2">发送邮件设置</td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">邮件发送模式</td>
          <td height="25" bgcolor="#FFFFFF"><input type="radio" name="sendmailtype" value="0"<?=$r[sendmailtype]==0?' checked':''?>>
            mail 函数发送 
            <input type="radio" name="sendmailtype" value="1"<?=$r[sendmailtype]==1?' checked':''?>>
            SMTP 模块发送</td>
        </tr>
        <tr> 
          <td height="25" colspan="2" bgcolor="#FFFFFF"><strong>SMTP 模块发送设置</strong></td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">SMTP服务器</td>
          <td height="25" bgcolor="#FFFFFF"><input name="smtphost" type="text" id="smtphost" value="<?=$r[smtphost]?>" size="38"></td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">SMTP端口</td>
          <td height="25" bgcolor="#FFFFFF"><input name="smtpport" type="text" id="smtpport" value="<?=$r[smtpport]?>" size="38"></td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">发信人地址</td>
          <td height="25" bgcolor="#FFFFFF"><input name="fromemail" type="text" id="fromemail" value="<?=$r[fromemail]?>" size="38"></td>
        </tr>
        <tr>
          <td height="25" bgcolor="#FFFFFF">发信人呢称</td>
          <td height="25" bgcolor="#FFFFFF"><input name="emailname" type="text" id="emailname" value="<?=$r[emailname]?>" size="38"></td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">是否需要登陆验证</td>
          <td height="25" bgcolor="#FFFFFF"><input type="radio" name="loginemail" value="1"<?=$r[loginemail]==1?' checked':''?>>
            是 
            <input type="radio" name="loginemail" value="0"<?=$r[loginemail]==0?' checked':''?>>
            否</td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">验证用户名</td>
          <td height="25" bgcolor="#FFFFFF"><input name="emailusername" type="text" id="emailusername" value="<?=$r[emailusername]?>" size="38"></td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">验证密码</td>
          <td height="25" bgcolor="#FFFFFF"><input name="emailpassword" type="password" id="emailpassword" value="<?=$r[emailpassword]?>" size="38"></td>
        </tr>
        <tr class="header"> 
          <td height="25" colspan="2">FTP设置(远程发布 / PHP运行于安全模式等情况下需设置以下选项)</td>
        </tr>
        <tr> 
          <td width="22%" height="25" bgcolor="#FFFFFF">PHP运行于安全模式</td>
          <td height="25" bgcolor="#FFFFFF"><input name="phpmode" type="checkbox" id="phpmode" value="1"<?=$phpmode?>>
            是</td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">FTP服务器地址</td>
          <td height="25" bgcolor="#FFFFFF"><input name="ftphost" type="text" id="ftphost" value="<?=$r[ftphost]?>" size="38">
            端口： 
            <input name="ftpport" type="text" id="ftpport" value="<?=$r[ftpport]?>" size="4"></td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">FTP用户名</td>
          <td height="25" bgcolor="#FFFFFF"><input name="ftpusername" type="text" id="ftpusername" value="<?=$r[ftpusername]?>" size="38"> 
          </td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">FTP密码</td>
          <td height="25" bgcolor="#FFFFFF"><input name="ftppassword" type="password" size="38"> 
            <input name="changeftpp" type="checkbox" id="changeftpp" value="1">
            修改FTP密码<font color="#666666">(要修改请选择) </font></td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">系统安装目录(FTP)</td>
          <td height="25" bgcolor="#FFFFFF"><input name="ftppath" type="text" value="<?=$r[ftppath]?>" size="38"></td>
        </tr>
      </table>
	</div>
	
	<div class="tab-page" id="dom"> 
      <h2 class="tab">&nbsp;<font class="tabcolor">模型设置</font>&nbsp;</h2>
                    <script type="text/javascript">tb1.addTabPage( document.getElementById( "dom" ) );</script>
	  <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
        <tr class="header"> 
          <td height="25" colspan="2">新闻/下载/电影模型设置</td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">同一地址下载/观看超过</td>
          <td height="25" bgcolor="#FFFFFF"><input name="redodown" type="text" id="redodown" value="<?=$r[redodown]?>" size="38">
            个小时 将重复扣点</td>
        </tr>
        <tr>
          <td height="25" bgcolor="#FFFFFF">同一信息查看超过</td>
          <td height="25" bgcolor="#FFFFFF"><input name="redoview" type="text" id="redoview" value="<?=$r[redoview]?>" size="38">
            个小时 将重复扣点</td>
        </tr>
        <tr> 
          <td width="22%" height="25" bgcolor="#FFFFFF">下载验证码</td>
          <td height="25" bgcolor="#FFFFFF"><input name="downpass" type="text" id="downpass" value="<?=$r[downpass]?>" size="38"> 
            <font color="#666666">(主要用于防盗链,请定期更新一次密码)</font></td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">弹出下载页面窗口大小</td>
          <td height="25" bgcolor="#FFFFFF">宽: 
            <input name="dwwidth" type="text" id="dwwidth" value="<?=$r[dwwidth]?>" size="6">
            ×高: 
            <input name="dwheight" type="text" id="dwheight" value="<?=$r[dwheight]?>" size="6"></td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">下载地址每行显示</td>
          <td height="25" bgcolor="#FFFFFF"><input name="down_num" type="text" id="down_num" value="<?=$r[down_num]?>" size="38">
            个链接 </td>
        </tr>
      </table>
	  <table width="100%" border="0" cellspacing="1" cellpadding="3" class="tableborder">
        <tr class="header"> 
          <td height="25" colspan="2">商城模型设置</td>
        </tr>
        <tr bgcolor="#FFFFFF"> 
          <td width="22%" height="25">是否提供发票</td>
          <td><input name="havefp" type="checkbox" id="havefp" value="1"<?=$havefp?>>
            是,收取
            <input name="fpnum" type="text" id="fpnum" value="<?=$r[fpnum]?>" size="6">
            % 的发票费</td>
        </tr>
      </table>
    </div>
	
	<div class="tab-page" id="doimage"> 
      <h2 class="tab">&nbsp;<font class="tabcolor">图片设置</font>&nbsp;</h2>
                    <script type="text/javascript">tb1.addTabPage( document.getElementById( "doimage" ) );</script>
	  <table width="100%" border="0" cellspacing="1" cellpadding="3" class="tableborder">
        <tr class="header"> 
          <td height="25" colspan="2">图片缩略图设置</td>
        </tr>
        <tr bgcolor="#FFFFFF"> 
          <td width="22%" height="25">默认值</td>
          <td>宽: 
            <input name="spicwidth" type="text" id="spicwidth" value="<?=$r[spicwidth]?>" size="6">
            ×高: 
            <input name="spicheight" type="text" id="spicheight" value="<?=$r[spicheight]?>" size="6"></td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td height="25">超出部分是否截取</td>
          <td><input type="radio" name="spickill" value="1"<?=$r['spickill']==1?' checked':''?>>
            是 
            <input type="radio" name="spickill" value="0"<?=$r['spickill']==0?' checked':''?>>
            否</td>
        </tr>
      </table>
	  <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
        <tr class="header"> 
          <td height="25" colspan="2">图片水印设置(不想用图片水印，请留空)</td>
        </tr>
        <tr> 
          <td width="22%" height="25" valign="top" bgcolor="#FFFFFF">水印位置</td>
          <td height="25" bgcolor="#FFFFFF"> <table width="200" border="0" cellpadding="6" cellspacing="1" bgcolor="#CCCCCC">
              <tr bgcolor="#FFFFFF"> 
                <td rowspan="3"> <div align="center"> 
                    <input type="radio" name="markpos" value="0"<?=$r[markpos]==0?' checked':'';?>>
                    <br>
                    随机 </div></td>
                <td> <div align="center"> 
                    <input type="radio" name="markpos" value="1"<?=$r[markpos]==1?' checked':'';?>>
                  </div></td>
                <td> <div align="center"> 
                    <input type="radio" name="markpos" value="2"<?=$r[markpos]==2?' checked':'';?>>
                  </div></td>
                <td> <div align="center"> 
                    <input type="radio" name="markpos" value="3"<?=$r[markpos]==3?' checked':'';?>>
                  </div></td>
              </tr>
              <tr> 
                <td bgcolor="#FFFFFF"> <div align="center"> 
                    <input type="radio" name="markpos" value="4"<?=$r[markpos]==4?' checked':'';?>>
                  </div></td>
                <td bgcolor="#FFFFFF"> <div align="center"> 
                    <input type="radio" name="markpos" value="5"<?=$r[markpos]==5?' checked':'';?>>
                  </div></td>
                <td bgcolor="#FFFFFF"> <div align="center"> 
                    <input type="radio" name="markpos" value="6"<?=$r[markpos]==6?' checked':'';?>>
                  </div></td>
              </tr>
              <tr> 
                <td bgcolor="#FFFFFF"> <div align="center"> 
                    <input type="radio" name="markpos" value="7"<?=$r[markpos]==7?' checked':'';?>>
                  </div></td>
                <td bgcolor="#FFFFFF"> <div align="center"> 
                    <input type="radio" name="markpos" value="8"<?=$r[markpos]==8?' checked':'';?>>
                  </div></td>
                <td bgcolor="#FFFFFF"> <div align="center"> 
                    <input type="radio" name="markpos" value="9"<?=$r[markpos]==9?' checked':'';?>>
                  </div></td>
              </tr>
            </table></td>
        </tr>
        <tr> 
          <td rowspan="4" valign="top" bgcolor="#FFFFFF">文字水印</td>
          <td height="25" bgcolor="#FFFFFF">文字内容 
            <input name="marktext" type="text" id="marktext" value="<?=$r[marktext]?>"> 
            <font color="#666666">(目前不支持中文)</font></td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">文字字体 
            <input name="markfont" type="text" id="markfont" value="<?=$r[markfont]?>"> 
            <font color="#666666">(从后台开始算，如../data就是data目录)</font></td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">文字颜色 
            <input name="markfontcolor" type="text" id="markfontcolor" value="<?=$r[markfontcolor]?>"> 
            <a onclick="foreColor();"><img src="../data/images/color.gif" width="21" height="21" align="absbottom"></a> 
          </td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">文字大小 
            <input name="markfontsize" type="text" value="<?=$r[markfontsize]?>"> 
            <font color="#666666">(1~5之间的数字)</font> </td>
        </tr>
        <tr> 
          <td rowspan="3" valign="top" bgcolor="#FFFFFF">图片水印</td>
          <td height="25" bgcolor="#FFFFFF"> 图片文件 
            <input name="markimg" type="text" id="markimg" value="<?=$r[markimg]?>"> 
            <font color="#666666">(从后台开始算，如../data就是data目录)</font></td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">图片质量 
            <input name="jpgquality" type="text" id="jpgquality" value="<?=$r[jpgquality]?>"> 
            <font color="#666666">(该值决定 jpg 格式图片的质量，范围从 0 到 100)</font></td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">水印透明度 
            <input name="markpct" type="text" id="markpct" value="<?=$r[markpct]?>"> 
            <font color="#666666">(该值决定图片水印清晰度，其值范围从 0 到 100)</font></td>
        </tr>
      </table>
	</div>
	
	
	</div>
	<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
      <tr> 
        <td height="25" bgcolor="#FFFFFF"> <div align="center">
            <input type="submit" name="Submit" value=" 设置 ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <input type="reset" name="Submit2" value=" 重置 ">
          </div></td>
      </tr>
    </table>
</form>
</body>
</html>
