<!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="../../images/admin/public.css" rel="stylesheet" type="text/css" />
<link href="../../images/admin/style.css" rel="stylesheet" type="text/css" />
<script src="<?php echo $this->basedir;?>js/jquery.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
     $("#ta tr").mouseover(function(){
      $(this).addClass("over");
     });
     $("#ta tr").mouseout(function(){
      $(this).removeClass("over");
     });
	 $("#ta tr:even").addClass("double");
});
</script>
<body>
<table border="0" cellspacing="0" cellpadding="0" width="100%" id="ta">
  <tr align="center" valign="top">
    <td width="*" align="center" valign="top"><!-- ######### begin ######### -->
      <div class="Block">
        <div class="BlockBar">系统全局设置</div>
        <table cellspacing="1" cellpadding="4" class="tab">
          <form id="form1" name="form1" method="post" action="">
            <tr class="row">
              <td width="129"><strong>站点名称</strong>：</td>
              <td width="454" class="row"><label>
                <input name="sitename" type="text" id="sitename" size="60" value="<?php echo stripslashes($this->config['sitename']);?>" />
                </label>              </td>
            </tr>
            <tr class="row">
              <td><strong>访问域名</strong>：</td>
              <td class="row"><label>
                <input name="domain" type="text" id="domain" size="60" value="<?php echo stripslashes($this->config['domain']);?>" />
              </label></td>
            </tr>
            <tr class="row">
              <td><strong>运行状态</strong>：</td>
              <td class="row"><input name="run" type="radio" class="radio" value="2" <?php if((string)$this->config['run'] == 2) {echo 'checked="checked"';} ?> />
                运行中
                <input name="run" type="radio" class="radio" value="1" <?php if($this->config['run'] == 1) {echo 'checked="checked"';} ?> />
                暂停服务
                <input name="run" type="radio" class="radio" value="0" <?php if($this->config['run'] == 0) {echo 'checked="checked"';} ?> />
                关闭服务</td>
            </tr>
            <tr class="row">
              <td><strong>数据缓存</strong>：<br />
                控制是否采用静态页面缓存(推荐开启)</td>
              <td class="row"><input name="cache" type="radio" class="radio" value="1" <?php if((int)$this->config['cache'] == 1) {echo 'checked="checked"';} ?> />
                开启缓存
                <input name="cache" type="radio" class="radio" value="0" <?php if((int)$this->config['cache']  == 0) {echo 'checked="checked"';} ?> />
                关闭缓存</td>
            </tr>
            <tr class="row">
              <td><strong>页面压缩</strong>：<br/>
                控制是否压缩页面内容输出</td>
              <td class="row"><input name="gzip" type="radio" class="radio" value="1" <?php if((int)$this->config['gzip']  == 1) {echo 'checked="checked"';} ?> />
                开启压缩
                <input name="gzip" type="radio" class="radio" value="0" <?php if((int)$this->config['gzip'] == 0) {echo 'checked="checked"';} ?> />
                关闭压缩</td>
            </tr>
            <tr class="row">
              <td><strong>搜索优化</strong>：</td>
              <td class="row"><input name="rewrite" type="radio" class="radio" value="default" <?php if((string)$this->config['rewrite'] == 'default') {echo 'checked="checked"';} ?> />
                默认模式
                <input name="rewrite" type="radio" class="radio" value="rewrite" <?php if((string)$this->config['rewrite'] == 'rewrite') {echo 'checked="checked"';} ?> />
                伪静态
                <input name="rewrite" type="radio" class="radio" value="html" <?php if((string)$this->config['rewrite'] == 'html') {echo 'checked="checked"';} ?> />
                纯静态</td>
            </tr>
            <tr class="row">
              <td><strong>点播窗口</strong>：<br />
                点播页面窗口模式</td>
              <td class="row"><input name="target" type="radio" class="radio" value="openwindow" <?php if($this->config['target']  == 'openwindow') {echo 'checked="checked"';} ?> />
                弹出窗口
                <input name="target" type="radio" class="radio" value="_blank" <?php if($this->config['target'] == '_blank') {echo 'checked="checked"';} ?> />
                新开页面</td>
            </tr>
            <tr class="row">
              <td><strong>窗口大小</strong>：<br />
                弹出窗口的大小</td>
              <td class="row">宽：
                <input name="width" type="text" id="width" size="5" maxlength="3" value="<?php echo (int)$this->config['width'];?>" />
                高：
                <input name="height" type="text" id="height" size="5" maxlength="3" value=" <?php echo (int)$this->config['height'];?>" />
                默认500X400</td>
            </tr>
            <tr class="row">
              <td><strong>点播模式</strong>：</td>
              <td class="row">
			  <select name="auth" id="auth" style="width:200px">
                <option value="0" <?php if($this->config['auth'] ==0) {echo ' selected="selected" ';} ?>>免登录</option>
                <option value="1" <?php if($this->config['auth'] ==1) {echo ' selected="selected" ';} ?>>登录认证</option>
                <option value="2" <?php if($this->config['auth'] ==2) {echo ' selected="selected" ';} ?>>时间段免费</option>
                  <option value="3"<?php if($this->config['auth'] ==3) {echo ' selected="selected" ';} ?> >登陆免费点播</option>
              </select></td>
            </tr>
            <tr class="row">
              <td><strong>免费时间段</strong>：</td>
              <td class="row"><input name="freetime" type="text" id="freetime" value="<?php echo $this->config['freetime'];?>" size="10" maxlength="8"  />
               
              例如：24/04 表示晚上12点到凌晨4点之间免费点播</td>
            </tr>
            <tr class="row">
              <td><strong>点播人数</strong>：<br />
                统计正在点播人数的刷新时间</td>
              <td class="row"><select name="refreshplayer" id="refreshplayer" style="width:200px">
                  <option value="0" <?php if((int)$this->config['refreshplayer'] == 0) {echo 'selected="selected" ';} ?> >不统计点播用户</option>
                  <option value="5" <?php if((int)$this->config['refreshplayer'] == 5) {echo 'selected="selected" ';} ?> >5秒</option>
                  <option value="10" <?php if((int)$this->config['refreshplayer'] == 10) {echo 'selected="selected" ';} ?> >10秒</option>
                  <option value="30" <?php if((int)$this->config['refreshplayer'] == 30) {echo 'selected="selected" ';} ?> >30秒</option>
                  <option value="60" <?php if((int)$this->config['refreshplayer'] == 60) {echo 'selected="selected" ';} ?>>1分钟</option>
                  <option value="300" <?php if((int)$this->config['refreshplayer'] == 300) {echo 'selected="selected" ';} ?> >5分钟</option>
                  <option value="600" <?php if((int)$this->config['refreshplayer'] == 600) {echo 'selected="selected" ';} ?> >10分钟</option>
                  <option value="900" <?php if((int)$this->config['refreshplayer'] == 900) {echo 'selected="selected" ';} ?> >15分钟</option>
                  <option value="1800" <?php if((int)$this->config['refreshplayer'] == 1800) {echo 'selected="selected" ';} ?> >30分钟</option>
                </select>
                *不统计某些并发控制功能将无效</td>
            </tr>
            <tr class="row">
              <td><strong>在线人数</strong>：<br />
                统计指定时间内的在线用户</td>
              <td class="row"><select name="refreshonline" id="refreshonline" style="width:200px">
                  <option value="0" <?php if((int)$this->config['refreshonline']== 0) {echo 'selected="selected" ';} ?> >不统计在线用户</option>
                  <option value="300" <?php if((int)$this->config['refreshonline'] == 300) {echo 'selected="selected" ';} ?> >5分钟</option>
                  <option value="600" <?php if((int)$this->config['refreshonline'] == 600) {echo 'selected="selected" ';} ?> >10分钟</option>
                  <option value="900" <?php if((int)$this->config['refreshonline'] == 900) {echo 'selected="selected" ';} ?> >15分钟</option>
                  <option value="1200" <?php if((int)$this->config['refreshonline'] ==1200) {echo 'selected="selected" ';} ?> >20分钟</option>
                  <option value="1800" <?php if((int)$this->config['refreshonline'] == 1800) {echo 'selected="selected" ';} ?> >30分钟</option>
                </select>              </td>
            </tr>
            <tr class="row">
              <td><strong>点播日志</strong>：<br />
                保存系统时间的时间</td>
              <td class="row"><select name="clearlog" id="clearlog" style="width:200px">
                  <option value="0" <?php if((int)$this->config['clearlog'] == 0) {echo 'selected="selected" ';} ?> >不统计点播记录</option>
                  <option value="1" <?php if((int)$this->config['clearlog'] == 1) {echo 'selected="selected" ';} ?> >保存一天</option>
                  <option value="7" <?php if((int)$this->config['clearlog'] == 7) {echo 'selected="selected" ';} ?> >保存一周</option>
                  <option value="30" <?php if((int)$this->config['clearlog'] == 30) {echo 'selected="selected" ';} ?> >保存一个月</option>
                  <option value="90" <?php if((int)$this->config['clearlog'] == 90) {echo 'selected="selected" ';} ?> >保存三个月</option>
                </select>              </td>
            </tr>
            <tr class="row">
              <td><strong>影片评论</strong>：<br />
                是否启用影片评论</td>
              <td class="row"><input name="pl" type="radio" class="radio" value="0" <?php if((int)$this->config['pl'] == 0) {echo 'checked="checked" ';} ?> />
                关闭
                <input name="pl" type="radio" class="radio" value="1" <?php if((int)$this->config['pl'] == 1) {echo 'checked="checked" ';} ?> />
                开启</td>
            </tr>
            <tr class="row">
              <td><strong>客服电话</strong>：</td>
              <td class="row"><input name="phone" type="text" id="phone" value="<?php echo $this->config['phone'];?>" /></td>
            </tr>
            <tr class="row">
              <td><strong>客服 QQ</strong>：</td>
              <td class="row"><input name="qq" type="text" id="qq" value="<?php echo $this->config['qq'];?>" /></td>
            </tr>
            <tr class="row">
              <td><strong>统计代码</strong>：</td>
              <td class="row"><textarea name="tj" cols="60" rows="3" class="row-content" id="tj"><?php echo stripslashes($this->config['tj']);?></textarea></td>
            </tr>
            <tr class="row">
              <td><strong>邮件服务器</strong>：</td>
              <td class="row"><input name="smtp" type="text" id="smtp" value="<?php echo $this->config['smtp'];?>" size="40" /></td>
            </tr>
            <tr class="row">
              <td><strong>SMTP端口</strong>：</td>
              <td class="row"><input name="port" type="text" id="port" value="<?php echo $this->config['port'];?>" size="40" />
                *一般为25</td>
            </tr>
            <tr class="row">
              <td><strong>SMTP用户</strong>：</td>
              <td class="row"><input name="smtpuser" type="text" id="smtpuser" value="<?php echo $this->config['smtpuser'];?>" size="40" /></td>
            </tr>
            <tr class="row">
              <td><strong>登陆密码</strong>：</td>
              <td class="row"><input name="smtpass" type="password" id="smtpass" value="<?php echo $this->config['smtpass'];?>" size="40" />
                *SMTP登录用户密码</td>
            </tr>
            <tr class="row">
              <td><strong>联系邮箱</strong>：</td>
              <td class="row"><input name="sitemail" type="text" id="sitemail" value="<?php echo $this->config['sitemail'];?>" size="40" />
                *一般与SMTP用户一致</td>
            </tr>
            <tr class="row">
              <td><strong>秘密通道组：</strong></td>
              <td class="row"><label>
                <select name="vip" id="vip" style="width:200px">
				<?php echo $this->vipoption;?>
                </select>
              </label></td>
            </tr>
            <tr class="row">
              <td><strong>整合Ucenter</strong></td>
              <td class="row"><select name="ucenter" style="width:200px;">
                  <option value="0" <?php if($this->config['ucenter'] == 0) echo 'selected';?>>不整合</option>
                  <option value="1" <?php if($this->config['ucenter'] == 1) echo 'selected';?>>整合</option>
                </select>
                *默认为不整合。如果您没有安装或者不熟悉请选择不整合</td>
            </tr>
            <tr class="row">
              <td><strong>系统默认时区：</strong></td>
              <td class="row">
			  <select name="timezone" id="timezone">
                <option value="Asia/Shanghai" <?php if($this->config['timezone'] == 'Asia/Shanghai') echo 'selected';?>>中国</option>
				<option value="America/New_York" <?php if($this->config['timezone'] == 'America/New_York') echo 'selected';?> >美国/纽约</option>
				<option value="Asia/Tokyo" <?php if($this->config['timezone'] == 'Asia/Tokyo') echo 'selected';?> >日本东京</option>
				<option value="Europe/London" <?php if($this->config['timezone'] == 'Europe/London') echo 'selected';?> >英国伦敦</option>
              </select>
			  *具体可以参考http://www.php.net/manual/zh/timezones.europe.php增加更多时间支持              </td>
            </tr>
            <tr class="row">
              <td><strong>前台分页数：</strong></td>
              <td class="row"><label>
                <input name="pagesize" type="text" id="pagesize" value="<?php echo $this->config['pagesize'];?>" size="5" />
              </label></td>
            </tr>
            <tr class="row">
              <td><strong>后台分页数：</strong></td>
              <td class="row"><input name="maxpage" type="text" id="maxpage" value="<?php echo $this->config['maxpage'];?>" size="5" /></td>
            </tr>
            <tr class="row">
              <td>&nbsp;</td>
              <td class="row"><input name="" type="submit" class="btn" value="保存配置" /></td>
            </tr>
            <input type="hidden" name="template" value="<?php echo $this->config['template'];?>" />
			<input type="hidden" name="reg_userid" value="1457" />
			<input type="hidden" name="reg_key" value="123456" />
			<input type="hidden" name="crewrite" value="content/category/id/{id}/" />
			<input type="hidden" name="mrewrite" value="content/view/movid/{movid}/" />
          </form>
        </table>
      </div>
      <div id="App-Version-Prompt" style="display:none;">
        <div class="space"></div>
        <div class="Block">
          <div class="BlockBar">秀影版本更新信息</div>
          <div class="BlockContent" id="App-Version-Prompt-Body" style="padding:20px 5px 20px 5px; text-align:center; background:#FFFFCC;">loading...</div>
        </div>
      </div></td>
  </tr>
</table>
<?php
echo $this->render('copyright');
?>
</body>
</html>

