本文整理汇总了PHP中ViewDetail::display方法的典型用法代码示例。如果您正苦于以下问题:PHP ViewDetail::display方法的具体用法?PHP ViewDetail::display怎么用?PHP ViewDetail::display使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ViewDetail
的用法示例。
在下文中一共展示了ViewDetail::display方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: display
/**
* display
*
*/
function display()
{
parent::display();
global $current_user, $app_strings, $mod_strings;
if (isset($this->bean->query_id) && !empty($this->bean->query_id)) {
//CHECK FOR SUB-QUERIES
$this->bean->check_interlock();
//OUTPUT THE DATASET
$data_set = BeanFactory::getBean('CustomQueries', $this->bean->query_id);
$QueryView = new ReportListView();
$QueryView->initNewXTemplate('modules/CustomQueries/QueryView.html', $mod_strings);
$QueryView->setHeaderTitle($this->bean->name);
//below: make sure to aquire the custom layout headers if available
$QueryView->export_type = "Ent";
$QueryView->xTemplateAssign('EDIT_INLINE', SugarThemeRegistry::current()->getImage('edit_inline', 'align="absmiddle" border="0"', null, null, '.gif', $app_strings['LNK_EDIT']));
$QueryView->xTemplateAssign('LEFTARROW_INLINE', SugarThemeRegistry::current()->getImage('calendar_previous', 'align="absmiddle" border="0"', null, null, '.gif', $mod_strings['LBL_LEFT']));
$QueryView->xTemplateAssign('RIGHTARROW_INLINE', SugarThemeRegistry::current()->getImage('calendar_next', 'align="absmiddle" border="0"', null, null, '.gif', $mod_strings['LBL_RIGHT']));
$QueryView->setup($data_set, $this->bean, "main", "CUSTOMQUERY");
$query_results = $QueryView->processDataSet();
if ($query_results['result'] == "Error") {
if (is_admin($current_user)) {
echo "<font color=\"red\"><b>" . $query_results['result_msg'] . "" . $app_strings['ERROR_EXAMINE_MSG'] . "</font><BR>" . $query_results['msg'] . "</b>";
} else {
echo "<font color=\"red\"><b>" . $query_results['result_msg'] . "</font></b><BR>";
}
}
//end if there is even a query for the data set
} else {
echo "<font color=\"red\"><b>" . $app_strings['NO_QUERY_SELECTED'] . "</font></b><BR>";
}
}
示例2: display
function display()
{
$output = array();
$fields = unencodeMultienum($this->bean->report_vars);
foreach ($fields as $field) {
if (strpos($field, '.')) {
list($module_name, $field_name) = explode('.', $field, 2);
if (!isset($output[$module_name])) {
$output[$module_name] = array();
}
$output[$module_name][$field_name] = Reports_Utils::translateField($field, '', false);
} else {
$output[$field] = Reports_Utils::translateField($field, $this->bean->report_module);
}
$html = '<ul>';
//krsort($output);
foreach ($output as $key => $field) {
if (is_array($field)) {
$html .= "<li><b>{$key}</b></li><ul>";
foreach ($field as $rel_key => $rel_field) {
$html .= "<li>{$rel_field} <input type='text' size=25 value='[{$key}.{$rel_key}]'></li>";
}
$html .= '</ul>';
} else {
$html .= "<li>{$field} <input type='text' size=25 value='[{$key}]'></li>";
}
}
$html .= '</ul>';
}
$this->ss->assign('REPORT_VARS_TREE', $html);
$this->ss->assign('DOWNLOAD_TEMPLATE_LINK', $this->bean->getStoredFileName());
parent::display();
}
示例3: display
function display()
{
global $mod_strings, $app_list_strings;
$this->displayPopupHtml();
// Contract Value:
$html = '
<table cellpadding="0" cellspacing="0" border="1" width="100%" style="border-collapse:collapse" class="table_clone" id="contract_value">
<thead>
<tr bgcolor="#CCCCCC">
<th align="center"> ' . $mod_strings['LBL_CONTRACT_SERVICE'] . '</th>
<th align="center"> ' . $mod_strings['LBL_CONTRACT_SOLUONG'] . '</th>
<th align="center"> ' . $mod_strings['LBL_CONTRACT_GIATOUR'] . '</th>
<th align="center"> ' . $mod_strings['LBL_CONTRACT_THUE'] . '</th>
<th align="center"> ' . $mod_strings['LBL_CONTRACT_THANHTIEN'] . '</th>
<th align="center"> </th>
</tr>
</thead>
<tbody>
';
$html .= $this->bean->get_contract_values_detailview();
$html .= '</tbody>
</table>';
$this->dv->ss->assign("contract_value", $html);
// Contract Condition:
$html = '
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="table_clone" id="contract_condition">
<tbody>
';
$html .= $this->bean->get_contract_condition_detailview();
$html .= '</tbody>
</table>';
$this->dv->ss->assign("contract_condition", $html);
$this->dv->ss->assign("tongtien", format_number($this->bean->tongtien));
parent::display();
}
示例4: display
function display()
{
$this->populateCurrency();
$this->populateQuoteTemplates();
$this->populateLineItems();
parent::display();
}
示例5: display
/**
* display
* Override the display method to support customization for the buttons that display
* a popup and allow you to copy the account's address into the selected contacts.
* The custom_code_billing and custom_code_shipping Smarty variables are found in
* include/SugarFields/Fields/Address/DetailView.tpl (default). If it's a English U.S.
* locale then it'll use file include/SugarFields/Fields/Address/en_us.DetailView.tpl.
*/
function display()
{
//clear detailview cache
/* $this->th2 = new TemplateHandler();
$this->th2->clearCache($this->module); */
parent::display();
}
示例6: display
/**
* display
*/
function display()
{
$this->bean->parseInterval();
$this->bean->setIntervalHumanReadable();
$this->ss->assign('JOB_INTERVAL', $this->bean->intervalHumanReadable);
parent::display();
}
示例7: display
/**
* @see SugarView::display()
*/
public function display()
{
global $beanFiles;
require_once $beanFiles['Quote'];
require_once $beanFiles['TaxRate'];
require_once $beanFiles['Shipper'];
if ($this->bean->fetched_row['date_quote_expected_closed'] == '1970-01-01' || $this->bean->fetched_row['date_quote_expected_closed'] == '0001-01-01') {
$this->bean->date_quote_expected_closed = '';
}
$this->bean->load_relationship('product_bundles');
$product_bundle_list = $this->bean->product_bundles->getBeans();
if (is_array($product_bundle_list)) {
usort($product_bundle_list, array('ProductBundle', 'compareProductBundlesByIndex'));
}
$this->ss->assign('ordered_bundle_list', $product_bundle_list);
$currency = BeanFactory::getBean('Currencies', $this->bean->currency_id);
$this->ss->assign('CURRENCY_SYMBOL', $currency->symbol);
$this->ss->assign('CURRENCY', $currency->iso4217);
$this->ss->assign('CURRENCY_ID', $currency->id);
if (!(strpos($_SERVER['HTTP_USER_AGENT'], 'Mozilla/5') === false)) {
$this->ss->assign('PDFMETHOD', 'POST');
} else {
$this->ss->assign('PDFMETHOD', 'GET');
}
// if there is an opportunity on this quote, then disable the convert to Opportunity
$disable_convert = '';
if (!empty($this->bean->opportunity_id)) {
$disable_convert = 'disabled="disabled"';
}
$this->ss->assign('DISABLE_CONVERT', $disable_convert);
global $app_list_strings, $current_user;
$this->ss->assign('APP_LIST_STRINGS', $app_list_strings);
$this->ss->assign('gridline', $current_user->getPreference('gridline') == 'on' ? '1' : '0');
parent::display();
}
示例8: display
function display()
{
echo '<style type="text/css">@import url("custom/include/OfficeReportsMerge/Prettify/prettify.css"); </style>';
echo '<script>YAHOO.util.Event.onDOMReady(function() {prettyPrint();});</script>';
$this->dv->process();
parent::display();
}
示例9: display
/**
* display
* Override the display method to support customization for the buttons that display
* a popup and allow you to copy the account's address into the selected contacts.
* The custom_code_billing and custom_code_shipping Smarty variables are found in
* include/SugarFields/Fields/Address/DetailView.tpl (default). If it's a English U.S.
* locale then it'll use file include/SugarFields/Fields/Address/en_us.DetailView.tpl.
*/
function display()
{
global $app_strings, $app_list_strings;
global $mod_strings;
parent::display();
$smarty = new Sugar_Smarty();
$smarty->assign('APP', $app_strings);
$smarty->assign('MOD', $mod_strings);
$smarty->assign('RECORD', $this->bean->id);
$popup_request_data = array('call_back_function' => 'set_return', 'form_name' => 'xeBayOrderSend', 'field_to_name_array' => array('description' => 'message'));
$json = getJSONobj();
$smarty->assign('ENCODED_TEMPLATES_POPUP_REQUEST_DATA', $json->encode($popup_request_data));
$smarty->assign("TEMPLATE_SELECT", SugarThemeRegistry::current()->getImage('id-ff-select', '', null, null, '.png', $mod_strings['LBL_SELECT']));
$smarty->assign("TEMPLATE_CLEAR", SugarThemeRegistry::current()->getImage('id-ff-clear', '', null, null, '.gif', $mod_strings['LBL_ID_FF_CLEAR']));
$itemAssociation = '';
$this->bean->load_relationship('xebaytransactions');
$transactions = $this->bean->xebaytransactions->getBeans();
$first = true;
foreach ($transactions as &$transaction) {
if (!empty($transaction->item_item_id)) {
if ($first == true) {
$first = false;
$smarty->assign('ITEM_ID', $transaction->item_item_id);
$smarty->assign('SUBJECT', $transaction->name);
$itemAssociation .= "<input name='item_assocaition' id='{$transaction->name}' type='radio' value='{$transaction->item_item_id}' checked='checked' onclick=select_item_id(this) />{$transaction->name}<br>";
} else {
$itemAssociation .= "<input name='item_assocaition' id='{$transaction->name}' type='radio' value='{$transaction->item_item_id}' onclick=select_item_id(this) />{$transaction->name}<br>";
}
}
}
$smarty->assign('ITEM_ASSOCIATION', $itemAssociation);
$smarty->assign('SALUTATION', str_replace("\n", "<br>", $this->bean->get_salutation()));
$smarty->assign('SIGNATURE', str_replace("\n", "<br>", $this->bean->get_signature()));
$smarty->display("modules/xeBayOrders/tpls/send.tpl");
}
示例10: display
function display()
{
global $mod_strings, $app_strings, $app_list_strings, $sugar_config, $current_user;
$this->ss->assign("MOD", $mod_strings);
$this->ss->assign("APP_LIST", $app_list_strings);
// Sync info from tilkee server
$this->bean->sync_from_API('update_tilks');
// Build Stat url
$stat_url = "";
if (isset($current_user->tilkee_token_c) && !empty($current_user->tilkee_token_c) && !empty($this->bean->stat_url)) {
$stat_url = $this->bean->stat_url . '&access_token=' . $current_user->tilkee_token_c;
}
$this->ss->assign("STAT_URL", $stat_url);
// Build Stat url
/*$preview_url = "";
if (isset($current_user->tilkee_token_c) && !empty($current_user->tilkee_token_c) && !empty($this->bean->preview_url)) {
$preview_url = $this->bean->preview_url.'&access_token='.$current_user->tilkee_token_c;
}*/
$this->ss->assign("PREVIEW_URL", $this->bean->preview_url);
$button_array = $this->dv->defs['templateMeta']['form']['buttons'];
$new_button_array = array();
$new_button_array[] = $button_array[0];
// EDIT
//$new_button_array[] = $button_array[1]; // DUPLICATE
$new_button_array[] = $button_array[3];
// DUPLICATE
switch ($this->bean->status) {
case 'reviewing':
$new_button_array[] = $button_array[2];
// DELETE
$new_button_array[] = $button_array[4];
// ARCHIVED/WON
$new_button_array[] = $button_array[5];
// ARCHIVED/LOST
$new_button_array[] = $button_array[6];
// ARCHIVED
break;
case 'pending_approval':
break;
case 'activated':
$new_button_array[] = $button_array[4];
// ARCHIVED/WON
$new_button_array[] = $button_array[5];
// ARCHIVED/LOST
$new_button_array[] = $button_array[6];
// ARCHIVED
break;
case 'archived':
$new_button_array[] = $button_array[2];
// DELETE
$new_button_array[] = $button_array[7];
// DESARCHIVED
break;
default:
break;
}
$this->dv->defs['templateMeta']['form']['buttons'] = $new_button_array;
parent::display();
}
示例11: display
public function display()
{
//global $current_user;
parent::display();
echo "<script src='custom/include/javascript/ajaxButton.js'></script>";
echo "<input title='Отправить презентацию' class='button' onclick='window.open(\"index.php?module=Realty&action=generate_presentation_from_application&id={$_REQUEST['record']}\")' value='Отправить презентацию' type='button'>";
echo "\n <style>\n ._realty_interests_{\n background-color:#fff;\n border:1px solid #222;\n width:250px;\n padding:1px;\n margin:0px;\n }\n ._realty_interests_ li{\n padding:2px;\n margin:0px;\n }\n ._realty_interests_ li:hover{\n background-color:#24D;\n color:#fff;\n }\n </style>";
}
示例12: display
/**
* @see SugarView::display()
*/
public function display()
{
global $beanFiles;
require_once $beanFiles['ProjectTask'];
$focus = BeanFactory::getBean('ProjectTask', $_REQUEST['record']);
$this->ss->assign('resource', $focus->getResourceName());
parent::display();
}
示例13: display
function display()
{
global $sugar_config;
//If the convert lead action has been disabled for already converted leads, disable the action link.
$disableConvert = $this->bean->status == 'Converted' && !empty($sugar_config['disable_convert_lead']) ? TRUE : FALSE;
$this->ss->assign("DISABLE_CONVERT_ACTION", $disableConvert);
parent::display();
}
示例14: display
function display()
{
$admin = Administration::getSettings();
if (isset($admin->settings['portal_on']) && $admin->settings['portal_on']) {
$this->ss->assign("PORTAL_ENABLED", true);
}
parent::display();
}
示例15: display
function display()
{
$this->populateTemplates();
$this->setDecodeHTML();
$this->displayPopupHtml();
global $mod_strings;
global $app_strings;
global $app_list_strings;
global $gridline;
$detailView = new DetailView();
$offset = 0;
if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) {
$result = $detailView->processSugarBean("CONTRACTLIQUIDATE", $this->bean, $offset);
if ($result == null) {
sugar_die($app_strings['ERROR_NO_RECORD']);
}
$this->bean = $result;
} else {
header("Location: index.php?module=ContractLiquidate&action=index");
}
if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') {
$this->bean->id = "";
}
global $theme;
$theme_path = "themes/" . $theme . "/";
$image_path = $theme_path . "images/";
require_once $theme_path . 'layout_utils.php';
$GLOBALS['log']->info("ContractLiquidate detail view");
$this->dv->ss->assign("MOD", $mod_strings);
$this->dv->ss->assign("APP", $app_strings);
$this->dv->ss->assign("THEME", $theme);
$this->dv->ss->assign("GRIDLINE", $gridline ? $gridline : 0);
$this->dv->ss->assign("IMAGE_PATH", $image_path);
$this->dv->ss->assign("PRINT_URL", "index.php?" . $GLOBALS['request_string']);
$this->dv->ss->assign("ID", $this->bean->id);
$this->dv->ss->assign("ASSIGNED_USER_NAME", $this->bean->assigned_user_name);
$this->dv->ss->assign("NAME", $this->bean->name);
$this->dv->ss->assign("NUMBER", $this->bean->number);
$this->dv->ss->assign("DATE", $this->bean->date);
$this->dv->ss->assign("CONTRACT", $this->bean->contract);
$this->dv->ss->assign("CONTRACT_ID", $this->bean->contract_id);
$this->dv->ss->assign("TONGCONG_CONTRACT_KEHOACH", number_format($this->bean->tongcong_contract_kehoach, '1', '.', ''));
$this->dv->ss->assign("TONGCONG_CONTRACT_THUCTE", number_format($this->bean->tongcong_contract_thucte, '1', '.', ''));
$this->dv->ss->assign("TONGCONG_TANG_KEHOACH", number_format($this->bean->tongcong_tang_kehoach, '1', '.', ''));
$this->dv->ss->assign("TONGCONG_TANG_THUCTE", number_format($this->bean->tongcong_tang_thucte, '1', '.', ''));
$this->dv->ss->assign("TONGCONG_GIAM_KEHOACH", number_format($this->bean->tongcong_giam_kehoach, '1', '.', ''));
$this->dv->ss->assign("TONGCONG_GIAM_THUCTE", number_format($this->bean->tongcong_giam_thucte, '1', '.', ''));
$this->dv->ss->assign("TONGTIEN_KEHOACH", number_format($this->bean->tongtien_kehoach, '1', '.', ''));
$this->dv->ss->assign("TONGTIEN_THUCTE", number_format($this->bean->tongtien_thucte, '1', '.', ''));
$this->dv->ss->assign("TIENTHANHTOAN", number_format($this->bean->tienthanhtoan, '1', '.', ''));
$this->dv->ss->assign("TIENCONLAI", number_format($this->bean->tienconlai, '1', '.', ''));
$this->dv->ss->assign("TIENTRALAI", number_format($this->bean->tientralai, '1', '.', ''));
$this->dv->ss->assign("GIATRIHOPDONG", $this->bean->giatrihopdong_detail());
$this->dv->ss->assign("PHATSINHTANG", $this->bean->phatsinhtang_detail());
$this->dv->ss->assign("PHATSINHGIAM", $this->bean->phatsinhgiam_detail());
$this->dv->ss->assign("BANGCHU", $this->bean->bangchu);
parent::display();
}