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


PHP plugins::views方法代码示例

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


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

示例1: index

 public function index()
 {
     $this->template->content = new View('generic/grid');
     // Setup the base grid object
     $grid = jgrid::grid($this->baseModel, array('caption' => 'Users'));
     // Add the base model columns to the grid
     $grid->add('user_id', 'ID', array('hidden' => TRUE, 'key' => TRUE));
     $grid->add('email_address', 'Email Address');
     $grid->add('first_name', 'First Name', array('width' => '100', 'search' => TRUE));
     $grid->add('last_name', 'Last Name', array('width' => '100', 'search' => TRUE));
     $grid->add('Location/name', 'Location', array('width' => '100', 'search' => TRUE, 'sortable' => TRUE));
     $grid->add('user_type', 'User Type', array('callback' => array('function' => array($this, 'userType'), 'arguments' => array('user_type'))));
     $grid->add('logins', 'Logins', array('hidden' => TRUE));
     $grid->add('last_login', 'Last Login', array('hidden' => TRUE));
     $grid->add('last_logged_ip', 'Last Logged IP', array('hidden' => TRUE));
     $grid->add('debug_level', 'Debug Level', array('hidden' => TRUE));
     // Add the actions to the grid
     $grid->addAction('usermanager/edit', 'Edit', array('arguments' => 'user_id'));
     $grid->addAction('usermanager/delete', 'Delete', array('arguments' => 'user_id'));
     if (users::getAttr('user_type') == User::TYPE_SYSTEM_ADMIN) {
         $grid->addAction('usermanager/login', 'Login', array('arguments' => 'user_id'));
     }
     // Let plugins populate the grid as well
     $this->grid = $grid;
     plugins::views($this);
     // Produce a grid in the view
     $this->view->grid = $this->grid->produce();
 }
开发者ID:swk,项目名称:bluebox,代码行数:28,代码来源:usermanager.php

示例2: index

    public function index()
    {
        $this->template->content = new View('generic/grid');

        // Setup the base grid object
        $grid = jgrid::grid($this->baseModel, array(
                'caption' => 'Network Lists'
            )
        );

        // Add the base model columns to the grid
        $grid->add('net_list_id', 'ID', array(
                'hidden' => true,
                'key' => true
            )
        );
        $grid->add('name', 'Name');

        // Add the actions to the grid
        $grid->addAction('netlistmanager/edit', 'Edit', array(
                'arguments' => 'net_list_id'
            )
        );
        $grid->addAction('netlistmanager/delete', 'Delete', array(
                'arguments' => 'net_list_id'
            )
        );
        
        // Let plugins populate the grid as well
        $this->grid = $grid;
        plugins::views($this);

        // Produce a grid in the view
        $this->view->grid = $this->grid->produce();
    }
开发者ID:Jaybee-,项目名称:bluebox,代码行数:35,代码来源:netlistmanager.php

示例3: index

 public function index()
 {
     $this->template->content = new View('generic/grid');
     // Setup the base grid object
     $this->grid = jgrid::grid($this->baseModel, array('caption' => 'Domains'))->add('id', 'ID', array('hidden' => true, 'key' => true))->add('name', 'Domain Name/Realm')->add('recordCount', 'Records', array('search' => false, 'align' => 'center', 'callback' => array('function' => array($this, 'countRecords'), 'arguments' => array('id'))))->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('powerdns/edit', 'Edit', array('arguments' => 'id', 'width' => '120'))->addAction('powerdns/delete', 'Delete', array('arguments' => 'id', 'width' => '20'));
     // dont foget to let the plugins add to the grid!
     plugins::views($this);
     $this->view->grid = $this->grid->produce();
 }
开发者ID:swk,项目名称:bluebox,代码行数:9,代码来源:powerdns.php

示例4: index

 public function index()
 {
     $this->template->content = new View('generic/grid');
     // Setup the base grid object
     $this->grid = jgrid::grid('FaxProfile', array('caption' => 'Fax Profiles'))->add('fxp_id', 'ID', array('hidden' => true, 'key' => true))->add('fxp_name', 'Name')->add('fxp_default', 'Default')->addAction('fax/edit', 'Edit', array('arguments' => 'fxp_id'))->addAction('fax/delete', 'Delete', array('arguments' => 'fxp_id'));
     // Let plugins populate the grid as well
     plugins::views($this);
     // Produce a grid in the view
     $this->view->grid = $this->grid->produce();
 }
开发者ID:swk,项目名称:bluebox,代码行数:10,代码来源:fax.php

示例5: index

 public function index()
 {
     $this->template->content = new View('generic/grid');
     // Build a grid with a hidden device_id, class_type, and add an option for the user to select the display columns
     $this->grid = jgrid::grid($this->baseModel, array('caption' => 'My ODBC Connections', 'multiselect' => true))->add('odbc_id', 'ID', array('hidden' => true, 'key' => true))->add('dsn_name', 'DSN Name', array('width' => '60'))->add('description', 'Description', array('width' => '120'))->add('host', 'Host', array('width' => '60'))->add('user', 'User', array('width' => '50'))->add('type', 'Type', array('width' => '30'))->add('port', 'port', array('width' => '30'))->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('odbc/edit', 'Edit', array('arguments' => 'odbc_id', 'width' => '40'))->addAction('odbc/delete', 'Delete', array('arguments' => 'odbc_id', 'width' => '40'))->addAction('odbc/config', 'odbc.ini', array('arguments' => 'odbc_id', 'width' => '60'))->navGrid(array('del' => true));
     // dont foget to let the plugins add to the grid!
     plugins::views($this);
     // Produces the grid markup or JSON, respectively
     $this->view->grid = $this->grid->produce();
 }
开发者ID:swk,项目名称:bluebox,代码行数:10,代码来源:odbc.php

示例6: index

    public function index()
    {
        $this->template->content = new View('generic/grid');

        // Setup the base grid object
        $grid = jgrid::grid($this->baseModel, array(
                'caption' => 'Auto Attendants'
            )
        );

        // Add the base model columns to the grid
        $grid->add('auto_attendant_id', 'ID', array(
                'hidden' => true,
                'key' => true
            )
        );
        $grid->add('name', 'Name', array(
                'width' => '200',
                'search' => false,
            )
        );
        $grid->add('type', 'Prompt', array(
                'align' => 'center',
                'callback' => array(
                    'function' => array($this, '_showPrompt'),
                    'arguments' => array('registry')
                )
            )
        );
        $grid->add('keys', 'Options', array(
                'align' => 'center',
                'callback' => array(
                    'function' => array($this, '_showOptions'),
                    'arguments' => array('keys')
                )
            )
        );

        // Add the actions to the grid
        $grid->addAction('autoattendant/edit', 'Edit', array(
                'arguments' => 'auto_attendant_id'
            )
        );
        $grid->addAction('autoattendant/delete', 'Delete', array(
                'arguments' => 'auto_attendant_id'
            )
        );

        // Let plugins populate the grid as well
        $this->grid = $grid;
        plugins::views($this);

        // Produce a grid in the view
        $this->view->grid = $this->grid->produce();
    }
开发者ID:Jaybee-,项目名称:bluebox,代码行数:55,代码来源:autoattendant.php

示例7: index

 public function index()
 {
     $this->template->content = new View('generic/grid');
     $this->grid = jgrid::grid('callcenter_queue', array('caption' => 'Queues'));
     $this->grid->add('ccq_id', 'ID', array('hidden' => true, 'key' => true));
     $this->grid->add('ccq_name', 'Name');
     $this->grid->add('queueLocation/name', 'Location', array('width' => '150', 'search' => false));
     $this->grid->addAction('callcenter_supervisor/view', 'View', array('arguments' => 'ccq_id'));
     plugins::views($this);
     $this->view->grid = $this->grid->produce();
 }
开发者ID:swk,项目名称:bluebox,代码行数:11,代码来源:callcenter_supervisor.php

示例8: index

 public function index()
 {
     $this->template->content = new View('generic/grid');
     $this->grid = jgrid::grid($this->baseModel, array('caption' => 'Directories'));
     // Add the base model columns to the grid
     $this->grid->add('dbn_id', 'ID', array('hidden' => true, 'key' => true));
     $this->grid->add('dbn_name', 'Directory Name');
     $this->grid->addAction('dbndir/edit', 'Edit', array('arguments' => 'dbn_id'));
     //        $this->grid->addAction('callcenter_agents/delete', 'Delete', array(
     //                'arguments' => 'cca_id'
     //            )
     //        );
     plugins::views($this);
     $this->view->grid = $this->grid->produce();
 }
开发者ID:swk,项目名称:bluebox,代码行数:15,代码来源:dbndir.php

示例9: details

 public function details($xml_cdr_id)
 {
     $xmlcdr = Doctrine::getTable('Xmlcdr')->findOneBy('xml_cdr_id', $xml_cdr_id);
     $idx = array('Caller Name' => 'caller_id_name', 'Caller Number' => 'caller_id_number', 'Direction' => 'direction', 'Desintation Number' => 'destination_number', 'User Name' => 'user_name', 'Context' => 'context', 'Start' => 'start_stamp', 'Answer' => 'answer_stamp', 'End' => 'end_stamp', 'Duration' => 'duration', 'Billable Seconds' => 'billsec', 'Hangup Cause' => 'hangup_cause', 'UUID' => 'uuid', 'B-Leg UUID' => 'bleg_uuid', 'Account Code' => 'accountcode', 'Domain Name' => 'domain_name', 'User Context' => 'user_context', 'Read Codec' => 'read_codec', 'Write Codec' => 'write_codec', 'Dailed Domain' => 'dialed_domain', 'Dailed User' => 'dialed_user');
     $this->xmlcdr = $xmlcdr;
     $details = '<h3>CDR</h3>';
     $details .= '<table>';
     foreach ($idx as $k => $p) {
         $details .= "<tr><td width=\"300px\">{$k}</td><td>{$xmlcdr->{$p}}</td></tr>\n";
     }
     $details .= '</table>';
     $this->view->details = $details;
     // Execute plugin hooks here, after we've loaded the core data sets
     Event::run('bluebox.create_view', $this->view);
     plugins::views($this);
 }
开发者ID:swk,项目名称:bluebox,代码行数:16,代码来源:xmlcdr.php

示例10: index

 public function index()
 {
     $this->template->content = new View('generic/grid');
     // Setup the base grid object
     $this->grid = jgrid::grid($this->baseModel, array('caption' => 'Queues'));
     // Add the base model columns to the grid
     $this->grid->add('ccq_id', 'ID', array('hidden' => true, 'key' => true));
     $this->grid->add('ccq_name', 'Name');
     //$grid->add('datafield2', 'Field 2');
     $this->grid->add('queueLocation/name', 'Location', array('width' => '150', 'search' => false));
     // Add the actions to the grid
     $this->grid->addAction('callcenter_queues/edit', 'Edit', array('arguments' => 'ccq_id'));
     $this->grid->addAction('callcenter_queues/delete', 'Delete', array('arguments' => 'ccq_id'));
     plugins::views($this);
     // Produce a grid in the view
     $this->view->grid = $this->grid->produce();
 }
开发者ID:swk,项目名称:bluebox,代码行数:17,代码来源:callcenter_queues.php

示例11: index

 /**
  * Method for the main page of this module
  */
 public function index()
 {
     $this->template->content = new View('generic/grid');
     // Setup the base grid object
     $grid = jgrid::grid($this->baseModel, array('caption' => 'Time Of Day Routes'));
     // Add the base model columns to the grid
     $grid->add('time_of_day_id', 'ID', array('hidden' => true, 'key' => true));
     $grid->add('name', 'Route Name');
     // Add the actions to the grid
     $grid->addAction('timeofday/edit', 'Edit', array('arguments' => 'time_of_day_id', 'width' => '120'));
     $grid->addAction('timeofday/delete', 'Delete', array('arguments' => 'time_of_day_id', 'width' => '20'));
     // Let plugins populate the grid as well
     $this->grid = $grid;
     plugins::views($this);
     // Produce a grid in the view
     $this->view->grid = $this->grid->produce();
 }
开发者ID:swk,项目名称:bluebox,代码行数:20,代码来源:timeofday.php

示例12: index

 public function index()
 {
     $this->template->content = new View('generic/grid');
     // Setup the base grid object
     $grid = jgrid::grid($this->baseModel, array('caption' => 'Custom Feature Codes'));
     // Add the base model columns to the grid
     $grid->add('custom_feature_code_id', 'ID', array('hidden' => true, 'key' => true));
     $grid->add('name', 'Name');
     $grid->add('description', 'Description');
     // Add the actions to the grid
     $grid->addAction('customfeaturecode/edit', 'Edit', array('arguments' => 'custom_feature_code_id'));
     $grid->addAction('customfeaturecode/delete', 'Delete', array('arguments' => 'custom_feature_code_id'));
     // Let plugins populate the grid as well
     $this->grid = $grid;
     plugins::views($this);
     // Produce a grid in the view
     $this->view->grid = $this->grid->produce();
 }
开发者ID:swk,项目名称:bluebox,代码行数:18,代码来源:customfeaturecode.php

示例13: index

 /**
  * Typically we create a grid, but you can define any entry point you
  * would like...
  */
 public function index()
 {
     $this->template->content = new View('generic/grid');
     // Setup the base grid object
     $grid = jgrid::grid($this->baseModel, array('caption' => 'MyModule Grid Header'));
     // Add the base model columns to the grid
     $grid->add('my_module_id', 'ID', array('hidden' => true, 'key' => true));
     $grid->add('datafield1', 'Field 1');
     $grid->add('datafield2', 'Field 2');
     // Add the actions to the grid
     $grid->addAction('mymodule/edit', 'Edit', array('arguments' => 'my_module_id'));
     $grid->addAction('mymodule/delete', 'Delete', array('arguments' => 'my_module_id'));
     // Let plugins populate the grid as well
     $this->grid = $grid;
     plugins::views($this);
     // Produce a grid in the view
     $this->view->grid = $this->grid->produce();
 }
开发者ID:swk,项目名称:bluebox,代码行数:22,代码来源:mymodule.php

示例14: index

 /**
  * Typically we create a grid, but you can define any entry point you
  * would like...
  */
 public function index()
 {
     $this->template->content = new View('generic/grid');
     // Setup the base grid object
     $this->grid = jgrid::grid($this->baseModel, array('caption' => 'Tiers'));
     // Add the base model columns to the grid
     $this->grid->add('cct_id', 'ID', array('hidden' => true, 'key' => true));
     $this->grid->add('callcenter_agent/cca_loginid', 'Agent Login');
     $this->grid->add('callcenter_agent/cca_displayname', 'Agent Name');
     $this->grid->add('callcenter_queue/ccq_name', 'Queue Name');
     $this->grid->add('callcenter_agent/cca_locationid', 'Location', array('width' => '60', 'callback' => array('function' => array($this, 'getlocationname')), 'search' => false, 'sortable' => false));
     // Add the actions to the grid
     $this->grid->addAction('callcenter_tiers/edit', 'Edit', array('arguments' => 'cct_id'));
     $this->grid->addAction('callcenter_tiers/delete', 'Delete', array('arguments' => 'cct_id'));
     plugins::views($this);
     // Produce a grid in the view
     $this->view->grid = $this->grid->produce();
 }
开发者ID:swk,项目名称:bluebox,代码行数:22,代码来源:callcenter_tiers.php

示例15: index

 public function index()
 {
     $this->template->content = new View('generic/grid');
     // Setup the base grid object
     $grid = jgrid::grid($this->baseModel, array('caption' => 'Trunks/Gateways'));
     // Add the base model columns to the grid
     $grid->add('trunk_id', 'ID', array('hidden' => true, 'key' => true));
     $grid->add('name', 'Trunk Name');
     $grid->add('type', 'Type', array('width' => '50', 'search' => false));
     // Add the actions to the grid
     $grid->addAction('trunkmanager/edit', 'Edit', array('arguments' => 'trunk_id'));
     $grid->addAction('trunkmanager/delete', 'Delete', array('arguments' => 'trunk_id'));
     // Let plugins populate the grid as well
     $this->grid = $grid;
     plugins::views($this);
     // Produce a grid in the view
     $this->view->grid = $this->grid->produce();
 }
开发者ID:swk,项目名称:bluebox,代码行数:18,代码来源:trunkmanager.php


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