www.gusucode.com > 蝉知企业门户营销系统PHP版 v5.0php源码程序 > 蝉知企业门户营销系统PHP版 v5.0/chanzhieps/chanzhieps/system/module/ui/view/settemplate.html.php

    <?php if(!defined("RUN_MODE")) die();?>
<?php
/**
 * The settheme view file of ui module of chanzhiEPS.
 *
 * @copyright   Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
 * @license     ZPLV12 (http://zpl.pub/page/zplv12.html)
 * @author      Xiying Guan <guanxiying@xirangit.com>
 * @package     ui
 * @version     $Id$
 * @link        http://www.chanzhi.org
 */
?>
<?php include '../../common/view/header.admin.html.php';?>
<div class='panel panel-templates'>
<div class='cards cards-templates' data-template='<?php echo $this->config->template->{$this->device}->name?>' data-theme='<?php echo $this->config->template->{$this->device}->theme?>'>
  <?php $customThemePriv = commonModel::hasPriv('ui', 'customTheme');?>
  <?php foreach($templates as $code => $template):?>
  <?php
  $desc  = $template['desc'];
  $count = count($template['themes']);
  $isCurrent = $this->config->template->{$this->device}->name == $code;
  $themeName = $isCurrent ? $this->config->template->{$this->device}->theme : 'default';
  $templateRoot = $webRoot . 'template/' . $code . '/'
  ?>
  <div class='col-card'>
    <div class="card-template card<?php if($isCurrent) echo ' current';?>" data-template='<?php echo $code;?>'data-theme='<?php echo $themeName;?>' data-url='<?php inlink('settheme', "template={$code}&theme={$themeName}") ?>'>
      <i class='icon-ok teamplate-choosed'></i>
      <div class='template-img'><?php echo html::image($templateRoot . 'theme/' . $themeName . '/preview.png');?></div>
      <div class='card-heading'>
        <h4 class='template-name'><?php echo $template['name']?></h4>
        <small class='text-muted'><?php echo $lang->ui->template->author . $lang->colon . $template['author'];?></small>
      </div>
      <div class='card-actions'>
       <?php if(!$isCurrent and $code != 'default' and $code != 'mobile') commonModel::printLink('ui', 'uninstallTemplate', "template={$code}", $lang->delete, "class='btn btn-default template-deleter'");?>
      </div>
      <?php if(!empty($desc)):?>
      <div class="card-content"><div class="template-desc"><?php echo $desc;?></div></div>
      <?php endif;?>
      <div class='themes-list'>
        <div class='clearfix'>
        <?php foreach($template['themes'] as $theme => $name):?>
          <?php
          $custom = true;
          $currentClass = ($isCurrent and $config->template->{$this->device}->theme == $theme) ? ' current' : '';
          if($custom) $currentClass .= ' custom';
          $themeInfo = isset($installedThemes[$code][$theme]) ? $installedThemes[$code][$theme] : NULL;
          $url = $this->createLink('ui', 'setTemplate', "template={$code}&theme={$theme}&custom={$custom}");
          ?>
          <div class='theme<?php echo $currentClass;?>' data-url='<?php echo $url;?>' data-theme='<?php echo $theme;?>'>
            <div class='theme-card'>
              <i class='icon-ok icon'></i>
              <div class='theme-actions dropdown'>
                <?php if(!in_array("$code.$theme", $this->config->ui->systemThemes)) commonModel::printLink('ui', 'deleteTheme', "template={$code}&theme={$theme}", "<span class='icon-remove'></span>", "title='{$lang->delete}' class='deleter btn btn-link btn-mini' data-type='ajax' data-backdrop='true'") ?>
              </div>
              <div class='theme-img'><?php echo html::image($templateRoot . 'theme/' . $theme . '/preview.png');?></div>
              <div class='theme-name text-center'><strong><?php echo $name;?></strong></div>
            </div>
         </div>
        <?php endforeach;?>
        </div>
      </div>
    </div>
  </div>
  <?php endforeach;?>
</div>
<?php include '../../common/view/footer.admin.html.php';?>