コード例 #1
0
ファイル: CallRelatedList.php プロジェクト: honj51/taobaocrm
<?php

require_once 'include/CRMSmarty.php';
require_once 'modules/Qunfatmps/Qunfatmps.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 Qunfatmps();
    $currentmodule = $_REQUEST['module'];
    $RECORD = $_REQUEST['record'];
    if (isset($_REQUEST['record']) && $_REQUEST['record'] != '') {
        $focus->retrieve_entity_info($_REQUEST['record'], "Qunfatmps");
        $focus->id = $_REQUEST['record'];
        $focus->qunfatmpname = $focus->column_fields['qunfatmpname'];
        $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/";
    require_once $theme_path . 'layout_utils.php';
    $smarty = new CRMSmarty();
    if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') {
        $focus->id = "";
    }
コード例 #2
0
ファイル: ListView.php プロジェクト: honj51/taobaocrm
<?php

require_once 'include/CRMSmarty.php';
require_once "data/Tracker.php";
require_once 'modules/Qunfatmps/Qunfatmps.php';
require_once 'themes/' . $theme . '/layout_utils.php';
require_once 'include/logging.php';
require_once 'include/ListView/ListView.php';
require_once 'include/utils/utils.php';
require_once 'modules/Qunfatmps/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('qunfatmp_list');
global $currentModule, $image_path, $theme;
$focus = new Qunfatmps();
$smarty = new CRMSmarty();
$other_text = array();
//<<<<<<<<<<<<<<<<<<< sorting - stored in session >>>>>>>>>>>>>>>>>>>>
$sorder = $focus->getSortOrder();
$order_by = $focus->getOrderBy();
$_SESSION['QUNFATMPS_ORDER_BY'] = $order_by;
$_SESSION['QUNFATMPS_SORT_ORDER'] = $sorder;
//<<<<<<<<<<<<<<<<<<< sorting - stored in session >>>>>>>>>>>>>>>>>>>>
if ($_REQUEST['parenttab'] != '') {
    $category = $_REQUEST['parenttab'];
} else {
    $category = getParentTab();
}
if (!$_SESSION['lvs'][$currentModule]) {
    unset($_SESSION['lvs']);
コード例 #3
0
ファイル: EditView.php プロジェクト: Pengzw/c3crm
    $return_module = $_REQUEST['return_module'];
} else {
    $return_module = "Qunfatmps";
}
if (isset($_REQUEST['return_action'])) {
    $return_action = $_REQUEST['return_action'];
} else {
    $return_action = "index";
}
if (isset($_REQUEST['record'])) {
    $return_id = $_REQUEST['record'];
}
if (isset($_REQUEST['return_viewname'])) {
    $return_viewname = $_REQUEST['return_viewname'];
}
$focus = new Qunfatmps();
$smarty = new CRMSmarty();
if (isset($_REQUEST['record']) && $_REQUEST['record'] != '') {
    $focus->id = $_REQUEST['record'];
    $focus->mode = 'edit';
    $focus->retrieve_entity_info($_REQUEST['record'], "Qunfatmps");
    $focus->name = $focus->column_fields['qunfatmpname'];
}
$old_id = '';
if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') {
    $old_id = $_REQUEST['record'];
    $focus->id = "";
    $focus->mode = '';
}
$theme_path = "themes/" . $theme . "/";
$image_path = $theme_path . "images/";
コード例 #4
0
ファイル: EditView.php プロジェクト: honj51/taobaocrm
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_qunfatmps where deleted=0 and qunfatmpsid='" . $_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 Qunfatmps();
$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'], "Qunfatmps");
    $focus->name = $focus->column_fields['qunfatmpname'];
    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) {
コード例 #5
0
ファイル: DetailView.php プロジェクト: honj51/taobaocrm
<?php

require_once 'data/Tracker.php';
require_once 'include/CRMSmarty.php';
require_once 'modules/Qunfatmps/Qunfatmps.php';
require_once 'modules/Qunfatmps/ModuleConfig.php';
require_once 'include/utils/utils.php';
global $app_strings;
global $mod_strings;
global $currentModule;
$focus = new Qunfatmps();
if (isset($_REQUEST['record'])) {
    $focus->retrieve_entity_info($_REQUEST['record'], "Qunfatmps");
    $focus->id = $_REQUEST['record'];
    $focus->name = $focus->column_fields['qunfatmpname'];
}
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("Qunfatmp 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) {