本文整理汇总了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();