<!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=gb2312"/>
<link rel="stylesheet" type="text/css" href="{$vd['sc']}css/main.css"/>
<style type="text/css">
td{white-space:normal;overflow:auto;text-overflow:none;}
td p{display:none}
td P.show {
  DISPLAY: block
}
td STRONG {
CURSOR:pointer;
COLOR:#0197c9;
PADDING:0 3px;
}


</style>
</head>
<body>
<form method="post" action="index.php?m=mod_b2b&c=sys&a=update" name="cform" id="cform"> 

<div id="content" class="cwarpper" style="position:relative">
<div class="cbodyHead"></div>
<div id="tab">
<input type="button" value="填写基本信息"  onclick="loadDisp(1);window.location.href='?m=mod_b2b&c=Sys'" class="tab_active" onFocus="this.blur()"/>
<!--if(UB_B2C){--><input type="button" value="邮箱发送设置" onclick="loadDisp(1);window.location.href='?m=mod_b2b&c=Sys&a=EMail'" class="tab_normal" onFocus="this.blur()"/><!--}-->
<input type="button" value="关闭信息设置"  onclick="loadDisp(1);window.location.href='?m=mod_b2b&c=Sys&a=Close'" class="tab_normal" onFocus="this.blur()"/>
<input type="button" value="前台相关设置" onclick="loadDisp(1);window.location.href='?m=mod_b2b&c=Sys&a=Config'" class="tab_normal" onFocus="this.blur()"/>
<input type="button" value="后台交易设置"  onclick="loadDisp(1);window.location.href='?m=mod_b2b&c=Sys&a=Pwd'" class="tab_normal" onFocus="this.blur()"/>
<input type="button" value="IP屏蔽设置"  onclick="loadDisp(1);window.location.href='?m=mod_b2b&c=Sys&a=IpLock'" class="tab_normal" onFocus="this.blur()"/>
<!--if($vd['adminrank']==1){--><input type="button" value="相关脚本设置"  onclick="loadDisp(1);window.location.href='?m=mod_b2b&c=Sys&a=Jc'" class="tab_normal" onFocus="this.blur()"/><!--}-->
</div>
<div class="cwarpper1" style="border-top:1px #ccc solid">
<div class="ctitle">填写基本信息 </div>
<div>
<table border="0" class="ctable" bordercolor="#ededed">
  <tr>
    <!--$temp = explode('|', $vd['sys']['webopen']);-->
    <td class="tablelt">前台开放状态</td>
    <td class="tablert">
      <span style="<!--echo UB_B2C?'':'display:none'-->"><input type="checkbox" name="shopwebopen" value="1" class="checkbox" onFocus="this.blur()" {#ToggleCheck($temp[0])}> 零售前台开放</span>
      <span style="<!--echo UB_B2B?'':'display:none'-->"><input type="checkbox" name="b2bwebopen"  value="1" class="checkbox" onFocus="this.blur()" {#ToggleCheck($temp[1])}> 批发前台开放</span>
      <span style="<!--echo UB_YKT?'':'display:none'-->"><input type="checkbox" name="yktwebopen"  value="1" class="checkbox" onFocus="this.blur()" {#ToggleCheck($temp[2])}> 一卡通前台开放</span>
    </td>
  </tr>
  <tr<!--if(UB_B2B+UB_YKT+UB_B2C==1){--> style="display:none"<!--}-->>
    <td class="tablelt">默认首页</td>
    <td class="tablert">
      <span style="<!--echo UB_B2C?'':'display:none'-->"><input type="radio" name="defaultindex" value="b2c" class="checkbox" onFocus="this.blur()" {#ToggleCheck(UB_DEFAULT=='b2c')}> 零售</span>
      <span style="<!--echo UB_B2B?'':'display:none'-->"><input type="radio" name="defaultindex"  value="b2b" class="checkbox" onFocus="this.blur()" {#ToggleCheck(UB_DEFAULT=='b2b')}> 批发</span>
      <span style="<!--echo UB_YKT?'':'display:none'-->"><input type="radio" name="defaultindex"  value="ykt" class="checkbox" onFocus="this.blur()" {#ToggleCheck(UB_DEFAULT=='ykt')}> 一卡通</span>
      <span><input type="radio" name="defaultindex"  value="index" class="checkbox" onFocus="this.blur()" {#ToggleCheck(UB_DEFAULT=='index')}> 引导页</span>
    </td>
  </tr>
  <tr>
    <td class="tablelt">网站名称</td>
    <td class="tablert"><input type="text" name="webname" size="35" value="{$vd['sys']['webname']}"/></td>
  </tr>
  <tr>
    <td class="tablelt">网站地址</td>
    <td class="tablert"><input type="text" name="website" size="35" value="{$vd['sys']['website']}"/> <span class="spantip">网址前面加http://</span></td>
  </tr>
  <tr>
    <td class="tablelt">备案号</td>
    <td class="tablert"><input type="text" name="beian" size="35" value="{$vd['sys']['beian']}"/> <span class="spantip">格式：苏ICP备05074904号</span></td>
  </tr>
</table>
</div>
</div>

<!--if(UB_YKT&&UB_B2B+UB_B2C>0){-->
<div class="cwarpper1">
<div class="ctitle">一卡通站点基本信息(适合独立域名的站点) </div>
<div>
<table border="0" class="ctable" bordercolor="#ededed">
  <tr>
    <td class="tablelt">网站名称</td>
    <td class="tablert"><input type="text" name="yktname" size="35" value="{$vd['sys']['yktname']}"/> <span class="spantip">如果和主站同一个空间的话，留空即可</span></td>
  </tr>
  <tr>
    <td class="tablelt">网站地址</td>
    <td class="tablert"><input type="text" name="yktsite" size="35" value="{$vd['sys']['yktsite']}"/> <span class="spantip">如果和主站同一个空间的话，留空即可</span></td>
  </tr>
  <tr>
    <td class="tablelt">备案号</td>
    <td class="tablert"><input type="text" name="yktbeian" size="35" value="{$vd['sys']['yktbeian']}"/> <span class="spantip">如果和主站同一个空间的话，留空即可</span></td>
  </tr>
</table>
</div>
</div>
<!--}-->

<!--if(UB_B2C&&UB_YKT+UB_B2B>0){-->
<div class="cwarpper1">
<div class="ctitle">零售站点基本信息(适合独立域名的站点) </div>
<div>
<table border="0" class="ctable" bordercolor="#ededed">
  <tr>
    <td class="tablelt">网站名称</td>
    <td class="tablert"><input type="text" name="b2cname" size="35" value="{$vd['sys']['b2cname']}"/> <span class="spantip">如果和主站同一个空间的话，留空即可</span></td>
  </tr>
  <tr>
    <td class="tablelt">网站地址</td>
    <td class="tablert"><input type="text" name="b2csite" size="35" value="{$vd['sys']['b2csite']}"/> <span class="spantip">如果和主站同一个空间的话，留空即可</span></td>
  </tr>
  <tr>
    <td class="tablelt">备案号</td>
    <td class="tablert"><input type="text" name="b2cbeian" size="35" value="{$vd['sys']['b2cbeian']}"/> <span class="spantip">如果和主站同一个空间的话，留空即可</span></td>
  </tr>
</table>
</div>
</div>
<!--}-->

<!--if(UB_B2B){-->
<div class="cwarpper1">
<div class="ctitle">批发系统搜索优化
</div>
<div>
  <table border="0" id="ctable2" class="ctable" bordercolor="#ededed">
    <tr> 
      <td class="tablelt">
        批发主页标题
      </td> 
      <td class="tablert"><input type="text" name="title" value="{$vd['sys']['title']}" size="35"/> <span class="spantip">(首页显示的标题名称)</span></td>
    </tr>
    <tr> 
      <td class="tablelt">
        批发主页关键词
      </td>
      <td class="tablert">
        <textarea rows="3" name="keywords" cols="28" style="width:200px;">{$vd['sys']['keywords']}</textarea>
        <span class="spantip">主页META_KEYWORDS标签，有助于搜索引擎对您搜索</span></td>
    </tr>
    <tr> 
      <td class="tablelt">批发主页描述
      </td>
      <td class="tablert">
        <textarea rows="3" name="description" cols="28" style="width:200px;">{$vd['sys']['description']}</textarea>
        <span class="spantip">主页META_DESCRIPTION标签的内容，有助于被搜索</span>
      </td>
    </tr>
  </table>
</div>
</div>
<!--}-->

<!--if(UB_B2C){-->
<div class="cwarpper1">
<div class="ctitle">零售系统搜索优化
</div>
<div>
  <table border="0" id="ctable2" class="ctable" bordercolor="#ededed">
    <tr> 
      <td class="tablelt">
        零售主页标题
      </td> 
      <td class="tablert"><input type="text" name="b2ctitle" value="{$vd['sys']['b2ctitle']}" size="35"/> <span class="spantip">(首页显示的标题名称)</span></td>
    </tr>
    <tr> 
      <td class="tablelt">
        零售主页关键词
      </td>
      <td class="tablert">
        <textarea rows="3" name="b2ckeywords" cols="28" style="width:200px;">{$vd['sys']['b2ckeywords']}</textarea>
        <span class="spantip">主页META_KEYWORDS标签，有助于搜索引擎对您搜索</span></td>
    </tr>
    <tr> 
      <td class="tablelt">零售主页描述
      </td>
      <td class="tablert">
        <textarea rows="3" name="b2cdescription" cols="28" style="width:200px;">{$vd['sys']['b2cdescription']}</textarea>
        <span class="spantip">主页META_DESCRIPTION标签的内容，有助于被搜索</span>
      </td>
    </tr>
  </table>
</div>
</div>
<!--}-->

<!--if(UB_YKT){-->
<div class="cwarpper1">
<div class="ctitle">一卡通系统搜索优化
</div>
<div>
  <table border="0" id="ctable2" class="ctable" bordercolor="#ededed">
    <tr> 
      <td class="tablelt">
        一卡通主页标题
      </td> 
      <td class="tablert"><input type="text" name="ykttitle" value="{$vd['sys']['ykttitle']}" size="35"/> <span class="spantip">(首页显示的标题名称)</span></td>
    </tr>
    <tr> 
      <td class="tablelt">
        一卡通主页关键词
      </td>
      <td class="tablert">
        <textarea rows="3" name="yktkeywords" cols="28" style="width:200px;">{$vd['sys']['yktkeywords']}</textarea>
        <span class="spantip">主页META_KEYWORDS标签，有助于搜索引擎对您搜索</span></td>
    </tr>
    <tr> 
      <td class="tablelt">一卡通主页描述
      </td>
      <td class="tablert">
        <textarea rows="3" name="yktdescription" cols="28" style="width:200px;">{$vd['sys']['yktdescription']}</textarea>
        <span class="spantip">主页META_DESCRIPTION标签的内容，有助于被搜索</span>
      </td>
    </tr>
  </table>
</div>
</div>
<!--}-->

<div class="cwarpper1">
<div class="ctitle">客户服务相关信息</div>
<div>
  <table border="0" class="ctable" bordercolor="#ededed">
    <tr>
      <td class="tablelt">上班时间</td>
      <td class="tablert"><input type="text" name="worktime" size="35" value="{$vd['sys']['worktime']}"/>
        <strong onmouseover="showhide(this);" onmouseout="showhide(this);" style="cursor:pointer">[?]</strong><p>前台给客户的提示</p>
      </td>
    </tr>
    <tr>
      <td class="tablelt">QQ</td>
      <td class="tablert"><input type="text" name="qq" size="35" value="{$vd['sys']['qq']}"/> 
        <strong onmouseover="showhide(this);" onmouseout="showhide(this);" style="cursor:pointer">[?]</strong><p style="display:none">格式(客服|投诉|财务)：84945491,84945491|100,108|4521,5624 以"|"去分组，同一个组多个Q用","分开</p>
      </td>
    </tr>
    <tr>
      <td class="tablelt">电子邮箱</td>
      <td class="tablert"><input type="text" name="email" size="35" value="{$vd['sys']['email']}"/>
        <strong onmouseover="showhide(this);" onmouseout="showhide(this);" style="cursor:pointer">[?]</strong><p style="display:none">格式(客服|投诉|财务)：84945491@qq.com,84945491@qq.com|<br/>84945491@qq.com,84945491@qq.com|<br/>84945491@qq.com,84945491@qq.com <br/>以"|"去分组，同一个组多个邮箱用","分开</p>
      </td>
    </tr>
    <tr>
      <td class="tablelt">msn</td>
      <td class="tablert"><input type="text" name="msn" size="35" value="{$vd['sys']['msn']}"/>
        <strong onmouseover="showhide(this);" onmouseout="showhide(this);" style="cursor:pointer">[?]</strong><p style="display:none">格式(客服|投诉|财务)：84945491@qq.com,84945491@qq.com|<br/>84945491@qq.com,84945491@qq.com|<br/>84945491@qq.com,84945491@qq.com <br/>以"|"去分组，同一个组多个邮箱用","分开</p>
      </td>
    </tr>
    <tr>
      <td class="tablelt">百度Hi</td>
      <td class="tablert"><input type="text" name="hibaidu" size="35" value="{$vd['sys']['hibaidu']}"/>
        <strong onmouseover="showhide(this);" onmouseout="showhide(this);" style="cursor:pointer">[?]</strong><p style="display:none">格式(客服|投诉|财务)：<br/>84945491,84945491|<br/>84945491,84945491|<br/>84945491,84945491 <br/>以"|"去分组，同一个组多个邮箱用","分开</p>
      </td>
    </tr>
    <tr>
      <td class="tablelt">旺旺</td>
      <td class="tablert"><input type="text" name="wangwang" size="35" value="{$vd['sys']['wangwang']}"/>
        <strong onmouseover="showhide(this);" onmouseout="showhide(this);" style="cursor:pointer">[?]</strong><p style="display:none">格式(客服|投诉|财务)：84945491@qq.com,84945491@qq.com|<br/>84945491@qq.com,84945491@qq.com|<br/>84945491@qq.com,84945491@qq.com <br/>以"|"去分组，同一个组多个邮箱用","分开</p>
      </td>
    </tr>
    <tr>
      <td class="tablelt">传真</td>
      <td class="tablert"><input type="text" name="fax" size="35" value="{$vd['sys']['fax']}"/></td>
    </tr>
    <tr>
      <td class="tablelt">电话</td>
      <td class="tablert"><input type="text" name="tel" size="35" value="{$vd['sys']['tel']}"/></td>
    </tr>
    <tr>
      <td class="tablelt">地址</td>
      <td class="tablert"><input type="text" name="address" size="35" value="{$vd['sys']['address']}"/></td>
    </tr>
    <tr>
      <td class="tablelt">邮编</td>
      <td class="tablert"><input type="text" name="zip" size="35" value="{$vd['sys']['zip']}"/></td>
    </tr>
  </table>
</div>
</div>

<div class="cwarpper1">
<div class="ctitle">
  用户注册协议
  <strong onmouseover="showhide(this);" onmouseout="showhide(this);" style="cursor:pointer">[?]</strong><p style="display:none">注册的时候，显示给用户看到的协议信息</p>
</div>
<div>
  <table border="0" class="ctable" bordercolor="#ededed" style="border:0px">
    <tr> 
      <td style="padding:0px;overflow-x:hidden">
        <textarea rows="20" name="useragreement" cols="95" style="width:99%">{$vd['sys']['useragreement']}</textarea>
      </td>
    </tr>
  </table>
</div>
</div>

<?php
  $auright1 = array(
  array(0,'购卡售用户',1),
  array(1,'进货记录查询',1),
  array(34,'销售记录查询',0),
  array(3,'给账户充值',0),
  array(5,'查看账户资金变动',0),
  array(6,'资金锁定',0),
  array(26,'借款管理',0),
  array(12,'操作日志',0),
  array(16,'在线投诉系统',1),
  array(18,'平台内部短信',1),
  array(19,'汇款通知书',0),
  array(23,'员工帐户管理',0),
  array(11,'员工零售利润报表',0),
  array(35,'员工零售价设定',0),
  array(38,'员工结帐管理',1),
  array(20,'帐户密码设定',1),
  array(15,'账户安全检查',1),
  array(39,'IP及所在地安全绑定',1),
  array(40,'硬件信息安全绑定',1),
  array(41,'手机令牌安全绑定',1),
  array(42,'密保产品安全绑定',1),
  array(52,'积分管理',1),
  );
  
  if($vd['tbcz'] == 1)
  {
  	$auright1[] = array(64,'淘宝小店列表/挂机',0);
  	$auright1[] = array(65,'淘宝小店添加',0);
  	$auright1[] = array(66,'淘宝订单记录',0);
  }
  
  $auright2 = array(
  array(51,'管理经销商系统',0),
  array(4,'账户余额详细',0),
  array(2,'修改下家进价',0),
  array(9,'划款给下级客户',0),
  array(13,'代注册下级帐号',0),
  array(14,'下级客户档案管理',0),
  array(28,'自有商品发布与管理',0),
  array(29,'自有商品添加',0),
  array(45,'自有商品定价',0),
  array(31,'自有商品库存',0),
  array(56,'自有商品充值管理',0),
  array(44,'商品销售报表查询',0),
  array(32,'销售收入入帐记录',0),
  array(30,'下级客户价格管理',0),
  array(46,'下级客户购卡权限',0),
  array(47,'下级客户消费记录',0),
  array(48,'下级汇款通知书',0),
  array(49,'业务员帐户管理',0),
  array(50,'业务员业绩查询',0),
  array(57,'代理一卡通列表',0),
  array(58,'代理一卡通换购记录',0),
  array(59,'换购商品返点费率',0),
  array(60,'一卡通返点明细',0)
  );

  if($vd['vipshop'] == 1)
  {
  	$auright2[] = array(53,'VIP平台设置',0);
    $auright2[] = array(62,'VIP风格选择',0);
    $auright2[] = array(63,'VIP风格自定义',0);
    $auright2[] = array(54,'VIP平台广告',0);
    $auright2[] = array(55,'VIP平台公告',0);
  }
?>
<input type="hidden" value="{$vd['sys']['defaultmenu']}" id="thisright"/>
<div class="cwarpper1"<!--if(UB_B2B==0){--> style="display:none"<!--}-->>
<div class="ctitle">用户注册默认权限</div>
<div>
<table border="1" id="ctable1" class="ctable" bordercolor="#ededed">
  <tr><td colspan="4" style="background:#f8f8f8"><b>直销商功能：</b></td></tr>
  <!--$i=0;foreach($auright1 as $item){-->
  <!--if($i == 0){-->
  <tr>
  <!--}$i++;-->
    <td width="25%"><input type="checkbox" class="checkbox" value="1" id="rights_{$item[0]}" name="rights_{$item[0]}" /><label for="rights_{$item[0]}">{$item[1]}</label></td>
  <!--if($i == 4){-->
  </tr>
  <!--$i=0;}-->
  <!--}-->
  
  <!--if($i > 0){-->
  <!--for($j=0; $j < 4 - $i; $j++){-->
  <td width="25%" class=stline>&nbsp;</td>
  <!--}-->
  </tr>
  <!--}-->
</table>
<table border="1" id="ctable1" class="ctable" bordercolor="#ededed">
  <tr><td colspan="4" style="background:#f8f8f8"><b>经销商功能：</b></td></tr>
  <!--$i=0;foreach($auright2 as $item){-->
  <!--if($i == 0){-->
  <tr>
  <!--}$i++;-->
    <td width="25%"><input type="checkbox" class="checkbox" value="1" id="rights_{$item[0]}" name="rights_{$item[0]}" /><label for="rights_{$item[0]}">{$item[1]}</label></td>
  <!--if($i == 4){-->
  </tr>
  <!--$i=0;}-->
  <!--}-->
  
  <!--if($i > 0){-->
  <!--for($j=0; $j < 4 - $i; $j++){-->
  <td width="25%" class=stline>&nbsp;</td>
  <!--}-->
  </tr>
  <!--}-->
</table>
</div>
</div>
<div class="cbodyFoot"></div>
</div>

<div id="opcontent">
  
  <div class="optxt">
    <input type="submit" value="修改" class="btn"/>
    <input type="reset" value="重置" class="btn"/>
  </div>
</div>
</form>
<div id="titleDiv">
<div style="float:left"><a href="index.php?a=Home"><img src="{$vd['sc']}images/home.png" style="vertical-align:middle" border="0"/></a></div><div style="float:left;padding-top:8px;padding-left:3px;"><a href="index.php?a=Home" title="回到后台首页"><font color="#000">桌面</font></a> <span style="font-size:7px;">>></span> <a href="index.php?m=mod_b2b&c=sys&a=index" title="系统基本设置"><font color="#000">系统基本设置</font></a></div>
<div style="float:right;"><a href="index.php?m=mod_home&a=Help&t=admin_b2b_sys_index" onFocus="this.blur()" title="查看平台基本信息相关帮助"><img src="{$vd['sc']}images/help.gif" style="vertical-align:middle" border="0"/></a></div>
</div>
<div id="contentTip" style="display:none;"></div>
<div id="load" style="display:none;">
  <div id="loadcontent" >页面加载中请稍等...</div>
</div>
<script type="text/javascript">
  var ctablenum = 2;
</script>
<script src="{$vd['sc']}js/content.js" type="text/javascript"></script>
<script type="text/javascript">
  var thisright = $("thisright").value;
  var tmp = thisright.split(",");
  for(var i = 0; i < tmp.length; i++)
  {
    if($("rights_" + i) != null)
    {
      $("rights_" + i).checked = tmp[i]==1 ? true : false;
    }
  }
</script>
</body>
</html>
