2 // Copyright (C) 2010-2011 Aron Racho <aron@mi-squred.com>
4 // This program is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU General Public License
6 // as published by the Free Software Foundation; either version 2
7 // of the License, or (at your option) any later version.
10 <script language
="javascript" src
="<?php js_src('bucket.js') ?>"></script
>
12 <script type
="text/javascript">
13 var bucket
= new bucket( {} );
19 <?php
echo textfield_row(array("id" => "fld_category_lbl",
20 "name" => "fld_category_lbl",
21 "title" => xl("Category"),
22 "value" => $criteria->getCategoryLabel() ) ); ?
>
23 <br
/><a href
="javascript:;" id
="change_category" onclick
="top.restoreSession()">(change
)</a
>
24 <input type
="hidden" id
="fld_category" name
="fld_category" value
="<?php echo $criteria->category?>" />
27 <?php
echo textfield_row(array("id" => "fld_item_lbl",
28 "name" => "fld_item_lbl",
29 "title" => xl("Item"),
30 "value" => $criteria->getItemLabel() ) ); ?
>
31 <br
/><a href
="javascript:;" id
="change_item" onclick
="top.restoreSession()">(change
)</a
>
32 <input type
="hidden" id
="fld_item" name
="fld_item" value
="<?php echo out( $criteria->item ); ?>" />
36 <span
class="left_col colhead req" data
-field
="fld_completed"><?php
echo out( xl( 'Completed?' ) ); ?
></span
>
37 <span
class="end_col">
38 <select data
-grp
-tgt
="" type
="dropdown" name
="fld_completed" id
="">
39 <option id
="" value
="">--<?php
echo out( xl( 'Select' ) ); ?
>--</option
>
40 <option id
="Yes" value
="yes" <?php
echo $criteria->completed ?
"SELECTED" : "" ?
>><?php
echo out( xl( 'Yes' ) ); ?
></option
>
41 <option id
="No" value
="no" <?php
echo !$criteria->completed ?
"SELECTED" : "" ?
>><?php
echo out( xl( 'No' ) ); ?
></option
>
48 <span
class="left_col colhead req" data
-field
="fld_frequency"><?php
echo out( xl( 'Frequency' ) ); ?
></span
>
49 <span
class="end_col">
50 <select data
-grp
-tgt
="" type
="dropdown" name
="fld_frequency_comparator" id
="">
51 <option id
="" value
="">--<?php
echo xl("Select"); ?
>--</option
>
52 <option id
="le" value
="le" <?php
echo $criteria->frequencyComparator
== "le" ?
"SELECTED" : "" ?
>><?php
echo "<=" ;?
></option
>
53 <option id
="lt" value
="lt" <?php
echo $criteria->frequencyComparator
== "lt" ?
"SELECTED" : "" ?
>><?php
echo "<" ;?
></option
>
54 <option id
="eq" value
="eq" <?php
echo $criteria->frequencyComparator
== "eq" ?
"SELECTED" : "" ?
>><?php
echo "=" ;?
></option
>
55 <option id
="gt" value
="gt" <?php
echo $criteria->frequencyComparator
== "gt" ?
"SELECTED" : "" ?
>><?php
echo ">" ;?
></option
>
56 <option id
="ge" value
="ge" <?php
echo $criteria->frequencyComparator
== "ge" ?
"SELECTED" : "" ?
>><?php
echo ">=" ;?
></option
>
57 <option id
="ne" value
="ne" <?php
echo $criteria->frequencyComparator
== "ne" ?
"SELECTED" : "" ?
>><?php
echo "!=" ;?
></option
>
60 <input data
-grp
-tgt
="fld_frequency" class="field short"
63 value
="<?php echo out( $criteria->frequency ); ?>" />
68 <!-- optional
/required
and inclusion
/exclusion fields
-->
69 <?php
echo common_fields( array( "criteria" => $criteria) ); ?
>