Пример #1
0
<?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);
Пример #2
0
        $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"]);
    $stdfiltercolhtml = getStdFilterHTML($cv_module, $stdfilterlist["columnname"]);