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


PHP js::set方法代码示例

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


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

示例1:

        $deleteURL = $this->createLink('todo', 'delete', "todoID={$todo->id}&confirm=yes");
        echo html::a("javascript:ajaxDelete(\"{$deleteURL}\",\"todoList\",confirmDelete)", '<i class="icon-remove"></i>', '', "class='btn-icon' title='{$lang->todo->delete}'");
    }
    ?>
      </td>
    </tr>
    <?php 
}
?>
    </tbody>
    <?php 
if (count($todos)) {
    ?>
    <tfoot>
      <tr>
        <td colspan='9' align='left'>
          <?php 
    $pager->show();
    ?>
        </td>
      </tr>
    </tfoot>
    <?php 
}
?>
  </table>
</form>
</div>
<?php 
js::set('listName', 'todoList');
include '../../common/view/footer.html.php';
开发者ID:XMGmen,项目名称:zentao,代码行数:31,代码来源:todo.html.php

示例2:

<?php

/**
 * The view file of blog view method 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 <guanxiying@xirangit.com>
 * @package     blog
 * @version     $Id: view.html.php 3138 2015-11-09 07:32:18Z chujilu $
 * @link        http://www.ranzhico.com
 */
include './header.html.php';
$root = '<li>' . $this->lang->currentPos . $this->lang->colon . html::a($this->inlink('index'), $lang->home) . '</li>';
js::set('articleID', $article->id);
js::set('categoryID', $category->id);
?>
<div class='col-md-10'>
  <div class='article'>
    <header>
      <h1><?php 
echo $article->title;
?>
</h1>
      <dl class='dl-inline'>
        <dd data-toggle='tooltip' data-placement='top' data-original-title='<?php 
printf($lang->article->lblAddedDate, $article->createdDate);
?>
'><i class="icon-time icon-large"></i> <?php 
echo $article->createdDate;
?>
开发者ID:leowh,项目名称:colla,代码行数:31,代码来源:view.html.php

示例3: count

/**
 * The create view file of product module of chanzhiEPS.
 *
 * @copyright   Copyright 2013-2013 青岛息壤网络信息有限公司 (QingDao XiRang Network Infomation Co,LTD www.xirangit.com)
 * @license     http://api.chanzhi.org/goto.php?item=license
 * @author      Xiying Guan <guanxiying@xirangit.com>
 * @package     product
 * @version     $Id$
 * @link        http://www.chanzhi.org
 */
include '../../common/view/header.admin.html.php';
include '../../common/view/kindeditor.html.php';
include '../../common/view/chosen.html.php';
js::set('key', count($product->attributes));
js::set('currency', $lang->product->currency);
?>
<div class='panel'>
  <div class='panel-heading'><?php 
echo $lang->product->edit;
?>
</div>
  <div class='panel-body'>
    <form method='post' id='ajaxForm'>
      <table class='table table-form'>
        <tr>
          <th class='w-100px'><?php 
echo $lang->product->category;
?>
</th>
          <td class='w-p40'><?php 
开发者ID:mustafakarali,项目名称:b2c-1,代码行数:30,代码来源:edit.html.php

示例4: isset

/**
 * The edit view file of block 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      Chunsheng Wang <chunsheng@cnezsoft.com>
 * @package     block
 * @version     $Id$
 * @link        http://www.chanzhi.org
 */
include '../../common/view/header.admin.html.php';
include '../../common/view/chosen.html.php';
include '../../common/view/codeeditor.html.php';
js::set('type', $type);
js::set('cancreatephp', isset($canCreatePHP) ? $canCreatePHP : '');
js::set('setOkFile', isset($okFile) ? sprintf($lang->setOkFile, $okFile) : '');
$colorPlates = '';
foreach (explode('|', $lang->colorPlates) as $value) {
    $colorPlates .= "<div class='color color-tile' data='#" . $value . "'><i class='icon-ok'></i></div>";
}
?>
<form method='post' id='editForm' class='blockForm ve-form'>
  <div class='panel'>
    <div class='panel-heading'>
      <ul class='nav nav-tabs'>
        <li class='nav-heading'><i class='icon icon-pencil'></i> <?php 
echo $lang->block->edit;
?>
 [<?php 
echo $block->title;
?>
开发者ID:qiaqiali,项目名称:chanzhieps,代码行数:31,代码来源:edit.html.php

示例5:

<?php

include '../../common/view/header.html.php';
js::set('articleID', $article->id);
$common->printPositionBar($article->origins);
?>
<div class='article'>
  <header>
    <h2><?php 
echo $article->title;
?>
</h2>
    <dl class='dl-inline'>
      <dd data-toggle='tooltip' data-placement='top' data-original-title='<?php 
printf($lang->article->lblAddedDate, $article->createdDate);
?>
'><i class='icon-time icon-large'></i> <?php 
echo $article->createdDate;
?>
</dd>
      <dd data-toggle='tooltip' data-placement='top' data-original-title='<?php 
printf($lang->article->lblAuthor, $article->author);
?>
'><i class='icon-user icon-large'></i> <?php 
echo $article->author;
?>
</dd>
      <dd data-toggle='tooltip' data-placement='top' data-original-title='<?php 
printf($lang->article->lblViews, $article->views);
?>
'><i class='icon-eye-open'></i> <?php 
开发者ID:leowh,项目名称:colla,代码行数:31,代码来源:read.html.php

示例6: inlink

 * The edit view of tree 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      Chunsheng Wang <chunsheng@cnezsoft.com>
 * @package     tree
 * @version     $Id: edit.html.php 824 2010-05-02 15:32:06Z wwccss $
 * @link        http://www.chanzhi.org
 */
$webRoot = $config->webRoot;
$jsRoot = $webRoot . "js/";
$themeRoot = $webRoot . "theme/";
include '../../common/view/chosen.html.php';
include '../../common/view/kindeditor.html.php';
js::set('type', $category->type);
js::set('link', $lang->category->link);
?>
<form method='post' class='form-horizontal' id='editForm' action="<?php 
echo inlink('edit', 'categoryID=' . $category->id);
?>
">
  <div class='panel'>
    <div class='panel-heading'><strong><i class="icon-pencil"></i> <?php 
echo $lang->tree->edit;
?>
</strong></div>
    <div class='panel-body'>
      <div class='form-group'> 
        <label class='col-md-2 control-label'><?php 
echo $lang->category->parent;
?>
开发者ID:hansen1416,项目名称:eastsoft,代码行数:31,代码来源:edit.html.php

示例7:

<?php

/**
 * The browse view file of product dept of ZenTaoPMS.
 *
 * @copyright   Copyright 2009-2013 青岛易软天创网络科技有限公司 (QingDao Nature Easy Soft Network Technology Co,LTD www.cnezsoft.com)
 * @license     LGPL (http://www.gnu.org/licenses/lgpl.html)
 * @author      Chunsheng Wang <chunsheng@cnezsoft.com>
 * @package     product
 * @version     $Id: browse.html.php 5096 2013-07-11 07:02:43Z chencongzhi520@gmail.com $
 * @link        http://www.zentao.net
 */
include '../../common/view/header.html.php';
include '../../common/view/treeview.html.php';
js::set('deptID', $deptID);
js::set('confirmDelete', $lang->user->confirmDelete);
?>
<div id='titlebar'>
  <div class='heading'><?php 
echo html::icon($lang->icons['company']);
?>
 <?php 
echo $lang->company->browse;
?>
</div>
</div>
<div id='querybox' class='show'><?php 
echo $searchForm;
?>
</div>
<div class='side'>
开发者ID:iamazhi,项目名称:zentaopms,代码行数:31,代码来源:browse.html.php

示例8:

<?php

/**
 * The create view of story 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 <chunsheng@cnezsoft.com>
 * @package     story
 * @version     $Id: create.html.php 4902 2013-06-26 05:25:58Z wyd621@gmail.com $
 * @link        http://www.zentao.net
 */
include './header.html.php';
include '../../common/view/form.html.php';
js::set('holders', $lang->story->placeholder);
?>
<div class='container mw-1400px'>
  <div id='titlebar'>
    <div class='heading'>
      <span class='prefix'><?php 
echo html::icon($lang->icons['story']);
?>
</span>
      <strong><small class='text-muted'><?php 
echo html::icon($lang->icons['create']);
?>
</small> <?php 
echo $lang->story->create;
?>
</strong>
    </div>
开发者ID:ppmon,项目名称:ppm,代码行数:31,代码来源:create.html.php

示例9: explode

$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', '/',
'undo', 'redo', '|', 'cut', 'copy', '|', 'plainpaste', 'wordpaste', '|', 'removeformat', 'clearhtml','quickformat', '|',
'indent', 'outdent', 'subscript', 'superscript', 'insertorderedlist', 'insertunorderedlist', '|',
'table', 'code', 'hr', '|',
开发者ID:dyp8848,项目名称:chanzhieps,代码行数:31,代码来源:kindeditor.html.php

示例10:

<?php

if (!defined("RUN_MODE")) {
    die;
}
include '../../../common/view/header.lite.html.php';
js::import($jsRoot . 'fingerprint/fingerprint.js');
js::import($jsRoot . 'md5.js');
js::set('scriptName', $_SERVER['SCRIPT_NAME']);
js::set('random', $this->session->random);
?>
<div class='container'>
  <div id='adminLogin'>
    <div id='siteName'>
      <?php 
echo $this->config->site->name;
?>
      <div class='pull-right'>
        <div class='dropdown' id='langs'>
          <button class='btn' data-toggle='dropdown' title='Change Language/更换语言/更換語言'><?php 
echo $config->langs[$this->app->getClientLang()];
?>
 <span class='caret'></span></button>
          <ul class='dropdown-menu'>
            <?php 
foreach ($config->langs as $key => $value) {
    ?>
            <li class="<?php 
    echo $key == $this->app->getClientLang() ? 'active' : '';
    ?>
">
开发者ID:easysoft,项目名称:chanzhi_extension,代码行数:31,代码来源:login.admin.html.php

示例11: isset

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;
}
if (empty($sina->verification) && !empty($sina->widget)) {
    js::import('http://tjs.sjs.sinajs.cn/open/api/js/wb.js');
}
开发者ID:peirancao,项目名称:chanzhieps,代码行数:31,代码来源:header.html.php

示例12:

if (!defined("RUN_MODE")) {
    die;
}
/**
 * The index view file of message 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 <guanxiying@xirangit.com>
 * @package     message
 * @version     $Id$
 * @link        http://www.chanzhi.org
 */
include TPL_ROOT . 'common/header.html.php';
js::set('showDetail', $this->lang->message->showDetail);
js::set('hideDetail', $this->lang->message->hideDetail);
$common->printPositionBar();
?>
<div class='row blocks' data-region='message_index-topBanner'><?php 
$this->block->printRegion($layouts, 'message_index', 'topBanner', true);
?>
</div>
<div class='row'>
  <div class='col-md-9 col-main'>
    <div class='row blocks' data-region='message_index-top'><?php 
$this->block->printRegion($layouts, 'message_index', 'top', true);
?>
</div>
    <?php 
if (!empty($messages)) {
    ?>
开发者ID:hansen1416,项目名称:eastsoft,代码行数:31,代码来源:index.html.php

示例13:

?>
</td>
      </tr>
    </table>
    <table align='center' class='table table-form'>
      <caption class='text-left text-muted'><?php 
echo $lang->user->verify;
?>
</caption>
      <tr>
        <th class='w-120px'><?php 
echo $lang->user->verifyPassword;
?>
</th>
        <td>
          <div class="required required-wrapper"></div>
          <?php 
echo html::password('verifyPassword', '', "class='form-control' autocomplete='off' placeholder='{$lang->user->placeholder->verify}'");
?>
        </td>
      </tr>
      <tr><td colspan='2' class='text-center'><?php 
echo html::submitButton() . html::backButton();
?>
</td></tr>
    </table>
  </form>
</div>
<?php 
js::set('passwordStrengthList', $lang->user->passwordStrengthList);
include '../../common/view/footer.html.php';
开发者ID:nanata1115,项目名称:zentaopms,代码行数:31,代码来源:edit.html.php

示例14:

        echo html::submitButton($lang->product->batchEdit, '', '');
        ?>
            <?php 
    }
    ?>
            <?php 
    if (!$canOrder and common::hasPriv('product', 'updateOrder')) {
        echo html::a(inlink('index', "locate=no&productID={$productID}&status={$status}&order=order_desc&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}"), $lang->product->updateOrder, '', "class='btn'");
    }
    ?>
          </div>
          <div class='text-right'><?php 
    $pager->show();
    ?>
</div>
        </td>
      </tr>
    </tfoot>
  </table>
</form>
<?php 
}
?>
</div>
<script>$("#<?php 
echo $status;
?>
Tab").addClass('active');</script>
<?php 
js::set('orderBy', $orderBy);
include '../../common/view/footer.html.php';
开发者ID:caiwenhao,项目名称:zentao,代码行数:31,代码来源:index.html.php

示例15:

<?php

/**
 * The doc view file of product module of ZenTaoPMS.
 *
 * @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 <chunsheng@cnezsoft.com>
 * @package     product
 * @version     $Id$
 * @link        http://www.zentao.net
 */
include '../../common/view/header.html.php';
include '../../common/view/tablesorter.html.php';
js::set('confirmDelete', $lang->doc->confirmDelete);
?>
<div id='titlebar'>
  <div class='heading'><i class='icon-file-text'></i> <?php 
echo $lang->product->doc;
?>
  </div>
  <div class='actions'>
    <?php 
common::printIcon('doc', 'create', "libID=product&moduleID=0&productID={$product->id}&projectID=0&from=product");
?>
  </div>
</div>
<table class='table' id='docList'>
  <thead>
    <tr class='colhead'>
      <th class='w-id'><?php 
开发者ID:caiwenhao,项目名称:zentao,代码行数:31,代码来源:doc.html.php


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