SHARE
TWEET

Untitled

a guest Apr 21st, 2017 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $filter_date_from = $this->state->get("filter.date_from_dateformat");
  2.     $filter_Qdate_from = (!empty($filter_date_from)) ? $this->isValidDate($filter_date_from) : null;
  3.  
  4.     if ($filter_Qdate_from != null)
  5.     {
  6.         $query->where("a.date = '" . $db->escape($filter_Qdate_from) . "'");
  7.     }
  8.    
  9. <field name="date_from_dateformat" label="COM_MERAKIAC_LIST_LBL_SESSION_DATE_FILTER_FROM" type="calendar" onchange="this.form.submit();" filter="safehtml" class="inputbox"/>
  10.    
  11. <script>
  12. Calendar.setup({
  13.     cont: "sample1",
  14.     inputField: "filter_date_from_dateformat"
  15. });
  16. </script>
  17.  
  18. <div id="sample1">
  19. <input type="text" title="" name="filter[date_from_dateformat]" id="filter_date_from_dateformat" value="" maxlength="45" class="inputbox hasTooltip" onchange="this.form.submit();" />
  20. </div>
RAW Paste Data
Top