This topic is locked
[SOLVED]

 Show from date to date in chart page

11/14/2009 1:35:35 PM
PHPRunner General questions
S
snuffi01 author

Is it possible to show in an chart page details about the search criteria on witch the chart comes from?
As an example i want to show from "date" to "date" so you can understand from where the chart print comes from.
I also have problem with copy and paste charts on ather pages like it says on the help page, tried copy the html, the chart in the Visual Editor but with no luck.
Can anybody help me?

J
Jane 11/17/2009

Hi,
use custom event (Insert PHP code snippet option on the Visual Editor tab) to print search parameters on the page.

Here is just a sample:

if (@$_REQUEST["a"]=="advsearch")

{

//print search parameters here

//all values are in the $_REQUEST array
//print all valus from $_REQUEST array

print_r($_REQUEST);

}
S
snuffi01 author 11/18/2009



Hi,
use custom event (Insert PHP code snippet option on the Visual Editor tab) to print search parameters on the page.

Here is just a sample:

if (@$_REQUEST["a"]=="advsearch")

{

//print search parameters here

//all values are in the $_REQUEST array
//print all valus from $_REQUEST array

print_r($_REQUEST);

}



Thanks for your reply!
Since I'm really new to php coding could you help me out?
How would the code look like if i'm want to print out as an example the first date and the last date from the search.
The array lokk like this:

[a] => advsearch

[type] => and

[asearchfield] => Array

(

[0] => Dag

[1] => Antal

[2] => Anknytning

[3] => Namn

[4] => Konto

[5] => Typ

[6] => Datum

[7] => Tidpunkt

[8] => Svarstid

[9] => Samtalstid

[10] => Direktval
And its the [6] => Datum witch contains the date, and when i search in advanced search for between 2 dates i would like to print

out witch dates the search has been doing.

Is that possible, and how would the code look like? (i tried several ways but i alvays get some error when watching the site in my browser.
Best regards: Kristian

S
snuffi01 author 11/20/2009

Can anyon ehelp me out with this php snippet?
/Kristian

S
snuffi01 author 11/23/2009

I succeed now with the following code (i'm sure there is a better way but it did give me the result i wanted)
if (@$_REQUEST["a"]=="advsearch")

{

print($_REQUEST ['value_Datum']);
/ Kristian