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


PHP html::addJsFile方法代码示例

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


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

示例1: __construct

 function __construct($SET)
 {
     $this->id = i();
     html::addJsFile(sysURL . 'core/js/qgSettingsEditor.js');
     $this->SET = $SET;
     $_SESSION['qgSettingsEditor roots'][$SET->i] = 1;
 }
开发者ID:atifzaidi,项目名称:shwups-cms,代码行数:7,代码来源:qgSettingsEditor.class.php

示例2: init

 function init()
 {
     if (is_file(appPATH . 'qg/' . $this->mod . '/pub/main.js')) {
         html::addJsFile(appURL . 'qg/' . $this->mod . '/pub/main.js');
     }
     html::addCssFile(appURL . 'qg/' . $this->mod . '/pub/base.css', 'dr8og', false);
     html::addCssFile(appURL . 'qg/' . $this->mod . '/pub/custom.css', 'dr8og', false);
     if ($gFont = $this->getLayoutPage()->SET['google-font']->v) {
         $gFont = str_replace('|', '%7C', $gFont);
         // rawurlencode ?
         html::$head .= '<link rel=stylesheet href="' . hee($gFont) . '">';
     }
     if ($this->LPage->edit) {
         html::addJsFile(sysURL . 'cms.layouter3/pub/qgElSty/qgCssProps.js', '43l5k');
         html::addJsFile(sysURL . 'cms.layouter3/pub/qgElSty/q1CssText.js', '43l5k');
         html::addJsFile(sysURL . 'cms.layouter3/pub/qgElSty/qgStyleEditor.js', '43l5k');
         html::addJsFile(sysURL . 'cms.layouter3/pub/qgElSty/qgStyleSheetEditor.js', '43l5k');
         html::addJsFile(sysURL . 'cms.layouter3/pub/qgElSty/spectrum.js', '43l5k');
         html::addCssFile(sysURL . 'cms.layouter3/pub/qgElSty/spectrum.css', '43l5k', 0);
         html::addCssFile(sysURL . 'cms.layouter3/pub/qgElSty/main.css', '43l5k');
         html::addJsFile(sysURL . 'cms.layouter3/pub/plupload/js/plupload.full.js', '43l5k');
         html::addJsFile(sysURL . 'cms.layouter3/pub/edit.js', '43l5k');
     }
 }
开发者ID:nuxodin,项目名称:shwups-cms-v4,代码行数:24,代码来源:qg.php

示例3: array

        return false;
    }
    // inside "@"
    $vs = array('message' => $msg, 'file' => $file, 'line' => $line, 'nr' => $nr, 'backtrace' => debug_backtrace(0));
    error_report($vs);
    //return false;
}, E_ALL | E_STRICT);
// fatal errors
register_shutdown_function(function () {
    // what about errors occurring in other shutdown_functions?
    $error = error_get_last();
    if ($error !== null) {
        $fatals = array(E_USER_ERROR => 'Fatal Error', E_ERROR => 'Fatal Error', E_PARSE => 'Parse Error', E_CORE_ERROR => 'Core Error', E_CORE_WARNING => 'Core Warning', E_COMPILE_ERROR => 'Compile Error', E_COMPILE_WARNING => 'Compile Warning');
        if (isset($fatals[$error['type']])) {
            $error['message'] = $fatals[$error['type']] . ': ' . $error['message'];
            error_report($error);
        }
    }
    ini_set("log_errors", 1);
});
ini_set("log_errors", 0);
qg::on('deliverHtml', function () {
    if (G()->SET['error_report']['javascript']->v) {
        html::$compressJs = false;
        if (G()->SET['error_report']['javascript TraceKit']->v) {
            html::addJsFile(sysURL . 'error_report/pub/tracekit/tracekit.js', 'core');
            // tracekit needs jquery
        }
        html::addJsFile(sysURL . 'error_report/pub/main.js', 'core');
    }
});
开发者ID:nuxodin,项目名称:shwups-cms-v4,代码行数:31,代码来源:qg.php

示例4:

<?php

namespace qg;

html::addJsFile(sysURL . 'core/js/c1.js', 'be-layout');
html::addJsFile(sysURL . 'core/js/c1/fix.js', 'be-layout');
// firefox
html::addJsFile(sysURL . 'core/js/c1/focusIn.js', 'be-layout');
html::addJsFile(sysURL . 'core/js/c1/targetIn.js', 'be-layout');
html::addJsFile(sysURL . 'core/js/c1/css/theme.js', 'be-layout');
html::addJSFile(sysURL . 'core/js/c1.js', 'core');
$matches = preg_match('/MSIE ([0-9.]+)/', $_SERVER['HTTP_USER_AGENT'], $match);
if (isset($match[1]) && $match[1] < 9) {
    html::addJSFile(sysURL . 'core/js/jQuery1.js', 'core');
} else {
    html::addJSFile(sysURL . 'core/js/jQuery.js', 'core');
}
html::addJSFile(sysURL . 'core/js/qg/divers.js', 'core');
html::addJSFile(sysURL . 'cms/pub/js/cms.js', 'cms');
html::addCssFile(sysURL . 'core/js/c1/css/normalize.css', 'be-layout');
html::addCssFile(sysURL . 'core/js/c1/css/recommend.css', 'be-layout');
html::addCssFile(sysURL . 'core/js/c1/css/theme.css', 'be-layout');
html::$meta['viewport'] = 'width=device-width, initial-scale=1, maximum-scale=1';
$Page = $Cont->Page;
G()->SET['cms']['backend']['lastpage']->setUser($Page->id);
?>
<div>
	<div id=header>
		<div id=logo></div>
		<div id=logo2></div>
	</div>
开发者ID:nuxodin,项目名称:shwups-cms-v4,代码行数:31,代码来源:index.php

示例5: getRaw

 function getRaw($vars = array())
 {
     if (!$this->is) {
         trigger_error('Seite existiert nicht!');
         return;
     }
     $Cont = $this;
     $res = is_file($this->modPath . 'control.php') ? include $this->modPath . 'control.php' : null;
     if (is_file($this->modPath . 'index.php')) {
         $T = new template($res);
         $T->assign('vars', $vars);
         $T->assign('Cont', $this);
         $str = $T->get($this->modPath . 'index.php');
     } else {
         $str = '<div>' . ($Cont->edit ? L('Das Modul ist nicht existiert nicht!') : '') . '</div>';
     }
     if (is_file($this->modPath . 'pub/main.js')) {
         html::addJsFile($this->modUrl . 'pub/main.js');
     }
     if (is_file($this->modPath . 'pub/main.css')) {
         html::addCSSFile($this->modUrl . 'pub/main.css');
     }
     return $str;
 }
开发者ID:atifzaidi,项目名称:shwups-cms,代码行数:24,代码来源:Page.class.php

示例6: rTicket

<?php

$wurl = sysURL . 'js.webshims/js-webshim/minified/';
html::addJsFile($wurl . 'polyfiller.js', 'core');
html::$js .= "\$.webshims.cfg.basePath = '" . $wurl . "shims/'; ";
html::$js .= "\$.webshims.polyfill('forms forms-ext'); ";
$url = $Cont->modUrl . 'pub/';
$Ticket = new rTicket();
$Ticket->setId($Cont->PFX);
$Ticket->setNum(1);
if (isset($sent) && $sent) {
    echo '<p>' . $Cont->text('thankyou') . '</p>';
    return;
}
?>
<form method=post>
	<?php 
echo $Ticket->hiddenField();
?>
	<table class="mailform c1-padding">
	<?php 
foreach ($Cont->SET['elements'] as $id => $element) {
    ?>
		<tr>
		<?php 
    if ($element['type']->v != 'description') {
        ?>
			<td style="width:<?php 
        echo $Cont->SET['namewidth'];
        ?>
px">
开发者ID:atifzaidi,项目名称:shwups-cms,代码行数:31,代码来源:index.php

示例7: min

<?php

namespace qg;

if ($Cont->edit) {
    html::addJsFile($Cont->modUrl . 'pub/edit.js');
}
if (!$Cont->SET->has('cols')) {
    $Cont->SET['cols'] = 2;
    $Cont->SET['rows'] = 2;
}
$cols = min((int) $Cont->SET['cols']->v, 15);
$rows = min((int) $Cont->SET['rows']->v, 100);
$cols = max($cols, 1);
$rows = max($rows, 1);
$units = $Cont->SET['units']->v === 'px' ? 'px' : '%';
if (isset($_GET['export_table']) and $_GET['export_table'] == $Cont->id) {
    while (ob_get_level()) {
        ob_end_clean();
    }
    header('Content-Type: application/x-msdownload');
    header('Content-Disposition: inline; filename="' . $Cont->title() . '_' . date("d.m.y") . '.xls"');
    header('Expires: 0');
    header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
    header('Pragma: public');
    $data = '';
    for ($i = 0; $i < $rows; $i++) {
        $r = $Cont->SET['direction']->v ? $rows - $i : $i;
        for ($j = 0; $j < $cols; $j++) {
            $data .= "\"" . strip_tags($Cont->text($r . '_' . $j)) . "\"\t";
        }
开发者ID:nuxodin,项目名称:shwups-cms-v4,代码行数:31,代码来源:index.php

示例8:

     html::addJSFile(sysURL . 'core/js/qg/fileHelpers.js', 'cms/edit');
     html::addJSFile(sysURL . 'core/js/qgRte/crossbrowser.js', 'cms/edit');
     html::addJSFile(sysURL . 'core/js/qgRte/htmlparser.js', 'cms/edit');
     html::addJSFile(sysURL . 'core/js/qgRte/helpers.js', 'cms/edit');
     html::addCSSFile(sysURL . 'core/js/qgRte/main.css', 'cms/edit');
     html::addJSFile(sysURL . 'core/js/qgRte/Rte.js', 'cms/edit');
     html::addJSFile(sysURL . 'core/js/qgRte/Rte.ui.js', 'cms/edit');
     html::addJSFile(sysURL . 'core/js/qgRte/Rte.ui.items.js', 'cms/edit');
     html::addJsFile(sysURL . 'core/js/jQuery/fn/dynatree.js', 'cms/edit');
     html::addCSSFile(sysURL . 'core/js/jQuery/fn/dynatree/skin-vista/ui.dynatree.css', 'cms/edit');
     html::addJSFile(sysURL . 'core/js/qgCalendar/date_extend.js', 'cms/edit');
     html::addJSFile(sysURL . 'core/js/qgCalendar/qgCalendar.js', 'cms/edit');
     html::addJSFile(sysURL . 'core/js/qgCalendar/qgDatePicker.js', 'cms/edit');
     html::addJSFile(sysURL . 'core/js/qgCalendar/timepicker/nogray_time_picker.js', 'cms/edit');
     html::addCSSFile(sysURL . 'core/js/qgCalendar/calendar.css', 'cms/edit');
     html::addJsFile(sysURL . 'core/js/qg/tableHandles.js', 'cms/edit');
     html::addJSFile(sysURL . 'cms/pub/js/frontend.js', 'cms/edit');
     html::addJSFile(sysURL . 'cms/pub/js/rte.js', 'cms/edit');
     html::addJSFile(sysURL . 'cms/pub/js/ddConts.js', 'cms/edit');
     html::addJSFile(sysURL . 'cms/pub/js/dropPaste.js', 'cms/edit');
     html::addJSFile(sysURL . 'cms/pub/js/dropPasteHelper.js', 'cms/edit');
     html::addJSFile(sysURL . 'cms/pub/js/panel.js', 'cms/edit');
     html::addJSFile(sysURL . 'cms/pub/js/tree.js', 'cms/edit');
     html::addJSFile(sysURL . 'cms/pub/js/contextmenu.js', 'cms/edit');
     //html::addJSFile( sysURL.'cms/pub/js/help.js',                 'cms/edit');
     html::addCSSFile(sysURL . 'core/css/q1Rst.css', 'cms/edit');
     html::addCSSFile(sysURL . 'cms/pub/css/main.css', 'cms/edit');
     html::addCSSFile(sysURL . 'cms/pub/css/panel.css', 'cms/edit');
     html::addCSSFile(sysURL . 'cms/pub/css/tree.css', 'cms/edit');
 } else {
     html::addCSSFile(sysURL . 'cms/pub/css/off.css', 'cms/noEdit');
开发者ID:nikbucher,项目名称:shwups-cms-v4,代码行数:31,代码来源:qg.php

示例9: getRaw

 function getRaw($vars = array())
 {
     if (!$this->is) {
         trigger_error('Seite existiert nicht!');
         return;
     }
     $modPath = sysPATH . $this->vs['module'] . '/';
     // dont use the getter;
     $Cont = $this;
     $res = is_file($modPath . 'control.php') ? include $modPath . 'control.php' : null;
     if (is_file($modPath . 'index.php')) {
         $T = new template($res);
         $T->assign('vars', $vars);
         $T->assign('Cont', $this);
         $str = $T->get($modPath . 'index.php');
         qg::fire('cms::parseTemplate', array('Cont' => $Cont, 'string' => &$str));
     } else {
         $str = '<div>' . ($this->edit ? L('Das Modul ist nicht existiert nicht!') : '') . '</div>';
     }
     is_file($modPath . 'pub/main.js') && html::addJsFile($this->modUrl . 'pub/main.js');
     is_file($modPath . 'pub/main.css') && html::addCSSFile($this->modUrl . 'pub/main.css');
     return $str;
 }
开发者ID:nuxodin,项目名称:shwups-cms-v4,代码行数:23,代码来源:Page.class.php

示例10: cmsLayouter3

<?php

$Layouter = new cmsLayouter3($Cont->vs['module']);
$Layouter->init();
$LPage = $Layouter->getLayoutPage();
if (is_file($Layouter->customPath() . 'main.js')) {
    html::addJsFile(preg_replace('/\\/$/', '', path2uri($Layouter->customPath() . 'main.js')));
}
include $Layouter->customTemplatePath();
开发者ID:atifzaidi,项目名称:shwups-cms,代码行数:9,代码来源:index.php

示例11: array

            }
            if (G()->SET['cms']['pages']->has($Cont->id)) {
                // todo: old settings are cached for other pages
                $Cont->SET->get();
            } else {
                $Cont->_SET = array();
            }
        };
        vers::setLog($_GET['qgCmsVersLog']);
        $generate($pid);
        vers::setLog(0);
    }
});
qg::on('deliverHtml', function () {
    if (Page()->edit && !isset($_GET['qgVers'])) {
        html::addJsFile(sysURL . 'cms.versions/pub/vers.js');
    }
});
class serverInterface_cms_vers
{
    static function rollBackCont($pid, $log)
    {
        $Cont = Page($pid);
        if ($Cont->access() < 2) {
            return false;
        }
        backToLog($pid, $log);
    }
}
function backtoLog($pid, $log)
{
开发者ID:nikbucher,项目名称:shwups-cms-v4,代码行数:31,代码来源:qg.php


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