當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ViewList類代碼示例

本文整理匯總了PHP中ViewList的典型用法代碼示例。如果您正苦於以下問題:PHP ViewList類的具體用法?PHP ViewList怎麽用?PHP ViewList使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了ViewList類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: testOverrideSearchFields

 function testOverrideSearchFields()
 {
     $list = new ViewList();
     $list->module = "Contacts";
     $list->seed = new Contact();
     $list->prepareSearchForm();
     $this->assertTrue(isset($list->searchForm->searchFields['test']));
 }
開發者ID:rgauss,項目名稱:sugarcrm_dev,代碼行數:8,代碼來源:Bug36989Test.php

示例2: preDisplay

 /**
  * @see ViewList::preDisplay()
  */
 public function preDisplay()
 {
     require_once 'modules/AOS_PDF_Templates/formLetter.php';
     formLetter::LVPopupHtml('Accounts');
     parent::preDisplay();
     require_once "custom/include/metrix/loadDynamicLists.php";
     //helper class to autopoluate the dropdowns
     require_once 'include/utils.php';
     global $current_user, $app_list_strings;
     $list = new loadDynamicLists();
     $dynamic_dd_fileds = array("pays_text_c" => array("tblname" => "ref_pays", "listname" => "pays_text_list", "field" => "nom", "tag" => "0"), "id_region_a_c" => array("tblname" => "ref_region", "listname" => "id_region_a_c_list", "field" => "nom", "tag" => "0"));
     foreach ($dynamic_dd_fileds as $k => $v) {
         unset($app_list_strings[$v['listname']]);
         $app_list_strings[$v['listname']] = $list->populate_list($v['tblname'], $v['field'], $v['tag']);
     }
     //echo "<pre>";
     //var_dump($app_list_strings['id_region_a_c_list']);
     /* foreach($app_list_strings['id_region_a_c_list'] as $k=>$v){
     	  	echo "'".$k."'=>'".$v."',<br>";
     	  }*/
     //if the current user is not admin then hide the values of certain fields and make them non inline-editable
     if ($current_user->is_admin != 1) {
         echo "\n\n\t\t\t<script>\n\t\t\t\t\$('html').hide();\n\t\t\t\t\$(document).ready(\n\t\t\t\tfunction()\n\t\t\t\t{\n\n\t\t\t\tvar remove_fields =    \t['coda_name_c','coda_sname_c','prive_c','id_etat_c','date_effectif_c','date_maj_c','commentaire2_c','code_hier_c','adhesion_c','sigle_c','historique','nb_etud_c','nb_ens_c','nb_cherch_c','rub_c','commentaire2_c','nb_etud_annee_obs_c','nb_ens_annee_obs_c','nb_cherch_annee_obs_c','chiffres_c'];//you can add the fields you want to hide here\n\n\n\t\t\t\t\$.each( remove_fields, function( key, value ) {\n\n\n\t\t\t\t\$('td[field= ' + value + ']').html( '' );\n\n\t\t\t\t\$('td[field=' + value + ']').removeAttr('field');\n\t\t\t\t});\n\n\t\t\t\t\$('html').show(250);\n\t\t\t\t}\n\t\t\t\t);\n\n\t\t\t</script>";
     }
     $this->lv = new AccountsListViewSmarty();
 }
開發者ID:auf,項目名稱:crm_auf_org,代碼行數:29,代碼來源:view.list.php

示例3: preDisplay

 /**
  * @see ViewList::preDisplay()
  */
 public function preDisplay()
 {
     require_once 'modules/AOS_PDF_Templates/formLetter.php';
     formLetter::LVPopupHtml('Leads');
     parent::preDisplay();
     $this->lv = new LeadsListViewSmarty();
 }
開發者ID:MexinaD,項目名稱:SuiteCRM,代碼行數:10,代碼來源:view.list.php

示例4: prepareSearchForm

 /**
  * Overridden from ViewList prepareSearchForm so we can tack on some additional where clauses
  *
  */
 function prepareSearchForm()
 {
     parent::prepareSearchForm();
     require_once 'modules/Employees/EmployeesSearchForm.php';
     $newForm = new EmployeesSearchForm($this->searchForm);
     $this->searchForm = $newForm;
 }
開發者ID:netconstructor,項目名稱:sugarcrm_dev,代碼行數:11,代碼來源:view.list.php

示例5: _getModuleTitleParams

 /**
  * @see SugarView::_getModuleTitleParams()
  */
 protected function _getModuleTitleParams($browserTitle = false)
 {
     global $mod_strings;
     $params = parent::_getModuleTitleParams($browserTitle);
     $params[] = $mod_strings['LBL_NEWSLETTER_TITLE'];
     return $params;
 }
開發者ID:jglaine,項目名稱:sugar761-ent,代碼行數:10,代碼來源:view.newsletterlist.php

示例6: display

 function display()
 {
     if (isset($_REQUEST['close_window'])) {
         echo "<script>window.close();</script>";
     }
     parent::display();
 }
開發者ID:jglaine,項目名稱:sugar761-ent,代碼行數:7,代碼來源:view.closecontactaddresspopup.php

示例7: preDisplay

 public function preDisplay()
 {
     require_once 'modules/AOS_PDF_Templates/formLetter.php';
     formLetter::LVPopupHtml('Contacts');
     parent::preDisplay();
     $this->lv = new ContactsListViewSmarty();
     /************************************************************/
     //logic for the search dynamic dropdowns
     /************************************************************/
     require_once "custom/include/metrix/loadDynamicLists.php";
     //helper class to autopoluate the dropdowns
     require_once 'include/utils.php';
     global $current_user, $app_list_strings;
     $list = new loadDynamicLists();
     $dynamic_dd_fileds = array("country_c_basic" => array("tblname" => "ref_pays", "listname" => "country_list", "field" => "nom"));
     $list = new loadDynamicLists();
     foreach ($dynamic_dd_fileds as $k => $v) {
         unset($app_list_strings[$v['listname']]);
         $app_list_strings[$v['listname']] = $list->populate_list($v['tblname'], $v['field']);
     }
     /************************************************************/
     //end logic for the search dynamic dropdowns
     /************************************************************/
     //if the current user is not admin then hide the values of certain fields and make them non inline-editable
     if ($current_user->is_admin != 1) {
         echo "\n\n\t\t\t<script>\n\t\t\t\t\$('html').hide();\n\t\t\t\t\$(document).ready(\n\t\t\t\tfunction()\n\t\t\t\t{\n\n\t\t\t\tvar remove_fields =    \t['email1','phone_mobile','jjwg_maps_address_c','primary_address_postalcode','primary_address_state','primary_address_city','alt_address_city','primary_address_country','phone_work','phone_fax','description'];//you can add the fields you want to hide here\n\n\n\t\t\t\t\$.each( remove_fields, function( key, value ) {\n\n\n\t\t\t\t\$('td[field= ' + value + ']').html( '' );\n\n\t\t\t\t\$('td[field=' + value + ']').removeAttr('field');\n\t\t\t\t});\n\n\t\t\t\t\$('html').show(250);\n\t\t\t\t}\n\t\t\t\t);\n\n\t\t\t</script>";
     }
 }
開發者ID:auf,項目名稱:crm_auf_org,代碼行數:28,代碼來源:view.list.php

示例8: preDisplay

 public function preDisplay()
 {
     echo '<script type="text/javascript" src="custom/include/js/jquery.js"></script>';
     echo '<script type="text/javascript" src="modules/Tours/js/Sync.js"></script>';
     parent::preDisplay();
     $this->lv->actionsMenuExtraItems[] = $this->builMyMenuItem();
 }
開發者ID:sysraj86,項目名稱:carnivalcrm,代碼行數:7,代碼來源:view.list.php

示例9: preDisplay

 public function preDisplay()
 {
     parent::preDisplay();
     $this->lv->actionsMenuExtraItems[] = $this->buildMyMenuItem();
     // Bug: Missing "add to target list" entry in the action menu
     $this->lv->targetList = true;
 }
開發者ID:NeoArno,項目名稱:JJWDesign-Google-Maps,代碼行數:7,代碼來源:view.list.php

示例10: preDisplay

 /**
  * @see SugarView::preDisplay()
  */
 public function preDisplay()
 {
     global $mod_strings;
     $mod_strings['LBL_MODULE_TITLE'] = $mod_strings['LBL_NEWSLETTER_TITLE'];
     $mod_strings['LBL_LIST_FORM_TITLE'] = $mod_strings['LBL_NEWSLETTER_LIST_FORM_TITLE'];
     parent::preDisplay();
 }
開發者ID:MexinaD,項目名稱:SuiteCRM,代碼行數:10,代碼來源:view.newsletterlist.php

示例11: preDisplay

 public function preDisplay()
 {
     //bug #46690: Developer Access to Users/Teams/Roles
     if (!$GLOBALS['current_user']->isAdminForModule('Users') && !$GLOBALS['current_user']->isDeveloperForModule('Users')) {
         sugar_die("Unauthorized access to administration.");
     }
     parent::preDisplay();
 }
開發者ID:jglaine,項目名稱:sugar761-ent,代碼行數:8,代碼來源:view.list.php

示例12: preDisplay

 public function preDisplay()
 {
     parent::preDisplay();
     $this->lv->quickViewLinks = false;
     $this->lv->export = false;
     $this->lv->mergeduplicates = 0;
     $this->lv->showMassupdateFields = false;
 }
開發者ID:jglaine,項目名稱:sugar761-ent,代碼行數:8,代碼來源:view.list.php

示例13: process

 /**
  * @see SugarView::process()
  */
 public function process()
 {
     $this->options['show_all'] = false;
     $this->options['show_javascript'] = true;
     $this->options['show_footer'] = false;
     $this->options['show_header'] = false;
     parent::process();
 }
開發者ID:aldridged,項目名稱:gtg-sugar,代碼行數:11,代碼來源:view.mappingproperties.php

示例14: display

 public function display()
 {
     global $current_user;
     if (!$current_user->is_admin) {
         sugar_die(translate("LBL_MUST_BE_ADMIN"));
     }
     parent::display();
 }
開發者ID:omusico,項目名稱:SelkirkCRM,代碼行數:8,代碼來源:view.list.php

示例15: listViewPrepare

 function listViewPrepare()
 {
     if (empty($_REQUEST['orderBy'])) {
         $_REQUEST['orderBy'] = 'date_start';
         $_REQUEST['sortOrder'] = 'desc';
     }
     parent::listViewPrepare();
 }
開發者ID:nitouser,項目名稱:yaai,代碼行數:8,代碼來源:view.list.php


注:本文中的ViewList類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。