![]() |
Alexey admin 11/13/2007 |
Hi, |
![]() |
Alexey admin 11/13/2007 |
Hi, |
W
|
webdino author 11/13/2007 |
Hi, I wasn't able to understand what are you trying to do. Provide a more detailed description of your task.
|
W
|
webdino author 11/14/2007 |
is there a solution for this problem or doesn´t it work with PHPR? |
W
|
webdino author 11/15/2007 |
ist it possible to generate a dynamic date in the where clause of the query? |
![]() |
Alexey admin 11/15/2007 |
Hi, <select onchange="window.location='..._list.php?a=filter&'+this.options[this.selectedIndex].value"> <option value="from=2007-11-01&to=2007-12-01">November 2007</option> <option value="from=2007-12-01&to=2008-01-01">December 2007</option> ... </select>
if($_GET["a"]=="filter") $strWhereClause=whereAdd($strWhereClause,"Datum between '".$_GET["from"]."' and '".$_GET["to"]."'"); |
W
|
webdino author 11/15/2007 |
thank you i will try it |
M
|
mrpeeble 7/7/2008 |
Hi, you can do this using Visual Editor and Before SQL queryevent. Add this code to the List page with Visual Editor (in HTML mode): Then put this code to Before SQL query event:
|
J
|
Jane 7/8/2008 |
Hi, $str = ""; $str.= "<select onchange=\"window.location='SDP_Monthly_Payment_Review_list.php?a=filter&'+this.options[this.selectedIndex].value\">"; $str.= "<option value=\"Please select...\">Select Month</option>"; if ($_GET["from"]=="2008-3-01" && $_GET["to"]=="2108-04-01") $str.= "<option selected value=\"from=2008-3-01&to=2108-04-01\">All Months</option>"; else $str.= "<option value=\"from=2008-3-01&to=2108-04-01\">All Months</option>"; $str.= "<option value=\"from=2008-3-01&to=2008-04-01\">March 2008</option>"; $str.= "<option value=\"from=2008-04-01&to=2008-05-01\">April 2008</option>"; $str.= "</select>"; echo $str; |
M
|
mrpeeble 7/9/2008 |
Hi, I recommend you to use custom event (Insert PHP code snippet option on the Visual Editor tab) for this dropdown. Here is a sample:
|
J
|
Jane 7/9/2008 |
Please publish your project on Demo Account and send to support@xlinesoft.com a URL to your pages along with instructions on reproducing this error. |
![]() |
mikue from germany 7/9/2008 |
Hi Jane, |
J
|
Jane 7/10/2008 |
Here is the general solution: if ($_REQUEST["from"]=="firstvalue" && $_REQUEST["to"]=="secondvalue") $str.= "<option selected value=\"from=firstvalue&to=secondvalue\">Option1</option>"; else $str.= "<option value=\"from=firstvalue&to=secondvalue\">Option1</option>"; |