<?php if(!defined("RUN_MODE")) die();?>
<?php
/**
 * The html template file of index method of upgrade module of ZenTaoPMS.
 *
 * @copyright   Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
 * @license     ZPLV1.2 (http://zpl.pub/page/zplv12.html)
 * @author      Chunsheng Wang <chunsheng@cnezsoft.com>
 * @package     upgrade
 * @version     $Id$
 */
?>
<?php include '../../common/view/header.lite.html.php';?>
<div class='container'>
  <div class='modal-dialog'>
    <div class='modal-header'>
      <?php if($createSlidePath or (isset($chmodThemePath) and $chmodThemePath)):?>
      <h3><?php echo $lang->upgrade->prepair;?></h3>
      <?php else:?>
      <h3><?php echo $lang->upgrade->backup;?></h3>
      <?php endif;?>
    </div>
    <div class='modal-body'>
      <?php if($createSlidePath):?>
      <?php printf($lang->upgrade->createSlidePath, $slidePath);?>
      <?php elseif(isset($chmodThemePath) and $chmodThemePath):?>
      <?php printf($lang->upgrade->chmodThemePath, $themePath);?>
      <?php elseif(isset($chmodCustomConfig) and $chmodCustomConfig):?>
      <?php printf($lang->upgrade->chmodCustomConfig, $customFile);?>
      <?php else:?>
      <?php printf($lang->upgrade->backupData, $db->user, $db->password, $db->name, inlink('selectVersion'));?>
      <?php endif;?>
      <?php if(version_compare($this->loadModel('setting')->getVersion(), 2.3) < 0):?>
      <div class='text-left'>
        <label class='checkbox-inline'><input type='checkbox' id='agree' checked /><?php echo $lang->agreement;?></label>
      </div>
      <?php endif;?>
    </div>
    <div class='modal-footer'>
      <?php if($createSlidePath or (isset($chmodThemePath) and $chmodThemePath) or (isset($chmodCustomConfig) and $chmodCustomConfig)):?>
      <?php echo html::a('', $lang->upgrade->next, "class='btn btn-primary'");?>
      <?php else:?>
      <?php echo html::a(inlink('selectVersion'), $lang->upgrade->next, "class='btn btn-primary'");?>
      <?php endif;?>
    </div>
  </div>
</div>
<?php include '../../install/view/footer.html.php';?>
