本文整理汇总了PHP中smarty_function_sugar_action_menu函数的典型用法代码示例。如果您正苦于以下问题:PHP smarty_function_sugar_action_menu函数的具体用法?PHP smarty_function_sugar_action_menu怎么用?PHP smarty_function_sugar_action_menu使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了smarty_function_sugar_action_menu函数的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: smarty_function_sugar_action_menu
?>
">
<input type="hidden" id="user_type" name="user_type" value="<?php
echo $this->_tpl_vars['UserType'];
?>
">
<input type="hidden" name="password_generate">
<input type="hidden" name="old_password">
<input type="hidden" name="new_password">
<input type="hidden" name="return_module">
<input type="hidden" name="return_action">
<input type="hidden" name="return_id">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td colspan='2' width="100%" nowrap>
<?php
echo smarty_function_sugar_action_menu(array('id' => 'detail_header_action_menu', 'class' => 'clickMenu fancymenu', 'buttons' => $this->_tpl_vars['EDITBUTTONS']), $this);
?>
</td></tr>
</table>
</form>
</td>
<td width="100%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<?php
echo $this->_tpl_vars['PAGINATION'];
?>
</table>
</td>
</tr>
示例2: XTemplate
$GLOBALS['log']->info("EmailTemplate detail view");
$xtpl = new XTemplate('modules/EmailTemplates/DetailView.html');
$xtpl->assign("MOD", $mod_strings);
$xtpl->assign("APP", $app_strings);
$buttons = array(<<<EOD
<input type="submit" class="button" id="editEmailTemplatesButton" title="{$app_strings['LBL_EDIT_BUTTON_TITLE']}" accessKey="{$app_strings['LBL_EDIT_BUTTON_KEY']}" onclick="this.form.return_module.value='EmailTemplates'; this.form.return_action.value='DetailView'; this.form.return_id.value='{$focus->id}'; this.form.action.value='EditView'" value="{$app_strings['LBL_EDIT_BUTTON_LABEL']}">
EOD
, <<<EOD
<input title="{$app_strings['LBL_DUPLICATE_BUTTON_TITLE']}" accessKey="{$app_strings['LBL_DUPLICATE_BUTTON_KEY']}" class="button" onclick="this.form.return_module.value='EmailTemplates'; this.form.return_action.value='index'; this.form.isDuplicate.value=true; this.form.action.value='EditView'" type="submit" name="button" value="{$app_strings['LBL_DUPLICATE_BUTTON_LABEL']}">
EOD
, <<<EOD
<input title="{$app_strings['LBL_DELETE_BUTTON_TITLE']}" accessKey="{$app_strings['LBL_DELETE_BUTTON_KEY']}" class="button" onclick="check_deletable_EmailTemplate();" type="button" name="button" value="{$app_strings['LBL_DELETE_BUTTON_LABEL']}">
EOD
);
require_once 'include/SugarSmarty/plugins/function.sugar_action_menu.php';
$action_button = smarty_function_sugar_action_menu(array('id' => 'detail_header_action_menu', 'buttons' => $buttons, 'class' => 'clickMenu fancymenu'), $xtpl);
$xtpl->assign("ACTION_BUTTON", $action_button);
if (isset($_REQUEST['return_module'])) {
$xtpl->assign("RETURN_MODULE", $_REQUEST['return_module']);
}
if (isset($_REQUEST['return_action'])) {
$xtpl->assign("RETURN_ACTION", $_REQUEST['return_action']);
}
if (isset($_REQUEST['return_id'])) {
$xtpl->assign("RETURN_ID", $_REQUEST['return_id']);
}
$xtpl->assign("GRIDLINE", $gridline);
$xtpl->assign("PRINT_URL", "index.php?" . $GLOBALS['request_string']);
$xtpl->assign("ID", $focus->id);
$xtpl->assign("CREATED_BY", $focus->created_by_name);
$xtpl->assign("MODIFIED_BY", $focus->modified_by_name);
示例3: preg_replace
$module = preg_replace("/ /", "", $mod_strings['LBL_MODULE_NAME']);
$the_title .= "<tr><td><table width='100%' cellpadding='0' cellspacing='0' border='0' style='padding-top:3px; margin-bottom: 0px; padding-bottom: 0px; margin-top: 3px;'><tr><td valign='top'></td></tr></table></td></tr>";
$the_title .= "<tr><td valign='top'><h3>" . $current_module_strings['LBL_MODULE_SECTION_TITLE'] . ":</h3></td>\n";
$the_title .= "</tr></table>\n";
echo $the_title;
$buttons = array("<input title='" . $app_strings['LBL_NEW_BUTTON_TITLE'] . "' class='button' type='submit' name='NewWorkFlowAlertShells' id='NewWorkFlowAlertShells' value=' " . $app_strings['LBL_NEW_BUTTON_LABEL'] . " '>\n");
$button = "<form action='index.php' method='post' name='form' id='form'>\n";
$button .= "<input type='hidden' name='module' value='WorkFlowAlertShells'>\n";
$button .= "<input type='hidden' name='module_tab' value='WorkFlow'>\n";
$button .= "<input type='hidden' name='workflow_id' value='{$focus->id}'>\n<input type='hidden' name='alert_name' value='{$focus->name}'>\n";
$button .= "<input type='hidden' name='return_module' value='" . $currentModule . "'>\n";
$button .= "<input type='hidden' name='return_action' value='" . $action . "'>\n";
$button .= "<input type='hidden' name='return_id' value='" . $focus->id . "'>\n";
$button .= "<input type='hidden' name='action' value='EditView';>\n";
require_once 'include/SugarSmarty/plugins/function.sugar_action_menu.php';
$button .= smarty_function_sugar_action_menu(array('id' => 'ACLRoles_EditView_action_menu', 'buttons' => $buttons), $xtpl);
//$button .= "<input title='".$current_module_strings['LBL_NEW_BUTTON_TITLE_ACTION']."' class='button' type='button' name='New' value=' ".$current_module_strings['LBL_NEW_BUTTON_LABEL_ACTION']."'";
//$button .= "LANGUAGE=javascript onclick='window.open(\"index.php?module=WorkFlowActionShells&action=CreateStep1&html=CreateStep1&form=ComponentView&form_submit=false&query=true&sugar_body_only=true&workflow_id=$focus->id\",\"new\",\"width=400,height=500,resizable=1,scrollbars=1\");'";
//$button .= ">\n";
$button .= "</form>";
$admin = Administration::getSettings();
$mail_server = trim($admin->settings['mail_smtpserver']);
if (empty($mail_server) && !empty($focus_alerts_list)) {
echo "<BR><font color='red'><b>" . $mod_strings['LBL_LACK_OF_NOTIFICATIONS_ON'] . "</b></font><BR>";
}
//ALERT SUBPANEL
//$focus_alerts_list2 = array_merge($focus_alerts_list, $focus_actions_list);
$ListView = new ListView();
$header_text = '';
$ListView->initNewXTemplate('modules/WorkFlowAlertShells/SubPanelView.html', $current_module_strings);
$ListView->xTemplateAssign("WORKFLOW_ID", $focus->id);
示例4: smarty_function_sugar_action_menu
}
?>
</td>
</tr>
</table>
</td>
</tr>
<tr height='20'>
<?php
if ($this->_tpl_vars['prerow']) {
?>
<td nowrap="nowrap" width="43px" class="selectCol td_alt">
<div style="width:43px">
<?php
echo smarty_function_sugar_action_menu(array('id' => $this->_tpl_vars['link_select_id'], 'params' => $this->_tpl_vars['selectLink']), $this);
?>
</div>
</td>
<td class='td_alt' nowrap="nowrap" width='1%'> </td>
<?php
}
?>
<?php
echo smarty_function_counter(array('start' => 0, 'name' => 'colCounter', 'print' => false, 'assign' => 'colCounter'), $this);
?>
<?php
$_from = $this->_tpl_vars['displayColumns'];
if (!is_array($_from) && !is_object($_from)) {
示例5: smarty_function_sugar_button
echo smarty_function_sugar_button(array('module' => $this->_tpl_vars['module'], 'id' => 'SAVE', 'view' => $this->_tpl_vars['view'], 'form_id' => $this->_tpl_vars['form_id'], 'location' => 'FOOTER', 'appendTo' => 'footer_buttons'), $this);
?>
<?php
echo smarty_function_sugar_button(array('module' => $this->_tpl_vars['module'], 'id' => 'CANCEL', 'view' => $this->_tpl_vars['view'], 'form_id' => $this->_tpl_vars['form_id'], 'location' => 'FOOTER', 'appendTo' => 'footer_buttons'), $this);
?>
<?php
}
if (empty($this->_tpl_vars['form']['hideAudit']) || !$this->_tpl_vars['form']['hideAudit']) {
echo smarty_function_sugar_button(array('module' => $this->_tpl_vars['module'], 'id' => 'Audit', 'view' => $this->_tpl_vars['view'], 'form_id' => $this->_tpl_vars['form_id'], 'appendTo' => 'footer_buttons'), $this);
?>
<?php
}
echo smarty_function_sugar_action_menu(array('buttons' => $this->_tpl_vars['footer_buttons'], 'class' => 'fancymenu', 'flat' => true), $this);
?>
</div>
<?php
}
?>
</form>
<?php
if ($this->_tpl_vars['externalJSFile']) {
?>
{sugar_include include=$externalJSFile}
<?php
}
?>
示例6: processListRows
/**
* @return void
* @param unknown $data
* @param unknown $xTemplateSection
* @param unknown $html_varName
* @desc INTERNAL FUNCTION handles the rows
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
*/
function processListRows($data, $xtemplateSection, $html_varName)
{
global $odd_bg;
global $even_bg;
global $hilite_bg;
global $app_strings, $sugar_version, $sugar_config;
global $currentModule;
$this->xTemplate->assign('BG_HILITE', $hilite_bg);
$this->xTemplate->assign('CHECKALL', SugarThemeRegistry::current()->getImage('blank', '', 1, 1, ".gif", ''));
//$this->xTemplate->assign("BG_CLICK", $click_bg);
$oddRow = true;
$count = 0;
reset($data);
//GETTING OFFSET
$offset = $this->getOffset($html_varName);
$timeStamp = $this->unique_id();
$_SESSION[$html_varName . "_FROM_LIST_VIEW"] = $timeStamp;
$associated_row_data = array();
//mail merge list
$mergeList = array();
$module = '';
//todo what is this? It is using an array as a boolean
while (list($aVal, $aItem) = each($data)) {
if (isset($this->data_array)) {
$fields = $this->data_array;
} else {
$aItem->check_date_relationships_load();
$fields = $aItem->get_list_view_data();
}
if (is_object($aItem)) {
// cn: bug 5349
//add item id to merge list, if the button is clicked
$mergeList[] = $aItem->id;
if (empty($module)) {
$module = $aItem->module_dir;
}
}
//ADD OFFSET TO ARRAY
$fields['OFFSET'] = $offset + $count + 1;
$fields['STAMP'] = $timeStamp;
if ($this->shouldProcess) {
$prerow = '';
if (!isset($this->data_array)) {
$prerow .= "<input onclick='sListView.check_item(this, document.MassUpdate)' type='checkbox' class='checkbox' name='mass[]' value='" . $fields['ID'] . "'>";
}
$this->xTemplate->assign('PREROW', $prerow);
$this->xTemplate->assign('CHECKALL', "<input type='checkbox' class='checkbox' title='" . $GLOBALS['app_strings']['LBL_SELECT_ALL_TITLE'] . "' name='massall' id='massall' value='' onclick='sListView.check_all(document.MassUpdate, \"mass[]\", this.checked)'>");
}
if (!isset($this->data_array)) {
$tag = $aItem->listviewACLHelper();
$this->xTemplate->assign('TAG', $tag);
}
if ($oddRow) {
$ROW_COLOR = 'oddListRow';
$BG_COLOR = $odd_bg;
} else {
$ROW_COLOR = 'evenListRow';
$BG_COLOR = $even_bg;
}
$oddRow = !$oddRow;
$this->xTemplate->assign('ROW_COLOR', $ROW_COLOR);
$this->xTemplate->assign('BG_COLOR', $BG_COLOR);
if (isset($this->data_array)) {
$this->xTemplate->assign('KEY', $aVal);
$this->xTemplate->assign('VALUE', $aItem);
$this->xTemplate->assign('INDEX', $count);
} else {
//AED -- some modules do not have their additionalDetails.php established. Add a check to ensure require_once does not fail
// Bug #2786
if ($this->_additionalDetails && $aItem->ACLAccess('DetailView') && (file_exists('modules/' . $aItem->module_dir . '/metadata/additionalDetails.php') || file_exists('custom/modules/' . $aItem->module_dir . '/metadata/additionalDetails.php'))) {
$additionalDetailsFile = 'modules/' . $aItem->module_dir . '/metadata/additionalDetails.php';
if (file_exists('custom/modules/' . $aItem->module_dir . '/metadata/additionalDetails.php')) {
$additionalDetailsFile = 'custom/modules/' . $aItem->module_dir . '/metadata/additionalDetails.php';
}
require_once $additionalDetailsFile;
$ad_function = (empty($this->additionalDetailsFunction) ? 'additionalDetails' : $this->additionalDetailsFunction) . $aItem->object_name;
$results = $ad_function($fields);
$results['string'] = str_replace(array("'", "'"), '\\'', $results['string']);
// no xss!
if (trim($results['string']) == '') {
$results['string'] = $app_strings['LBL_NONE'];
}
$fields[$results['fieldToAddTo']] = $fields[$results['fieldToAddTo']] . '</a>';
}
if ($aItem->ACLAccess('Delete')) {
$delete = '<a class="listViewTdToolsS1" onclick="return confirm(\'' . $this->local_app_strings['NTC_DELETE_CONFIRMATION'] . '\')" href="' . 'index.php?action=Delete&module=' . $aItem->module_dir . '&record=' . $fields['ID'] . '&return_module=' . $aItem->module_dir . '&return_action=index&return_id=">' . $this->local_app_strings['LBL_DELETE_INLINE'] . '</a>';
require_once 'include/Smarty/plugins/function.sugar_action_menu.php';
$fields['DELETE_BUTTON'] = smarty_function_sugar_action_menu(array('id' => $aItem->module_dir . '_' . $fields['ID'] . '_create_button', 'buttons' => array($delete)), $this);
}
$this->xTemplate->assign($html_varName, $fields);
//.........这里部分代码省略.........
示例7: get_buttons
function get_buttons($thisPanel, $panel_query = null)
{
$subpanel_def = $thisPanel->get_buttons();
$layout_manager = $this->getLayoutManager();
//for action button at the top of each subpanel
// bug#51275: smarty widget to help provide the action menu functionality as it is currently sprinkled throughout the app with html
$buttons = array();
$widget_contents = '';
foreach ($subpanel_def as $widget_data) {
$widget_data['action'] = $_REQUEST['action'];
$widget_data['module'] = $thisPanel->get_inst_prop_value('module');
$widget_data['focus'] = $this->focus;
$widget_data['subpanel_definition'] = $thisPanel;
$widget_contents .= '<td class="buttons">' . "\n";
if (empty($widget_data['widget_class'])) {
$buttons[] = "widget_class not defined for top subpanel buttons";
} else {
$button = $layout_manager->widgetDisplay($widget_data);
if ($button) {
$buttons[] = $button;
}
}
}
require_once 'include/SugarSmarty/plugins/function.sugar_action_menu.php';
$widget_contents = smarty_function_sugar_action_menu(array('buttons' => $buttons, 'class' => 'clickMenu fancymenu'), $this->xTemplate);
return $widget_contents;
}
示例8: get_set_focus_js
}
if (isset($_REQUEST['return_id'])) {
$xtpl->assign("RETURN_ID", $_REQUEST['return_id']);
}
$xtpl->assign("THEME", SugarThemeRegistry::current()->__toString());
//$xtpl->assign("IMAGE_PATH", $image_path);
$xtpl->assign("JAVASCRIPT", get_set_focus_js());
$xtpl->assign("ID", $focus->id);
$xtpl->assign('NAME', $focus->name);
$xtpl->assign('URL', $focus->url);
$xtpl->assign('URL_TITLE', $focus->url_title);
$xtpl->assign('NAME', $focus->name);
$xtpl->assign('DESCRIPTION', $focus->description);
$buttons = array('<input id="btn_teamnotices_save" title="' . $app_strings['LBL_SAVE_BUTTON_TITLE'] . '" accessKey="' . $app_strings['LBL_SAVE_BUTTON_KEY'] . '" class="button primary" onclick="this.form.action.value=\'Save\'; return check_form(\'EditView\');" type="submit" name="button" value="' . $app_strings['LBL_SAVE_BUTTON_LABEL'] . '">', '<input id="btn_teamnotices_cancel" title="' . $app_strings['LBL_CANCEL_BUTTON_TITLE'] . '" accessKey="' . $app_strings['LBL_CANCEL_BUTTON_KEY'] . '" onclick="this.form.action.value=\'index\';" class="button" type="submit" name="button" value="' . $app_strings['LBL_CANCEL_BUTTON_LABEL'] . '">');
require_once 'include/SugarSmarty/plugins/function.sugar_action_menu.php';
$action_button = smarty_function_sugar_action_menu(array('id' => 'teamnotices_editview_buttons', 'buttons' => $buttons, 'flat' => true), $xtpl);
$xtpl->assign('ACTION_BUTTON', $action_button);
require_once 'include/SugarFields/Fields/Teamset/SugarFieldTeamset.php';
$teamSetField = new SugarFieldTeamset('Teamset');
$code = $teamSetField->getClassicView($focus->field_defs);
$xtpl->assign("TEAM_SET_FIELD", $code);
if (!isset($focus->date_start)) {
$xtpl->assign('DATE_START', $timedate->nowDate());
} else {
$xtpl->assign('DATE_START', $focus->date_start);
}
if (!isset($focus->date_start)) {
$xtpl->assign('DATE_END', $timedate->asUser($timedate->getNow()->get('+1 week')));
} else {
$xtpl->assign('DATE_END', $focus->date_end);
}
示例9: smarty_function_sugar_action_menu
<?php
echo '
<style>
.actionsContainer.footer td {
height:120px;
vertical-align: top;
}
</style>
';
?>
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="actionsContainer footer">
<tr>
<td>
<?php
echo smarty_function_sugar_action_menu(array('id' => 'userEditActions', 'class' => 'clickMenu fancymenu', 'buttons' => $this->_tpl_vars['ACTION_BUTTON_FOOTER'], 'flat' => true), $this);
?>
</td>
<td align="right" nowrap>
<span class="required"><?php
echo $this->_tpl_vars['APP']['LBL_REQUIRED_SYMBOL'];
?>
</span> <?php
echo $this->_tpl_vars['APP']['NTC_REQUIRED'];
?>
</td>
</tr>
</table><script type="text/javascript">
YAHOO.util.Event.onContentReady("EditView",
示例10: settype
settype($_from, 'array');
}
if (count($_from)) {
foreach ($_from as $this->_tpl_vars['field']) {
echo $this->_tpl_vars['field'];
?>
<?php
}
}
unset($_from);
}
?>
</form>
<?php
echo smarty_function_sugar_action_menu(array('id' => 'detail_header_action_menu', 'buttons' => $this->_tpl_vars['detail_header_buttons'], 'class' => 'fancymenu'), $this);
?>
</div>
</td>
<td align="right" width="20%">{$ADMIN_EDIT}
<?php
if ($this->_tpl_vars['panelCount'] == 0) {
?>
<?php
if ($this->_tpl_vars['SHOW_VCR_CONTROL']) {
?>
示例11: ListView
$ListView = new ListView();
$button = "<form border='0' action='index.php' method='post' name='form'>\n";
$button .= smarty_function_sugar_csrf_form_token(array(), $ListView);
$button .= "<input type='hidden' name='module' value='ProductTypes'>\n";
$button .= "<input type='hidden' name='action' value='EditView'>\n";
$button .= "<input type='hidden' name='edit' value='true'>\n";
$button .= "<input type='hidden' name='return_module' value='" . $currentModule . "'>\n";
$button .= "<input type='hidden' name='return_action' value='" . $action . "'>\n";
$button .= "<input title='" . $app_strings['LBL_NEW_BUTTON_TITLE'] . "' accessyKey='" . $app_strings['LBL_NEW_BUTTON_KEY'] . "' class='button primary' id='btn_create' type='submit' name='New' value='" . $app_strings['LBL_NEW_BUTTON_LABEL'] . "'>\n";
$button .= "</form>\n";
if ((is_admin($current_user) || is_admin_for_module($GLOBALS['current_user'], 'Products')) && $_REQUEST['module'] != 'DynamicLayout' && !empty($_SESSION['editinplace'])) {
$header_text = " <a href='index.php?action=index&module=DynamicLayout&from_action=ListView&from_module=" . $_REQUEST['module'] . "'>" . SugarThemeRegistry::current()->getImage("EditLayout", "border='0' align='bottom'", null, null, '.gif', $mod_strings['LBL_EDITLAYOUT']) . "</a>";
}
$ListView->initNewXTemplate('modules/ProductTypes/ListView.html', $mod_strings);
$ListView->xTemplateAssign("DELETE_INLINE_PNG", SugarThemeRegistry::current()->getImage('delete_inline', 'align="absmiddle" border="0"', null, null, '.gif', $app_strings['LNK_DELETE']));
$action_button = smarty_function_sugar_action_menu(array('id' => 'manufacturer_create_button', 'buttons' => array($button)), $ListView);
$ListView->setHeaderTitle($header_text . $action_button);
$ListView->show_export_button = false;
$ListView->show_mass_update = false;
$ListView->show_delete_button = false;
$ListView->setQuery("", "", "list_order", "PRODUCTTYPE");
$ListView->processListView($focus, "main", "PRODUCTTYPE");
if ($is_edit) {
$GLOBALS['log']->info("ProductType edit view");
$edit_button = "<form name='EditView' method='POST' action='index.php'>\n";
$edit_button .= smarty_function_sugar_csrf_form_token(array(), $ListView);
$edit_button .= "<input type='hidden' name='module' value='ProductTypes'>\n";
$edit_button .= "<input type='hidden' name='record' value='{$focus->id}'>\n";
$edit_button .= "<input type='hidden' name='action'>\n";
$edit_button .= "<input type='hidden' name='edit'>\n";
$edit_button .= "<input type='hidden' name='isDuplicate'>\n";
示例12: get_select_options_with_id
$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();
示例13: smarty_function_sugar_action_menu
?>
'>
<input type='hidden' name='return_record' value='<?php
echo $this->_tpl_vars['RETURN']['record'];
?>
'>
<input type='hidden' name='return_action' value='<?php
echo $this->_tpl_vars['RETURN']['action'];
?>
'>
<input type='hidden' name='return_module' value='<?php
echo $this->_tpl_vars['RETURN']['module'];
?>
'>
<?php
echo smarty_function_sugar_action_menu(array('id' => 'roleEditActions', 'class' => 'clickMenu fancymenu', 'buttons' => $this->_tpl_vars['ACTION_MENU'], 'flat' => true), $this);
?>
</td>
</tr>
</tbody>
</table>
<TABLE width='100%' class="edit view" border='0' cellpadding=0 cellspacing = 0 >
<TR>
<td scope="row" align='right'><?php
echo $this->_tpl_vars['MOD']['LBL_NAME'];
?>
:<span class="required"><?php
echo $this->_tpl_vars['APP']['LBL_REQUIRED_SYMBOL'];
?>
</span></td><td >
示例14: confirm
$APP = $this->get_template_vars('APP');
$this->append('buttons', <<<EOD
<input title="{$APP['LBL_EDIT_BUTTON_TITLE']}" accessKey="{$APP['LBL_EDIT_BUTTON_KEY']}" class="button" onclick="var _form = \$('#form')[0]; _form.action.value='EditView'; _form.submit();" type="submit" name="button" value="{$APP['LBL_EDIT_BUTTON']}" />
EOD
);
$this->append('buttons', <<<EOD
<input title="{$APP['LBL_DUPLICATE_BUTTON_TITLE']}" accessKey="{$APP['LBL_DUPLICATE_BUTTON_KEY']}" class="button" onclick="this.form.isDuplicate.value='1'; this.form.action.value='EditView'" type="submit" name="button" value=" {$APP['LBL_DUPLICATE_BUTTON']} " />
EOD
);
$this->append('buttons', <<<EOD
<input title="{$APP['LBL_DELETE_BUTTON_TITLE']}" accessKey="{$APP['LBL_DELETE_BUTTON_KEY']}" class="button" onclick="this.form.return_module.value='ACLRoles'; this.form.return_action.value='index'; this.form.action.value='Delete'; return confirm('{$APP['NTC_DELETE_CONFIRMATION']}')" type="submit" name="button" value=" {$APP['LBL_DELETE_BUTTON']} " />
EOD
);
?>
<?php
echo smarty_function_sugar_action_menu(array('id' => 'userEditActions', 'class' => 'clickMenu fancymenu', 'buttons' => $this->_tpl_vars['buttons']), $this);
?>
</form>
</p>
<p>
<TABLE width='100%' class='detail view' border='0' cellpadding=0 cellspacing = 1 >
<TR>
<td valign='top' width='15%' align='right'><b><?php
echo $this->_tpl_vars['MOD']['LBL_NAME'];
?>
:</b></td><td width='85%' colspan='3'><?php
echo $this->_tpl_vars['ROLE']['name'];
?>
</td>
</tr