$smarty->assign("STDFILTERCRITERIA", $stdfilterhtml); $smarty->assign("STDFILTER_JAVASCRIPT", $stdfilterjs); $smarty->assign("MANDATORYCHECK", implode(",", $oCustomView->mandatoryvalues)); $smarty->assign("SHOWVALUES", implode(",", $oCustomView->showvalues)); } else { $oCustomView = new CustomView(); $customviewdtls = $oCustomView->getCustomViewByCvid($recordid); // if(!is_admin($current_user)){ // if($customviewdtls['smownerid'] == 0){ // echo "<script>alert('公共视图不能修改!');history.go(-1);</script>"; // die; // } // } $log->info('CustomView :: Successfully got ViewDetails for the Viewid' . $recordid); $modulecollist = $oCustomView->getModuleColumnsList($cv_module); $modulecollectcollist = $oCustomView->getModuleCollectColumnsList($cv_module); $selectedcolumnslist = $oCustomView->getColumnsListByCvid($recordid); $log->info('CustomView :: Successfully got ColumnsList for the Viewid' . $recordid); $smarty->assign("VIEWNAME", $customviewdtls["viewname"]); if ($customviewdtls["setdefault"] == 1) { $smarty->assign("CHECKED", "checked"); } if ($customviewdtls["setmetrics"] == 1) { $smarty->assign("MCHECKED", "checked"); } $choosecollectcolhtml = getByModule_ColumnsHTML($cv_module, $modulecollectcollist, $customviewdtls["collectcolumn"]); $smarty->assign("CHOOSECOLLECTCOLUMN", $choosecollectcolhtml); // for($i=1;$i<10;$i++) // { // $choosecolhtml = getByModule_ColumnsHTML($cv_module,$modulecollist,$selectedcolumnslist[$i-1]); // $smarty->assign("CHOOSECOLUMN".$i,$choosecolhtml);