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


PHP js::execute方法代码示例

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


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

示例1: isset

<![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 
$template = $this->config->template->{$this->device}->name ? $this->config->template->{$this->device}->name : 'default';
$theme = $this->config->template->{$this->device}->theme ? $this->config->template->{$this->device}->theme : 'default';
$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']);
}
?>
</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">
        <?php 
$logoSetting = isset($this->config->site->logo) ? json_decode($this->config->site->logo) : new stdclass();
?>
开发者ID:peirancao,项目名称:chanzhieps,代码行数:31,代码来源:header.html.php

示例2:

<div class='child hide'>
  <div class='form-group category'>
    <div class='col-xs-6 col-md-4 col-md-offset-2'><?php 
echo html::input("children[]", '', "class='form-control' placeholder='{$this->lang->category->name}'");
?>
</div>
    <div class='col-xs-6 col-md-4'><?php 
echo html::input("alias[]", '', "class='form-control' placeholder='{$this->lang->category->alias}'");
?>
</div>
    <div class='col-xs-6 col-md-2'>
      <?php 
echo "<i class='icon-move sort-handle'> </i>";
?>
      <?php 
echo html::a('javascript:;', "<i class='icon-plus'></i>", "class='btn btn-link pull-left btn-mini btn-plus'");
?>
      <?php 
echo html::a('javascript:;', "<i class='icon-remove'></i>", "class='btn btn-link pull-left btn-mini btn-remove'");
?>
    </div>
    <?php 
echo html::hidden('mode[]', 'new');
?>
  </div>
</div>
<?php 
js::set('maxID', $maxID);
if (isset($pageJS)) {
    js::execute($pageJS);
}
开发者ID:jnan77,项目名称:chanzhieps,代码行数:31,代码来源:children.html.php

示例3:

if (isset($error) and $error) {
    ?>
<div class='alert alert-danger'>
  <i class='icon-info-sign'></i>
  <div class='content'><?php 
    $error;
    ?>
</div>
</div>
<?php 
} else {
    ?>
<div class='alert alert-success'>
  <i class='icon-ok-sign'></i>
  <div class='content'>
    <h3><?php 
    echo $title;
    ?>
</h3>
    <p class='text-center'><?php 
    echo html::a(inlink('browse', 'type=installed'), $lang->package->viewInstalled, "class='btn'");
    ?>
</p>
    <?php 
    echo js::execute("parent.\$('.clearfix').load(window.parent.location.href + ' .clearfix')");
    ?>
  </div>
</div>
<?php 
}
include '../../common/view/footer.modal.html.php';
开发者ID:wenyinos,项目名称:chanzhieps,代码行数:31,代码来源:activate.html.php

示例4:

<![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">
        <?php 
$template = $this->config->template->{$this->device}->name;
?>
开发者ID:echenxin-company,项目名称:QuanFangXing,代码行数:31,代码来源:header.html.php

示例5: array_keys

 * 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 <guanxiying@xirangit.com>
 * @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>
    <div class='article' id='blog' data-id='<?php 
开发者ID:dyp8848,项目名称:chanzhieps,代码行数:31,代码来源:view.html.php

示例6: explode

 * @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";
    ?>
开发者ID:hansen1416,项目名称:eastsoft,代码行数:31,代码来源:view.html.php

示例7: dirname

 * @package     common 
 * @version     $Id: footer.html.php 3138 2015-11-09 07:32:18Z chujilu $
 * @link        http://www.ranzhico.com
 */
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.*.hook.php';
$extHookFiles = glob($extHookRule);
if ($extHookFiles) {
    foreach ($extHookFiles as $extHookFile) {
        include $extHookFile;
    }
}
if ($this->loadModel('cron')->runable()) {
    js::execute('startCron()');
}
?>
</div>
</body>
</html>
开发者ID:leowh,项目名称:colla,代码行数:30,代码来源:footer.html.php

示例8:

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

示例9: str_replace

        $modalWidth = 700;
    }
    if (is_numeric($modalWidth)) {
        $modalWidth .= 'px';
    } else {
        if (isset($modalSizeList[$modalWidth])) {
            $modalWidth = $modalSizeList[$modalWidth];
        }
    }
    if (isset($pageCSS)) {
        css::internal($pageCSS);
    }
    /* set requiredField. */
    if (isset($this->config->{$moduleName}->require->{$methodName})) {
        $requiredFields = str_replace(' ', '', $this->config->{$moduleName}->require->{$methodName});
        js::execute("config.requiredFields = \"{$requiredFields}\"; setRequiredFields();");
    }
    ?>
<div class="modal-dialog" style="width:<?php 
    echo $modalWidth;
    ?>
;">
  <div class="modal-content">
    <div class="modal-header">
      <?php 
    echo html::closeButton();
    ?>
      <strong class="modal-title"><?php 
    if (!empty($title)) {
        echo $title;
    }
开发者ID:leowh,项目名称:colla,代码行数:31,代码来源:header.modal.html.php


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