' . "\n";
+
+$rows = array();
+$rows[] = array('Total:', '');
+echo $this->element('table',
+ array('class' => 'summary',
+ 'rows' => $rows,
+ 'column_class' => array('field', 'value'),
+ 'suppress_alternate_rows' => true,
+ ));
+echo '
' . "\n";
+
+
+/**********************************************************************
+ **********************************************************************
+ **********************************************************************
+ **********************************************************************
+ * User Configuration
+ */
echo $form->create(null, array('id' => 'receipt-form',
//'onsubmit' => 'updateEntriesGrid(); return false',
@@ -101,6 +115,25 @@ echo $form->button('Update',
echo $form->end();
+
+/**********************************************************************
+ **********************************************************************
+ **********************************************************************
+ **********************************************************************
+ * Supporting Elements Section
+ */
+
+echo '' . "\n";
+
+
+/**********************************************************************
+ * Entries
+ */
+
+$grid_setup =
+ array('loadComplete' =>
+ array('--special' => "function() {url=jQuery('#collected-entries-jqGrid').getGridParam('url');url=url.replace(/\/debug.*$/,'?'); pd=jQuery('#collected-entries-jqGrid').getPostData();$.each(pd,function(i){ url+=i+'='+escape(pd[i])+'&'; }); jQuery('#collected-entries-jqGrid-query').html('
Grid Query'); onGridLoadComplete();}"));
+
echo $this->element('ledger_entries', array
(// Element configuration
'collected_account_id' => $account['id'],
@@ -111,18 +144,12 @@ echo $this->element('ledger_entries', array
(
'grid_div_id' => 'collected-entries',
'grid_div_class' => 'text-below',
+ 'grid_setup' => $grid_setup,
//'caption' => '
',
- 'caption' => 'Collected Charges',
+ 'caption' => 'Collected ' . Inflector::pluralize($account['name'])
),
));
-echo('
' .
- "\n");
-
?>
-
+' . "\n";
+
+/* End page div */
+echo '