本文整理匯總了PHP中javascript::addActionMenu方法的典型用法代碼示例。如果您正苦於以下問題:PHP javascript::addActionMenu方法的具體用法?PHP javascript::addActionMenu怎麽用?PHP javascript::addActionMenu使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類javascript
的用法示例。
在下文中一共展示了javascript::addActionMenu方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
$xtpl->assign("FIRE_ORDER", get_select_options_with_id($app_list_strings['wflow_fire_order_dom'], $focus->fire_order));
$xtpl->assign("TYPE", get_select_options_with_id($app_list_strings['wflow_type_dom'], $focus->type));
$xtpl->assign("RECORD_TYPE", get_select_options_with_id($app_list_strings['wflow_record_type_dom'], $focus->record_type));
$xtpl->assign("BASE_MODULE", get_select_options_with_id($focus->get_module_array(), $focus->base_module));
$cancel = "<input title='" . $app_strings['LBL_CANCEL_BUTTON_TITLE'] . "' id='cancel_workflow'\n accessKey='" . $app_strings['LBL_CANCEL_BUTTON_KEY'] . "' class='button' ";
if (isset($_REQUEST['return_action'])) {
$cancel .= "onclick='this.form.action.value=\"" . $returnAction . "\";";
if (isset($_REQUEST['return_module'])) {
$cancel .= "this.form.module.value=\"" . $_REQUEST['return_module'] . "\";";
if (isset($_REQUEST['return_id'])) {
$cancel .= "this.form.record.value=\"" . $_REQUEST['return_id'] . "\";";
}
}
$cancel .= "'";
}
$cancel .= " type='submit' name='button' value='" . $app_strings['LBL_CANCEL_BUTTON_LABEL'] . "'>";
$buttons = array("<input title='" . $app_strings['LBL_SAVE_BUTTON_TITLE'] . "'' id='save_workflow'\n accessKey='" . $app_strings['LBL_SAVE_BUTTON_KEY'] . "'' class='button'\n onclick='this.form.action.value=\"Save\"; return check_form(\"EditView\");'\n type='submit' name='button' value='" . $app_strings['LBL_SAVE_BUTTON_LABEL'] . "' >", $cancel);
require_once 'include/SugarSmarty/plugins/function.sugar_action_menu.php';
$action_buttons = smarty_function_sugar_action_menu(array('id' => 'ACLRoles_EditView_action_menu', 'buttons' => $buttons, 'flat' => true), $xtpl);
$xtpl->assign('ACTION_MENU', $action_buttons);
global $current_user;
//Add Custom Fields
require_once 'modules/DynamicFields/templates/Files/EditView.php';
$xtpl->parse("main");
$xtpl->out("main");
$javascript = new javascript();
$javascript->setFormName('EditView');
$javascript->setSugarBean($focus);
$javascript->addAllFields('');
$javascript->addActionMenu();
echo $javascript->getScript();