本文整理汇总了PHP中DetailView类的典型用法代码示例。如果您正苦于以下问题:PHP DetailView类的具体用法?PHP DetailView怎么用?PHP DetailView使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了DetailView类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: process
public function process()
{
$this->context->setDefault('action', 'ShowEventDetails');
parent::process();
$view = new DetailView();
$view->setMain($this->context->getContent());
}
开发者ID:sinkdb,项目名称:events,代码行数:7,代码来源:EventDetails.php
示例2: detailAction
public function detailAction()
{
$Category = new CategoryModel((int) $this->_request->value);
$Category->load();
$View = new DetailView();
$View->setModel($Category);
$View->display();
}
开发者ID:jesusnazarethgh,项目名称:TianguisCabal,代码行数:8,代码来源:CategoryController.php
示例3: 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
示例4: ProjectTask
*/
require_once 'XTemplate/xtpl.php';
require_once 'data/Tracker.php';
require_once 'include/time.php';
require_once 'modules/ProjectTask/ProjectTask.php';
require_once 'include/DetailView/DetailView.php';
global $app_strings;
global $app_list_strings;
global $mod_strings;
global $current_user;
global $theme;
$GLOBALS['log']->info("ProjectTask detail view");
$theme_path = "themes/{$theme}/";
$image_path = "{$theme_path}images/";
$focus = new ProjectTask();
$detailView = new DetailView();
$offset = 0;
if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) {
$result = $detailView->processSugarBean("PROJECT_TASK", $focus, $offset);
if ($result == null) {
sugar_die($app_strings['ERROR_NO_RECORD']);
}
$focus = $result;
} else {
header("Location: index.php?module=Accounts&action=index");
}
echo "\n<p>\n";
echo get_module_title($mod_strings['LBL_MODULE_NAME'], $mod_strings['LBL_MODULE_NAME'] . ": " . $focus->name, true);
echo "\n</p>\n";
require_once "{$theme_path}layout_utils.php";
$xtpl = new XTemplate('modules/ProjectTask/DetailView.html');
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:31,代码来源:DetailView.php
示例5: ClientOrders
<?php
require_once 'include/html2fpdf/html2fpdf.php';
require_once 'XTemplate/xtpl.php';
require_once 'data/Tracker.php';
require_once 'modules/ClientOrders/ClientOrders.php';
require_once 'include/DetailView/DetailView.php';
require_once 'include/database/MysqlManager.php';
global $mod_strings;
global $app_strings;
global $app_list_strings;
global $current_language;
$focus = new ClientOrders();
// only load a record if a record id is given;
// a record id is not given when viewing in layout editor
$detailView = new DetailView();
$offset = 0;
if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) {
$result = $detailView->processSugarBean("CLIENTORDERS", $focus, $offset);
if ($result == null) {
sugar_die($app_strings['ERROR_NO_RECORD']);
}
$focus = $result;
} else {
header("Location: index.php?module=Accounts&action=index");
}
// this query is for Clientorder's components list
$fields = array('name', 'type', 'number', 'paper');
$query = "SELECT name, type, number, paper FROM `clientorders_components` WHERE parent_id='" . $focus->id . "' AND deleted=0";
$result = $focus->db->query($query, true, "Error filling layout fields: ");
while (($row = $focus->db->fetchByAssoc($result)) != null) {
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:31,代码来源:CreatePDF.php
示例6: DetailView
* Description: TODO: To be written.
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
********************************************************************************/
require_once 'include/upload_file.php';
require_once 'include/DetailView/DetailView.php';
//Old DetailView compares wrong session variable against new view.list. Need to sync so that
//the pagination on the DetailView page will show.
if (isset($_SESSION['EMAILTEMPLATE_FROM_LIST_VIEW'])) {
$_SESSION['EMAIL_TEMPLATE_FROM_LIST_VIEW'] = $_SESSION['EMAILTEMPLATE_FROM_LIST_VIEW'];
}
global $app_strings;
global $mod_strings;
$focus = BeanFactory::getBean('EmailTemplates');
$detailView = new DetailView();
$offset = 0;
if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) {
$result = $detailView->processSugarBean("EMAIL_TEMPLATE", $focus, $offset);
if ($result == null) {
sugar_die($app_strings['ERROR_NO_RECORD']);
}
$focus = $result;
} else {
header("Location: index.php?module=Accounts&action=index");
}
if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') {
$focus->id = "";
}
//needed when creating a new note with default values passed in
if (isset($_REQUEST['contact_name']) && is_null($focus->contact_name)) {
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:31,代码来源:DetailView.php
示例7:
use kartik\grid\GridView;
//use yii\grid\GridView;
use yii\bootstrap\ActiveForm;
use yii\widgets\Pjax;
/* @var $this yii\web\View */
/* @var $searchModel frontend\models\AboutUsSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'About Us';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="about-us-index">
<h1><?php
echo Html::encode($this->title);
?>
</h1>
<?php
// echo $this->render('_search', ['model' => $searchModel]);
?>
<?php
echo DetailView::widget(['model' => $model, 'attributes' => ['subsection']]);
?>
<?php
Pjax::end();
?>
</div>
开发者ID:BillsOfHealth,项目名称:yii2-2015,代码行数:29,代码来源:index1.php
示例8: Email
}
//// CANCEL HANDLING
///////////////////////////////////////////////////////////////////////////////
require_once 'XTemplate/xtpl.php';
require_once 'data/Tracker.php';
require_once 'modules/Emails/Email.php';
require_once 'modules/Emails/Forms.php';
require_once 'include/DetailView/DetailView.php';
global $theme;
global $app_strings;
$theme_path = "themes/" . $theme . "/";
$image_path = $theme_path . "images/";
require_once $theme_path . 'layout_utils.php';
// SETTING DEFAULTS
$focus = new Email();
$detailView = new DetailView();
$offset = 0;
$email_type = 'archived';
///////////////////////////////////////////////////////////////////////////////
//// TO HANDLE 'NEXT FREE'
if (!empty($_REQUEST['next_free']) && $_REQUEST['next_free'] == true) {
$_REQUEST['record'] = $focus->getNextFree();
}
//// END 'NEXT FREE'
///////////////////////////////////////////////////////////////////////////////
if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) {
$result = $detailView->processSugarBean("EMAIL", $focus, $offset);
if ($result == null) {
sugar_die($app_strings['ERROR_NO_RECORD']);
}
$focus = $result;
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:31,代码来源:DetailView.php
示例9: Group
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo and "Supercharged by SuiteCRM" logo. If the display of the logos is not
* reasonably feasible for technical reasons, the Appropriate Legal Notices must
* display the words "Powered by SugarCRM" and "Supercharged by SuiteCRM".
********************************************************************************/
require_once 'include/DetailView/DetailView.php';
global $theme;
global $mod_strings;
/* start standard DetailView layout process */
$GLOBALS['log']->info("Groups DetailView");
$focus = new Group();
$focus->retrieve($_REQUEST['record']);
$detailView = new DetailView();
$offset = 0;
if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) {
$result = $detailView->processSugarBean("Group", $focus, $offset);
if ($result == null) {
sugar_die($app_strings['ERROR_NO_RECORD']);
}
$focus = $result;
} else {
header("Location: index.php?module=Groups&action=index");
}
echo getClassicModuleTitle($mod_strings['LBL_MODULE_NAME'], array($mod_strings['LBL_MODULE_NAME'], $focus->user_name), true);
/* end standard DetailView layout process */
$xtpl = new XTemplate('modules/Groups/DetailView.html');
$xtpl->assign('MOD', $mod_strings);
$xtpl->assign('APP', $app_strings);
开发者ID:MexinaD,项目名称:SuiteCRM,代码行数:31,代码来源:DetailView.php
示例10: sugar_die
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
********************************************************************************/
require_once 'include/DetailView/DetailView.php';
require_once 'include/export_utils.php';
global $current_user;
global $theme;
global $app_strings;
global $mod_strings;
if (!is_admin($current_user) && !$GLOBALS['current_user']->isAdminForModule('Users') && $_REQUEST['record'] != $current_user->id) {
sugar_die("Unauthorized access to administration.");
}
$is_current_admin = is_admin($current_user) || $GLOBALS['current_user']->isAdminForModule('Users');
$focus = new User();
$detailView = new DetailView();
$offset = 0;
if (isset($_REQUEST['offset']) || !empty($_REQUEST['record'])) {
$result = $detailView->processSugarBean("USER", $focus, $offset);
if ($result == null) {
sugar_die($app_strings['ERROR_NO_RECORD']);
}
$focus = $result;
} else {
header("Location: index.php?module=Users&action=index");
}
if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') {
$focus->id = "";
}
if (isset($_REQUEST['reset_preferences'])) {
$focus->resetPreferences();
开发者ID:nartnik,项目名称:sugarcrm_test,代码行数:31,代码来源:DetailView.php
示例11: Quote
require_once 'include/html2fpdf/html2fpdf.php';
require_once 'XTemplate/xtpl.php';
require_once 'data/Tracker.php';
require_once 'modules/Quotes/Quote.php';
require_once 'include/DetailView/DetailView.php';
require_once 'include/database/MysqlManager.php';
global $mod_strings;
global $app_strings;
global $app_list_strings;
global $current_language;
global $pdf_font_size;
//Initializing the main object
$focus = new Quote();
// only load a record if a record id is given;
// a record id is not given when viewing in layout editor
$detailView = new DetailView();
$offset = 0;
if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) {
$result = $detailView->processSugarBean("QUOTE", $focus, $offset);
if ($result == null) {
sugar_die($app_strings['ERROR_NO_RECORD']);
}
$focus = $result;
} else {
header("Location: index.php?module=Quotes&action=index");
}
require_once 'modules/Currencies/Currency.php';
$currency = new Currency();
//HTML2FPDF contains the functions - headerPDF, footerPDF, createHeading, createTr
$pdf = new HTML2FPDF();
//Shortcuts
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:31,代码来源:CreatePDF.php
示例12: Paperformat
* Contributor(s): ______________________________________.
*/
require_once 'XTemplate/xtpl.php';
require_once 'data/Tracker.php';
require_once 'include/time.php';
require_once 'modules/Paperformat/Paperformat.php';
require_once 'include/DetailView/DetailView.php';
global $app_strings;
global $mod_strings;
global $theme;
global $current_user;
$GLOBALS['log']->info('Paperformat detail view');
$focus = new Paperformat();
// only load a record if a record id is given;
// a record id is not given when viewing in layout editor
$detailView = new DetailView();
$offset = 0;
if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) {
$result = $detailView->processSugarBean("PAPERFORMAT", $focus, $offset);
if ($result == null) {
sugar_die($app_strings['ERROR_NO_RECORD']);
}
$focus = $result;
} else {
header("Location: index.php?module=Accounts&action=index");
}
echo "\n<p>\n";
echo get_module_title($mod_strings['LBL_MODULE_NAME'], $mod_strings['LBL_MODULE_NAME'] . ': ' . $focus->name, true);
echo "\n</p>\n";
$theme_path = 'themes/' . $theme . '/';
$image_path = $theme_path . 'images/';
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:31,代码来源:DetailView.php
示例13: Tour
<?php
require_once 'XTemplate\\xtpl.php';
require_once 'data/Tracker.php';
require_once 'modules/Tours/Tour.php';
require_once 'modules/Tours/Forms.php';
require_once 'include/DetailView/DetailView.php';
global $mod_strings;
global $app_strings;
global $app_list_strings;
global $gridline;
$focus = new Tour();
$detailView = new DetailView();
$offset = 0;
// ONLY LOAD A RECORD IF A RECORD ID IS GIVEN;
// A RECORD ID IS NOT GIVEN WHEN VIEWING IN LAYOUT EDITOR
if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) {
$result = $detailView->processSugarBean("TOURS", $focus, $offset);
if ($result == null) {
sugar_die($app_strings['ERROR_NO_RECORD']);
}
$focus = $result;
} else {
header("Location: index.php?module=Tours&action=index");
}
if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') {
$focus->id = "";
}
echo "\n<p>\n";
echo get_module_title($mod_strings['LBL_MODULE_ID'], $mod_strings['LBL_MODULE_NAME'] . ": " . $focus->name, true);
echo "\n</p>\n";
开发者ID:sysraj86,项目名称:carnivalcrm,代码行数:31,代码来源:DetailView.php
示例14: GuideContracts
<?php
require_once 'XTemplate/xtpl.php';
require_once 'data/Tracker.php';
require_once 'modules/GuideContracts/GuideContracts.php';
require_once 'modules/GuideContracts/Forms.php';
require_once 'include/DetailView/DetailView.php';
global $mod_strings;
global $app_strings;
global $app_list_strings;
global $gridline;
$focus = new GuideContracts();
$detailView = new DetailView();
$offset = 0;
// ONLY LOAD A RECORD IF A RECORD ID IS GIVEN;
// A RECORD ID IS NOT GIVEN WHEN VIEWING IN LAYOUT EDITOR
if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) {
$result = $detailView->processSugarBean("GuideContracts", $focus, $offset);
if ($result == null) {
sugar_die($app_strings['ERROR_NO_RECORD']);
}
$focus = $result;
} else {
header("Location: index.php?module=GuideContracts&action=index");
}
if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') {
$focus->id = "";
}
echo "\n<p>\n";
echo get_module_title($mod_strings['LBL_MODULE_ID'], $mod_strings['LBL_MODULE_NAME'] . ": " . $focus->name, true);
echo "\n</p>\n";
开发者ID:sysraj86,项目名称:carnivalcrm,代码行数:31,代码来源:DetailView.php
示例15: ComponentEstimateCalc
require_once 'include/html2fpdf/html2fpdf.php';
require_once 'XTemplate/xtpl.php';
require_once 'data/Tracker.php';
require_once 'modules/EstimateCalc/EstimateCalc.php';
require_once 'include/DetailView/DetailView.php';
require_once 'include/database/MysqlManager.php';
require_once 'modules/ComponentEstimateCalc/ComponentEstimateCalc.php';
global $mod_strings;
global $app_strings;
global $app_list_strings;
global $current_language;
//Initializing the main object
$focus = new ComponentEstimateCalc();
// only load a record if a record id is given;
// a record id is not given when viewing in layout editor
$detailView = new DetailView();
$offset = 0;
if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) {
$result = $detailView->processSugarBean("COMPONENTESTIMATECALC", $focus, $offset);
if ($result == null) {
sugar_die($app_strings['ERROR_NO_RECORD']);
}
$focus = $result;
} else {
header("Location: index.php?module=Accounts&action=index");
}
//HTML2FPDF contains the functions - headerPDF, footerPDF, createHeading, createTr
$pdf = new HTML2FPDF();
//Shortcuts
$total = $focus->total_paper + $focus->total_prepress + $focus->total_press + $focus->total_operations . " " . $mod_strings["LBL_UNITS"];
$total_paper = $focus->total_paper . " " . $mod_strings["LBL_UNITS"];
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:31,代码来源:CreatePDF.php
示例16: ComponentEstimateCalc
* Contributor(s): ______________________________________.
*/
require_once 'XTemplate/xtpl.php';
require_once 'data/Tracker.php';
require_once 'include/time.php';
require_once 'modules/ComponentEstimateCalc/ComponentEstimateCalc.php';
require_once 'include/DetailView/DetailView.php';
global $app_strings;
global $mod_strings;
global $theme;
global $current_user;
$GLOBALS['log']->info('ComponentEstimateCalc detail view');
$focus = new ComponentEstimateCalc();
// only load a record if a record id is given;
// a record id is not given when viewing in layout editor
$detailView = new DetailView();
$offset = 0;
if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) {
$result = $detailView->processSugarBean("COMPONENTESTIMATECALC", $focus, $offset);
if ($result == null) {
sugar_die($app_strings['ERROR_NO_RECORD']);
}
$focus = $result;
} else {
header("Location: index.php?module=Accounts&action=index");
}
echo "\n<p>\n";
echo get_module_title($mod_strings['LBL_MODULE_NAME'], $mod_strings['LBL_MODULE_NAME'] . ': ' . $focus->name, true);
echo "\n</p>\n";
$theme_path = 'themes/' . $theme . '/';
$image_path = $theme_path . 'images/';
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:31,代码来源:DetailView.php
示例17: Printing
* Contributor(s): ______________________________________.
*/
require_once 'XTemplate/xtpl.php';
require_once 'data/Tracker.php';
require_once 'include/time.php';
require_once 'modules/Printing/Printing.php';
require_once 'include/DetailView/DetailView.php';
global $app_strings;
global $mod_strings;
global $theme;
global $current_user;
$GLOBALS['log']->info('Printing detail view');
$focus = new Printing();
// only load a record if a record id is given;
// a record id is not given when viewing in layout editor
$detailView = new DetailView();
$offset = 0;
if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) {
$result = $detailView->processSugarBean("PROJECT", $focus, $offset);
if ($result == null) {
sugar_die($app_strings['ERROR_NO_RECORD']);
}
$focus = $result;
} else {
header("Location: index.php?module=Accounts&action=index");
}
echo "\n<p>\n";
echo get_module_title($mod_strings['LBL_MODULE_NAME'], $mod_strings['LBL_MODULE_NAME'] . ': ' . $focus->name, true);
echo "\n</p>\n";
$theme_path = 'themes/' . $theme . '/';
$image_path = $theme_path . 'images/';
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:31,代码来源:DetailView.php
示例18: Scheduler
*
* In accordance with Section 7(b) of the GNU General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
require_once 'include/DetailView/DetailView.php';
global $mod_strings;
global $app_strings;
global $timedate;
/* start standard DetailView layout process */
$GLOBALS['log']->info("Schedulers DetailView");
$focus = new Scheduler();
$focus->checkCurl();
$detailView = new DetailView();
$offset = 0;
if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) {
$result = $detailView->processSugarBean("SCHEDULER", $focus, $offset);
if ($result == null) {
sugar_die($app_strings['ERROR_NO_RECORD']);
}
$focus = $result;
} else {
header("Location: index.php?module=Schedulers&action=index");
}
if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') {
$focus->id = "";
}
echo get_module_title($mod_strings['LBL_MODULE_TITLE'], $mod_strings['LBL_MODULE_TITLE'] . ": " . $focus->name, true);
/* end standard DetailView layout process */
开发者ID:klr2003,项目名称:sourceread,代码行数:31,代码来源:DetailView.php
示例19: ProductEstimate
* Contributor(s): ______________________________________.
*/
require_once 'XTemplate/xtpl.php';
require_once 'data/Tracker.php';
require_once 'include/time.php';
require_once 'modules/ProductEstimate/ProductEstimate.php';
require_once 'include/DetailView/DetailView.php';
global $app_strings;
global $mod_strings;
global $theme;
global $current_user;
$GLOBALS['log']->info('ProductEstimate detail view');
$focus = new ProductEstimate();
// only load a record if a record id is given;
// a record id is not given when viewing in layout editor
$detailView = new DetailView();
$offset = 0;
if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) {
$result = $detailView->processSugarBean("PRODUCTESTIMATE", $focus, $offset);
if ($result == null) {
sugar_die($app_strings['ERROR_NO_RECORD']);
}
$focus = $result;
} else {
header("Location: index.php?module=Accounts&action=index");
}
echo "\n<p>\n";
echo get_module_title($mod_strings['LBL_MODULE_NAME'], $mod_strings['LBL_MODULE_NAME'] . ': ' . $focus->name, true);
echo "\n</p>\n";
$theme_path = 'themes/' . $theme . '/';
$image_path = $theme_path . 'images/';
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:31,代码来源:DetailView.php
示例20: GroupProgram
<?php
require_once 'XTemplate/xtpl.php';
require_once 'data/Tracker.php';
require_once 'modules/GroupPrograms/GroupProgram.php';
require_once 'modules/GroupPrograms/Forms.php';
require_once 'include/DetailView/DetailView.php';
global $mod_strings;
global $app_strings;
global $app_list_strings;
global $gridline;
global $db;
$focus = new GroupProgram();
$detailView = new DetailView();
$offset = 0;
$ss = new Sugar_Smarty();
$json = getJSONobj();
// ONLY LOAD A RECORD IF A RECORD ID IS GIVEN;
// A RECORD ID IS NOT GIVEN WHEN VIEWING IN LAYOUT EDITOR
if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) {
$result = $detailView->processSugarBean("GROUPPROGRAMS", $focus, $offset);
if ($result == null) {
sugar_die($app_strings['ERROR_NO_RECORD']);
}
$focus = $result;
} else {
header("Location: index.php?module=GroupPrograms&action=index");
}
if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') {
$focus->id = "";
}
开发者ID:sysraj86,项目名称:carnivalcrm,代码行数:31,代码来源:DetailView.php
注:本文中的DetailView类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论