<?php if(!defined("RUN_MODE")) die();?>
<?php
/**
 * The set registration agreement file of site module of chanzhiEPS.
 *
 * @copyright   Copyright 2009-2010 QingDao Nature Easy Soft Network Technology Co,LTD (www.cnezsoft.com)
 * @license     ZPL (http://zpl.pub/page/zplv11.html)
 * @author      Tingting Dai <daitingting@xirangit.com>
 * @package     site
 * @version     $Id$
 * @link        http://www.chanzhi.org
 */
?>
<?php include '../../common/view/header.admin.html.php';?>
<?php include '../../common/view/kindeditor.html.php';?>
<div class='panel'>
  <div class='panel-body'>
    <form method='post' id='ajaxForm' class='form-inline'>
      <table class='table table-form'>
        <tr>
          <th class='w-100px'><?php echo $lang->site->agreement;?></th>
          <td><?php echo html::radio('agreement', $lang->site->agreementList, isset($this->config->site->agreement) ? $this->config->site->agreement : 'close');?></td>
        </tr>
        
        <tr class='<?php echo isset($this->config->site->agreement) && $this->config->site->agreement == 'open' ? '' : 'hide'?>'>
          <th><?php echo $lang->site->agreementTitle;?></th>
          <td><?php echo html::input('agreementTitle', !empty($this->config->site->agreementTitle) ? $this->config->site->agreementTitle : '', "class='form-control'");?></td>
        </tr>
        <tr class='<?php echo isset($this->config->site->agreement) && $this->config->site->agreement == 'open' ? '' : 'hide'?>'>
          <th class='top'><?php echo $lang->site->agreementContent;?></th>
          <td><?php echo html::textarea('agreementContent', !empty($this->config->site->agreementContent) ? $this->config->site->agreementContent : '', "class='form-control' rows=15");?></td>
        </tr>
        <tr>
          <th></th>
          <td><?php echo html::submitButton();?></td>
        </tr>
      </table>
    </form>
  </div>
</div>
<?php include '../../common/view/footer.admin.html.php';?>
