public function index() { stylesheet::add('esl', 50); javascript::add('pubsub.js', 50); //CLEAR THE ESL SESSION $_SESSION['esl'] = array(); }
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'); }
public function __construct() { parent::__construct(); javascript::add('editarea/edit_area_full.js'); javascript::add('featurecode.js'); stylesheet::add('featurecode.css'); }
public function __construct() { parent::__construct(); stylesheet::add('autoattendant', 50); javascript::add('mustache'); }
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; }
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(); }
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; }
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')); }
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']; }
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(); }
<?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(),
public function __construct() { parent::__construct(); javascript::add('mustache'); }
public function __construct() { parent::__construct(); stylesheet::add('jslider', 50); javascript::add(array('jquery.dependClass.js', 'jquery.slider.js'), 50); }
</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; ?> ;
<?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>
public function index() { css::add(array('media/css/liqajax.css')); $this->template->content = new View('content/liqajax'); javascript::add(array('media/js/ext-base.js', 'media/js/ext-all.js', 'media/js/liqajax.js')); }
public function __construct() { parent::__construct(); javascript::add(array('jquery.dependClass.js'), 50); }
public static function addJsAssets() { // Check if the jquery helper was initialized if (empty(jquery::$jquery)) { return; } $jqPlugins = jquery::$jqPlugins; // Ensure our core assest are on the page foreach (self::$jqCore as $jqCore) { javascript::add($jqCore, 20); } // Load any additional jquery plugins foreach (jquery::$jquery->plugins as $plugin) { // See if there are js jqPlugins if (empty($jqPlugins[$plugin]['js'])) { continue; } $scripts = $jqPlugins[$plugin]['js']; foreach ((array) $scripts as $js) { if (isset($jqPlugins[$plugin]['module'])) { javascript::add($jqPlugins[$plugin]['module'] . '/' . $js); } else { // If no directory is specified then assume assets/js/jquery if (stripos($js, '/') === false) { $js = 'jquery/' . $js; } javascript::add($js, 30); } } } }
public function arrange() { javascript::add("jstree/_lib/jquery.cookie.js"); javascript::add("jstree/_lib/jquery.hotkeys.js"); javascript::add("jstree/jquery.jstree.js"); $this->view->serverurl = Kohana::config('core.site_domain') . Kohana::config('core.index_page') . '/directory/server'; $this->view->imagedir = Kohana::config('core.site_domain') . '/modules/directory-1.0/assets/images/'; $this->view->serverurl = preg_replace('/\\/\\/+/', '/', $this->view->serverurl); $this->view->imagedir = preg_replace('/\\/\\/+/', '/', $this->view->imagedir); }
public function __construct() { jquery::addPlugin('uiCSS'); javascript::add('mustache'); parent::__construct(); }