Exemple #1
0
<?php

/**
 * The view of doc module of ZenTaoPMS.
 *
 * @copyright   Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
 * @license     ZPL (http://zpl.pub/page/zplv11.html)
 * @author      Jia Fu <*****@*****.**>
 * @package     doc
 * @version     $Id: view.html.php 975 2010-07-29 03:30:25Z jajacn@126.com $
 * @link        http://www.zentao.net
 */
include '../../common/view/header.html.php';
echo css::internal($keTableCSS);
?>
<div id='titlebar'>
  <div class='heading'>
    <span class='prefix' title='DOC'><?php 
echo html::icon($lang->icons['doc']);
?>
 <strong><?php 
echo $doc->id;
?>
</strong></span>
    <strong><?php 
echo $doc->title;
?>
</strong>
    <?php 
if ($doc->deleted) {
    ?>
    js::import($jsRoot . 'all.ie8.js');
}
?>
<![endif]-->
<!--[if lt IE 10]>
<?php 
if ($config->debug) {
    js::import($jsRoot . 'jquery/placeholder/min.js');
} else {
    js::import($jsRoot . 'all.ie9.js');
}
?>
<![endif]-->
<?php 
if (isset($this->config->site->basestyle)) {
    css::internal($this->config->site->basestyle);
}
if (isset($this->config->site->basejs)) {
    js::execute($this->config->site->basejs);
}
?>
</head>
<body>
<div class='page-container page-blog'>
  <header id='header' class='clearfix'>
    <div id='headNav'><div class='wrapper'><?php 
echo commonModel::printTopBar();
?>
</div></div>
    <div id='headTitle'>
      <div class="wrapper">
Exemple #3
0
    if (file_exists($customCssFile)) {
        css::import(sprintf($webRoot . 'data/css/%s/%s/style.css?' . $this->config->template->customVersion, $config->template->{$this->device}->name, $config->template->{$this->device}->theme));
    }
}
js::exportConfigVars();
if ($config->debug) {
    js::import($jsRoot . 'jquery/min.js');
    js::import($jsRoot . 'zui/min.js');
    js::import($jsRoot . 'chanzhi.js');
    js::import($jsRoot . 'jquery/treeview/min.js');
    js::import($jsRoot . 'my.js');
} else {
    js::import($jsRoot . 'all.js');
}
if (isset($pageCSS)) {
    css::internal($pageCSS);
}
echo isset($this->config->site->favicon) ? html::icon(json_decode($this->config->site->favicon)->webPath) : html::icon($webRoot . 'favicon.ico');
echo html::rss($this->createLink('rss', 'index', '', '', 'xml'), $config->site->name);
js::set('lang', $lang->js);
if (!empty($config->oauth->sina)) {
    $sina = json_decode($config->oauth->sina);
}
if (!empty($config->oauth->qq)) {
    $qq = json_decode($config->oauth->qq);
}
if (!empty($sina->verification)) {
    echo $sina->verification;
}
if (!empty($qq->verification)) {
    echo $qq->verification;
Exemple #4
0
/**
 * The view file of blog view method 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 <*****@*****.**>
 * @package     blog
 * @version     $Id$
 * @link        http://www.chanzhi.org
 */
include TPL_ROOT . 'blog/header.html.php';
$path = !empty($category->pathNames) ? array_keys($category->pathNames) : array();
js::set('path', $path);
js::set('categoryID', $category->id);
js::set('articleID', $article->id);
css::internal($article->css);
js::execute($article->js);
include TPL_ROOT . 'common/treeview.html.php';
$root = '<li>' . $this->lang->currentPos . $this->lang->colon . html::a($this->inlink('index'), $lang->blog->home) . '</li>';
$common->printPositionBar($category, $article, '', $root);
?>
<div class='row blocks' data-region='blog_view-topBanner'><?php 
$this->block->printRegion($layouts, 'blog_view', 'topBanner', true);
?>
</div>
<div class='row'>
  <div class='col-md-9 col-main'>
    <div class='row blocks' data-region='blog_view-top'><?php 
$this->block->printRegion($layouts, 'blog_view', 'top', true);
?>
</div>
$clientTheme = $this->app->getClientTheme();
?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dli'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
  <meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
  <?php 
$header = isset($header) ? (object) $header : new stdclass();
if (!isset($header->title)) {
    $header->title = $lang->ZenTaoPMS;
}
echo html::title($header->title . ' / ' . $lang->ZenTaoPMS);
js::exportConfigVars();
js::import($jsRoot . 'jquery/lib.js', $config->version);
js::import($jsRoot . 'my.min.js', $config->version);
js::import($jsRoot . 'highchars/exporting.js', $config->version);
js::import($jsRoot . 'highchars/highcharts.js', $config->version);
css::import($defaultTheme . 'yui.css', $config->version);
css::import($defaultTheme . 'style.css', $config->version);
css::import($langTheme, $config->version);
if (strpos($clientTheme, 'default') === false) {
    css::import($clientTheme . 'style.css', $config->version);
}
if (isset($pageCss)) {
    css::internal($pageCss);
}
echo html::icon($webRoot . 'favicon.ico');
?>
</head>
<body>
Exemple #6
0
 * @version     $Id$
 * @link        http://www.chanzhi.org
 */
include TPL_ROOT . 'common/header.html.php';
include TPL_ROOT . 'common/treeview.html.php';
/* set categoryPath for topNav highlight. */
js::set('path', $product->path);
js::set('productID', $product->id);
js::set('categoryID', $category->id);
js::set('categoryPath', explode(',', trim($category->path, ',')));
js::set('addToCartSuccess', $lang->product->addToCartSuccess);
js::set('gotoCart', $lang->product->gotoCart);
js::set('goback', $lang->product->goback);
js::set('stockOpened', $stockOpened);
js::set('stock', $product->amount);
css::internal($product->css);
js::execute($product->js);
?>
<div class="main-content">
<?php 
$common->printPositionBar($category, $product);
?>

  <div class="main-box">
    <!-- 左边分类列表开始 -->
    <div class="left">
      <?php 
foreach ($children as $sub1) {
    ?>
        <a href="<?php 
    echo $siteRoot . "product/c" . $sub1->id . ".html";
<?php

include '../../common/view/header.lite.html.php';
js::import($jsRoot . 'md5.js');
js::set('scriptName', $_SERVER['SCRIPT_NAME']);
js::set('random', $this->session->random);
css::internal('body{background-color:#f6f5f5}');
?>
 
<div class='container'>
  <div id='adminLogin'>
    <form method='post' id='ajaxForm'>
      <div id='logo' class='text-center'><?php 
echo html::image("{$themeRoot}/default/images/main/logo.login.png");
?>
</div>
      <div id='formError' class='alert alert-danger hiding'></div>
      <?php 
echo html::input('account', '', "class='form-control' placeholder='{$lang->user->inputAccountOrEmail}'");
?>
      <?php 
echo html::password('password', '', "class='form-control' placeholder='{$lang->user->inputPassword}'");
?>
      <?php 
echo html::hidden('referer', $referer);
?>
      <?php 
echo html::submitButton($lang->user->login->common, 'btn btn-primary btn-block');
?>
    </form>
  </div>
Exemple #8
0
<?php

include TPL_ROOT . 'common/header.html.php';
include TPL_ROOT . 'common/treeview.html.php';
js::set('pageID', $page->id);
css::internal($page->css);
js::execute($page->js);
$common->printPositionBar($page);
?>
<div class='row blocks' data-region='page_view-topBanner'><?php 
$this->block->printRegion($layouts, 'page_view', 'topBanner', true);
?>
</div>
<div class='row'>
  <?php 
if (!empty($layouts['page_view'])) {
    ?>
  <div class='col-md-9 col-main'>
  <?php 
} else {
    ?>
  <div class='col-md-12'>
  <?php 
}
?>
    <div class='row blocks' data-region='page_view-top'><?php 
$this->block->printRegion($layouts, 'page_view', 'top', true);
?>
</div>
    <div class='article' id='page<?php 
echo $page->id;