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


PHP JRequest::GetVar方法代码示例

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


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

示例1: display

 function display($tpl = null)
 {
     $test = JRequest::getVar('test');
     if ($test > 0) {
         return $this->TestAccount($test);
     }
     JToolBarHelper::title(JText::_('TICKET_EMAIL_ACCOUNT_MANAGER'), 'fss_emailaccounts');
     JToolBarHelper::custom('log', 'html', 'html', 'View Log', false);
     JToolBarHelper::deleteList();
     JToolBarHelper::editList();
     JToolBarHelper::addNew();
     JToolBarHelper::cancel('cancellist');
     FSSAdminHelper::DoSubToolbar();
     $task = JRequest::GetVar('task');
     if ($task == "log") {
         return $this->ViewLog();
     }
     $lists = $this->get('Lists');
     $document = JFactory::getDocument();
     //JHTML::_( 'behavior.mootools' );
     //$document->addStyleSheet( JURI::base() . 'components/com_fss/assets/slimbox/slimbox.css' );
     //$document->addScript( JURI::base() .'components/com_fss/assets/slimbox/slimbox.js');
     $pubslihed = array();
     $pubslihed[] = JHTML::_('select.option', '-1', JText::_('Is_Published'), 'id', 'title');
     $pubslihed[] = JHTML::_('select.option', '1', JText::_('Published'), 'id', 'title');
     $pubslihed[] = JHTML::_('select.option', '0', JText::_('Unpublished'), 'id', 'title');
     $lists['published'] = JHTML::_('select.genericlist', $pubslihed, 'ispublished', 'class="inputbox" size="1" onchange="document.adminForm.submit( );"', 'id', 'title', $lists['ispublished']);
     $this->lists = $lists;
     $this->data = $this->get('Data');
     $this->pagination = $this->get('Pagination');
     $this->imap_ok = function_exists("imap_open");
     $this->ini_location = $this->GetINILocation();
     parent::display($tpl);
 }
开发者ID:vstorm83,项目名称:propertease,代码行数:34,代码来源:view.html.php

示例2: serverImport

 function serverImport()
 {
     if (!igGeneralHelper::authorise('core.admin')) {
         return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
     }
     $filePathRaw = JRequest::GetVar('path');
     $filePath = str_replace('*', '\\', $filePathRaw);
     if (!($fileData = igFileHelper::processImportedImage($filePath))) {
         return false;
     }
     $model = $this->getModel();
     if (!$model->store($fileData)) {
         echo $model->getError();
         return false;
     }
     echo 1;
 }
开发者ID:iFactoryDigital,项目名称:gympieradiology,代码行数:17,代码来源:image.raw.php

示例3: testdates

 function testdates()
 {
     // test the 4 date formats
     $date = time();
     $result = array();
     $result['date_dt_short'] = $this->testdate($date, JRequest::GetVar('date_dt_short'));
     $result['date_dt_long'] = $this->testdate($date, JRequest::GetVar('date_dt_long'));
     $result['date_d_short'] = $this->testdate($date, JRequest::GetVar('date_d_short'));
     $result['date_d_long'] = $this->testdate($date, JRequest::GetVar('date_d_long'));
     $result['timezone_offset'] = $this->testdate($date, 'Y-m-d H:i:s');
     echo json_encode($result);
     exit;
 }
开发者ID:sansandeep143,项目名称:av,代码行数:13,代码来源:view.html.php

示例4: testdates

 function testdates()
 {
     // test the 4 date formats
     $date = time();
     $result = array();
     $offset = (int) JRequest::GetVar('offset');
     FSS_Settings::set('timezone_offset', $offset);
     $date_dt_short = JRequest::GetVar('date_dt_short');
     if ($date_dt_short == "") {
         $date_dt_short = JText::_('DATE_FORMAT_LC4') . ', H:i';
     }
     $result['date_dt_short'] = $this->testdate($date, $date_dt_short);
     $date_dt_long = JRequest::GetVar('date_dt_long');
     if ($date_dt_long == "") {
         $date_dt_long = JText::_('DATE_FORMAT_LC3') . ', H:i';
     }
     $result['date_dt_long'] = $this->testdate($date, $date_dt_long);
     $date_d_short = JRequest::GetVar('date_d_short');
     if ($date_d_short == "") {
         $date_d_short = JText::_('DATE_FORMAT_LC4');
     }
     $result['date_d_short'] = $this->testdate($date, $date_d_short);
     $date_d_long = JRequest::GetVar('date_d_long');
     if ($date_d_long == "") {
         $date_d_long = JText::_('DATE_FORMAT_LC3');
     }
     $result['date_d_long'] = $this->testdate($date, $date_d_long);
     $result['timezone_offset'] = $this->testdate($date, 'Y-m-d H:i:s');
     echo json_encode($result);
     exit;
 }
开发者ID:vstorm83,项目名称:propertease,代码行数:31,代码来源:view.html.php

示例5: pluginForm

 function pluginForm()
 {
     $plugin = JRequest::GetVar('plugin', '');
     if ($plugin == "") {
         exit;
     }
     $plugin = FSSCF::get_plugin($plugin);
     echo $plugin->DisplaySettings(null);
     exit;
 }
开发者ID:vstorm83,项目名称:propertease,代码行数:10,代码来源:view.html.php


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