require_once 'modules/Paperformat/Paperformat.php'; require_once 'modules/Pressformat/Pressformat.php'; require_once 'modules/Childformat/Childformat.php'; global $timedate; global $app_strings; global $app_list_strings; global $current_language; global $current_user; global $sugar_version, $sugar_config; // Unimplemented until jscalendar language files are fixed // global $current_language; // global $default_language; // global $cal_codes; $focus = new EstimateComponents(); $format = new Paperformat(); $pressformat = new Pressformat(); $childformat = new Childformat(); if (!empty($_REQUEST['record'])) { $focus->retrieve($_REQUEST['record']); } echo "\n<p>\n"; if ($focus->parent_bean == 'ClientRequest') { $mod_strings['LBL_MODULE_NAME'] = $mod_strings['LBL_CLIENTREQUEST_MODULE_NAME']; } if ($focus->parent_bean == 'Estimates') { $mod_strings['LBL_MODULE_NAME'] = $mod_strings['LBL_ESTIMATES_MODULE_NAME']; } echo get_module_title($mod_strings['LBL_MODULE_NAME'], $mod_strings['LBL_MODULE_NAME'] . ": " . $focus->name, true); echo "\n</p>\n"; global $theme; $theme_path = "themes/" . $theme . "/";
<?php if (!defined('sugarEntry') || !sugarEntry) { die('Not A Valid Entry Point'); } require_once 'modules/Pressformat/Pressformat.php'; $format = new Pressformat(); if (isset($_REQUEST['format_action']) && $_REQUEST['format_action'] == 'new') { $format->New_Format($_GET['type'], $_REQUEST['format_action']); } if (isset($_REQUEST['format_action']) && $_REQUEST['format_action'] == 'modify') { $format->New_Format($_GET['type'], $_REQUEST['format_action'], $_REQUEST['old_name']); } if (isset($_REQUEST['format_action']) && $_REQUEST['format_action'] == 'save') { $x = $_GET['x']; $y = $_GET['y']; $y = $_GET['name']; $format->Save_Format($_GET['x'], $_GET['y'], $_GET['name'], $_GET['type']); } if (isset($_REQUEST['format_action']) && $_REQUEST['format_action'] == 'delete') { $x = $_GET['x']; $y = $_GET['y']; $format->Save_Format($_GET['x'], $_GET['y'], $_GET['type'], null, null, null, true); } if (isset($_REQUEST['format_action']) && $_REQUEST['format_action'] == 'modify_save') { $x = $_GET['x']; $y = $_GET['y']; $format->Save_Format($_GET['x'], $_GET['y'], $_GET['name'], $_GET['type'], $_GET['format_action'], $_GET['old_name']); } if (isset($_REQUEST['format_action']) && $_REQUEST['format_action'] == 'get_format') { $name = $_GET['name'];
* License. * * All copies of the Covered Code must include on each user interface screen: * (i) the "Powered by SugarCRM" logo and * (ii) the SugarCRM copyright notice * in the same form as they appear in the distribution. See full license for * requirements. * * The Original Code is: SugarCRM Open Source * The Initial Developer of the Original Code is SugarCRM, Inc. * Portions created by SugarCRM are Copyright (C) 2004-2006 SugarCRM, Inc.; * All Rights Reserved. * Contributor(s): ______________________________________. */ require_once 'modules/Pressformat/Pressformat.php'; $sugarbean = new Pressformat(); // perform the delete if given a record to delete if (empty($_REQUEST['record'])) { $GLOBALS['log']->info('delete called without a record id specified'); } else { $record = $_REQUEST['record']; $sugarbean->retrieve($record); if (!$sugarbean->ACLAccess('Delete')) { ACLController::displayNoAccess(true); sugar_cleanup(true); } $GLOBALS['log']->info("deleting record: {$record}"); $sugarbean->mark_deleted($record); } // handle the return location variables $return_module = empty($_REQUEST['return_module']) ? 'Pressformat' : $_REQUEST['return_module'];
<?php if (!defined('sugarEntry') || !sugarEntry) { die('Not A Valid Entry Point'); } require_once 'XTemplate/xtpl.php'; require_once 'data/Tracker.php'; require_once 'modules/Pressformat/Pressformat.php'; require_once 'include/time.php'; require_once 'modules/Pressformat/Forms.php'; global $app_strings; global $app_list_strings; global $current_language; global $current_user; global $sugar_version, $sugar_config; $focus = new Pressformat(); 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"; global $theme; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; require_once $theme_path . 'layout_utils.php'; $xtpl = new XTemplate('modules/Pressformat/Formats.html'); /// /// Assign the template variables /// $xtpl->assign('MOD', $mod_strings); $xtpl->assign('APP', $app_strings); //$xtpl->assign("JAVASCRIPT", get_set_focus_js().get_validate_record_js() . $quicksearch_js); $xtpl->assign("THEME", $theme);
* Portions created by SugarCRM are Copyright (C) 2004-2006 SugarCRM, Inc.; * All Rights Reserved. * Contributor(s): ______________________________________. */ require_once 'XTemplate/xtpl.php'; require_once 'data/Tracker.php'; require_once 'modules/Pressformat/Pressformat.php'; require_once 'include/time.php'; require_once 'modules/Pressformat/Forms.php'; global $timedate; global $app_strings; global $app_list_strings; global $current_language; global $current_user; global $sugar_version, $sugar_config; $focus = new Pressformat(); if (!empty($_REQUEST['record'])) { $focus->retrieve($_REQUEST['record']); } 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"; global $theme; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; require_once $theme_path . 'layout_utils.php'; $GLOBALS['log']->info("Pressformat detail view"); $xtpl = new XTemplate('modules/Pressformat/EditView.html'); /// Users Popup $json = getJSONobj(); $popup_request_data = array('call_back_function' => 'set_return', 'form_name' => 'EditView', 'field_to_name_array' => array('id' => 'assigned_user_id', 'user_name' => 'assigned_user_name'));