function preDisplay() { parent::preDisplay(); $items = array(); $items[] = $this->buildLinks('LBL_CREATE_EBAY_LISTING_CONFIRMATION', 'createebaylisting', 'LBL_CREATE_EBAY_LISTING'); $this->lv->actionsMenuExtraItems = $items; }
/** * @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(); }
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>"; } }
/** * @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(); }
function preDisplay() { parent::preDisplay(); $this->showMassupdateFields = false; $items = array(); $this->lv->actionsMenuExtraItems = $items; }
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(); }
/** * @see ViewList::preDisplay() */ public function preDisplay() { require_once 'modules/AOS_PDF_Templates/formLetter.php'; formLetter::LVPopupHtml('Leads'); parent::preDisplay(); $this->lv = new LeadsListViewSmarty(); }
function preDisplay() { parent::preDisplay(); $this->showMassupdateFields = false; $items = array(); switch ($_REQUEST['handled_status_advanced'][0]) { case 'handled': $items[] = $this->buildLinks('LBL_REDELIVER_CONFIRMATION', 'redeliver', 'LBL_REDELIVER'); $items[] = $this->buildLinks('LBL_UNHANDLED_MARK_CONFIRMATION', 'unhandledMark', 'LBL_MARK_AS_UNHANDLED'); break; case 'suspended': $items[] = $this->buildLinks('LBL_RESUME_CONFIRMATION', 'resume', 'LBL_RESUME'); break; case 'deleted': $lbl_list_deleted = "<b>{$lbl_list_deleted}</b>"; break; case 'unhandled': $items[] = $this->buildLinks('LBL_SHIPPING_MARK_CONFIRMATION', 'shippingMark', 'LBL_SHIPPING_MARK'); $items[] = $this->buildLinks('LBL_PRINT_CONFIRMATION', 'print', 'LBL_PRINT_SELECT'); $items[] = $this->buildLinks('LBL_SUSPEND_CONFIRMATION', 'suspend', 'LBL_SUSPEND'); break; default: break; } $this->lv->actionsMenuExtraItems = $items; }
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; }
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(); }
function preDisplay() { parent::preDisplay(); $items = array(); $items[] = $this->buildLinks('LBL_UPDATE_CONFIRMATION', 'updatesellerlists', 'LBL_UPDATE'); $items[] = $this->buildLinks('LBL_EXPORT_FILE_EXCHANGE_FORMAT_CONFIRMATION', 'exportfileexchangeformat', 'LBL_EXPORT_FILE_EXCHANGE_FORMAT'); $this->lv->actionsMenuExtraItems = $items; }
function preDisplay() { parent::preDisplay(); $this->showMassupdateFields = false; $items = array(); $items[] = $this->buildLinks('LBL_UPDATE_CONFIRMATION', 'update', 'LBL_UPDATE'); $this->lv->actionsMenuExtraItems = $items; }
public function preDisplay() { parent::preDisplay(); $this->lv->quickViewLinks = false; $this->lv->export = false; $this->lv->mergeduplicates = 0; $this->lv->showMassupdateFields = false; }
/** * @see SugarView::preDisplay() */ public function preDisplay() { parent::preDisplay(); $this->lv = new ListViewSmarty(); $this->lv->export = false; $this->lv->delete = false; $this->lv->email = false; $this->lv->showMassUpdateFields = false; $this->lv->mergeduplicates = false; $this->lv->quickViewLinks = false; $this->lv->contextMenus = false; }
public function preDisplay() { parent::preDisplay(); // $this->lv->delete = false; // $this->lv->export = false; // $this->lv->multiSelect = false; // $this->lv->mergeduplicates = false; // $this->lv->showMassupdaeFields = false; // $this->lv->show_action_dropdown = false; // $this->lv->show_process = false; // $this->lv->quickViewLinks = false; }
public function preDisplay() { parent::preDisplay(); $this->lv->targetList = true; }
public function preDisplay() { parent::preDisplay(); }
public function preDisplay() { parent::preDisplay(); $this->lv->targetList = true; echo '<script src="modules/acl_fields/js/acl_fields.js"></script>'; }
function preDisplay() { parent::preDisplay(); $this->lv->showMassupdateFields = false; }
public function preDisplay() { parent::preDisplay(); $this->lv->delete = false; }
public function testdisplay() { $view = new ViewList(); //test without setting bean attibute. it shuold return no access html. ob_start(); $view->display(); $renderedContent1 = ob_get_contents(); ob_end_clean(); $this->assertGreaterThan(0, strlen($renderedContent1)); //test with bean, seed and other arrtibutes set. it shuold return html. $view->bean = new User(); $view->seed = new User(); $view->module = 'Users'; $view->prepareSearchForm(); $view->preDisplay(); ob_start(); $view->display(); $renderedContent2 = ob_get_contents(); ob_end_clean(); $this->assertGreaterThan(0, strlen($renderedContent2)); }
public function preDisplay() { parent::preDisplay(); $this->lv->actionsMenuExtraItems[] = $this->buildMyMenuItem(); }
public function preDisplay() { parent::preDisplay(); $this->lv->actionsMenuExtraItems[] = $this->pokaz_calendar(); echo '<script type="text/javascript" src="custom/modules/Realty/js/assisJSON.js"></script>'; }