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


PHP javascript::add方法代码示例

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


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

示例1: index

 public function index()
 {
     stylesheet::add('esl', 50);
     javascript::add('pubsub.js', 50);
     //CLEAR THE ESL SESSION
     $_SESSION['esl'] = array();
 }
开发者ID:swk,项目名称:bluebox,代码行数:7,代码来源:esl.php

示例2: index

 public function index()
 {
     $this->view->filetree = filetree::php_file_tree(Kohana::config('freeswitch.cfg_root'), "javascript:FileManager.load('[link]');", array('xml', 'conf', 'tpl'));
     javascript::add('php_file_tree_jquery.js');
     stylesheet::add('php_file_tree.css');
     javascript::add('editarea/edit_area_full.js');
 }
开发者ID:swk,项目名称:bluebox,代码行数:7,代码来源:xmleditor.php

示例3: __construct

 public function __construct()
 {
     parent::__construct();
     javascript::add('editarea/edit_area_full.js');
     javascript::add('featurecode.js');
     stylesheet::add('featurecode.css');
 }
开发者ID:swk,项目名称:bluebox,代码行数:7,代码来源:featurecode.php

示例4: __construct

    public function __construct()
    {
        parent::__construct();

        stylesheet::add('autoattendant', 50);

        javascript::add('mustache');
    }
开发者ID:Jaybee-,项目名称:bluebox,代码行数:8,代码来源:autoattendant.php

示例5: page

 public function page($pagenum)
 {
     css::add(array('media/css/fee.css'));
     javascript::add(array('media/js/ext-base.js', 'media/js/ext-all.js', 'media/js/app.js'));
     $this->template->content = new View('content/fees');
     $db = new Database('fees');
     $query = $db->query("SELECT co_name FROM feesNew");
     $this->pagination = new Pagination(array('uri_segment' => 'page', 'total_items' => $query->count(), 'items_per_page' => 28, 'style' => 'punbb'));
     $b = $this->pagination->items_per_page;
     $offset = ($pagenum - 1) * $b;
     $result = $db->query("SELECT co_name FROM feesNew ORDER BY co_name ASC LIMIT {$b} OFFSET {$offset}");
     $this->template->content->result = $result;
 }
开发者ID:Actuarybrad,项目名称:new-consumer-portal,代码行数:13,代码来源:fees.php

示例6: index

 public function index()
 {
     $this->template->content = new View('globalmedia/index');
     javascript::add('php_file_tree_jquery.js');
     stylesheet::add('php_file_tree.css');
     // Collect a list of paths in the system, to be displayed as a list
     $this->view->filetree = filetree::php_file_tree(Media::getMediaPath(), "javascript:filterPath('[link]');", FALSE, '/^8000$|^16000$|^32000$|^48000$/');
     // Build a grid with a hidden device_id, device_type, and add an option for the user to select the display columns
     $this->grid = jgrid::grid($this->baseModel, array('caption' => ' ', 'gridName' => 'MediaGrid'))->add('mediafile_id', 'ID', array('width' => '80', 'hidden' => true, 'key' => true))->add('file', 'Filename', array('width' => '40', 'search' => true, 'callback' => array('MediaFile', 'getBaseName')))->add('path', 'Path', array('width' => '80', 'hidden' => true, 'key' => true, 'search' => true))->add('description', 'Description', array('width' => '80', 'search' => true))->add('size', 'File Size', array('width' => '40', 'align' => 'right', 'callback' => array('function' => array('MediaFile', 'getSize'), 'arguments' => 'registry')))->add('length', 'Length', array('width' => '40', 'align' => 'right', 'callback' => array('function' => array('MediaFile', 'getLength'), 'arguments' => 'registry')))->navButtonAdd('Columns', array('onClickButton' => 'function () {  $(\'#{table_id}\').setColumns(); }', 'buttonimg' => url::base() . 'assets/css/jqGrid/table_insert_column.png', 'title' => 'Show/Hide Columns', 'noCaption' => true, 'position' => 'first'))->addAction('globalmedia/details', 'Details', array('arguments' => 'mediafile_id', 'attributes' => array('class' => 'qtipAjaxForm')))->addAction('globalmedia/download', 'Download', array('arguments' => 'mediafile_id'))->addAction('globalmedia/delete', 'Delete', array('width' => '60', 'arguments' => 'mediafile_id'));
     // dont foget to let the plugins add to the grid!
     plugins::views($this);
     // Produces the grid markup or JSON
     $this->view->grid = $this->grid->produce();
 }
开发者ID:swk,项目名称:bluebox,代码行数:14,代码来源:globalmedia.php

示例7: reorder

 public function reorder($album_id = NULL)
 {
     $album = new Album_Model($album_id);
     if (!$album->id) {
         Event::run('system.404');
     }
     javascript::add(array('jquery-ui', 'photo_admin_effects'));
     stylesheet::add(array('photo_gallery'));
     $this->template->title = $album->album_name;
     $this->template->heading = $album->album_name;
     $this->template->content = new View('admin/album/reorder');
     $this->template->content->photos = $album->find_related('photos', array(), array('photo_order' => 'ASC'));
     $this->template->content->album = $album;
 }
开发者ID:peebeebee,项目名称:Simple-Photo-Gallery,代码行数:14,代码来源:album.php

示例8: view

 public function view($album_name = NULL)
 {
     javascript::add(array('jquery.colorbox', 'photo_effects'));
     stylesheet::add(array('colorbox', 'colorbox-custom', 'photo_gallery'));
     $page_num = $this->input->get('page', 1);
     $album = new Album_Model($album_name);
     if (!$album->id) {
         Event::run('system.404');
     }
     $this->template->title = $album->album_name;
     $this->template->heading = $album->album_name;
     $this->template->content = new View('album/view');
     $this->template->content->photos = $album->find_photos($page_num);
     $this->template->content->album = $album;
     $this->template->content->num_pages = ceil(count($album->find_related('photos')) / Kohana::config('photo_gallery.photos_per_page'));
 }
开发者ID:peebeebee,项目名称:Simple-Photo-Gallery,代码行数:16,代码来源:album.php

示例9: index

 public function index()
 {
     stylesheet::add('callcenter');
     javascript::add('callcenter');
     javascript::add('jquery-ui-1-7-2-custom');
     // Prepare device info for use
     $device_info = array();
     $location_id = users::getAttr('location_id');
     $location = Doctrine::getTable('Location')->findOneBy('location_id', $location_id);
     foreach ($location['User'] as $user) {
         foreach ($user['Device'] as $device) {
             $device_info[] = array('name' => $device['name'], 'id' => $device['device_id']);
         }
     }
     $this->view->devices = $device_info;
     $this->view->domain = $location['domain'];
 }
开发者ID:swk,项目名称:bluebox,代码行数:17,代码来源:callcenter.old.php

示例10: index

 public function index()
 {
     stylesheet::add('switchboard', 50);
     javascript::add('pubsub.js', 50);
     $this->view->sofia_status = '';
     $sipInterface = Doctrine::getTable('SipInterface')->findAll();
     foreach ($sipInterface as $interface) {
         $this->view->sofia_status .= form::button(array('id' => 'sofia_profile', 'class' => 'eslEvent', 'value' => 'SIP Interface ' . $interface->sipinterface_id . ' Status', 'param' => 'sipinterface_' . $interface->sipinterface_id));
     }
     $this->view->trunk_status = '';
     $trunks = Doctrine::getTable('Trunk')->findAll();
     foreach ($trunks as $trunk) {
         $this->view->trunk_status .= form::button(array('id' => 'gateway_profile', 'class' => 'eslEvent', 'value' => 'Trunk ' . $trunk->trunk_id . ' Status', 'param' => 'trunk_' . $trunk->trunk_id));
     }
     //CLEAR THE ESL SESSION
     $_SESSION['esl'] = array();
 }
开发者ID:swk,项目名称:bluebox,代码行数:17,代码来源:switchboard.php

示例11: array

                        <?php endforeach; ?>

                    </ul>

            </div>

        </div>

</div>

<?php echo form::close_section(); ?>

<?php jquery::addPlugin(array('tabs', 'scrollTo')); ?>

<?php javascript::add('mustache'); ?>

<?php javascript::codeBlock(NULL, array('scriptname' => 'listNumbers')); ?>

    var avaliableNumberTemplate = <?php echo $avaliableNumberTemplate; ?>;

    var assignedNumberTemplate = <?php echo $assignedNumberTemplate; ?>;

    function unassignNumberClickHandler(ev) {

        ev.preventDefault();

        panelId = '#' + $(this).parents('.assign_number_tab').attr('id');

        number = {
            number_id: $(panelId).find('.number_id_datastore').val(),
开发者ID:Jaybee-,项目名称:bluebox,代码行数:30,代码来源:numberInventory.php

示例12: __construct

    public function __construct()
    {
        parent::__construct();

        javascript::add('mustache');
    }
开发者ID:Jaybee-,项目名称:bluebox,代码行数:6,代码来源:ringgroup.php

示例13: __construct

 public function __construct()
 {
     parent::__construct();
     stylesheet::add('jslider', 50);
     javascript::add(array('jquery.dependClass.js', 'jquery.slider.js'), 50);
 }
开发者ID:swk,项目名称:bluebox,代码行数:6,代码来源:timeofday.php

示例14: array

            </div>

        </div>

</div>

<?php 
echo form::close_section();
?>

<?php 
jquery::addPlugin(array('tabs', 'scrollTo'));
?>

<?php 
javascript::add('mustache');
?>

<?php 
javascript::codeBlock(NULL, array('scriptname' => 'listNumbers'));
?>

    var avaliableNumberTemplate = <?php 
echo $avaliableNumberTemplate;
?>
;

    var assignedNumberTemplate = <?php 
echo $assignedNumberTemplate;
?>
;
开发者ID:swk,项目名称:bluebox,代码行数:31,代码来源:numberInventory.php

示例15: array

        <?php 
stylesheet::add(array('reset', 'layout', 'navigation', 'screen', 'forms'), 10);
?>
        <?php 
stylesheet::add('jquery.custom.css', 31);
?>
        <?php 
stylesheet::add('ie', array('cond' => 'ie', 'weight' => 10));
?>

        <?php 
jquery::addPlugin(array('persistent', 'scrollTo', 'growl', 'qtip', 'infiniteCarousel', 'dropdowns', 'blockUI', 'form'));
?>
        <?php 
javascript::add('bluebox');
?>

        <?php 
echo $css;
?>
        <?php 
echo $js;
?>

        <?php 
echo html::link('skins/bluebox/assets/img/favicon.ico', 'icon', 'image/x-icon');
?>
    </head>

    <body>
开发者ID:swk,项目名称:bluebox,代码行数:30,代码来源:layout.php


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