Exemplo n.º 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)) {