示例#1
0
if (isset($_REQUEST['return_viewname'])) {
    $return_viewname = $_REQUEST['return_viewname'];
}
if ((!isset($is_disable_approve) || isset($is_disable_approve) && !$is_disable_approve) && (isset($module_enable_approve) && $module_enable_approve)) {
    $sql = "select approved from ec_maillisttmps where deleted=0 and maillisttmpsid='" . $_REQUEST['record'] . "'";
    $result = $adb->query($sql);
    $approved = $adb->query_result($result, 0, "approved");
    if ($approved == 1) {
        echo "<script language='javascript'>alert('" . $app_strings["already_approved_noedit"] . "');";
        $url = "index.php?module=" . $return_module . "&action=" . $return_action . "&record=" . $return_id . "&return_viewname=" . $return_viewname . "&parenttab=" . $category;
        echo "document.location.href='" . $url . "';";
        echo "</script>";
        die;
    }
}
$focus = new Maillisttmps();
$smarty = new CRMSmarty();
if (isset($module_enable_product) && $module_enable_product) {
    $smarty->assign("MODULE_ENABLE_PRODUCT", "true");
}
if (isset($_REQUEST['record']) && $_REQUEST['record'] != '') {
    $focus->id = $_REQUEST['record'];
    $focus->mode = 'edit';
    $focus->retrieve_entity_info($_REQUEST['record'], "Maillisttmps");
    $focus->name = $focus->column_fields['maillisttmpname'];
    if (isset($module_enable_product) && $module_enable_product) {
        $associated_prod = $focus->getAssociatedProducts();
        $smarty->assign("ASSOCIATEDPRODUCTS", $associated_prod);
        $smarty->assign("AVAILABLE_PRODUCTS", 'true');
    }
    if (isset($module_enable_approve) && $module_enable_approve) {
示例#2
0
<?php

require_once 'data/Tracker.php';
require_once 'include/CRMSmarty.php';
require_once 'modules/Maillisttmps/Maillisttmps.php';
require_once 'include/utils/utils.php';
global $app_strings;
global $mod_strings;
global $currentModule;
$focus = new Maillisttmps();
if (isset($_REQUEST['record'])) {
    $focus->retrieve_entity_info($_REQUEST['record'], "Maillisttmps");
    $focus->id = $_REQUEST['record'];
    $focus->name = $focus->column_fields['maillisttmpname'];
}
if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') {
    $focus->id = "";
}
global $theme;
$theme_path = "themes/" . $theme . "/";
$image_path = $theme_path . "images/";
$smarty = new CRMSmarty();
$smarty->assign("MOD", $mod_strings);
$smarty->assign("APP", $app_strings);
$blocks2 = getBlocks($currentModule, "detail_view", '', $focus->column_fields);
$smarty->assign("BLOCKS", $blocks2);
$smarty->assign("UPDATEINFO", updateInfo($focus->id));
if (isset($focus->name)) {
    $smarty->assign("NAME", $focus->name);
} else {
    $smarty->assign("NAME", "");
示例#3
0
<?php

require_once 'include/CRMSmarty.php';
require_once 'modules/Maillisttmps/Maillisttmps.php';
require_once 'include/utils/utils.php';
//Redirecting Header for single page layout
require_once 'user_privileges/default_module_view.php';
global $singlepane_view;
if ($singlepane_view == 'true' && $_REQUEST['action'] == 'CallRelatedList') {
    redirect("index.php?action=DetailView&module=" . $_REQUEST['module'] . "&record=" . $_REQUEST['record'] . "&parenttab=" . $_REQUEST['parenttab']);
} else {
    $focus = new Maillisttmps();
    $currentmodule = $_REQUEST['module'];
    $RECORD = $_REQUEST['record'];
    if (isset($_REQUEST['record']) && $_REQUEST['record'] != '') {
        $focus->retrieve_entity_info($_REQUEST['record'], "Maillisttmps");
        $focus->id = $_REQUEST['record'];
        $focus->maillisttmpname = $focus->column_fields['maillisttmpname'];
        $log->debug("id is " . $focus->id);
        $log->debug("name is " . $focus->name);
    }
    global $mod_strings;
    global $app_strings;
    global $theme;
    $theme_path = "themes/" . $theme . "/";
    $image_path = $theme_path . "images/";
    $smarty = new CRMSmarty();
    if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') {
        $focus->id = "";
    }
    if (isset($_REQUEST['mode']) && $_REQUEST['mode'] != ' ') {
示例#4
0
文件: ListView.php 项目: Pengzw/c3crm
<?php

require_once 'include/CRMSmarty.php';
require_once "data/Tracker.php";
require_once 'modules/Maillisttmps/Maillisttmps.php';
require_once 'include/logging.php';
require_once 'include/ListView/ListView.php';
require_once 'include/utils/utils.php';
require_once 'modules/Maillisttmps/ModuleConfig.php';
require_once 'modules/CustomView/CustomView.php';
require_once 'include/DatabaseUtil.php';
global $app_strings, $mod_strings, $list_max_entries_per_page;
$log = LoggerManager::getLogger('maillisttmp_list');
global $currentModule, $image_path, $theme;
$focus = new Maillisttmps();
$smarty = new CRMSmarty();
$other_text = array();
//<<<<<<<<<<<<<<<<<<< sorting - stored in session >>>>>>>>>>>>>>>>>>>>
$sorder = $focus->getSortOrder();
$order_by = $focus->getOrderBy();
$_SESSION['MAILLISTTMPS_ORDER_BY'] = $order_by;
$_SESSION['MAILLISTTMPS_SORT_ORDER'] = $sorder;
//<<<<<<<<<<<<<<<<<<< sorting - stored in session >>>>>>>>>>>>>>>>>>>>
if ($_REQUEST['parenttab'] != '') {
    $category = $_REQUEST['parenttab'];
} else {
    $category = getParentTab();
}
if (!$_SESSION['lvs'][$currentModule]) {
    unset($_SESSION['lvs']);
    $modObj = new ListViewSession();
示例#5
0
<?php

require_once 'data/Tracker.php';
require_once 'include/CRMSmarty.php';
require_once 'modules/Maillisttmps/Maillisttmps.php';
require_once 'modules/Maillisttmps/ModuleConfig.php';
require_once 'include/utils/utils.php';
global $app_strings;
global $mod_strings;
global $currentModule;
$focus = new Maillisttmps();
if (isset($_REQUEST['record'])) {
    $focus->retrieve_entity_info($_REQUEST['record'], "Maillisttmps");
    $focus->id = $_REQUEST['record'];
    $focus->name = $focus->column_fields['maillisttmpname'];
}
if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') {
    $focus->id = "";
}
global $theme;
$theme_path = "themes/" . $theme . "/";
$image_path = $theme_path . "images/";
require_once $theme_path . 'layout_utils.php';
$log->info("Maillisttmp detail view");
$smarty = new CRMSmarty();
$smarty->assign("MOD", $mod_strings);
$smarty->assign("APP", $app_strings);
$blocks2 = getBlocks($currentModule, "detail_view", '', $focus->column_fields);
$smarty->assign("BLOCKS", $blocks2);
$smarty->assign("UPDATEINFO", updateInfo($focus->id));
if (isset($module_enable_product) && $module_enable_product) {