コード例 #1
0
ファイル: ListView.php プロジェクト: honj51/taobaocrm
require_once 'modules/CustomView/CustomView.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('maillist_list');
global $currentModule, $image_path, $theme;
$focus = new Maillists();
$smarty = new CRMSmarty();
if ($_REQUEST['parenttab'] != '') {
    $category = $_REQUEST['parenttab'];
} else {
    $category = getParentTab();
}
$nowdatetime = date("Y-m-d H:i:s");
//<<<<cutomview>>>>>>>
$oFenzu = new Fenzu("Maillists");
$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/";
$smarty->assign("CUSTOMVIEW_OPTION", $customviewcombo_html);
$smarty->assign("VIEWID", $viewid);
$smarty->assign("MOD", $mod_strings);
$smarty->assign("APP", $app_strings);
$smarty->assign("IMAGE_PATH", $image_path);
$smarty->assign("MODULE", $currentModule);
$smarty->assign("SINGLE_MOD", 'Qunfa');
$smarty->assign("BUTTONS", $other_text);
コード例 #2
0
ファイル: Delete.php プロジェクト: Pengzw/c3crm
<?php

require_once 'include/logging.php';
require_once 'include/database/PearDatabase.php';
require_once 'modules/Fenzu/Fenzu.php';
global $adb;
$cvid = $_REQUEST["record"];
$module = $_REQUEST["dmodule"];
$smodule = $REQUEST["smodule"];
$parenttab = $_REQUEST["parenttab"];
$oFenzu = new Fenzu();
$Fenzudtls = $oFenzu->getFenzuByCvid($cvid);
if (!is_admin($current_user)) {
    if ($Fenzudtls['smownerid'] == 0) {
        echo "<script>alert('公共分组不能删除!');history.go(-1);</script>";
        die;
    }
}
if (isset($cvid) && $cvid != '') {
    $deletesql = "delete from ec_fenzu where cvid =" . $cvid;
    $deleteresult = $adb->query($deletesql);
    $_SESSION['lvs'][$module]["viewname"] = '';
}
if (isset($smodule) && $smodule != '') {
    $smodule_url = "&smodule=" . $smodule;
}
clear_cache_files();
header("Location: index.php?action=ListView&parenttab={$parenttab}&module={$module}" . $smodule_url);
コード例 #3
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';
global $adb, $current_user;
global $currentModule;
$focus = new Qunfas();
$oFenzu = new Fenzu("Qunfas");
$focus_acc = new Accounts();
$viewid = $_REQUEST["viewname"];
if (!$viewid || $viewid == '') {
    echo '';
    die;
}
$listquery = "SELECT ec_account.accountid as crmid,ec_users.user_name,ec_account.*\n\t\t\t  FROM ec_account\n\t\t\t  LEFT JOIN ec_users\n\t\t\t\t   ON ec_users.id = ec_account.smownerid\n\t\t\t  WHERE ec_account.deleted = 0 and ec_users.id='" . $current_user->id . "' and ec_account.email !=''\n\t\t\t  and (ec_account.oneweeksendmail = 0 and ec_account.onemonthsendmail < 5) ";
$query = $oFenzu->getModifiedCvListQuery($viewid, $listquery, "Accounts");
$result = $adb->query($query);
$num_rows = $adb->num_rows($result);
$infohtml = '';
if ($num_rows > 0) {
    while ($row = $adb->fetch_array($result)) {
        $accountname = $row['membername'];
        $email = $row['email'];
        $infohtml .= $email . "(" . $accountname . "),\n";
    }
}
echo $infohtml;
exit;
コード例 #4
0
ファイル: EditView.php プロジェクト: Pengzw/c3crm
    for ($i = 1; $i < 10; $i++) {
        $smarty->assign("CHOOSECOLUMN" . $i, $choosecolhtml);
    }
    $smarty->assign("CHOOSECOLLECTCOLUMN", $choosecollectcolhtml);
    $log->info('Fenzu :: Successfully got AdvancedFilter for the module' . $cv_module);
    for ($i = 1; $i < 6; $i++) {
        $smarty->assign("FOPTION" . $i, $advfilterhtml);
        $smarty->assign("BLOCK" . $i, $choosecolhtml);
    }
    $smarty->assign("STDFILTERCOLUMNS", $stdfiltercolhtml);
    $smarty->assign("STDFILTERCRITERIA", $stdfilterhtml);
    $smarty->assign("STDFILTER_JAVASCRIPT", $stdfilterjs);
    $smarty->assign("MANDATORYCHECK", implode(",", $oFenzu->mandatoryvalues));
    $smarty->assign("SHOWVALUES", implode(",", $oFenzu->showvalues));
} else {
    $oFenzu = new Fenzu();
    $Fenzudtls = $oFenzu->getFenzuByCvid($recordid);
    if (!is_admin($current_user)) {
        if ($Fenzudtls['smownerid'] == 0) {
            echo "<script>alert('公共分组不能修改!');history.go(-1);</script>";
            die;
        }
    }
    $log->info('Fenzu :: Successfully got ViewDetails for the Viewid' . $recordid);
    $modulecollist = $oFenzu->getModuleColumnsList($cv_module);
    $modulecollectcollist = $oFenzu->getModuleCollectColumnsList($cv_module);
    $log->info('Fenzu :: Successfully got ColumnsList for the Viewid' . $recordid);
    $smarty->assign("VIEWNAME", $Fenzudtls["viewname"]);
    $stdfilterlist = $oFenzu->getStdFilterByCvid($recordid);
    $log->info('Fenzu :: Successfully got Standard Filter for the Viewid' . $recordid);
    $stdfilterhtml = $oFenzu->getStdFilterCriteria($stdfilterlist["stdfilter"]);