From cccf7add6d988aa3f5582ea0cae4137d2bc9662c Mon Sep 17 00:00:00 2001 From: Carsten Schmitz Date: Tue, 15 Jan 2013 13:37:39 +0100 Subject: [PATCH] Fixed issue #7192: Filters are pre-filled in statistics --- .../views/admin/export/statistics_view.php | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/application/views/admin/export/statistics_view.php b/application/views/admin/export/statistics_view.php index 52c9a7b3503..0210b7f61ee 100644 --- a/application/views/admin/export/statistics_view.php +++ b/application/views/admin/export/statistics_view.php @@ -96,11 +96,11 @@ if (isset($datestamp) && $datestamp == "Y") {?> @@ -278,10 +278,10 @@ if (isset($_POST[$myfield2])){echo $_POST[$myfield2];} eT("Number greater than");?>:
- "return goodchars(event,'0123456789.,')"));?> + "return goodchars(event,'0123456789.,')"));?>
eT("Number less than");?>:
- "return goodchars(event,'0123456789.,')"));?> + "return goodchars(event,'0123456789.,')"));?>
increase counter @@ -321,7 +321,7 @@ echo _showSpeaker($flt[3]." - ".flattenText($row[1],true)) ."
\n" ."\t".$clang->gT("Responses containing").":
\n"; - echo CHtml::textField('text',$myfield2,isset($_POST[$myfield2])?$_POST[$myfield2]:'',array()) + echo CHtml::textField($myfield2,isset($_POST[$myfield2])?$_POST[$myfield2]:'',array()) ."\t\n"; $counter2++; } @@ -368,7 +368,7 @@ ." "._showSpeaker($niceqtext) ."
\n" ."\t".$clang->gT("Responses containing").":
\n" - .CHtml::textField('text',$myfield2,isset($_POST[$myfield2])?$_POST[$myfield2]:'',array()) + .CHtml::textField($myfield2,isset($_POST[$myfield2])?$_POST[$myfield2]:'',array()) ."\t\n"; break; @@ -380,10 +380,10 @@ $myfield2="{$myfield}G"; $myfield3="{$myfield}L"; echo "\t".$clang->gT("Number greater than").":
\n" - .CHtml::textField('text',$myfield2,isset($_POST[$myfield2])?$_POST[$myfield2]:'',array( 'onkeypress'=>"return goodchars(event,'0123456789.,')" )) + .CHtml::textField($myfield2,isset($_POST[$myfield2])?$_POST[$myfield2]:'',array( 'onkeypress'=>"return goodchars(event,'0123456789.,')" )) ."\t
\n" ."\t".$clang->gT("Number less than").":
\n" - .CHtml::textField('text',$myfield3,isset($_POST[$myfield3])?$_POST[$myfield3]:'',array( 'onkeypress'=>"return goodchars(event,'0123456789.,')" )) + .CHtml::textField($myfield3,isset($_POST[$myfield3])?$_POST[$myfield3]:'',array( 'onkeypress'=>"return goodchars(event,'0123456789.,')" )) ."\t
\n"; //put field names into array @@ -397,10 +397,10 @@ $myfield2 = "{$myfield}G"; $myfield3 = "{$myfield}L"; echo "\t".$clang->gT("Number of files greater than").":
\n" - .CHtml::textField('text',$myfield2,isset($_POST[$myfield2])?$_POST[$myfield2]:'',array( 'onkeypress'=>"return goodchars(event,'0123456789.,')" )) + .CHtml::textField($myfield2,isset($_POST[$myfield2])?$_POST[$myfield2]:'',array( 'onkeypress'=>"return goodchars(event,'0123456789.,')" )) ."
\n" ."\t".$clang->gT("Number of files less than").":
\n" - .CHtml::textField('text',$myfield3,isset($_POST[$myfield3])?$_POST[$myfield3]:'',array( 'onkeypress'=>"return goodchars(event,'0123456789.,')" )) + .CHtml::textField($myfield3,isset($_POST[$myfield3])?$_POST[$myfield3]:'',array( 'onkeypress'=>"return goodchars(event,'0123456789.,')" )) ."
\n"; break; @@ -437,13 +437,13 @@ ."
\n" ."\t".$clang->gT("Date (YYYY-MM-DD) equals").":
\n" - .CHtml::textField('text',$myfield3,isset($_POST[$myfield3])?$_POST[$myfield2]:'',array() ) + .CHtml::textField($myfield3,isset($_POST[$myfield3])?$_POST[$myfield2]:'',array() ) ."
\n" ."\t  ".$clang->gT("Date is")." >=
\n" - .CHtml::textField('text',$myfield4,isset($_POST[$myfield4])?$_POST[$myfield4]:'',array() ) + .CHtml::textField($myfield4,isset($_POST[$myfield4])?$_POST[$myfield4]:'',array() ) ."
" .$clang->gT("AND/OR Date is")." <=
" - .CHtml::textField('text',$myfield5,isset($_POST[$myfield5])?$_POST[$myfield5]:'',array() ) + .CHtml::textField($myfield5,isset($_POST[$myfield5])?$_POST[$myfield5]:'',array() ) ."
\n"; break; @@ -756,7 +756,7 @@ ."
\n"; //echo $fquery; echo "\t".$clang->gT("Responses containing").":
\n" - .CHtml::textField('text',$myfield2,isset($_POST[$myfield2])?$_POST[$myfield2]:'',array() ) + .CHtml::textField($myfield2,isset($_POST[$myfield2])?$_POST[$myfield2]:'',array() ) ."\n"; $counter2++; }