41. File Comparison Report

Produced on Mon May 12 13:04:31 2008 UTC. This report uses XHTML and CSS2, and is best viewed with a reasonably standards compliant browser such as the latest version of Firefox or Internet Explorer. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

41.1 Files compared

# Location File Last Modified
1 Dolphin-v.6.0.5\admin finance.php Wed Oct 17 08:48:26 2007 UTC
2 Dolphin-v.6.1.0\admin finance.php Sat Apr 26 08:19:16 2008 UTC

41.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 3 984
Changed 1 2
Inserted 0 0
Removed 1 4

41.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

41.4 Active regular expressions

No regular expressions were active.

41.5 Comparison detail

1   <?   1   <?
2     2  
3   /********* ********** ********** ********** ********** ********** ********** ******   3   /********* ********** ********** ********** ********** ********** ********** ******
4   *                              D olphin Sma rt Communi ty Builder   4   *                              D olphin Sma rt Communi ty Builder
5   *                                 --------- --------   5   *                                 --------- --------
6   *     begi n                 : M on Mar 23  2006   6   *     begi n                 : M on Mar 23  2006
7   *     copy right             : ( C) 2006 Bo onEx Group   7   *     copy right             : ( C) 2006 Bo onEx Group
8   *     webs ite               : h ttp://www. boonex.com /   8   *     webs ite               : h ttp://www. boonex.com /
9   * This fil e is part  of Dolphin  - Smart C ommunity B uilder   9   * This fil e is part  of Dolphin  - Smart C ommunity B uilder
10   *   10   *
11   * Dolphin  is free so ftware. Th is work is  licensed  under a Cr eative Com mons Attri bution 3.0  License.    11   * Dolphin  is free so ftware. Th is work is  licensed  under a Cr eative Com mons Attri bution 3.0  License. 
12   * http://c reativecom mons.org/l icenses/by /3.0/   12   * http://c reativecom mons.org/l icenses/by /3.0/
13   *   13   *
14   * Dolphin  is distrib uted in th e hope tha t it will  be useful,  but WITHO UT ANY WAR RANTY;   14   * Dolphin  is distrib uted in th e hope tha t it will  be useful,  but WITHO UT ANY WAR RANTY;
15   * without  even the i mplied war ranty of   MERCHANTAB ILITY or F ITNESS FOR  A PARTICU LAR PURPOS E.   15   * without  even the i mplied war ranty of   MERCHANTAB ILITY or F ITNESS FOR  A PARTICU LAR PURPOS E.
16   * See the  Creative C ommons Att ribution 3 .0 License  for more  details.    16   * See the  Creative C ommons Att ribution 3 .0 License  for more  details. 
17   * You shou ld have re ceived a c opy of the  Creative  Commons At tribution  3.0 Licens e along wi th Dolphin   17   * You shou ld have re ceived a c opy of the  Creative  Commons At tribution  3.0 Licens e along wi th Dolphin
18   * see lice nse.txt fi le; if not , write to  marketing @boonex.co m   18   * see lice nse.txt fi le; if not , write to  marketing @boonex.co m
19   ********** ********** ********** ********** ********** ********** ********** *****/   19   ********** ********** ********** ********** ********** ********** ********** *****/
20     20  
21   require_on ce( '../in c/header.i nc.php' );   21   require_on ce( '../in c/header.i nc.php' );
22   require_on ce( BX_DIR ECTORY_PAT H_INC . 'd esign.inc. php' );   22   require_on ce( BX_DIR ECTORY_PAT H_INC . 'd esign.inc. php' );
23   require_on ce( BX_DIR ECTORY_PAT H_INC . 'p rofiles.in c.php' );   23   require_on ce( BX_DIR ECTORY_PAT H_INC . 'p rofiles.in c.php' );
24   require_on ce( BX_DIR ECTORY_PAT H_INC . 'a dmin_desig n.inc.php'  );   24   require_on ce( BX_DIR ECTORY_PAT H_INC . 'a dmin_desig n.inc.php'  );
25   require_on ce( BX_DIR ECTORY_PAT H_INC . 'c heckout.in c.php' );   25   require_on ce( BX_DIR ECTORY_PAT H_INC . 'c heckout.in c.php' );
26   require_on ce( BX_DIR ECTORY_PAT H_INC . 'u tils.inc.p hp' );   26   require_on ce( BX_DIR ECTORY_PAT H_INC . 'u tils.inc.p hp' );
27     27  
28   $sHead = ' ';   28   $sHead = ' ';
29   if (getPar am("enable _aff") !=  'on')   29   if (getPar am("enable _aff") !=  'on')
30   {   30   {
31       $sHead  = "(<span  style=\"c olor:red;\ ">"._t("_a ffiliate_s ystem_was_ disabled") ."</span>) ";   31       $sHead  = "(<span  style=\"c olor:red;\ ">"._t("_a ffiliate_s ystem_was_ disabled") ."</span>) ";
32   }   32   }
33     33  
34   $logged['a dmin']   =   member_aut h(   1  
);
  34   $logged['a dmin']   =   member_aut h(   1 ,   true,   true   );
35     35  
36   $tr = arra y();   36   $tr = arra y();
37   $tr_query  = "";   37   $tr_query  = "";
38   $order_num _disabled  = 'disable d="disable d"';   38   $order_num _disabled  = 'disable d="disable d"';
39   $last_disa bled = 'di sabled="di sabled"';   39   $last_disa bled = 'di sabled="di sabled"';
40   $date_disa bled = 'di sabled="di sabled"';   40   $date_disa bled = 'di sabled="di sabled"';
41   $between_d isabled =  'disabled= "disabled" ';   41   $between_d isabled =  'disabled= "disabled" ';
42     42  
43   switch ( $ _POST['cal culation_t ype'] )   43   switch ( $ _POST['cal culation_t ype'] )
44   {   44   {
45       case ' total':   45       case ' total':
46           $t r_query =  "SELECT *  FROM `Tran sactions`  WHERE `Sta tus` = 'ap proved' OR DER BY `Da te` DESC";   46           $t r_query =  "SELECT *  FROM `Tran sactions`  WHERE `Sta tus` = 'ap proved' OR DER BY `Da te` DESC";
47           br eak;   47           br eak;
48     48  
49       case ' order_num' :   49       case ' order_num' :
50           $o rder_id =  process_db _input( $_ POST['tr_o rder_num']  );   50           $o rder_id =  process_db _input( $_ POST['tr_o rder_num']  );
51           $t r['order_n um'] = pro cess_pass_ data( $_PO ST['tr_ord er_num'] ) ;   51           $t r['order_n um'] = pro cess_pass_ data( $_PO ST['tr_ord er_num'] ) ;
52           $t r_query =  "SELECT *  FROM `Tran sactions`  WHERE `gtw Transactio nID` = '$o rder_id' A ND `Status ` = 'appro ved' ORDER  BY `Date`  DESC";   52           $t r_query =  "SELECT *  FROM `Tran sactions`  WHERE `gtw Transactio nID` = '$o rder_id' A ND `Status ` = 'appro ved' ORDER  BY `Date`  DESC";
53           $o rder_num_d isabled =  "";   53           $o rder_num_d isabled =  "";
54           br eak;   54           br eak;
55     55  
56       case ' last':   56       case ' last':
57           $l ast_days =  (int)$_PO ST['tr_las t_days'];   57           $l ast_days =  (int)$_PO ST['tr_las t_days'];
58           $t r['last_da ys'] = pro cess_pass_ data( $_PO ST['tr_las t_days'] ) ;   58           $t r['last_da ys'] = pro cess_pass_ data( $_PO ST['tr_las t_days'] ) ;
59           $t r_query =  "SELECT *  FROM `Tran sactions`  WHERE ( TO _DAYS( NOW () ) - TO_ DAYS( `Dat e` ) <= $l ast_days )  AND `Stat us` = 'app roved' ORD ER BY `Dat e` DESC";   59           $t r_query =  "SELECT *  FROM `Tran sactions`  WHERE ( TO _DAYS( NOW () ) - TO_ DAYS( `Dat e` ) <= $l ast_days )  AND `Stat us` = 'app roved' ORD ER BY `Dat e` DESC";
60           $l ast_disabl ed = "";   60           $l ast_disabl ed = "";
61           br eak;   61           br eak;
62     62  
63       case ' date':   63       case ' date':
64           $e xact_date  = strtotim e( $_POST[ 'tr_exact_ date'] );   64           $e xact_date  = strtotim e( $_POST[ 'tr_exact_ date'] );
65           $t r['exact_d ate'] = pr ocess_pass _data( $_P OST['tr_ex act_date']  );   65           $t r['exact_d ate'] = pr ocess_pass _data( $_P OST['tr_ex act_date']  );
66           if  ( $exact_ date != -1  )   66           if  ( $exact_ date != -1  )
67           {   67           {
68                $tr_quer y = "SELEC T * FROM ` Transactio ns` WHERE  TO_DAYS( F ROM_UNIXTI ME($exact_ date) ) =  TO_DAYS( ` Date` ) AN D `Status`  = 'approv ed' ORDER  BY `Date`  DESC";   68                $tr_quer y = "SELEC T * FROM ` Transactio ns` WHERE  TO_DAYS( F ROM_UNIXTI ME($exact_ date) ) =  TO_DAYS( ` Date` ) AN D `Status`  = 'approv ed' ORDER  BY `Date`  DESC";
69           }   69           }
70           el se   70           el se
71           {   71           {
72                $tr_quer y = "";   72                $tr_quer y = "";
73                $tr['err or_text']  = "Please  specify co rrect date s";   73                $tr['err or_text']  = "Please  specify co rrect date s";
74           }   74           }
75           $d ate_disabl ed = "";   75           $d ate_disabl ed = "";
76           br eak;   76           br eak;
77     77  
78       case ' between':   78       case ' between':
79           //  First dat e parse   79           //  First dat e parse
80           if  ( $_POST[ 'tr_betwee n_date1']  == 'start'  )   80           if  ( $_POST[ 'tr_betwee n_date1']  == 'start'  )
81                $between _date1 = 0 ;   81                $between _date1 = 0 ;
82           el seif ( $_P OST['tr_be tween_date 1'] == 'no w' )   82           el seif ( $_P OST['tr_be tween_date 1'] == 'no w' )
83                $between _date1 = t ime();   83                $between _date1 = t ime();
84           el se   84           el se
85                $between _date1 = s trtotime(  $_POST['tr _between_d ate1'] );   85                $between _date1 = s trtotime(  $_POST['tr _between_d ate1'] );
86           //  Second da te parse   86           //  Second da te parse
87           if  ( $_POST[ 'tr_betwee n_date2']  == 'start'  )   87           if  ( $_POST[ 'tr_betwee n_date2']  == 'start'  )
88                $between _date2 = 0 ;   88                $between _date2 = 0 ;
89           el seif ( $_P OST['tr_be tween_date 2'] == 'no w' )   89           el seif ( $_P OST['tr_be tween_date 2'] == 'no w' )
90                $between _date2 = t ime();   90                $between _date2 = t ime();
91           el se   91           el se
92                $between _date2 = s trtotime(  $_POST['tr _between_d ate2'] );   92                $between _date2 = s trtotime(  $_POST['tr _between_d ate2'] );
93     93  
94           $t r['between _date1'] =  process_p ass_data(  $_POST['tr _between_d ate1'] );   94           $t r['between _date1'] =  process_p ass_data(  $_POST['tr _between_d ate1'] );
95           $t r['between _date2'] =  process_p ass_data(  $_POST['tr _between_d ate2'] );   95           $t r['between _date2'] =  process_p ass_data(  $_POST['tr _between_d ate2'] );
96           if  ( $betwee n_date1 !=  -1 && $be tween_date 2 != -1 )   96           if  ( $betwee n_date1 !=  -1 && $be tween_date 2 != -1 )
97           {   97           {
98                $tr_quer y = "SELEC T * FROM ` Transactio ns` WHERE  ( TO_DAYS(  FROM_UNIX TIME($betw een_date1)  ) <= TO_D AYS( `Date ` ) AND TO _DAYS( FRO M_UNIXTIME ($between_ date2) ) > = TO_DAYS(  `Date` )  ) AND `Sta tus` = 'ap proved' OR DER BY `Da te` DESC";   98                $tr_quer y = "SELEC T * FROM ` Transactio ns` WHERE  ( TO_DAYS(  FROM_UNIX TIME($betw een_date1)  ) <= TO_D AYS( `Date ` ) AND TO _DAYS( FRO M_UNIXTIME ($between_ date2) ) > = TO_DAYS(  `Date` )  ) AND `Sta tus` = 'ap proved' OR DER BY `Da te` DESC";
99           }   99           }
100           el se   100           el se
101           {   101           {
102                $tr_quer y = "";   102                $tr_quer y = "";
103                $tr['err or_text']  = "Please  specify co rrect date s";   103                $tr['err or_text']  = "Please  specify co rrect date s";
104           }   104           }
105           $b etween_dis abled = "" ;   105           $b etween_dis abled = "" ;
106           br eak;   106           br eak;
107   }   107   }
108     108  
109   // Calcula tions   109   // Calcula tions
110   if ( strle n($tr_quer y) )   110   if ( strle n($tr_quer y) )
111   {   111   {
112       $fin =  getFinanc eStat( $tr  );   112       $fin =  getFinanc eStat( $tr  );
113   }   113   }
114     114  
115   // Transac tions   115   // Transac tions
116   if ( strle n($tr_quer y) )   116   if ( strle n($tr_quer y) )
117   {   117   {
118       $tr_re s = db_res ( $tr_quer y );   118       $tr_re s = db_res ( $tr_quer y );
119       $tr_nu m = mysql_ num_rows(  $tr_res );   119       $tr_nu m = mysql_ num_rows(  $tr_res );
120   }   120   }
121   else   121   else
122   {   122   {
123       $tr_nu m = 0;   123       $tr_nu m = 0;
124   }   124   }
125     125  
126   $_page['he ader'] = " Finance";   126   $_page['he ader'] = " Finance";
127   $_page['he ader_text' ] = "Calcu lations an d transact ions";   127   $_page['he ader_text' ] = "Calcu lations an d transact ions";
128     128  
129   ob_start() ;   129   ob_start() ;
130   ?>   130   ?>
131     131  
132   <div id="h elpDivId"  style="wid th: 200px;  height: a uto; backg round-colo r: #F5F5F5 ; color: # 000000; bo rder: 1px  solid silv er; positi on: absolu te; left:  0px; top:  0px; z-ind ex: 1000;  display: n one;">   132   <div id="h elpDivId"  style="wid th: 200px;  height: a uto; backg round-colo r: #F5F5F5 ; color: # 000000; bo rder: 1px  solid silv er; positi on: absolu te; left:  0px; top:  0px; z-ind ex: 1000;  display: n one;">
133       <div i d="helpTyp eId" style ="position : relative ; margin:  2px; paddi ng: 1px; w hite-space : nowrap;" >CONTENT</ div>   133       <div i d="helpTyp eId" style ="position : relative ; margin:  2px; paddi ng: 1px; w hite-space : nowrap;" >CONTENT</ div>
134       <div i d="helpDes cId" style ="position : relative ; margin:  2px; paddi ng: 1px;"> CONTENT</d iv>   134       <div i d="helpDes cId" style ="position : relative ; margin:  2px; paddi ng: 1px;"> CONTENT</d iv>
135       <div i d="helpNot eId" style ="position : relative ; margin:  2px; paddi ng: 1px; t ext-align:  justify;" >CONTENT</ div>   135       <div i d="helpNot eId" style ="position : relative ; margin:  2px; paddi ng: 1px; t ext-align:  justify;" >CONTENT</ div>
136   </div>   136   </div>
137     137  
138   <?   138   <?
139   $helpDivCo de = ob_ge t_contents ();   139   $helpDivCo de = ob_ge t_contents ();
140   ob_end_cle an();   140   ob_end_cle an();
141     141  
142   TopCodeAdm in( $helpD ivCode );   142   TopCodeAdm in( $helpD ivCode );
143   ContentBlo ckHead("Fi nance ".$s Head);   143   ContentBlo ckHead("Fi nance ".$s Head);
144     144  
145   if ( strle n($tr['err or_text'])  )   145   if ( strle n($tr['err or_text'])  )
146       echo " <br /><cen ter><div c lass=\"err \">{$tr['e rror_text' ]}</div></ center><br  />";   146       echo " <br /><cen ter><div c lass=\"err \">{$tr['e rror_text' ]}</div></ center><br  />";
147     147  
148   ?>   148   ?>
149   <br />   149   <br />
150   <center>   150   <center>
151     151  
152   <script ty pe="text/j avascript" >   152   <script ty pe="text/j avascript" >
153   <!--   153   <!--
154       functi on updateC ontrols()   154       functi on updateC ontrols()
155       {   155       {
156           do cument.for ms['calcul ations_for m'].elemen ts['tr_ord er_num'].d isabled =  !(document .getElemen tById('id_ order').ch ecked);   156           do cument.for ms['calcul ations_for m'].elemen ts['tr_ord er_num'].d isabled =  !(document .getElemen tById('id_ order').ch ecked);
157           do cument.for ms['calcul ations_for m'].elemen ts['tr_las t_days'].d isabled =  !(document .getElemen tById('id_ last').che cked);   157           do cument.for ms['calcul ations_for m'].elemen ts['tr_las t_days'].d isabled =  !(document .getElemen tById('id_ last').che cked);
158           do cument.for ms['calcul ations_for m'].elemen ts['tr_exa ct_date']. disabled =  !(documen t.getEleme ntById('id _date').ch ecked);   158           do cument.for ms['calcul ations_for m'].elemen ts['tr_exa ct_date']. disabled =  !(documen t.getEleme ntById('id _date').ch ecked);
159           do cument.get ElementByI d('exact_c hoose').di sabled = ! (document. getElement ById('id_d ate').chec ked);   159           do cument.get ElementByI d('exact_c hoose').di sabled = ! (document. getElement ById('id_d ate').chec ked);
160           do cument.get ElementByI d('exact_c lear').dis abled = !( document.g etElementB yId('id_da te').check ed);   160           do cument.get ElementByI d('exact_c lear').dis abled = !( document.g etElementB yId('id_da te').check ed);
161           do cument.for ms['calcul ations_for m'].elemen ts['tr_bet ween_date1 '].disable d = !(docu ment.getEl ementById( 'id_betwee n').checke d);   161           do cument.for ms['calcul ations_for m'].elemen ts['tr_bet ween_date1 '].disable d = !(docu ment.getEl ementById( 'id_betwee n').checke d);
162           do cument.get ElementByI d('between 1_choose') .disabled  = !(docume nt.getElem entById('i d_between' ).checked) ;   162           do cument.get ElementByI d('between 1_choose') .disabled  = !(docume nt.getElem entById('i d_between' ).checked) ;
163           do cument.get ElementByI d('between 1_clear'). disabled =  !(documen t.getEleme ntById('id _between') .checked);   163           do cument.get ElementByI d('between 1_clear'). disabled =  !(documen t.getEleme ntById('id _between') .checked);
164           do cument.for ms['calcul ations_for m'].elemen ts['tr_bet ween_date2 '].disable d = !(docu ment.getEl ementById( 'id_betwee n').checke d);   164           do cument.for ms['calcul ations_for m'].elemen ts['tr_bet ween_date2 '].disable d = !(docu ment.getEl ementById( 'id_betwee n').checke d);
165           do cument.get ElementByI d('between 2_choose') .disabled  = !(docume nt.getElem entById('i d_between' ).checked) ;   165           do cument.get ElementByI d('between 2_choose') .disabled  = !(docume nt.getElem entById('i d_between' ).checked) ;
166           do cument.get ElementByI d('between 2_clear'). disabled =  !(documen t.getEleme ntById('id _between') .checked);   166           do cument.get ElementByI d('between 2_clear'). disabled =  !(documen t.getEleme ntById('id _between') .checked);
167       }   167       }
168   -->   168   -->
169   </script>   169   </script>
170     170  
171   <form id=" calculatio ns_form" a ction="<?  echo $_SER VER['PHP_S ELF']; ?>"  method=po st>   171   <form id=" calculatio ns_form" a ction="<?  echo $_SER VER['PHP_S ELF']; ?>"  method=po st>
172   <table cla ss="text"  cellspacin g=0 cellpa dding=4 wi dth=500 st yle="borde r: 1px sil ver solid; ">   172   <table cla ss="text"  cellspacin g=0 cellpa dding=4 wi dth=500 st yle="borde r: 1px sil ver solid; ">
173       <tr cl ass=panel>   173       <tr cl ass=panel>
174           <t d nowrap>& nbsp;<b>Sh ow transac tions and  calculate  sums</b>&n bsp;</td>   174           <t d nowrap>& nbsp;<b>Sh ow transac tions and  calculate  sums</b>&n bsp;</td>
175       </tr>   175       </tr>
176       <tr cl ass=table>   176       <tr cl ass=table>
177           <t d align="c enter">   177           <t d align="c enter">
178                <table c ellpadding ="5" cells pacing="0"  border="0 " width="4 00">   178                <table c ellpadding ="5" cells pacing="0"  border="0 " width="4 00">
179                    <tr>   179                    <tr>
180                         <td align= "left">   180                         <td align= "left">
181                             <input  type="rad io" name=" calculatio n_type" va lue="total " id="id_t otal" onCl ick="javas cript: upd ateControl s();" <?=  $_POST['ca lculation_ type'] ==  'total' ?  'checked=" checked"'  : '' ?> />   181                             <input  type="rad io" name=" calculatio n_type" va lue="total " id="id_t otal" onCl ick="javas cript: upd ateControl s();" <?=  $_POST['ca lculation_ type'] ==  'total' ?  'checked=" checked"'  : '' ?> />
182                         </td>   182                         </td>
183                         <td align= "left" col span="2" n owrap><lab el for="id _total">To tal amount </label></ td>   183                         <td align= "left" col span="2" n owrap><lab el for="id _total">To tal amount </label></ td>
184                    </tr >   184                    </tr >
185                    <tr>   185                    <tr>
186                         <td align= "left">   186                         <td align= "left">
187                             <input  type="rad io" name=" calculatio n_type" va lue="order _num" id=" id_order"  onClick="j avascript:  updateCon trols();"  <?= $_POST ['calculat ion_type']  == 'order _num' ? 'c hecked="ch ecked"' :  '' ?> />   187                             <input  type="rad io" name=" calculatio n_type" va lue="order _num" id=" id_order"  onClick="j avascript:  updateCon trols();"  <?= $_POST ['calculat ion_type']  == 'order _num' ? 'c hecked="ch ecked"' :  '' ?> />
188                         </td>   188                         </td>
189                         <td align= "left" now rap>   189                         <td align= "left" now rap>
190                             <label  for="id_o rder">For  order numb er</label>   190                             <label  for="id_o rder">For  order numb er</label>
191                         </td>   191                         </td>
192                         <td align= "left" now rap>   192                         <td align= "left" now rap>
193                             <input  name="tr_ order_num"  type=text  class=no  size=16 va lue="<?= h tmlspecial chars($tr[ 'order_num ']) ?>" <? = $order_n um_disable d ?> />   193                             <input  name="tr_ order_num"  type=text  class=no  size=16 va lue="<?= h tmlspecial chars($tr[ 'order_num ']) ?>" <? = $order_n um_disable d ?> />
194                         </td>   194                         </td>
195                    </tr >   195                    </tr >
196                    <tr>   196                    <tr>
197                         <td align= "left">   197                         <td align= "left">
198                             <input  type="rad io" name=" calculatio n_type" va lue="last"  id="id_la st" onClic k="javascr ipt: updat eControls( );" <?= $_ POST['calc ulation_ty pe'] == 'l ast' ? 'ch ecked="che cked"' : ' ' ?> />   198                             <input  type="rad io" name=" calculatio n_type" va lue="last"  id="id_la st" onClic k="javascr ipt: updat eControls( );" <?= $_ POST['calc ulation_ty pe'] == 'l ast' ? 'ch ecked="che cked"' : ' ' ?> />
199                         </td>   199                         </td>
200                         <td align= "left" now rap>   200                         <td align= "left" now rap>
201                             <label  for="id_l ast">Durin g last</la bel>   201                             <label  for="id_l ast">Durin g last</la bel>
202                         </td>   202                         </td>
203                         <td align= "left" now rap>   203                         <td align= "left" now rap>
204                             <input  name="tr_ last_days"  type=text  class=no  size=6 val ue="<?= ht mlspecialc hars($tr[' last_days' ]) ?>" <?=  $last_dis abled ?> / >   204                             <input  name="tr_ last_days"  type=text  class=no  size=6 val ue="<?= ht mlspecialc hars($tr[' last_days' ]) ?>" <?=  $last_dis abled ?> / >
205                             &nbsp; days (type  <b>0</b>  for today' s transact ions)   205                             &nbsp; days (type  <b>0</b>  for today' s transact ions)
206                         </td>   206                         </td>
207                    </tr >   207                    </tr >
208                    <tr>   208                    <tr>
209                         <td align= "left">   209                         <td align= "left">
210                             <input  type="rad io" name=" calculatio n_type" va lue="date"  id="id_da te" onClic k="javascr ipt: updat eControls( );" <?= $_ POST['calc ulation_ty pe'] == 'd ate' ? 'ch ecked="che cked"' : ' ' ?> />   210                             <input  type="rad io" name=" calculatio n_type" va lue="date"  id="id_da te" onClic k="javascr ipt: updat eControls( );" <?= $_ POST['calc ulation_ty pe'] == 'd ate' ? 'ch ecked="che cked"' : ' ' ?> />
211                         </td>   211                         </td>
212                         <td align= "left" now rap>   212                         <td align= "left" now rap>
213                             <label  for="id_d ate">On th e date:</l abel>   213                             <label  for="id_d ate">On th e date:</l abel>
214                         </td>   214                         </td>
215                         <td align= "left" now rap>   215                         <td align= "left" now rap>
216                             <input  style="wi dth: 130px " id="tr_e xact_date"  name="tr_ exact_date " type=tex t class=no  value="<? = htmlspec ialchars($ tr['exact_ date']) ?> " <?= $dat e_disabled  ?> />   216                             <input  style="wi dth: 130px " id="tr_e xact_date"  name="tr_ exact_date " type=tex t class=no  value="<? = htmlspec ialchars($ tr['exact_ date']) ?> " <?= $dat e_disabled  ?> />
217                             &nbsp; <input sty le="width:  70px" typ e="button"  id="exact _choose" v alue="Choo se" <?= $d ate_disabl ed ?> />   217                             &nbsp; <input sty le="width:  70px" typ e="button"  id="exact _choose" v alue="Choo se" <?= $d ate_disabl ed ?> />
218                             &nbsp; <input sty le="width:  70px" typ e="button"  id="exact _clear" on Click="doc ument.getE lementById ('tr_exact _date').va lue = '';  " value="C lear" <?=  $date_disa bled ?> />   218                             &nbsp; <input sty le="width:  70px" typ e="button"  id="exact _clear" on Click="doc ument.getE lementById ('tr_exact _date').va lue = '';  " value="C lear" <?=  $date_disa bled ?> />
219                         </td>   219                         </td>
220                    </tr >   220                    </tr >
221                    <tr>   221                    <tr>
222                         <td align= "left">   222                         <td align= "left">
223                             <input  type="rad io" name=" calculatio n_type" va lue="betwe en" id="id _between"  onClick="j avascript:  updateCon trols();"  <?= $_POST ['calculat ion_type']  == 'betwe en' ? 'che cked="chec ked"' : ''  ?> />   223                             <input  type="rad io" name=" calculatio n_type" va lue="betwe en" id="id _between"  onClick="j avascript:  updateCon trols();"  <?= $_POST ['calculat ion_type']  == 'betwe en' ? 'che cked="chec ked"' : ''  ?> />
224                         </td>   224                         </td>
225                         <td align= "left" now rap>   225                         <td align= "left" now rap>
226                             <label  for="id_b etween">Be tween date s</label>   226                             <label  for="id_b etween">Be tween date s</label>
227                         </td>   227                         </td>
228                         <td align= "left" now rap>   228                         <td align= "left" now rap>
229                             <input  style="wi dth: 130px " id="tr_b etween_dat e1" name=" tr_between _date1" ty pe=text cl ass=no siz e=10 value ="<?= html specialcha rs($tr['be tween_date 1']) ?>" < ?= $betwee n_disabled  ?> />   229                             <input  style="wi dth: 130px " id="tr_b etween_dat e1" name=" tr_between _date1" ty pe=text cl ass=no siz e=10 value ="<?= html specialcha rs($tr['be tween_date 1']) ?>" < ?= $betwee n_disabled  ?> />
230                             &nbsp; <input sty le="width:  70px" typ e="button"  id="betwe en1_choose " value="C hoose" <?=  $between_ disabled ? > />   230                             &nbsp; <input sty le="width:  70px" typ e="button"  id="betwe en1_choose " value="C hoose" <?=  $between_ disabled ? > />
231                             &nbsp; <input sty le="width:  70px" typ e="button"  id="betwe en1_clear"  onClick=" document.g etElementB yId('tr_be tween_date 1').value  = ''; " va lue="Clear " <?= $bet ween_disab led ?> />   231                             &nbsp; <input sty le="width:  70px" typ e="button"  id="betwe en1_clear"  onClick=" document.g etElementB yId('tr_be tween_date 1').value  = ''; " va lue="Clear " <?= $bet ween_disab led ?> />
232                         </td>   232                         </td>
233                    </tr >   233                    </tr >
234                    <tr>   234                    <tr>
235                         <td>&nbsp; </td>   235                         <td>&nbsp; </td>
236                         <td align= "right" no wrap>   236                         <td align= "right" no wrap>
237                             and   237                             and
238                         </td>   238                         </td>
239                         <td align= "left" now rap>   239                         <td align= "left" now rap>
240                             <input  style="wi dth: 130px " id="tr_b etween_dat e2" name=" tr_between _date2" ty pe=text cl ass=no siz e=10 value ="<?= html specialcha rs($tr['be tween_date 2']) ?>" < ?= $betwee n_disabled  ?> />   240                             <input  style="wi dth: 130px " id="tr_b etween_dat e2" name=" tr_between _date2" ty pe=text cl ass=no siz e=10 value ="<?= html specialcha rs($tr['be tween_date 2']) ?>" < ?= $betwee n_disabled  ?> />
241                             &nbsp; <input sty le="width:  70px" typ e="button"  id="betwe en2_choose " value="C hoose" <?=  $between_ disabled ? > />   241                             &nbsp; <input sty le="width:  70px" typ e="button"  id="betwe en2_choose " value="C hoose" <?=  $between_ disabled ? > />
242                             &nbsp; <input sty le="width:  70px" typ e="button"  id="betwe en2_clear"  onClick=" document.g etElementB yId('tr_be tween_date 2').value  = ''; " va lue="Clear " <?= $bet ween_disab led ?> />   242                             &nbsp; <input sty le="width:  70px" typ e="button"  id="betwe en2_clear"  onClick=" document.g etElementB yId('tr_be tween_date 2').value  = ''; " va lue="Clear " <?= $bet ween_disab led ?> />
243                         </td>   243                         </td>
244                    </tr >   244                    </tr >
245                    <tr>   245                    <tr>
246                         <td align= "left">&nb sp;</td>   246                         <td align= "left">&nb sp;</td>
247                         <td align= "left" col span="2">   247                         <td align= "left" col span="2">
248                             <div a lign=justi fy>The ear lier date  must be se t first, t he later o ne - secon d. Also yo u can use  words "<b> start</b>"  and "<b>n ow</b>" to  indicate  the beginn ing of you r work and  the prese nt date. D o not use  queries li ke "betwee n start an d now" bec ause it ca n display  a huge amo unt of tra nsactions. </div>   248                             <div a lign=justi fy>The ear lier date  must be se t first, t he later o ne - secon d. Also yo u can use  words "<b> start</b>"  and "<b>n ow</b>" to  indicate  the beginn ing of you r work and  the prese nt date. D o not use  queries li ke "betwee n start an d now" bec ause it ca n display  a huge amo unt of tra nsactions. </div>
249                         </td>   249                         </td>
250                    </tr >   250                    </tr >
251                </table>   251                </table>
252           </ td>   252           </ td>
253       </tr>   253       </tr>
254   </table>   254   </table>
255   <br />   255   <br />
256   <center>   256   <center>
257       <input  class="no " type="su bmit" valu e="Submit"  />   257       <input  class="no " type="su bmit" valu e="Submit"  />
258   </center>   258   </center>
259   </form>   259   </form>
260     260  
261   <!-- Loadi ng Calenda r JavaScri pt files - ->   261   <!-- Loadi ng Calenda r JavaScri pt files - ->
262       <scrip t type="te xt/javascr ipt" src=" <?= $site[ 'plugins']  ?>calenda r/calendar _src/utils .js"></scr ipt>   262       <scrip t type="te xt/javascr ipt" src=" <?= $site[ 'plugins']  ?>calenda r/calendar _src/utils .js"></scr ipt>
263       <scrip t type="te xt/javascr ipt" src=" <?= $site[ 'plugins']  ?>calenda r/calendar _src/calen dar.js"></ script>   263       <scrip t type="te xt/javascr ipt" src=" <?= $site[ 'plugins']  ?>calenda r/calendar _src/calen dar.js"></ script>
264       <scrip t type="te xt/javascr ipt" src=" <?= $site[ 'plugins']  ?>calenda r/calendar _src/calen dar-setup. js"></scri pt>   264       <scrip t type="te xt/javascr ipt" src=" <?= $site[ 'plugins']  ?>calenda r/calendar _src/calen dar-setup. js"></scri pt>
265     265  
266   <!-- Loadi ng languag e definiti on file -- >   266   <!-- Loadi ng languag e definiti on file -- >
267       <scrip t type="te xt/javascr ipt" src=" <?= $site[ 'plugins']  ?>calenda r/calendar _lang/cale ndar-en.js "></script >   267       <scrip t type="te xt/javascr ipt" src=" <?= $site[ 'plugins']  ?>calenda r/calendar _lang/cale ndar-en.js "></script >
268     268  
269   <script ty pe="text/j avascript" >   269   <script ty pe="text/j avascript" >
270   //<![CDATA [   270   //<![CDATA [
271         Zapa tec.Calend ar.setup({   271         Zapa tec.Calend ar.setup({
272           fi rstDay           : 1,   272           fi rstDay           : 1,
273           we ekNumbers        : tr ue,   273           we ekNumbers        : tr ue,
274           sh owOthers         : tr ue,   274           sh owOthers         : tr ue,
275           sh owsTime          : fa lse,   275           sh owsTime          : fa lse,
276           ti meFormat         : "2 4",   276           ti meFormat         : "2 4",
277           st ep               : 2,   277           st ep               : 2,
278           ra nge              : [1 900.01, 20 99.12],   278           ra nge              : [1 900.01, 20 99.12],
279           el ectric           : fa lse,   279           el ectric           : fa lse,
280           si ngleClick        : tr ue,   280           si ngleClick        : tr ue,
281           in putField         : "t r_exact_da te",   281           in putField         : "t r_exact_da te",
282           bu tton             : "e xact_choos e",   282           bu tton             : "e xact_choos e",
283           if Format           : "% Y-%m-%d",   283           if Format           : "% Y-%m-%d",
284           da Format           : "% Y/%m/%d",   284           da Format           : "% Y/%m/%d",
285           al ign              : "B r"   285           al ign              : "B r"
286         });   286         });
287         Zapa tec.Calend ar.setup({   287         Zapa tec.Calend ar.setup({
288           fi rstDay           : 1,   288           fi rstDay           : 1,
289           we ekNumbers        : tr ue,   289           we ekNumbers        : tr ue,
290           sh owOthers         : tr ue,   290           sh owOthers         : tr ue,
291           sh owsTime          : tr ue,   291           sh owsTime          : tr ue,
292           ti meFormat         : "2 4",   292           ti meFormat         : "2 4",
293           st ep               : 2,   293           st ep               : 2,
294           ra nge              : [1 900.01, 20 99.12],   294           ra nge              : [1 900.01, 20 99.12],
295           el ectric           : fa lse,   295           el ectric           : fa lse,
296           si ngleClick        : tr ue,   296           si ngleClick        : tr ue,
297           in putField         : "t r_between_ date1",   297           in putField         : "t r_between_ date1",
298           bu tton             : "b etween1_ch oose",   298           bu tton             : "b etween1_ch oose",
299           if Format           : "% Y-%m-%d %H :%M:%S",   299           if Format           : "% Y-%m-%d %H :%M:%S",
300           da Format           : "% Y/%m/%d",   300           da Format           : "% Y/%m/%d",
301           al ign              : "B r"   301           al ign              : "B r"
302         });   302         });
303         Zapa tec.Calend ar.setup({   303         Zapa tec.Calend ar.setup({
304           fi rstDay           : 1,   304           fi rstDay           : 1,
305           we ekNumbers        : tr ue,   305           we ekNumbers        : tr ue,
306           sh owOthers         : tr ue,   306           sh owOthers         : tr ue,
307           sh owsTime          : tr ue,   307           sh owsTime          : tr ue,
308           ti meFormat         : "2 4",   308           ti meFormat         : "2 4",
309           st ep               : 2,   309           st ep               : 2,
310           ra nge              : [1 900.01, 20 99.12],   310           ra nge              : [1 900.01, 20 99.12],
311           el ectric           : fa lse,   311           el ectric           : fa lse,
312           si ngleClick        : tr ue,   312           si ngleClick        : tr ue,
313           in putField         : "t r_between_ date2",   313           in putField         : "t r_between_ date2",
314           bu tton             : "b etween2_ch oose",   314           bu tton             : "b etween2_ch oose",
315           if Format           : "% Y-%m-%d %H :%M:%S",   315           if Format           : "% Y-%m-%d %H :%M:%S",
316           da Format           : "% Y/%m/%d",   316           da Format           : "% Y/%m/%d",
317           al ign              : "B r"   317           al ign              : "B r"
318         });   318         });
319   //]]>   319   //]]>
320   </script>   320   </script>
321     321  
322   </center>   322   </center>
323   <?   323   <?
324   ContentBlo ckFoot();   324   ContentBlo ckFoot();
325   if ( strle n($tr_quer y) )   325   if ( strle n($tr_quer y) )
326   {   326   {
327   ContentBlo ckHead("Pl ease Pay A ttention") ;   327   ContentBlo ckHead("Pl ease Pay A ttention") ;
328     328  
329   ?>   329   ?>
330     330  
331                    <b>N OTE:</b> O nly transa ctions wit h your cur rent curre ncy will b e shown he re.   331                    <b>N OTE:</b> O nly transa ctions wit h your cur rent curre ncy will b e shown he re.
332   <?   332   <?
333   ContentBlo ckFoot();   333   ContentBlo ckFoot();
334   ContentBlo ckHead("Tr ansactions  and Calcu lations");   334   ContentBlo ckHead("Tr ansactions  and Calcu lations");
335     335  
336   ?>   336   ?>
337     337  
338   <script ty pe="text/j avascript" >   338   <script ty pe="text/j avascript" >
339   <!--   339   <!--
340       functi on showHel pDiv( help Event, typ eData, des cData, not eData )   340       functi on showHel pDiv( help Event, typ eData, des cData, not eData )
341       {   341       {
342           if  ( !helpEv ent )   342           if  ( !helpEv ent )
343                helpEven t = window .event;   343                helpEven t = window .event;
344           he lpDiv = do cument.get ElementByI d('helpDiv Id');   344           he lpDiv = do cument.get ElementByI d('helpDiv Id');
345     345  
346           va r pos_X =  0, pos_Y =  0;   346           va r pos_X =  0, pos_Y =  0;
347           if  ( helpEve nt )   347           if  ( helpEve nt )
348           {   348           {
349                if ( typ eof(helpEv ent.pageX)  == 'numbe r' )   349                if ( typ eof(helpEv ent.pageX)  == 'numbe r' )
350                {   350                {
351                    pos_ X = helpEv ent.pageX;  pos_Y = h elpEvent.p ageY;   351                    pos_ X = helpEv ent.pageX;  pos_Y = h elpEvent.p ageY;
352                }   352                }
353                else if  ( typeof(h elpEvent.c lientX) ==  'number'  )   353                else if  ( typeof(h elpEvent.c lientX) ==  'number'  )
354                {   354                {
355                    pos_ X = helpEv ent.client X; pos_Y =  helpEvent .clientY;   355                    pos_ X = helpEv ent.client X; pos_Y =  helpEvent .clientY;
356                    if (  document. body && (  document.b ody.scroll Top || doc ument.body .scrollLef t ) && !(  window.ope ra || wind ow.debug | | navigato r.vendor = = 'KDE' )  )   356                    if (  document. body && (  document.b ody.scroll Top || doc ument.body .scrollLef t ) && !(  window.ope ra || wind ow.debug | | navigato r.vendor = = 'KDE' )  )
357                    {   357                    {
358                         pos_X += d ocument.bo dy.scrollL eft; pos_Y  += docume nt.body.sc rollTop;   358                         pos_X += d ocument.bo dy.scrollL eft; pos_Y  += docume nt.body.sc rollTop;
359                    }   359                    }
360                    else  if ( docu ment.docum entElement  && ( docu ment.docum entElement .scrollTop  || docume nt.documen tElement.s crollLeft  ) && !( wi ndow.opera  || window .debug ||  navigator. vendor ==  'KDE' ) )   360                    else  if ( docu ment.docum entElement  && ( docu ment.docum entElement .scrollTop  || docume nt.documen tElement.s crollLeft  ) && !( wi ndow.opera  || window .debug ||  navigator. vendor ==  'KDE' ) )
361                    {   361                    {
362                         pos_X += d ocument.do cumentElem ent.scroll Left; pos_ Y += docum ent.docume ntElement. scrollTop;   362                         pos_X += d ocument.do cumentElem ent.scroll Left; pos_ Y += docum ent.docume ntElement. scrollTop;
363                    }   363                    }
364                }   364                }
365           }   365           }
366     366  
367           va r scroll_X  = 0, scro ll_Y = 0;   367           va r scroll_X  = 0, scro ll_Y = 0;
368           if  ( documen t.body &&  ( document .body.scro llTop || d ocument.bo dy.scrollL eft ) && ! ( window.d ebug || na vigator.ve ndor == 'K DE' ) )   368           if  ( documen t.body &&  ( document .body.scro llTop || d ocument.bo dy.scrollL eft ) && ! ( window.d ebug || na vigator.ve ndor == 'K DE' ) )
369           {   369           {
370                scroll_X  = documen t.body.scr ollLeft; s croll_Y =  document.b ody.scroll Top;   370                scroll_X  = documen t.body.scr ollLeft; s croll_Y =  document.b ody.scroll Top;
371           }   371           }
372           el se if ( do cument.doc umentEleme nt && ( do cument.doc umentEleme nt.scrollT op || docu ment.docum entElement .scrollLef t ) && !(  window.deb ug || navi gator.vend or == 'KDE ' ) )   372           el se if ( do cument.doc umentEleme nt && ( do cument.doc umentEleme nt.scrollT op || docu ment.docum entElement .scrollLef t ) && !(  window.deb ug || navi gator.vend or == 'KDE ' ) )
373           {   373           {
374                scroll_X  = documen t.document Element.sc rollLeft;  scroll_Y =  document. documentEl ement.scro llTop;   374                scroll_X  = documen t.document Element.sc rollLeft;  scroll_Y =  document. documentEl ement.scro llTop;
375           }   375           }
376     376  
377           va r win_size _X = 0, wi n_size_Y =  0;   377           va r win_size _X = 0, wi n_size_Y =  0;
378           if  (window.i nnerWidth  && window. innerHeigh t)   378           if  (window.i nnerWidth  && window. innerHeigh t)
379           {   379           {
380                win_size _X = windo w.innerWid th; win_si ze_Y = win dow.innerH eight;   380                win_size _X = windo w.innerWid th; win_si ze_Y = win dow.innerH eight;
381           }   381           }
382           el se if (doc ument.docu mentElemen t && docum ent.docume ntElement. clientWidt h && docum ent.docume ntElement. clientHeig ht)   382           el se if (doc ument.docu mentElemen t && docum ent.docume ntElement. clientWidt h && docum ent.docume ntElement. clientHeig ht)
383           {   383           {
384                win_size _X = docum ent.docume ntElement. clientWidt h; win_siz e_Y = docu ment.docum entElement .clientHei ght;   384                win_size _X = docum ent.docume ntElement. clientWidt h; win_siz e_Y = docu ment.docum entElement .clientHei ght;
385           }   385           }
386           el se if (doc ument.body  && docume nt.body.cl ientWidth  && documen t.body.cli entHeight)   386           el se if (doc ument.body  && docume nt.body.cl ientWidth  && documen t.body.cli entHeight)
387           {   387           {
388                win_size _X = docum ent.body.c lientWidth ; win_size _Y = docum ent.body.c lientHeigh t;   388                win_size _X = docum ent.body.c lientWidth ; win_size _Y = docum ent.body.c lientHeigh t;
389           }   389           }
390     390  
391           po s_X += 15;  pos_Y +=  15;   391           po s_X += 15;  pos_Y +=  15;
392     392  
393           if  (helpDiv. offsetWidt h && helpD iv.offsetH eight)   393           if  (helpDiv. offsetWidt h && helpD iv.offsetH eight)
394           {   394           {
395                if (pos_ X - scroll _X + helpD iv.offsetW idth + 5 >  win_size_ X)   395                if (pos_ X - scroll _X + helpD iv.offsetW idth + 5 >  win_size_ X)
396                    pos_ X -= (help Div.offset Width + 25 );   396                    pos_ X -= (help Div.offset Width + 25 );
397                if (pos_ Y - scroll _Y + helpD iv.offsetH eight + 5  > win_size _Y)   397                if (pos_ Y - scroll _Y + helpD iv.offsetH eight + 5  > win_size _Y)
398                    pos_ Y -= (help Div.offset Height + 2 0);   398                    pos_ Y -= (help Div.offset Height + 2 0);
399           }   399           }
400     400  
401           he lpDiv.styl e.left = p os_X + 'px '; helpDiv .style.top  = pos_Y +  'px';   401           he lpDiv.styl e.left = p os_X + 'px '; helpDiv .style.top  = pos_Y +  'px';
402     402  
403           do cument.get ElementByI d('helpTyp eId').inne rHTML = ty peData;   403           do cument.get ElementByI d('helpTyp eId').inne rHTML = ty peData;
404           do cument.get ElementByI d('helpDes cId').inne rHTML = de scData;   404           do cument.get ElementByI d('helpDes cId').inne rHTML = de scData;
405           do cument.get ElementByI d('helpNot eId').inne rHTML = no teData;   405           do cument.get ElementByI d('helpNot eId').inne rHTML = no teData;
406           he lpDiv.styl e.display  = 'block';   406           he lpDiv.styl e.display  = 'block';
407       }   407       }
408     408  
409       functi on hideHel pDiv()   409       functi on hideHel pDiv()
410       {   410       {
411           do cument.get ElementByI d('helpDiv Id').style .display =  'none';   411           do cument.get ElementByI d('helpDiv Id').style .display =  'none';
412       }   412       }
413   -->   413   -->
414   </script>   414   </script>
415     415  
416   <center>   416   <center>
417   <table cla ss=text ce llspacing= 2 cellpadd ing=2>   417   <table cla ss=text ce llspacing= 2 cellpadd ing=2>
418       <tr cl ass=panel>   418       <tr cl ass=panel>
419           <t d colspan= 2 align="c enter">&nb sp;<b>Calc ulations f or the que ry</b></td >   419           <t d colspan= 2 align="c enter">&nb sp;<b>Calc ulations f or the que ry</b></td >
420       </tr>   420       </tr>
421       <tr cl ass=table>   421       <tr cl ass=table>
422           <t d align="l eft">&nbsp ;Membershi p subscrip tions&nbsp ;</td>   422           <t d align="l eft">&nbsp ;Membershi p subscrip tions&nbsp ;</td>
423           <t d align=ri ght nowrap >&nbsp;<b> <?= $doll. $fin['memb ership_amo unt']; ?>< /b>&nbsp;< /td>   423           <t d align=ri ght nowrap >&nbsp;<b> <?= $doll. $fin['memb ership_amo unt']; ?>< /b>&nbsp;< /td>
424       </tr>   424       </tr>
425       <tr cl ass=table>   425       <tr cl ass=table>
426           <t d align="l eft">&nbsp ;Credits&n bsp;</td>    
427           <t d align=ri ght nowrap >&nbsp;<b> <?= $doll. $fin['cred its_amount ']; ?></b> &nbsp;</td >    
428       </tr>    
429       <tr cl ass=table>    
430           <t d align="l eft">&nbsp ;Contact s ales&nbsp; </td>   426           <t d align="l eft">&nbsp ;Contact s ales&nbsp; </td>
431           <t d align=ri ght nowrap >&nbsp;<b> <?= $doll. $fin['sale s_amount'] ; ?></b>&n bsp;</td>   427           <t d align=ri ght nowrap >&nbsp;<b> <?= $doll. $fin['sale s_amount'] ; ?></b>&n bsp;</td>
432       </tr>   428       </tr>
433       <tr cl ass=table>   429       <tr cl ass=table>
434           <t d align="l eft">&nbsp ;Events ti ckets&nbsp ;</td>   430           <t d align="l eft">&nbsp ;Events ti ckets&nbsp ;</td>
435           <t d align=ri ght nowrap >&nbsp;<b> <?= $doll. $fin['sdat ing_amount ']; ?></b> &nbsp;</td >   431           <t d align=ri ght nowrap >&nbsp;<b> <?= $doll. $fin['sdat ing_amount ']; ?></b> &nbsp;</td >
436       </tr>   432       </tr>
437       <tr cl ass=table>   433       <tr cl ass=table>
438           <t d align="l eft">&nbsp ;Total&nbs p;</td>   434           <t d align="l eft">&nbsp ;Total&nbs p;</td>
439           <t d align=ri ght nowrap >&nbsp;<b> <?= $doll. $fin['tota l']; ?></b >&nbsp;</t d>   435           <t d align=ri ght nowrap >&nbsp;<b> <?= $doll. $fin['tota l']; ?></b >&nbsp;</t d>
440       </tr>   436       </tr>
441   </table>   437   </table>
442   <br />   438   <br />
443     439  
444   <table cla ss=text ce llspacing= 2 cellpadd ing=4 widt h=520>   440   <table cla ss=text ce llspacing= 2 cellpadd ing=4 widt h=520>
445       <tr>   441       <tr>
446           <t d class=pa nel colspa n=6 align= "center">< b>Transact ions</b></ td>   442           <t d class=pa nel colspa n=6 align= "center">< b>Transact ions</b></ td>
447       </tr>   443       </tr>
448   <?   444   <?
449       if ( $ tr_num ==  0 )   445       if ( $ tr_num ==  0 )
450       {   446       {
451           ec ho "   447           ec ho "
452       <tr>   448       <tr>
453           <t d align=ce nter>No tr ansactions  available </td>   449           <t d align=ce nter>No tr ansactions  available </td>
454       </tr>   450       </tr>
455           ";   451           ";
456       }   452       }
457       else   453       else
458       {   454       {
459           $p aymentProv iders = ge tPaymentPr oviders( f alse );   455           $p aymentProv iders = ge tPaymentPr oviders( f alse );
460   ?>   456   ?>
461       <tr cl ass=panel>   457       <tr cl ass=panel>
462           <t d align="l eft" nowra p>Order nu mber</td>   458           <t d align="l eft" nowra p>Order nu mber</td>
463           <t d align="l eft" nowra p>Date</td >   459           <t d align="l eft" nowra p>Date</td >
464           <t d align="l eft" nowra p>Member</ td>   460           <t d align="l eft" nowra p>Member</ td>
465           <t d align="l eft" nowra p>Provider </td>   461           <t d align="l eft" nowra p>Provider </td>
466           <t d align="c enter" now rap>Info</ td>   462           <t d align="c enter" now rap>Info</ td>
467           <t d align="r ight" nowr ap>Sum pai d, <?= $cu rrency_cod e ?></td>   463           <t d align="r ight" nowr ap>Sum pai d, <?= $cu rrency_cod e ?></td>
468       </tr>   464       </tr>
469   <?   465   <?
470           wh ile( $tr_a rr = mysql _fetch_arr ay( $tr_re s ) )   466           wh ile( $tr_a rr = mysql _fetch_arr ay( $tr_re s ) )
471           {   467           {
472                $tranDat aArray = t ransString ToData( $t r_arr['Dat a'] );   468                $tranDat aArray = t ransString ToData( $t r_arr['Dat a'] );
473                $tranTyp eString =  '<b>Type:< /b> ' . $t ranDataArr ay['action '];   469                $tranTyp eString =  '<b>Type:< /b> ' . $t ranDataArr ay['action '];
474                $tranDat aString =  '<b>Descri ption:</b>  ' . retur nDescByAct ion( $tran DataArray[ 'action'],  $tranData Array['dat a'], false  );   470                $tranDat aString =  '<b>Descri ption:</b>  ' . retur nDescByAct ion( $tran DataArray[ 'action'],  $tranData Array['dat a'], false  );
475                $tranNot eString =  strlen($tr _arr['Note ']) ? '<b> Note:</b>  ' . $tr_ar r['Note']  : '';   471                $tranNot eString =  strlen($tr _arr['Note ']) ? '<b> Note:</b>  ' . $tr_ar r['Note']  : '';
476   ?>   472   ?>
477       <tr cl ass=table>   473       <tr cl ass=table>
478           <t d><?= $tr_ arr['gtwTr ansactionI D'] ?></td >   474           <t d><?= $tr_ arr['gtwTr ansactionI D'] ?></td >
479           <t d align="l eft" nowra p><?= $tr_ arr['Date' ] ?></td>   475           <t d align="l eft" nowra p><?= $tr_ arr['Date' ] ?></td>
480           <t d align="l eft" nowra p><?= "<a  href=\"{$s ite['url'] }profile.p hp?ID={$tr _arr['IDMe mber']}\"  target=\"_ blank\">{$ tr_arr['ID Member']}< /a>" ?></t d>   476           <t d align="l eft" nowra p><?= "<a  href=\"{$s ite['url'] }profile.p hp?ID={$tr _arr['IDMe mber']}\"  target=\"_ blank\">{$ tr_arr['ID Member']}< /a>" ?></t d>
481           <t d align="l eft" nowra p><?= $pay mentProvid ers[$tr_ar r['IDProvi der']]['Ca ption'] ?> </td>   477           <t d align="l eft" nowra p><?= $pay mentProvid ers[$tr_ar r['IDProvi der']]['Ca ption'] ?> </td>
482           <t d align="c enter" now rap><a hre f="javascr ipt:void(0 );" onmous eover="jav ascript: s howHelpDiv (event, '< ?= $tranTy peString ? >', '<?= $ tranDataSt ring ?>',  '<?= $tran NoteString  ?>');" on mouseout=" javascript : hideHelp Div();">In fo</a></td >   478           <t d align="c enter" now rap><a hre f="javascr ipt:void(0 );" onmous eover="jav ascript: s howHelpDiv (event, '< ?= $tranTy peString ? >', '<?= $ tranDataSt ring ?>',  '<?= $tran NoteString  ?>');" on mouseout=" javascript : hideHelp Div();">In fo</a></td >
483           <t d align="r ight" nowr ap><?= spr intf( "%.2 f", $tr_ar r['Amount' ] ) ?></td >   479           <t d align="r ight" nowr ap><?= spr intf( "%.2 f", $tr_ar r['Amount' ] ) ?></td >
484       </tr>   480       </tr>
485   <?   481   <?
486           }   482           }
487       }   483       }
488   ?>   484   ?>
489   </table>   485   </table>
490   </center>   486   </center>
491     487  
492   <?   488   <?
493   ContentBlo ckFoot();   489   ContentBlo ckFoot();
494   }   490   }
495     491  
496   BottomCode ();   492   BottomCode ();
497   ?>   493   ?>