This topic is locked

Output Search Strings on Report Page.

3/19/2008 6:03:28 PM
PHPRunner General questions
W
wholly author

How do I show the search strings on the report page.
eg. I use the advanced search page and have a field called DatePart
Then I select between a date range.
eg 1st March 2008 to 10th March 2008. ( I notice in the seach page, it shows this as $value_DatePart and $value1_DatePart)
How do I get these 2 variable to show on the report page.
Thanks

Alexey admin 3/20/2008

Hi,
use Insert PHP code snippet feature on the Report page.

Here is the code to print out DatePart values:

global $strTableName;

if(@$_SESSION[$strTableName."_search"]==2)

{

if($_SESSION[$strTableName."_asearchfortype"]["DatePart"]=="Between")

echo "DatePart between ".$_SESSION[$strTableName."_asearchfor"]["DatePart"]." and ".$_SESSION[$strTableName."_asearchfor2"]["DatePart"];

else

echo "DatePart ".$_SESSION[$strTableName."_asearchfortype"]["DatePart"]." ".$_SESSION[$strTableName."_asearchfor"]["DatePart"];

}

W
wholly author 3/26/2008

Hi,

use Insert PHP code snippet feature on the Report page.

Here is the code to print out DatePart values:


This is the output that I am getting by inserting the code above when I use the "between" dropdown
DatePart between date13 2008-3-17
All so how can I can the font and size.
Thanks

J
Jane 3/27/2008

Hi,
just add formatting tags to your code:

...

echo "<b>DatePart between </b>".$_SESSION[$strTableName."_asearchfor"]["DatePart"]." and ".$_SESSION[$strTableName."_asearchfor2"]["DatePart"];

...