Esempio n. 1
0
     $stdfiltercolhtml = getStdFilterHTML($cv_module, $stdfilterlist["columnname"]);
     $stdfilterjs = $oCustomView->getCriteriaJS();
     if (isset($stdfilterlist["startdate"]) && isset($stdfilterlist["enddate"])) {
         $smarty->assign("STARTDATE", DateTimeField::convertToUserFormat($stdfilterlist["startdate"]));
         $smarty->assign("ENDDATE", DateTimeField::convertToUserFormat($stdfilterlist["enddate"]));
     } else {
         $smarty->assign("STARTDATE", $stdfilterlist["startdate"]);
         $smarty->assign("ENDDATE", $stdfilterlist["enddate"]);
     }
     $smarty->assign("STDFILTERCOLUMNS", $stdfiltercolhtml);
     $smarty->assign("STDCOLUMNSCOUNT", count($stdfiltercolhtml));
     $smarty->assign("STDFILTERCRITERIA", $stdfilterhtml);
     $smarty->assign("STDFILTER_JAVASCRIPT", $stdfilterjs);
     $advfilterlist = $oCustomView->getAdvFilterByCvid($recordid);
     $advfilterhtml = getAdvCriteriaHTML();
     $modulecolumnshtml = getByModule_ColumnsHTML($cv_module, $modulecollist);
     $smarty->assign("FOPTION", $advfilterhtml);
     $smarty->assign("COLUMNS_BLOCK", $modulecolumnshtml);
     $smarty->assign("CRITERIA_GROUPS", $advfilterlist);
     $smarty->assign("MANDATORYCHECK", implode(",", array_unique($oCustomView->mandatoryvalues)));
     $smarty->assign("SHOWVALUES", implode(",", $oCustomView->showvalues));
     $smarty->assign("EXIST", "true");
     $cactionhtml = "<input name='customaction' class='button' type='button' value='Create Custom Action' onclick=goto_CustomAction('" . $cv_module . "');>";
     if ($cv_module == "Leads" || $cv_module == "Accounts" || $cv_module == "Contacts") {
         $smarty->assign("CUSTOMACTIONBUTTON", $cactionhtml);
     }
     $data_type[] = $oCustomView->data_type;
     $smarty->assign("DATATYPE", $data_type);
 } else {
     echo "<table border='0' cellpadding='5' cellspacing='0' width='100%' height='450px'><tr><td align='center'>";
     echo "<div style='border: 3px solid rgb(153, 153, 153); background-color: rgb(255, 255, 255); width: 55%; position: relative; z-index: 10000000;'>\r\n\t\t\t<table border='0' cellpadding='5' cellspacing='0' width='98%'>\r\n\t\t\t<tbody><tr>\r\n\t\t\t<td rowspan='2' width='11%'><img src='" . vtiger_imageurl('denied.gif', $theme) . "' ></td>\r\n\t\t\t<td style='border-bottom: 1px solid rgb(204, 204, 204);' nowrap='nowrap' width='70%'><span class='genHeaderSmall'>{$app_strings['LBL_PERMISSION']}</span></td>\r\n\t\t\t</tr>\r\n\t\t\t<tr>\r\n\t\t\t<td class='small' align='right' nowrap='nowrap'>\r\n\t\t\t<a href='javascript:window.history.back();'>{$app_strings['LBL_GO_BACK']}</a><br>\r\n\t\t\t</td>\r\n\t\t\t</tr>\r\n\t\t\t</tbody></table>\r\n\t\t\t</div>";
Esempio n. 2
0
 }
 $smarty->assign("CHOOSECOLUMN", $choosecolumnHtml);
 $stdfilterlist = $oCustomView->getStdFilterByCvid($recordid);
 $log->info('CustomView :: Successfully got Standard Filter for the Viewid' . $recordid);
 $stdfilterhtml = $oCustomView->getStdFilterCriteria($stdfilterlist["stdfilter"]);
 $stdfiltercolhtml = getStdFilterHTML($cv_module, $stdfilterlist["columnname"]);
 $stdfilterjs = $oCustomView->getCriteriaJS();
 if (isset($stdfilterlist["startdate"]) && isset($stdfilterlist["enddate"])) {
     $smarty->assign("STARTDATE", $stdfilterlist["startdate"]);
     $smarty->assign("ENDDATE", $stdfilterlist["enddate"]);
 }
 $advfilterlist = $oCustomView->getAdvFilterByCvid($recordid);
 $log->info('CustomView :: Successfully got Advanced Filter for the Viewid' . $recordid, 'info');
 for ($i = 1; $i < 6; $i++) {
     $advfilterhtml = getAdvCriteriaHTML($advfilterlist[$i - 1]["comparator"]);
     $advcolumnhtml = getByModule_ColumnsHTML($cv_module, $modulecollist, $advfilterlist[$i - 1]["columnname"]);
     $smarty->assign("FOPTION" . $i, $advfilterhtml);
     $smarty->assign("BLOCK" . $i, $advcolumnhtml);
     $smarty->assign("VALUE" . $i, $advfilterlist[$i - 1]["value"]);
 }
 $smarty->assign("STDFILTERCOLUMNS", $stdfiltercolhtml);
 $smarty->assign("STDFILTERCRITERIA", $stdfilterhtml);
 $smarty->assign("STDFILTER_JAVASCRIPT", $stdfilterjs);
 if (is_array($oCustomView->mandatoryvalues)) {
     $smarty->assign("MANDATORYCHECK", implode(",", $oCustomView->mandatoryvalues));
 }
 if (is_array($oCustomView->showvalues)) {
     $smarty->assign("SHOWVALUES", implode(",", $oCustomView->showvalues));
 }
 $cactionhtml = "<input name='customaction' class='button' type='button' value='Create Custom Action' onclick=goto_CustomAction('" . $cv_module . "');>";
 if ($cv_module == "Leads" || $cv_module == "Accounts" || $cv_module == "Contacts") {