本文整理汇总了PHP中ViewDetail类的典型用法代码示例。如果您正苦于以下问题:PHP ViewDetail类的具体用法?PHP ViewDetail怎么用?PHP ViewDetail使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ViewDetail类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: zd_TicketsViewDetail
function zd_TicketsViewDetail()
{
parent::SugarView();
$repair = new RepairAndClear();
$repair->module_list = array('zd_Tickets');
$repair->clearTpls();
}
开发者ID:nunoabc,项目名称:Web2,代码行数:7,代码来源:view.detail.php
示例2: testdisplay
public function testdisplay()
{
error_reporting(E_ERROR | E_PARSE);
//execute the method with essential parameters set. it should return some html.
$view = new ViewDetail();
$view->module = 'Users';
$view->bean = new User();
$view->bean->id = 1;
$view->ss = new Sugar_Smarty();
$view->preDisplay();
ob_start();
$view->display();
$renderedContent = ob_get_contents();
ob_end_clean();
$this->assertGreaterThan(0, strlen($renderedContent));
}
开发者ID:sacredwebsite,项目名称:SuiteCRM,代码行数:16,代码来源:view.detailTest.php
示例3: display
function display()
{
$this->populateCurrency();
$this->populateQuoteTemplates();
$this->populateLineItems();
parent::display();
}
开发者ID:aldridged,项目名称:gtg-sugar,代码行数:7,代码来源:view.detail.php
示例4: 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");
}
开发者ID:sunmo,项目名称:snowlotus,代码行数:43,代码来源:view.detail.php
示例5: 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();
}
开发者ID:sysraj86,项目名称:carnivalcrm,代码行数:35,代码来源:view.detail.php
示例6: 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>";
}
}
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:35,代码来源:view.detail.php
示例7: 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();
}
开发者ID:omusico,项目名称:sugar_work,代码行数:7,代码来源:view.detail.php
示例8: 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();
}
开发者ID:sysraj86,项目名称:carnivalcrm,代码行数:15,代码来源:view.detail.php
示例9: display
/**
* display
*/
function display()
{
$this->bean->parseInterval();
$this->bean->setIntervalHumanReadable();
$this->ss->assign('JOB_INTERVAL', $this->bean->intervalHumanReadable);
parent::display();
}
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:10,代码来源:view.detail.php
示例10: 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();
}
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:38,代码来源:view.detail.php
示例11: 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();
}
开发者ID:omusico,项目名称:sugar_work,代码行数:33,代码来源:view.detail.php
示例12: 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();
}
开发者ID:NeoArno,项目名称:tilkee-sugarcrm,代码行数:59,代码来源:view.detail.php
示例13: preDisplay
public function preDisplay()
{
parent::preDisplay();
if (ACLController::checkAccess('KBDocuments', 'edit', true)) {
array_push($this->dv->defs['templateMeta']['form']['buttons'], array('customCode' => '<input title="{$MOD.LBL_CREATE_KB_DOCUMENT}" accessKey="M" class="button" onclick="this.form.return_module.value=\'Cases\'; this.form.return_action.value=\'DetailView\';this.form.action.value=\'EditView\';this.form.module.value=\'KBDocuments\';" type="submit" name="button" value="{$MOD.LBL_CREATE_KB_DOCUMENT}">', 'sugar_html' => array('type' => 'submit', 'value' => '{$MOD.LBL_CREATE_KB_DOCUMENT}', 'htmlOptions' => array('title' => '{$MOD.LBL_CREATE_KB_DOCUMENT}', 'accessKey' => 'M', 'class' => 'button', 'onclick' => 'this.form.return_module.value=\'Cases\'; this.form.return_action.value=\'DetailView\';this.form.action.value=\'EditView\';this.form.module.value=\'KBDocuments\';', 'name' => 'button'))));
}
$this->dv->th->deleteTemplate($this->dv->module, $this->dv->view);
}
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:8,代码来源:view.detail.php
示例14: 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();
}
开发者ID:omusico,项目名称:sugar_work,代码行数:8,代码来源:view.detail.php
示例15: 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();
}
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:11,代码来源:view.detail.php
示例16: display
function display()
{
$admin = Administration::getSettings();
if (isset($admin->settings['portal_on']) && $admin->settings['portal_on']) {
$this->ss->assign("PORTAL_ENABLED", true);
}
parent::display();
}
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:8,代码来源:view.detail.php
示例17: 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();
}
开发者ID:sysraj86,项目名称:carnivalcrm,代码行数:58,代码来源:view.detail.php
示例18: display
/**
* @see SugarView::display()
*
* We are overridding the display method to manipulate the portal information.
* If portal is not enabled then don't show the portal fields.
*/
public function display()
{
$admin = new Administration();
$admin->retrieveSettings();
if (isset($admin->settings['portal_on']) && $admin->settings['portal_on']) {
$this->ss->assign("PORTAL_ENABLED", true);
}
parent::display();
}
开发者ID:delkyd,项目名称:sugarcrm_dev,代码行数:15,代码来源:view.detail.php
示例19: display
function display()
{
if (isset($this->bean->lead_id) && !empty($this->bean->lead_id)) {
//get lead name
$lead = BeanFactory::getBean('Leads', $this->bean->lead_id);
$this->ss->assign('lead', $lead);
}
parent::display();
}
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:9,代码来源:view.detail.php
示例20: display
/**
* display
*/
function display()
{
$this->bean->parseInterval();
$this->bean->setIntervalHumanReadable();
$this->ss->assign('JOB_INTERVAL', $this->bean->intervalHumanReadable);
$this->bean->created_by_name = get_assigned_user_name($this->bean->created_by);
$this->bean->modified_by_name = get_assigned_user_name($this->bean->modified_user_id);
parent::display();
}
开发者ID:omusico,项目名称:sugar_work,代码行数:12,代码来源:view.detail.php
注:本文中的ViewDetail类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论