require_once 'modules/Format/Format.php';
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;
 * 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/Paperformat/Paperformat.php';
require_once 'include/time.php';
require_once 'modules/Paperformat/Forms.php';
global $timedate;
global $app_strings;
global $app_list_strings;
global $current_language;
global $current_user;
global $sugar_version, $sugar_config;
$focus = new Paperformat();
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("Paperformat detail view");
$xtpl = new XTemplate('modules/Paperformat/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'));
<?php

if (!defined('sugarEntry') || !sugarEntry) {
    die('Not A Valid Entry Point');
}
require_once 'modules/Paperformat/Paperformat.php';
$format = new Paperformat();
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'];
    $format->Save_Format($_GET['x'], $_GET['y'], $_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, 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['type'], $_GET['format_action'], $_GET['old_name']);
}
if (isset($_REQUEST['format_action']) && $_REQUEST['format_action'] == 'get_format') {
    $name = $_GET['name'];
    $selected = $_GET['selected'];
 * Portions created by C3CRM are Copyright (C) 2005 C3CRM
 * All Rights Reserved.
 * Contributors: Goodwill Consulting http://www.goodwill.co.id
 ********************************************************************************/
require_once 'XTemplate/xtpl.php';
require_once 'data/Tracker.php';
require_once 'modules/Paper/Paper.php';
require_once 'modules/Paper/Forms.php';
require_once 'include/JSON.php';
require_once 'modules/Paperformat/Paperformat.php';
global $app_strings;
global $app_list_strings;
global $mod_strings;
global $current_user;
$focus = new Paper();
$format = new Paperformat();
if (isset($_REQUEST['record'])) {
    $focus->retrieve($_REQUEST['record']);
}
if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') {
    $focus->id = "";
}
echo "\n<p>\n";
echo get_module_title($mod_strings['LBL_MODULE_NAME'], $mod_strings['LBL_MODULE_NAME'] . ": " . $focus->fname, true);
echo "\n</p>\n";
global $theme;
$theme_path = "themes/" . $theme . "/";
$image_path = $theme_path . "images/";
require_once $theme_path . 'layout_utils.php';
$log->info("Paper detail view");
$xtpl = new XTemplate('modules/Paper/EditView.html');
<?php

if (!defined('sugarEntry') || !sugarEntry) {
    die('Not A Valid Entry Point');
}
require_once 'XTemplate/xtpl.php';
require_once 'data/Tracker.php';
require_once 'modules/Paperformat/Paperformat.php';
require_once 'include/time.php';
require_once 'modules/Paperformat/Forms.php';
global $app_strings;
global $app_list_strings;
global $current_language;
global $current_user;
global $sugar_version, $sugar_config;
$focus = new Paperformat();
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/Paperformat/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);
Esempio n. 6
0
 * 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/Paperformat/Paperformat.php';
$sugarbean = new Paperformat();
// 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']) ? 'Paperformat' : $_REQUEST['return_module'];