function GetFilterList()
 {
     // Initialize
     $sFilterList = "";
     // Year Filter
     if (strval($this->YEAR__dateCreated->SelectionList) != "") {
         if ($sFilterList != "") {
             $sFilterList .= ",";
         }
         $sFilterList .= "\"sel_YEAR__dateCreated\":\"" . ewr_JsEncode2($this->YEAR__dateCreated->SelectionList) . "\"";
     }
     // Return filter list in json
     if ($sFilterList != "") {
         return "{" . $sFilterList . "}";
     } else {
         return "null";
     }
 }
示例#2
0
 function GetFilterList()
 {
     // Initialize
     $sFilterList = "";
     // Field invid
     $sWrk = "";
     if ($sWrk == "") {
         $sWrk = $this->invid->SelectionList != EWR_INIT_VALUE ? $this->invid->SelectionList : "";
         if (is_array($sWrk)) {
             $sWrk = implode("||", $sWrk);
         }
         if ($sWrk != "") {
             $sWrk = "\"sel_invid\":\"" . ewr_JsEncode2($sWrk) . "\"";
         }
     }
     if ($sWrk != "") {
         if ($sFilterList != "") {
             $sFilterList .= ",";
         }
         $sFilterList .= $sWrk;
     }
     // Return filter list in json
     if ($sFilterList != "") {
         return "{" . $sFilterList . "}";
     } else {
         return "null";
     }
 }
示例#3
0
 function GetFilterList()
 {
     // Initialize
     $sFilterList = "";
     // Field timeta
     $sWrk = "";
     if ($this->timeta->SearchValue != "" || $this->timeta->SearchValue2 != "") {
         $sWrk = "\"sv_timeta\":\"" . ewr_JsEncode2($this->timeta->SearchValue) . "\"," . "\"so_timeta\":\"" . ewr_JsEncode2($this->timeta->SearchOperator) . "\"," . "\"sc_timeta\":\"" . ewr_JsEncode2($this->timeta->SearchCondition) . "\"," . "\"sv2_timeta\":\"" . ewr_JsEncode2($this->timeta->SearchValue2) . "\"," . "\"so2_timeta\":\"" . ewr_JsEncode2($this->timeta->SearchOperator2) . "\"";
     }
     if ($sWrk == "") {
         $sWrk = $this->timeta->SelectionList != EWR_INIT_VALUE ? $this->timeta->SelectionList : "";
         if (is_array($sWrk)) {
             $sWrk = implode("||", $sWrk);
         }
         if ($sWrk != "") {
             $sWrk = "\"sel_timeta\":\"" . ewr_JsEncode2($sWrk) . "\"";
         }
     }
     if ($sWrk != "") {
         if ($sFilterList != "") {
             $sFilterList .= ",";
         }
         $sFilterList .= $sWrk;
     }
     // Return filter list in json
     if ($sFilterList != "") {
         return "{" . $sFilterList . "}";
     } else {
         return "null";
     }
 }
 function GetFilterList()
 {
     // Initialize
     $sFilterList = "";
     // Field dateCreated
     $sWrk = "";
     $sWrk = $this->dateCreated->DropDownValue != EWR_INIT_VALUE ? $this->dateCreated->DropDownValue : "";
     if (is_array($sWrk)) {
         $sWrk = implode("||", $sWrk);
     }
     if ($sWrk != "") {
         $sWrk = "\"sv_dateCreated\":\"" . ewr_JsEncode2($sWrk) . "\"";
     }
     if ($sWrk != "") {
         if ($sFilterList != "") {
             $sFilterList .= ",";
         }
         $sFilterList .= $sWrk;
     }
     // Return filter list in json
     if ($sFilterList != "") {
         return "{" . $sFilterList . "}";
     } else {
         return "null";
     }
 }
示例#5
0
 function ArrayToJSON($client)
 {
     $ar = @$this->Phrases['ew-language']['global']['phrase'];
     $Str = "{";
     if (is_array($ar)) {
         foreach ($ar as $id => $node) {
             $is_client = @$node['attr']['client'] == '1';
             $value = ewr_ConvertFromUtf8(@$node['attr']['value']);
             if (!$client || $client && $is_client) {
                 $Str .= "\"" . ewr_JsEncode2($id) . "\":\"" . ewr_JsEncode2($value) . "\",";
             }
         }
     }
     if (substr($Str, -1) == ",") {
         $Str = substr($Str, 0, strlen($Str) - 1);
     }
     $Str .= "}";
     return $Str;
 }