Exemple #1
0
<?php

require_once 'data/Tracker.php';
require_once 'include/CRMSmarty.php';
require_once 'modules/Qunfas/Qunfas.php';
require_once 'modules/Qunfas/ModuleConfig.php';
require_once 'include/utils/utils.php';
global $app_strings;
global $mod_strings;
global $currentModule;
$focus = new Qunfas();
if (isset($_REQUEST['record'])) {
    $focus->retrieve_entity_info($_REQUEST['record'], "Qunfas");
    $focus->id = $_REQUEST['record'];
    $focus->name = $focus->column_fields['qunfaname'];
}
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("Qunfa detail view");
//客户处理
$acc_arr = array();
$accountidstr = $focus->column_fields['accountid'];
$accountidarr = explode(",", $accountidstr);
if (is_array($accountidarr)) {
    foreach ($accountidarr as $accountid) {
        if (!empty($accountid)) {
Exemple #2
0
<?php

require_once 'include/utils/utils.php';
require_once 'modules/Qunfas/Qunfas.php';
require_once 'modules/Fenzu/Fenzu.php';
require_once 'modules/Accounts/Accounts.php';
require_once 'Sms/SmsLib.php';
global $adb, $current_user;
global $currentModule;
$focus = new Qunfas();
$oFenzu = new Fenzu("Qunfas");
$focus_acc = new Accounts();
$nowdate = date("Y-m-d");
$nowdatetime = date("Y-m-d H:i:s");
$message = $_REQUEST["message"];
if (preg_match("/[^\$a-zA-Z0-9\$]{1}/", $message)) {
    $msflag = 0;
    $messinfos = explode('$', $message);
} else {
    $msflag = 1;
}
$accountidstr = $_REQUEST["accountidstr"];
if (preg_match("/\\,/", $accountidstr)) {
    $accountidstr = substr($accountidstr, 0, -1);
}
$accountidarr = explode(',', $accountidstr);
foreach ($accountidarr as $accountinfostr) {
    $accountinfo = explode('(', $accountinfostr);
    $accountinfo[1] = substr($accountinfo[1], 0, -1);
    $accounts[] = $accountinfo;
}
Exemple #3
0
    $return_module = $_REQUEST['return_module'];
} else {
    $return_module = "Qunfas";
}
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 Qunfas();
$smarty = new CRMSmarty();
if (isset($_REQUEST['record']) && $_REQUEST['record'] != '') {
    $focus->id = $_REQUEST['record'];
    $focus->mode = 'edit';
    $focus->retrieve_entity_info($_REQUEST['record'], "Qunfas");
    $focus->name = $focus->column_fields['qunfaname'];
}
$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/";
Exemple #4
0
<?php

require_once 'data/Tracker.php';
require_once 'include/CRMSmarty.php';
require_once 'modules/Qunfas/Qunfas.php';
require_once 'modules/Qunfas/ModuleConfig.php';
require_once 'include/utils/utils.php';
global $app_strings;
global $mod_strings;
global $currentModule;
$focus = new Qunfas();
if (isset($_REQUEST['record'])) {
    $focus->retrieve_entity_info($_REQUEST['record'], "Qunfas");
    $focus->id = $_REQUEST['record'];
    $focus->name = $focus->column_fields['qunfaname'];
}
if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') {
    $focus->id = "";
}
global $theme;
$theme_path = "themes/" . $theme . "/";
$image_path = $theme_path . "images/";
$log->info("Qunfa detail view");
//客户处理
$acc_arr = array();
$accountidstr = $focus->column_fields['accountid'];
$accountidarr = explode(",", $accountidstr);
if (is_array($accountidarr)) {
    foreach ($accountidarr as $accountid) {
        if (!empty($accountid)) {
            $accountname = getAccountNameInfo($accountid);
Exemple #5
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_qunfas where deleted=0 and qunfasid='" . $_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 Qunfas();
$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'], "Qunfas");
    $focus->name = $focus->column_fields['qunfaname'];
    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) {
Exemple #6
0
<?php

require_once 'include/CRMSmarty.php';
require_once "data/Tracker.php";
require_once 'modules/Qunfas/Qunfas.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/Qunfas/ModuleConfig.php';
require_once 'include/DatabaseUtil.php';
require_once 'modules/Fenzu/Fenzu.php';
global $app_strings, $mod_strings, $list_max_entries_per_page;
$log = LoggerManager::getLogger('qunfa_list');
global $currentModule, $image_path, $theme;
$focus = new Qunfas();
$smarty = new CRMSmarty();
if ($_REQUEST['parenttab'] != '') {
    $category = $_REQUEST['parenttab'];
} else {
    $category = getParentTab();
}
//<<<<cutomview>>>>>>>
$oFenzu = new Fenzu("Qunfas");
$viewid = $_REQUEST['viewname'];
$customviewcombo_html = $oFenzu->getFenzuCombo($viewid);
//$viewnamedesc = $oFenzu->getCustomViewByCvid($viewid);
//<<<<<customview>>>>>
global $current_user;
$theme_path = "themes/" . $theme . "/";
$image_path = $theme_path . "images/";