예제 #1
0
<?php

/**
 * The view file of calendar module of ZenTaoPMS.
 *
 * @copyright   Copyright 2009-2012 青岛易软天创网络科技有限公司 (QingDao Nature Easy Soft Network Technology Co,LTD www.cnezsoft.com)
 * @license     business(商业软件) 
 * @author      Yangyang Shi <*****@*****.**>
 * @package     calendar 
 * @version     $Id$
 * @link        http://www.zentao.net
 */
css::import($jsRoot . 'zui/calendar/zui.calendar.min.css', $config->version);
js::import($jsRoot . 'zui/calendar/zui.calendar.min.js', $config->version);
?>
<style>
.calendar .table tr.week-days td.cell-day{vertical-align:top;}
.calendar .cell-day.current > .day {border: none}
.calendar .btn {padding-top: 4px; padding-bottom: 4px;}
.calendar .cell-day.past>.day>.content {opacity: 0.8}
.calendar .event {font-size: 12px; opacity: 0.95}
.outer .calendar .table tr > td:first-child {padding-left: 0!important;}
.calendar .event.with-action {position: relative; padding-right: 30px;}
.calendar .event.with-action .action {position: absolute; right: 0; top: 0;}
.calendar .event.with-action .action > a {display: inline-block; padding: 0 4px; color: #fff; background-color: rgba(0,0,0,0.25); line-height: 19px; padding: 0 6px;}
.calendar .event.with-action .action > a:hover {background-color: rgba(0,0,0,0.5)}
</style>
<script>
var date = new Date();
var d    = date.getDate();
var m    = date.getMonth();
예제 #2
0
<?php

if ($extView = $this->getExtViewFile(__FILE__)) {
    include $extView;
    return helper::cd();
}
css::import($jsRoot . 'jquery/chosen/min.css');
js::import($jsRoot . 'jquery/chosen/min.js');
$clientLang = $this->app->getClientLang();
?>

<script language='javascript'> 
$(document).ready(function()
{
    $(".chosen").chosen({no_results_text: '<?php 
echo $lang->noResultsMatch;
?>
', placeholder_text:' ', disable_search_threshold: 10, width: '100%', search_contains: true});
    $('select.chosen-icons').chosenIcons({lang: '<?php 
echo $clientLang;
?>
'});
});
</script>
예제 #3
0
}
/* Export $jsRoot var. */
js::set('jsRoot', $jsRoot);
js::set('webRoot', $webRoot);
/* Get editor settings for current page. */
$editors = $config->{$module}->editor->{$method};
$editors['id'] = explode(',', $editors['id']);
js::set('editors', $editors);
$this->app->loadLang('file');
js::set('errorUnwritable', $lang->file->errorUnwritable);
/* Get current lang. */
$editorLangs = array('en' => 'en', 'zh-cn' => 'zh_CN', 'zh-tw' => 'zh_TW');
$editorLang = isset($editorLangs[$app->getClientLang()]) ? $editorLangs[$app->getClientLang()] : 'en';
js::set('editorLang', $editorLang);
/* Import css and js for kindeditor. */
css::import($jsRoot . 'kindeditor/themes/default/default.css');
js::import($jsRoot . 'kindeditor/kindeditor-min.js');
js::import($jsRoot . 'kindeditor/lang/' . $editorLang . '.js');
/* set uid for upload. */
$uid = uniqid('');
js::set('uid', $uid);
?>

<script>
var simple = 
[ 'formatblock', 'fontsize', '|', 'bold', 'italic','underline', '|', 
'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist', 'insertunorderedlist', '|',
'emoticons', 'image', 'media', 'link', '|', 'removeformat','undo', 'redo', 'source' ];

var full = 
[ 'formatblock', 'fontsize', 'lineheight', '|', 'forecolor', 'hilitecolor', '|', 'bold', 'italic','underline', 'strikethrough', '|',
<?php

if ($extView = $this->getExtViewFile(__FILE__)) {
    include $extView;
    return helper::cd();
}
css::import($defaultTheme . 'colorbox.css');
js::import($jsRoot . 'jquery/colorbox/min.js');
$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>
예제 #6
0
echo html::title($title . $config->site->name);
echo html::meta('keywords', strip_tags($keywords));
echo html::meta('description', strip_tags($desc));
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');
    js::import($jsRoot . 'my.admin.js');
    css::import($webRoot . 'zui/css/min.css');
    css::import($jsRoot . 'jquery/treeview/min.css');
    css::import($themeRoot . 'default/admin.css');
} else {
    css::import($themeRoot . 'default/all.admin.css');
    js::import($jsRoot . 'all.admin.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);
?>
<!--[if lt IE 9]>
<?php 
if ($config->debug) {
    js::import($jsRoot . 'html5shiv/min.js');
    js::import($jsRoot . 'respond/min.js');
} else {
    js::import($jsRoot . 'all.ie8.js');
예제 #7
0
<?php

/**
 * The view file of fullcalendar module of ZenTaoPMS.
 *
 * @copyright   Copyright 2009-2012 青岛易软天创网络科技有限公司 (QingDao Nature Easy Soft Network Technology Co,LTD www.cnezsoft.com)
 * @license     business(商业软件) 
 * @author      Yangyang Shi <*****@*****.**>
 * @package     fullcalendar 
 * @version     $Id$
 * @link        http://www.zentao.net
 */
css::import($defaultTheme . 'jsgantt.css', $config->version);
js::import($jsRoot . 'jquery/gantt/jsgantt.js', $config->version);
예제 #8
0
 * The calendar view of common module of RanZhi.
 *
 * @copyright   Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
 * @license     ZPL (http://zpl.pub/page/zplv12.html)
 * @author      chujilu <*****@*****.**>
 * @package     common 
 * @version     $Id: calendar.html.php 2508 2015-01-26 08:32:52Z chujilu $
 * @link        http://www.ranzhico.com
 */
if ($extView = $this->getExtViewFile(__FILE__)) {
    include $extView;
    return helper::cd();
}
$clientLang = $this->app->getClientLang();
$jsRoot = $config->webRoot . "js/";
css::import($jsRoot . 'calendar/zui.calendar.min.css');
js::import($jsRoot . 'calendar/zui.calendar.min.js');
?>
<script language='javascript'>
$(function()
{
    $('div.calendar').each(function()
    {
        var calendarObj = $(this);
        var settings    = {};
        if(typeof v.settings != 'undefined') settings = v.settings;

        /* Get setting from div. */
        var divData = calendarObj.data();
        for(key in divData) settings[key] = divData[key];
예제 #9
0
<?php

if (!defined("RUN_MODE")) {
    die;
}
$webRoot = $config->webRoot;
$cssRoot = $webRoot . "css/";
$jsRoot = $webRoot . "js/";
js::exportConfigVars();
css::import($cssRoot . 'my.css');
js::import($jsRoot . 'all.js');
js::import($jsRoot . 'my.js');
?>
<!DOCTYPE html>
<head>
	<meta charset="utf-8">
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta http-equiv="Cache-Control"  content="no-transform">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<!-- developing -->
	<link rel="stylesheet/less" type="text/css" href="<?php 
echo $cssRoot;
?>
my.less" />
	<script type="text/javascript" src="<?php 
echo $jsRoot;
?>
less/min.js"></script>
	<!-- developing -->
	<style type="text/css">
예제 #10
0
<?php

/**
 * The kityminder view of common module of RanZhi.
 *
 * @copyright   Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
 * @license     ZPL (http://zpl.pub/page/zplv12.html)
 * @author      Hao Sun <*****@*****.**>
 * @package     common 
 * @version     $Id: minder.html.php 8679 2014-05-03 00:44:12Z sunhao $
 * @link        http://www.ranzhico.com
 */
if ($extView = $this->getExtViewFile(__FILE__)) {
    include $extView;
    return helper::cd();
}
js::import($jsRoot . 'mindmap/min.js');
css::import($jsRoot . 'mindmap/min.css');
예제 #11
0
<?php

if ($extView = $this->getExtViewFile(__FILE__)) {
    include $extView;
    return helper::cd();
}
$clientLang = $this->app->getClientLang();
css::import($jsRoot . 'datetimepicker/css/min.css');
js::import($jsRoot . 'datetimepicker/js/min.js');
if ($clientLang != 'en') {
    js::import($jsRoot . 'datetimepicker/js/locales/' . $clientLang . '.js');
}
?>
<script language='javascript'>
$(function()
{
    startDate = new Date(2000, 1, 1);
    $(".date").datetimepicker
    ({
        format: 'yyyy-mm-dd hh:ii',
        startDate:startDate,
        pickerPosition: 'top-left',
        todayBtn: true,
        autoclose: true,
        keyboardNavigation:false,
        language:'<?php 
echo $clientLang;
?>
'
    });
});
예제 #12
0
<?php

if ($extView = $this->getExtViewFile(__FILE__)) {
    include $extView;
    return helper::cd();
}
css::import($jsRoot . 'datatable/min.css');
js::import($jsRoot . 'datatable/min.js');
if (!empty($lang->datatable)) {
    ?>
<style>
.table-datatable tbody > tr td,
.table-datatable thead > tr th {max-height: 34px; line-height: 21px;}
.table-datatable tbody > tr td .btn-icon > i {line-height: 19px;}
.hide-side .table-datatable thead > tr > th.check-btn i {visibility: hidden;}
.hide-side .side-handle {line-height: 33px}
.table-datatable .checkbox-row {display: none}
.outer .datatable {border: 1px solid #ddd;}
.outer .datatable .table, .outer .datatable .table tfoot td {border: none; box-shadow: none}
.datatable .table>tbody>tr>td.col-hover, .datatable .table>tbody>tr.hover>td {background-color: #ebf2f9 !important;}
.datatable-span.flexarea .scroll-slide {bottom: -30px}

.datatable-menu-wrapper {position: relative;}
.datatable-menu {position: absolute; right: 0; top: 0; border: 1px solid #ddd; background: #fff; z-index: 999;}
.datatable-menu > .btn {padding: 5px 6px 6px; outline: none; color: #4d90fe!important}
.datatable-menu > .btn:hover {color: #002563!important}

.panel > .datatable, .panel-body > .datatable {margin-bottom: 0;}
</style>
<script> 
<?php 
예제 #13
0
파일: header.html.php 프로젝트: leowh/colla
<?php

/**
 * The index view file of blog module of RanZhi.
 *
 * @copyright   Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
 * @license     ZPL (http://zpl.pub/page/zplv12.html)
 * @author      Xiying Guan <*****@*****.**>
 * @package     blog
 * @version     $Id: index.html.php 9763 2014-06-04 09:06:33Z guanxiying $
 * @link        http://www.ranzhico.com
 */
include '../../common/view/header.html.php';
css::import($themeRoot . 'default/blog.css');
include '../../../sys/common/view/treeview.html.php';
?>
<div class='row'>
<?php 
include 'side.html.php';
예제 #14
0
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');
    js::import($jsRoot . 'my.admin.js');
    js::import($jsRoot . 'bootstrap-multiselect.js');
    css::import($webRoot . 'zui/css/min.css');
    css::import($jsRoot . 'jquery/treeview/min.css');
    css::import($themeRoot . 'default/admin.css');
    css::import($cssRoot . 'css/bootstrap-multiselect.css');
} else {
    css::import($themeRoot . 'default/all.admin.css');
    css::import($cssRoot . 'css/bootstrap-multiselect.css');
    js::import($jsRoot . 'all.admin.js');
    js::import($jsRoot . 'bootstrap-multiselect.js');
}
if (isset($pageCSS)) {
    css::internal($pageCSS);
}
echo isset($this->config->site->favicon) ? html::icon(json_decode($this->config->site->favicon)->webPath) : (file_exists($this->app->getWwwRoot() . 'favicon.ico') ? html::icon($webRoot . 'favicon.ico') : '');
echo html::rss($this->createLink('rss', 'index', '', '', 'xml'), $config->site->name);
?>
<!--[if lt IE 9]>
<?php 
if ($config->debug) {
    js::import($jsRoot . 'html5shiv/min.js');
    js::import($jsRoot . 'respond/min.js');
} else {
예제 #15
0
<?php

if ($extView = $this->getExtViewFile(__FILE__)) {
    include $extView;
    return helper::cd();
}
$clientLang = $this->app->getClientLang();
if ($config->debug) {
    css::import($jsRoot . 'jquery/datetimepicker/min.css');
    js::import($jsRoot . 'jquery/datetimepicker/min.js');
}
?>
<script language='javascript'>
$(function()
{
    $.fn.fixedDate = function()
    {
        return $(this).each(function()
        {
            var $this = $(this);
            if($this.offset().top + 200 > $(document.body).height())
            {
                $this.attr('data-picker-position', 'top-right');
            }

            if($this.val() == '0000-00-00')
            {
                $this.focus(function(){if($this.val() == '0000-00-00') $this.val('').datetimepicker('update');}).blur(function(){if($this.val() == '') $this.val('0000-00-00')});
            }
        });
    };
<?php

if ($extView = $this->getExtViewFile(__FILE__)) {
    include $extView;
    return helper::cd();
}
css::import($defaultTheme . 'chosen.css');
js::import($jsRoot . 'jquery/chosen/chosen.min.js');
?>
<style>
#colorbox, #cboxOverlay, #cboxWrapper{z-index:9999;}
</style>
<script> 
noResultsMatch = '<?php 
echo $lang->noResultsMatch;
?>
';
$(document).ready(function()
{
    $("#productID").chosen({no_results_text: noResultsMatch});
    $("#projectID").chosen({no_results_text: noResultsMatch});
});
</script>
예제 #17
0
<?php

if ($extView = $this->getExtViewFile(__FILE__)) {
    include $extView;
    return helper::cd();
}
$webRoot = $this->app->getWebRoot();
$jsRoot = $webRoot . "js/";
$defaultTheme = $webRoot . 'theme/default/';
if ($config->debug) {
    css::import($defaultTheme . 'alert.css');
    js::import($jsRoot . 'jquery/alert/min.js');
}
예제 #18
0
파일: header.html.php 프로젝트: leowh/colla
<?php

if ($extView = $this->getExtViewFile(__FILE__)) {
    include $extView;
    return helper::cd();
}
include $this->app->getBasePath() . 'app/sys/common/view/header.html.php';
css::import($this->app->getClientTheme() . 'theme.oa.css');
예제 #19
0
if ($config->site->theme) {
    /* Import custom css. */
    if ($config->site->theme == 'colorful') {
        $customCss = str_replace($this->app->getDataRoot(), $this->app->getWebRoot() . 'data/', $config->site->ui->customCssFile);
        if (!empty($config->site->customVersion)) {
            $customCss .= "?v={$config->site->customVersion}";
        }
        if (!isset($config->site->customVersion)) {
            $customCss = $themeRoot . $config->site->theme . '/style.css';
        }
        css::import($customCss);
    } else {
        if ($config->site->theme != 'default') {
            css::import($themeRoot . $config->site->theme . '/style.css');
        }
        css::import($themeRoot . $config->site->theme . '/blog.css');
    }
}
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);
}
 * @license     LGPL (http://www.gnu.org/licenses/lgpl.html)
 * @author      Chunsheng Wang <*****@*****.**>
 * @package     productplan
 * @version     $Id: view.html.php 3341 2012-07-14 07:26:53Z chencongzhi520@gmail.com $
 * @link        http://www.zentao.net
 */
include '../../common/view/header.html.php';
include '../../common/view/tablesorter.html.php';
?>

<?php 
if (!empty($planStories) && true == false) {
    $webRoot = PM_SITE;
    $defaultTheme = $webRoot . 'theme/default/';
    css::import($defaultTheme . 'gante_styles/css/screen.css', 2.3);
    css::import($defaultTheme . 'gante_styles/css/gantti.css', 2.3);
    require '../../m_gante/lib/gantti.php';
    date_default_timezone_set('UTC');
    setlocale(LC_ALL, 'en_US');
    $data = array();
    foreach ($planStories as $storyID => $story) {
        foreach ($story->tasklist as $tasklists) {
            foreach ($tasklists as $key => $value) {
                if ($value->type == 'test') {
                    $data[] = array('label' => $story->id . "[" . $users[$value->assignedTo] . "]" . $value->name, 'storyid' => $story->id, 'start' => $value->estStarted, 'end' => $value->deadline . " 24:00:00", 'class' => 'urgent');
                } else {
                    $data[] = array('label' => $story->id . "[" . $users[$value->assignedTo] . "]" . $value->name, 'storyid' => $story->id, 'start' => $value->estStarted, 'end' => $value->deadline . " 24:00:00");
                }
            }
        }
    }
예제 #21
0
    ?>
<!DOCTYPE html>
<html>
<head>
  <meta charset='utf-8' />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <?php 
    echo html::title($title . ' - ' . $lang->zentaoPMS);
    js::exportConfigVars();
    if ($config->debug) {
        js::import($jsRoot . 'jquery/mobile/jquery-1.10.1.min.js', $config->version);
        js::import($jsRoot . 'm.my.full.js', $config->version);
        js::import($jsRoot . 'jquery/mobile/jquery.mobile.min.js', $config->version);
        js::import($jsRoot . 'jquery/jquery.pjax.js', $config->version);
        css::import($defaultTheme . 'jquery.mobile.css', $config->version);
        css::import($defaultTheme . 'm.style.css', $config->version);
        css::import($langTheme, $config->version);
    } else {
        js::import($jsRoot . 'm.all.js', $config->version);
        css::import($defaultTheme . 'm.' . $this->cookie->lang . '.' . $this->cookie->theme . '.css', $config->version);
    }
    if (isset($pageCss)) {
        css::internal($pageCss);
    }
    echo html::icon($webRoot . 'favicon.ico');
    ?>
</head>
<body>
<div data-role="page" id='main'>
<?php 
}
예제 #22
0
<?php

/**
 * The html template file of index method of index 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      Chunsheng Wang <*****@*****.**>
 * @package     ZenTaoPMS
 * @version     $Id: index.html.php 1947 2011-06-29 11:58:03Z wwccss $
 */
include '../../common/view/header.html.php';
include '../../common/view/sparkline.html.php';
css::import($defaultTheme . 'index.css', $config->version);
?>
<div class="row">
  <div class="col-md-8">
    <?php 
include './blockprojects.html.php';
?>
    <?php 
include './blockproducts.html.php';
?>
  </div>
  <div class="col-md-4">
    <?php 
if (common::hasPriv('company', 'dynamic')) {
    include './blockdynamic.html.php';
}
?>
  </div>
예제 #23
0
<?php

js::import($jsRoot . 'jplayer/dist/jplayer/jquery.jplayer.min.js');
css::import($jsRoot . 'jplayer/dist/skin/blue.monday/css/jplayer.blue.monday.min.css');
?>
 
<script type="text/javascript">
$(document).ready(function()
{
    $('embed').hide();
    $('embed').each(function(index)
    {
        src = $(this).attr('src');
        w = $(this).width();
        h = $(this).height();
        containerID = "media_container_" + index;
        id = "media_" + index;
        
        var reg = /\.flv$|\.flv\?|\.webm$|\.webm\?|\.wmv$|\.rtmp\?|\.rtmp$|\.mp3\?|\.mp3$|\.ogg\?|\.ogg$|\.mp4\?|\.mp4$|\.mp4\?/;
        mediaType = reg.exec(src);

        if(mediaType)
        {
            mediaType = mediaType.toString().replace('.', '');
            mediaType = mediaType.toString().replace('?', '');
            mediaTypeList = <?php 
echo json_encode($this->config->file->mediaTypes);
?>
;
            mediaType = eval("mediaTypeList." + mediaType.toLowerCase());
        }
<?php

if ($extView = $this->getExtViewFile(__FILE__)) {
    include $extView;
    return helper::cd();
}
css::import($defaultTheme . 'datepicker.css');
js::import($jsRoot . 'jquery/datepicker/min.js');
js::import($jsRoot . 'jquery/datepicker/date.js');
?>
<script language='javascript'>
Date.firstDayOfWeek = 1;
Date.format = 'yyyy-mm-dd';
$.dpText = {
    TEXT_PREV_YEAR      :   '去年',
    TEXT_PREV_MONTH     :   '上个月',
    TEXT_NEXT_YEAR      :   '明年',
    TEXT_NEXT_MONTH     :   '下个月',
    TEXT_CLOSE          :   '关闭',
    TEXT_CHOOSE_DATE    :   '&nbsp;&nbsp;&nbsp;&nbsp;'
}
Date.dayNames       = ['日', '一', '二', '三', '四', '五', '六'];
Date.abbrDayNames   = ['星期天', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
Date.monthNames     = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
 
$(function() {
    startDate = new Date(1970, 1, 1);
    $(".date").datePicker({createButton:true, startDate:startDate})
    .dpSetPosition($.dpConst.POS_TOP, $.dpConst.POS_RIGHT)
});
</script>
예제 #25
0
echo html::meta('keywords', strip_tags($keywords));
echo html::meta('description', strip_tags($desc));
if (isset($this->config->site->meta)) {
    echo $this->config->site->meta;
}
css::import($webRoot . 'zui/css/min.css');
css::import($themeRoot . 'common/style.css');
css::import($jsRoot . 'jquery/treeview/min.css');
/* Import customed css file if it exists. */
$siteCustomCssFile = $this->app->getDataRoot() . 'css' . DS . $this->config->site->code . DS . $this->config->template->{$this->device}->name . DS . $this->config->template->{$this->device}->theme . DS . 'style.css';
if ($this->config->multi && file_exists($siteCustomCssFile)) {
    css::import(sprintf($webRoot . 'data/css/%s/%s/%s/style.css?' . $this->config->template->customVersion, $config->site->code, $config->template->{$this->device}->name, $config->template->{$this->device}->theme), "id='themeStyle' data-template='{$template}' data-theme='{$theme}' data-device='{$this->device}'");
} else {
    $customCssFile = $this->app->getDataRoot() . 'css' . DS . $this->config->template->{$this->device}->name . DS . $this->config->template->{$this->device}->theme . DS . 'style.css';
    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), "id='themeStyle' data-template='{$template}' data-theme='{$theme}' data-device='{$this->device}'");
    }
}
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);
}
예제 #26
0
<?php

/**
 * The treeview view of common module of RanZhi.
 *
 * @copyright   Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
 * @license     ZPL (http://zpl.pub/page/zplv12.html)
 * @author      Chunsheng Wang <*****@*****.**>
 * @package     common 
 * @version     $Id: treeview.html.php 3138 2015-11-09 07:32:18Z chujilu $
 * @link        http://www.ranzhico.com
 */
css::import($jsRoot . 'jquery/treeview/min.css');
js::import($jsRoot . 'jquery/treeview/min.js');
?>
<script language='javascript'>$(function()
{
    $('.tree').each(function()
    {
        var $this = $(this);
        $this.treeview($.extend({collapsed: false, unique: false}, $this.data()));
    });
})</script>
예제 #27
0
echo html::meta('keywords', strip_tags($keywords));
echo html::meta('description', strip_tags($desc));
if (isset($this->config->site->meta)) {
    echo $this->config->site->meta;
}
css::import($webRoot . 'zui/css/min.css');
css::import($themeRoot . 'common/style.css');
css::import($jsRoot . 'jquery/treeview/min.css');
/* Import customed css file if it exists. */
$siteCustomCssFile = $this->app->getDataRoot() . 'css' . DS . $this->config->site->code . DS . $this->config->template->{$this->device}->name . DS . $this->config->template->{$this->device}->theme . DS . 'style.css';
if ($this->config->multi && file_exists($siteCustomCssFile)) {
    css::import(sprintf($webRoot . 'data/css/%s/%s/%s/style.css?' . $this->config->template->customVersion, $config->site->code, $config->template->{$this->device}->name, $config->template->{$this->device}->theme));
} else {
    $customCssFile = $this->app->getDataRoot() . 'css' . DS . $this->config->template->{$this->device}->name . DS . $this->config->template->{$this->device}->theme . DS . 'style.css';
    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);
}
예제 #28
0
<?php

/**
 * The create view file of repo module of ZenTaoPMS.
 *
 * @copyright   Copyright 2009-2012 青岛易软天创网络科技有限公司 (QingDao Nature Easy Soft Network Technology Co,LTD www.cnezsoft.com)
 * @author      Wang Yidong, Zhu Jinyong 
 * @package     repo
 * @version     $Id: blame.html.php $
 */
include '../../common/view/header.lite.html.php';
js::import($jsRoot . 'misc/highlight/highlight.pack.js');
css::import($jsRoot . 'misc/highlight/styles/github.css');
?>
<div class="code panel">
  <div class='panel-heading'>
    <strong class='text-14px'><?php 
echo $entry;
?>
</strong>
    <?php 
$encodePath = $this->repo->encodePath($entry);
?>
    <div class='panel-actions'>
      <div class='btn-group'>
        <?php 
echo html::commonButton(zget($lang->repo->encodingList, $encoding, $lang->repo->encoding) . "<span class='caret'></span>", "id='encoding' data-toggle='dropdown'", 'btn dropdown-toggle');
?>
        <ul class='dropdown-menu' role='menu' aria-labelledby='encoding'>
          <?php 
foreach ($lang->repo->encodingList as $key => $val) {
예제 #29
0
<?php

if ($extView = $this->getExtViewFile(__FILE__)) {
    include $extView;
    return helper::cd();
}
if ($config->debug) {
    css::import($defaultTheme . 'treeview.css');
    js::import($jsRoot . 'jquery/treeview/min.js');
}
?>
<script language='javascript'>$(function() { $("#tree").treeview({ persist: "cookie", collapsed: true, unique: true }) })</script>
예제 #30
0
<?php

$webRoot = $this->app->getWebRoot();
$jsRoot = $webRoot . 'js/';
?>
<!DOCTYPE html>
<html lang='en'>
<head>
 <?php 
if (isset($title)) {
    echo html::title($title);
}
echo html::meta('charset', 'utf-8');
echo html::meta('viewport', 'width=device-width, initial-scale=1.0');
css::import($webRoot . 'theme/bootstrap/css/bootstrap.min.css');
css::import($webRoot . 'theme/my.css');
css::import($webRoot . 'theme/bootstrap/css/bootstrap-responsive.min.css');
if (isset($pageCss)) {
    css::internal($pageCss);
}
js::import($jsRoot . 'jquery.min.js', $config->version);
js::import($jsRoot . 'bootstrap.min.js', $config->version);
js::import($jsRoot . 'html5shiv.min.js', $config->version, 'lt IE 9');
js::import($jsRoot . 'my.js', $config->version);
js::exportConfigVars();
echo html::icon($webRoot . 'favicon.ico');
?>
</head>
<body><div id='main'>
<?php 
include dirname(__FILE__) . '/nav.html.php';