当前位置: 首页>>代码示例>>PHP>>正文


PHP js::import方法代码示例

本文整理汇总了PHP中js::import方法的典型用法代码示例。如果您正苦于以下问题:PHP js::import方法的具体用法?PHP js::import怎么用?PHP js::import使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在js的用法示例。


在下文中一共展示了js::import方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

        css::import($clientTheme . 'style.css', $config->version);
    }
    js::import($jsRoot . 'all.js');
}
if (RUN_MODE == 'admin') {
    css::import($themeRoot . 'default/admin.css');
}
if (isset($pageCSS)) {
    css::internal($pageCSS);
}
?>
<!--[if lt IE 9]>
<?php 
js::import($jsRoot . 'html5shiv/min.js');
js::import($jsRoot . 'respond/min.js');
?>
<![endif]-->
<!--[if lt IE 10]>
<?php 
js::import($jsRoot . 'jquery/placeholder/min.js');
?>
<![endif]-->
<?php 
js::set('lang', $lang->js);
?>
</head>
<body class='m-<?php 
echo $this->app->getModuleName() . '-' . $this->app->getMethodName();
?>
'>
开发者ID:leowh,项目名称:colla,代码行数:30,代码来源:header.lite.html.php

示例2: explode

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', '|',
'justifyleft', 'justifycenter', 'justifyright', '|',
'emoticons', 'image', '|', 'link', 'unlink', 'anchor', 'flash', 'media', 'baidumap', '/',
开发者ID:dyp8848,项目名称:chanzhieps,代码行数:31,代码来源:kindeditor.html.php

示例3: dirname

<?php

if (!defined("RUN_MODE")) {
    die;
}
if ($extView = $this->getExtViewFile(__FILE__)) {
    include $extView;
    return helper::cd();
}
if ($config->debug) {
    js::import($jsRoot . 'jquery/form/min.js');
}
if (isset($pageJS)) {
    js::execute($pageJS);
}
/* Load hook files for current page. */
$extPath = dirname(dirname(dirname(__FILE__))) . '/common/ext/view/';
$extHookRule = $extPath . 'footer.admin.*.hook.php';
$extHookFiles = glob($extHookRule);
if ($extHookFiles) {
    foreach ($extHookFiles as $extHookFile) {
        include $extHookFile;
    }
}
/* Load hook file for site.*/
$siteExtPath = dirname(dirname(dirname(__FILE__))) . "/common/ext/_{$config->site->code}/view/";
$extHookRule = $siteExtPath . 'footer.admin.*.hook.php';
$extHookFiles = glob($extHookRule);
if ($extHookFiles) {
    foreach ($extHookFiles as $extHookFile) {
        include $extHookFile;
开发者ID:hansen1416,项目名称:eastsoft,代码行数:31,代码来源:footer.html.php

示例4: nextAccentColor

if ($extView = $this->getExtViewFile(__FILE__)) {
    include $extView;
    return helper::cd();
}
?>
<style>
.table-chart tr > td.chart-color {padding-left: 0!important; text-align: center; padding-right: 0!important; color: #f1f1f1}
.chart-wrapper {padding: 10px; background-color: #f1f1f1; border: 1px solid #e5e5e5}
</style>
<!--[if lte IE 8]>
<?php 
js::import($jsRoot . 'chart/excanvas.min.js');
?>
<![endif]-->
<?php 
js::import($jsRoot . 'chart/min.js');
?>
<script>
(function()
{
    var colorIndex = 0;
    function nextAccentColor(idx)
    {
        if(typeof idx === 'undefined') idx = colorIndex++;
        return new $.zui.Color({h: idx * 67 % 360, s: 0.5, l: 0.55});
    }

    jQuery.fn.tableChart = function()
    {
        $(this).each(function()
        {
开发者ID:eric0614,项目名称:chanzhieps,代码行数:31,代码来源:chart.html.php

示例5:

<?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>
开发者ID:dyp8848,项目名称:chanzhieps,代码行数:24,代码来源:chosen.html.php

示例6: isset

$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>
开发者ID:shshenpengfei,项目名称:scrum_project_manage_system,代码行数:30,代码来源:header.lite.html.php

示例7:

<?php

/**
 * The index view file of admin 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 <guanxiyingl@xirangit.com>
 * @package     admin
 * @version     $Id$
 * @link        http://www.chanzhi.org
 */
include '../../common/view/header.admin.html.php';
if (!$ignoreUpgrade) {
    js::import('http://api.chanzhi.org/latest.php?version=' . $this->config->version);
}
?>
<div class='container' id='shortcutBox'>

  <?php 
if (strpos($this->server->php_self, '/admin.php') !== false && empty($this->config->global->ignoreAdminEntry)) {
    ?>
  <form method='post' id='ajaxForm' action='<?php 
    echo $this->createLink('admin', 'ignore');
    ?>
'>
    <div class="alert alert-danger">
      <button type="submit" class="close">&times;</button>
      <strong><?php 
    echo $lang->admin->adminEntry;
    ?>
开发者ID:qiaqiali,项目名称:chanzhieps,代码行数:31,代码来源:index.html.php

示例8: sortTable

<?php

if ($extView = $this->getExtViewFile(__FILE__)) {
    include $extView;
    return helper::cd();
}
js::import($jsRoot . 'jquery/tablesorter/min.js');
js::import($jsRoot . 'jquery/tablesorter/metadata.js');
?>
<script language='javascript'>

/* sort table after page load. */
$(function() { sortTable(); } );

function sortTable()
{
    $('.tablesorter').tablesorter(
    {
        saveSort: true,
        widgets: ['zebra', 'saveSort'], 
        widgetZebra: {css: ['odd', 'even'] }
    });

    $('.tablesorter tbody tr').hover(
        function(){$(this).addClass('hoover')},
        function(){$(this).removeClass('hoover')}
    );

    $('.tablesorter tbody tr').click(
        function()
        {
开发者ID:fanscky,项目名称:HTPMS,代码行数:31,代码来源:tablesorter.html.php

示例9: function

<?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')});
            }
        });
    };
开发者ID:caiwenhao,项目名称:zentao,代码行数:31,代码来源:datepicker.html.php

示例10: Date

<?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>
开发者ID:shshenpengfei,项目名称:scrum_project_manage_system,代码行数:31,代码来源:datepicker.html.php

示例11:

<?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) {
开发者ID:xupnge1314,项目名称:project,代码行数:31,代码来源:blame.html.php

示例12: isset

} else {
    js::import($jsRoot . 'all.ie9.js');
}
?>
  <![endif]-->
  <?php 
js::set('lang', $lang->js);
$baseCustom = isset($this->config->template->custom) ? json_decode($this->config->template->custom, true) : array();
if (!empty($baseCustom[$template][$theme]['js'])) {
    js::execute($baseCustom[$template][$theme]['js']);
}
if (!empty($config->oauth->sina) and !is_object($config->oauth->sina)) {
    $sina = json_decode($config->oauth->sina);
}
if (!empty($config->oauth->qq) and !is_object($config->oauth->qq)) {
    $qq = json_decode($config->oauth->qq);
}
if (!empty($sina->verification)) {
    echo $sina->verification;
}
if (!empty($qq->verification)) {
    echo $qq->verification;
}
if (!empty($sina->widget)) {
    js::import('http://tjs.sjs.sinajs.cn/open/api/js/wb.js');
}
$this->block->printRegion($layouts, 'all', 'header');
?>
</head>
<body>
开发者ID:lianghaisong,项目名称:chanzhieps,代码行数:30,代码来源:header.lite.html.php

示例13: array

                  <?php 
echo html::submitButton($lang->login) . html::hidden('referer', $referer);
?>
                  <?php 
echo html::checkbox('keepLogin', array('on' => $lang->user->keepLogin));
?>
                </td>
              </tr>
            </table>
          </div>
        </div>
      </form>
    </div>
  </div>
  <div class='notice text-center'>
  </div>
</div>
<?php 
if ($config->debug) {
    js::import($jsRoot . 'jquery/form/min.js');
}
if (isset($pageJS)) {
    js::execute($pageJS);
}
js::import("http://api.ranzhico.com/updater-latest-{$config->version}.html");
js::set('ignoreNotice', $ignoreNotice);
js::set('ignore', $lang->user->ignore);
?>
</body>
</html>
开发者ID:leowh,项目名称:colla,代码行数:30,代码来源:login.html.php

示例14: foreach

        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");
                }
            }
        }
    }
    if ($data) {
        $gantti = new Gantti($data, array('title' => '需求分解甘特图', 'cellwidth' => 60, 'cellheight' => 33));
    }
    echo $gantti;
    js::import($webRoot . 'js/raphael-min.js');
    js::import($webRoot . 'js/ganttLine.js');
}
?>
<style>
    .gantt header .gantt-day.today span{color:#f00;}
</style>
<table class='cont-rt5'>
  <caption><?php 
echo $plan->title . $lang->colon . $lang->productplan->view;
?>
</caption>
  <tr valign='top'>
    <td>
      <fieldset>
        <legend><?php 
echo $lang->productplan->desc;
开发者ID:shshenpengfei,项目名称:scrum_project_manage_system,代码行数:31,代码来源:view.html.php

示例15: function

<?php

if ($extView = $this->getExtViewFile(__FILE__)) {
    include $extView;
    return helper::cd();
}
js::import($jsRoot . 'ace/ace.js');
?>
<style>
.editor-wrapper {position: relative; z-index: 1;}
.editor-wrapper pre {z-index: 2}
.editor-wrapper .actions {position: absolute; right: 15px; top: 10px; z-index: 3;}
.editor-wrapper .actions > a {color: #808080; border: 1px solid #aaa; min-width: 14px; height: 24px; line-height: 24px; text-align: center; display: block; border-radius: 3px; float: left; margin-left: 6px; padding: 0 5px}
.editor-wrapper .actions > a:hover {color: #999}
.editor-wrapper.fullscreen {position: fixed; left: 0; top: 40px; bottom: 40px; right: 0}
.editor-wrapper.fullscreen .pre {height: 100%; width: 100%}

.modal-dialog.editor-fullscreen {position: absolute; bottom: 0; right: 0; top: 0; left: 0;  width: 100%!important; margin: 0!important; height: auto!important; border-radius: 0}
.modal-dialog.editor-fullscreen .editor-wrapper.fullscreen {bottom: 80px;}
.modal-dialog.editor-fullscreen .editor-actions {position: fixed; bottom: 15px; left: 20px;}
</style>
<script>
jQuery.fn.codeeditor = function(options)
{
    return this.each(function()
    {
        var $this = $(this);
        var setting = $.extend({mode: $this.data('mode') || 'html', theme: 'textmate'}, $this.data(), options);
        if(setting.height) $this.css('height', setting.height);
        $this.css('display', 'none');
        var id = $this.attr('id') + '-editor';
开发者ID:mustafakarali,项目名称:b2c-1,代码行数:31,代码来源:codeeditor.html.php


注:本文中的js::import方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。