Updated all the view.ctp files to use the new style infobox. I should probably create an element for it, but I'll hold off for now.
git-svn-id: file:///svn-source/pmgr/branches/ledger_transactions_20090605/site@135 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -1,9 +1,6 @@
|
|||||||
<?php /* -*- mode:PHP -*- */ ?>
|
<?php /* -*- mode:PHP -*- */
|
||||||
|
|
||||||
<div class="account view">
|
echo '<div class="account view">' . "\n";
|
||||||
|
|
||||||
<?php
|
|
||||||
; // Editor alignment
|
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
**********************************************************************
|
**********************************************************************
|
||||||
@@ -12,12 +9,12 @@
|
|||||||
* Account Detail Main Section
|
* Account Detail Main Section
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$rows = array(array('ID', $account['Account']['id']),
|
$rows = array(array('ID', $account['Account']['id']),
|
||||||
array('Name', $account['Account']['name']),
|
array('Name', $account['Account']['name']),
|
||||||
array('Type', $account['Account']['type']),
|
array('Type', $account['Account']['type']),
|
||||||
array('External Name', $account['Account']['external_name']),
|
array('External Name', $account['Account']['external_name']),
|
||||||
array('External Account', $account['Account']['external_account']),
|
array('External Account', $account['Account']['external_account']),
|
||||||
array('Comment', $account['Account']['comment']));
|
array('Comment', $account['Account']['comment']));
|
||||||
|
|
||||||
echo $this->element('table',
|
echo $this->element('table',
|
||||||
array('class' => 'item account detail',
|
array('class' => 'item account detail',
|
||||||
@@ -30,30 +27,19 @@ echo $this->element('table',
|
|||||||
* Account Info Box
|
* Account Info Box
|
||||||
*/
|
*/
|
||||||
|
|
||||||
?>
|
echo '<div class="infobox">' . "\n";
|
||||||
|
$rows = array();
|
||||||
|
$rows[] = array('Debits:', FormatHelper::currency($stats['debits']));
|
||||||
|
$rows[] = array('Credits:', FormatHelper::currency($stats['credits']));
|
||||||
|
$rows[] = array('Account Balance:', FormatHelper::currency($stats['balance']));
|
||||||
|
echo $this->element('table',
|
||||||
|
array('class' => 'summary',
|
||||||
|
'rows' => $rows,
|
||||||
|
'column_class' => array('field', 'value'),
|
||||||
|
'suppress_alternate_rows' => true,
|
||||||
|
));
|
||||||
|
echo '</div>' . "\n";
|
||||||
|
|
||||||
<DIV CLASS="infobox">
|
|
||||||
<TABLE CLASS="summary">
|
|
||||||
<TR>
|
|
||||||
<TD>Debits:</TD>
|
|
||||||
<TD><?php echo FormatHelper::currency($stats['debits']); ?></TD>
|
|
||||||
</TR>
|
|
||||||
|
|
||||||
<TR>
|
|
||||||
<TD>Credits:</TD>
|
|
||||||
<TD><?php echo FormatHelper::currency($stats['credits']); ?></TD>
|
|
||||||
</TR>
|
|
||||||
|
|
||||||
<TR>
|
|
||||||
<TD>Accout Balance:</TD>
|
|
||||||
<TD><?php echo FormatHelper::currency($stats['balance']); ?></TD>
|
|
||||||
</TR>
|
|
||||||
</TABLE>
|
|
||||||
</DIV>
|
|
||||||
|
|
||||||
<DIV CLASS="detail supporting">
|
|
||||||
<?php
|
|
||||||
; // Editor alignment
|
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
**********************************************************************
|
**********************************************************************
|
||||||
@@ -62,6 +48,8 @@ echo $this->element('table',
|
|||||||
* Supporting Elements Section
|
* Supporting Elements Section
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
echo '<div CLASS="detail supporting">' . "\n";
|
||||||
|
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
* Ledgers
|
* Ledgers
|
||||||
@@ -82,8 +70,8 @@ echo $this->element('ledger_entries',
|
|||||||
'account_type' => $account['Account']['type'],
|
'account_type' => $account['Account']['type'],
|
||||||
));
|
));
|
||||||
|
|
||||||
/* End "detail supporting" DIV */ ?>
|
/* End "detail supporting" div */
|
||||||
</DIV>
|
echo '</div>' . "\n";
|
||||||
|
|
||||||
|
/* End page div */
|
||||||
</div>
|
echo '</div>' . "\n";
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
<?php /* -*- mode:PHP -*- */ ?>
|
<?php /* -*- mode:PHP -*- */
|
||||||
|
|
||||||
<div class="contact view">
|
echo '<div class="contact view">' . "\n";
|
||||||
|
|
||||||
<?php
|
|
||||||
; // Editor alignment
|
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
**********************************************************************
|
**********************************************************************
|
||||||
@@ -15,13 +12,13 @@
|
|||||||
$rows = array(array('First Name', $contact['Contact']['first_name']),
|
$rows = array(array('First Name', $contact['Contact']['first_name']),
|
||||||
array('Middle Name', $contact['Contact']['middle_name']),
|
array('Middle Name', $contact['Contact']['middle_name']),
|
||||||
array('Last Name', $contact['Contact']['last_name']),
|
array('Last Name', $contact['Contact']['last_name']),
|
||||||
array('Company', $contact['Contact']['company_name']),
|
array('Company', $contact['Contact']['company_name']),
|
||||||
array('SSN', $contact['Contact']['id_federal']),
|
array('SSN', $contact['Contact']['id_federal']),
|
||||||
array('ID', ($contact['Contact']['id_local']
|
array('ID', ($contact['Contact']['id_local']
|
||||||
. ($contact['Contact']['id_local']
|
. ($contact['Contact']['id_local']
|
||||||
? " - ".$contact['Contact']['id_local_state']
|
? " - ".$contact['Contact']['id_local_state']
|
||||||
: ""))),
|
: ""))),
|
||||||
array('Comment', $contact['Contact']['comment']));
|
array('Comment', $contact['Contact']['comment']));
|
||||||
|
|
||||||
echo $this->element('table',
|
echo $this->element('table',
|
||||||
array('class' => 'item contact detail',
|
array('class' => 'item contact detail',
|
||||||
@@ -34,13 +31,16 @@ echo $this->element('table',
|
|||||||
* Contact Info Box
|
* Contact Info Box
|
||||||
*/
|
*/
|
||||||
|
|
||||||
?>
|
echo '<div class="infobox">' . "\n";
|
||||||
<DIV CLASS="infobox">
|
$rows = array();
|
||||||
</DIV>
|
echo $this->element('table',
|
||||||
|
array('class' => 'summary',
|
||||||
|
'rows' => $rows,
|
||||||
|
'column_class' => array('field', 'value'),
|
||||||
|
'suppress_alternate_rows' => true,
|
||||||
|
));
|
||||||
|
echo '</div>' . "\n";
|
||||||
|
|
||||||
<DIV CLASS="detail supporting">
|
|
||||||
<?php
|
|
||||||
; // Editor alignment
|
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
**********************************************************************
|
**********************************************************************
|
||||||
@@ -49,6 +49,8 @@ echo $this->element('table',
|
|||||||
* Supporting Elements Section
|
* Supporting Elements Section
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
echo '<div CLASS="detail supporting">' . "\n";
|
||||||
|
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
* Phones
|
* Phones
|
||||||
@@ -124,7 +126,8 @@ echo $this->element('customers', array('heading' => '',
|
|||||||
'customers' => $contact['Customer']));
|
'customers' => $contact['Customer']));
|
||||||
|
|
||||||
|
|
||||||
/* End "detail supporting" DIV */ ?>
|
/* End "detail supporting" div */
|
||||||
</DIV>
|
echo '</div>' . "\n";
|
||||||
|
|
||||||
</div>
|
/* End page div */
|
||||||
|
echo '</div>' . "\n";
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
<?php /* -*- mode:PHP -*- */ ?>
|
<?php /* -*- mode:PHP -*- */
|
||||||
|
|
||||||
<div class="customer view">
|
echo '<div class="customer view">' . "\n";
|
||||||
|
|
||||||
<?php
|
|
||||||
; // Editor alignment
|
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
**********************************************************************
|
**********************************************************************
|
||||||
@@ -26,19 +23,18 @@ echo $this->element('table',
|
|||||||
* Customer Info Box
|
* Customer Info Box
|
||||||
*/
|
*/
|
||||||
|
|
||||||
?>
|
echo '<div class="infobox">' . "\n";
|
||||||
<DIV CLASS="infobox">
|
$rows = array();
|
||||||
<DIV CLASS="summary grand deposit">
|
$rows[] = array('Security Deposit:', FormatHelper::currency($outstandingDeposit));
|
||||||
Security Deposit: <?php echo FormatHelper::currency($outstandingDeposit); ?>
|
$rows[] = array('Balance:', FormatHelper::currency($outstandingBalance));
|
||||||
</DIV>
|
echo $this->element('table',
|
||||||
<DIV CLASS="summary grand balance">
|
array('class' => 'summary',
|
||||||
Balance: <?php echo FormatHelper::currency($outstandingBalance); ?>
|
'rows' => $rows,
|
||||||
</DIV>
|
'column_class' => array('field', 'value'),
|
||||||
</DIV>
|
'suppress_alternate_rows' => true,
|
||||||
|
));
|
||||||
|
echo '</div>' . "\n";
|
||||||
|
|
||||||
<DIV CLASS="detail supporting">
|
|
||||||
<?php
|
|
||||||
; // Editor alignment
|
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
**********************************************************************
|
**********************************************************************
|
||||||
@@ -47,6 +43,8 @@ echo $this->element('table',
|
|||||||
* Supporting Elements Section
|
* Supporting Elements Section
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
echo '<div CLASS="detail supporting">' . "\n";
|
||||||
|
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
* Contacts
|
* Contacts
|
||||||
@@ -73,7 +71,8 @@ echo $this->element('accounts',
|
|||||||
'accounts' => array($customer['Account'])));
|
'accounts' => array($customer['Account'])));
|
||||||
|
|
||||||
|
|
||||||
/* End "detail supporting" DIV */ ?>
|
/* End "detail supporting" div */
|
||||||
</DIV>
|
echo '</div>' . "\n";
|
||||||
|
|
||||||
</div>
|
/* End page div */
|
||||||
|
echo '</div>' . "\n";
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
<?php /* -*- mode:PHP -*- */ ?>
|
<?php /* -*- mode:PHP -*- */
|
||||||
|
|
||||||
<div class="lease view">
|
echo '<div class="lease view">' . "\n";
|
||||||
|
|
||||||
<?php
|
|
||||||
; // Editor alignment
|
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
**********************************************************************
|
**********************************************************************
|
||||||
@@ -12,10 +9,10 @@
|
|||||||
* Lease Detail Main Section
|
* Lease Detail Main Section
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$lease_type = $lease['LeaseType'];
|
$lease_type = $lease['LeaseType'];
|
||||||
$customer = $lease['Customer'];
|
$customer = $lease['Customer'];
|
||||||
$account = $lease['Account'];
|
$account = $lease['Account'];
|
||||||
$unit = $lease['Unit'];
|
$unit = $lease['Unit'];
|
||||||
|
|
||||||
if (isset($lease['Lease']))
|
if (isset($lease['Lease']))
|
||||||
$lease = $lease['Lease'];
|
$lease = $lease['Lease'];
|
||||||
@@ -59,20 +56,18 @@ echo $this->element('table',
|
|||||||
* Account Info Box
|
* Account Info Box
|
||||||
*/
|
*/
|
||||||
|
|
||||||
?>
|
echo '<div class="infobox">' . "\n";
|
||||||
|
$rows = array();
|
||||||
|
$rows[] = array('Security Deposit:', FormatHelper::currency($outstandingDeposit));
|
||||||
|
$rows[] = array('Balance:', FormatHelper::currency($outstandingBalance));
|
||||||
|
echo $this->element('table',
|
||||||
|
array('class' => 'summary',
|
||||||
|
'rows' => $rows,
|
||||||
|
'column_class' => array('field', 'value'),
|
||||||
|
'suppress_alternate_rows' => true,
|
||||||
|
));
|
||||||
|
echo '</div>' . "\n";
|
||||||
|
|
||||||
<DIV CLASS="infobox">
|
|
||||||
<DIV CLASS="summary grand deposit">
|
|
||||||
Security Deposit: <?php echo FormatHelper::currency($outstandingDeposit); ?>
|
|
||||||
</DIV>
|
|
||||||
<DIV CLASS="summary grand balance">
|
|
||||||
Balance: <?php echo FormatHelper::currency($outstandingBalance); ?>
|
|
||||||
</DIV>
|
|
||||||
</DIV>
|
|
||||||
|
|
||||||
<DIV CLASS="detail supporting">
|
|
||||||
<?php
|
|
||||||
; // Editor alignment
|
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
**********************************************************************
|
**********************************************************************
|
||||||
@@ -81,9 +76,11 @@ echo $this->element('table',
|
|||||||
* Supporting Elements Section
|
* Supporting Elements Section
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
echo '<div CLASS="detail supporting">' . "\n";
|
||||||
/* End "detail supporting" DIV */ ?>
|
|
||||||
</DIV>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
/* End "detail supporting" div */
|
||||||
|
echo '</div>' . "\n";
|
||||||
|
|
||||||
|
/* End page div */
|
||||||
|
echo '</div>' . "\n";
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
<?php /* -*- mode:PHP -*- */ ?>
|
<?php /* -*- mode:PHP -*- */
|
||||||
|
|
||||||
<div class="ledger-entry view">
|
echo '<div class="ledger-entry view">' . "\n";
|
||||||
|
|
||||||
<?php
|
|
||||||
; // Editor alignment
|
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
**********************************************************************
|
**********************************************************************
|
||||||
@@ -12,11 +9,11 @@
|
|||||||
* LedgerEntry Detail Main Section
|
* LedgerEntry Detail Main Section
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$transaction = $entry['Transaction'];
|
$transaction = $entry['Transaction'];
|
||||||
$debit_ledger = $entry['DebitLedger'];
|
$debit_ledger = $entry['DebitLedger'];
|
||||||
$credit_ledger = $entry['CreditLedger'];
|
$credit_ledger = $entry['CreditLedger'];
|
||||||
$source = $entry['MonetarySource'];
|
$source = $entry['MonetarySource'];
|
||||||
$entry = $entry['LedgerEntry'];
|
$entry = $entry['LedgerEntry'];
|
||||||
|
|
||||||
$rows = array(array('ID', $entry['id']),
|
$rows = array(array('ID', $entry['id']),
|
||||||
array('Transaction', $html->link('#'.$transaction['id'],
|
array('Transaction', $html->link('#'.$transaction['id'],
|
||||||
@@ -67,13 +64,16 @@ echo $this->element('table',
|
|||||||
* LedgerEntry Info Box
|
* LedgerEntry Info Box
|
||||||
*/
|
*/
|
||||||
|
|
||||||
?>
|
echo '<div class="infobox">' . "\n";
|
||||||
<DIV CLASS="infobox">
|
$rows = array();
|
||||||
</DIV>
|
echo $this->element('table',
|
||||||
|
array('class' => 'summary',
|
||||||
|
'rows' => $rows,
|
||||||
|
'column_class' => array('field', 'value'),
|
||||||
|
'suppress_alternate_rows' => true,
|
||||||
|
));
|
||||||
|
echo '</div>' . "\n";
|
||||||
|
|
||||||
<DIV CLASS="detail supporting">
|
|
||||||
<?php
|
|
||||||
; // Editor alignment
|
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
**********************************************************************
|
**********************************************************************
|
||||||
@@ -82,8 +82,11 @@ echo $this->element('table',
|
|||||||
* Supporting Elements Section
|
* Supporting Elements Section
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
echo '<div CLASS="detail supporting">' . "\n";
|
||||||
|
|
||||||
/* End "detail supporting" DIV */ ?>
|
|
||||||
</DIV>
|
|
||||||
|
|
||||||
</div>
|
/* End "detail supporting" div */
|
||||||
|
echo '</div>' . "\n";
|
||||||
|
|
||||||
|
/* End page div */
|
||||||
|
echo '</div>' . "\n";
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
<?php /* -*- mode:PHP -*- */ ?>
|
<?php /* -*- mode:PHP -*- */
|
||||||
|
|
||||||
<div class="ledger view">
|
echo '<div class="ledger view">' . "\n";
|
||||||
|
|
||||||
<?php
|
|
||||||
; // Editor alignment
|
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
**********************************************************************
|
**********************************************************************
|
||||||
@@ -12,14 +9,19 @@
|
|||||||
* Ledger Detail Main Section
|
* Ledger Detail Main Section
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$rows = array(array('ID', $ledger['Ledger']['id']),
|
$account = $ledger['Account'];
|
||||||
array('Name', $ledger['Ledger']['name']),
|
|
||||||
array('Account', $html->link($ledger['Account']['name'],
|
if (isset($ledger['Ledger']))
|
||||||
array('controller' => 'accounts',
|
$ledger = $ledger['Ledger'];
|
||||||
'action' => 'view',
|
|
||||||
$ledger['Account']['id']))),
|
$rows = array(array('ID', $ledger['id']),
|
||||||
array('Status', $ledger['Ledger']['closed'] ? 'Closed' : 'Open'),
|
array('Name', $ledger['name']),
|
||||||
array('Comment', $ledger['Ledger']['comment']));
|
array('Account', $html->link($account['name'],
|
||||||
|
array('controller' => 'accounts',
|
||||||
|
'action' => 'view',
|
||||||
|
$account['id']))),
|
||||||
|
array('Status', $ledger['closed'] ? 'Closed' : 'Open'),
|
||||||
|
array('Comment', $ledger['comment']));
|
||||||
|
|
||||||
echo $this->element('table',
|
echo $this->element('table',
|
||||||
array('class' => 'item ledger detail',
|
array('class' => 'item ledger detail',
|
||||||
@@ -32,30 +34,19 @@ echo $this->element('table',
|
|||||||
* Ledger Info Box
|
* Ledger Info Box
|
||||||
*/
|
*/
|
||||||
|
|
||||||
?>
|
echo '<div class="infobox">' . "\n";
|
||||||
|
$rows = array();
|
||||||
|
$rows[] = array('Debits:', FormatHelper::currency($stats['debits']));
|
||||||
|
$rows[] = array('Credits:', FormatHelper::currency($stats['credits']));
|
||||||
|
$rows[] = array('Ledger Balance:', FormatHelper::currency($stats['balance']));
|
||||||
|
echo $this->element('table',
|
||||||
|
array('class' => 'summary',
|
||||||
|
'rows' => $rows,
|
||||||
|
'column_class' => array('field', 'value'),
|
||||||
|
'suppress_alternate_rows' => true,
|
||||||
|
));
|
||||||
|
echo '</div>' . "\n";
|
||||||
|
|
||||||
<DIV CLASS="infobox">
|
|
||||||
<TABLE CLASS="summary">
|
|
||||||
<TR>
|
|
||||||
<TD>Debits:</TD>
|
|
||||||
<TD><?php echo FormatHelper::currency($stats['debits']); ?></TD>
|
|
||||||
</TR>
|
|
||||||
|
|
||||||
<TR>
|
|
||||||
<TD>Credits:</TD>
|
|
||||||
<TD><?php echo FormatHelper::currency($stats['credits']); ?></TD>
|
|
||||||
</TR>
|
|
||||||
|
|
||||||
<TR>
|
|
||||||
<TD>Ledger Balance:</TD>
|
|
||||||
<TD><?php echo FormatHelper::currency($stats['balance']); ?></TD>
|
|
||||||
</TR>
|
|
||||||
</TABLE>
|
|
||||||
</DIV>
|
|
||||||
|
|
||||||
<DIV CLASS="detail supporting">
|
|
||||||
<?php
|
|
||||||
; // Editor alignment
|
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
**********************************************************************
|
**********************************************************************
|
||||||
@@ -64,18 +55,21 @@ echo $this->element('table',
|
|||||||
* Supporting Elements Section
|
* Supporting Elements Section
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
echo '<div CLASS="detail supporting">' . "\n";
|
||||||
|
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
* Ledger
|
* Ledger
|
||||||
*/
|
*/
|
||||||
|
|
||||||
echo $this->element('ledger_entries',
|
echo $this->element('ledger_entries',
|
||||||
array('caption' => $ledger['Ledger']['name'],
|
array('caption' => $ledger['name'],
|
||||||
'ledger_id' => $ledger['Ledger']['id'],
|
'ledger_id' => $ledger['id'],
|
||||||
'account_type' => $ledger['Account']['type'],
|
'account_type' => $account['type'],
|
||||||
));
|
));
|
||||||
|
|
||||||
/* End "detail supporting" DIV */ ?>
|
/* End "detail supporting" div */
|
||||||
</DIV>
|
echo '</div>' . "\n";
|
||||||
|
|
||||||
</div>
|
/* End page div */
|
||||||
|
echo '</div>' . "\n";
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
<?php /* -*- mode:PHP -*- */ ?>
|
<?php /* -*- mode:PHP -*- */
|
||||||
|
|
||||||
<div class="monetary-source view">
|
echo '<div class="monetary-source view">' . "\n";
|
||||||
|
|
||||||
<?php
|
|
||||||
; // Editor alignment
|
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
**********************************************************************
|
**********************************************************************
|
||||||
@@ -12,7 +9,6 @@
|
|||||||
* MonetarySource Detail Main Section
|
* MonetarySource Detail Main Section
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
$type = $monetarySource['MonetaryType'];
|
$type = $monetarySource['MonetaryType'];
|
||||||
$source = $monetarySource['MonetarySource'];
|
$source = $monetarySource['MonetarySource'];
|
||||||
|
|
||||||
@@ -33,13 +29,16 @@ echo $this->element('table',
|
|||||||
* MonetarySource Info Box
|
* MonetarySource Info Box
|
||||||
*/
|
*/
|
||||||
|
|
||||||
?>
|
echo '<div class="infobox">' . "\n";
|
||||||
<DIV CLASS="infobox">
|
$rows = array();
|
||||||
</DIV>
|
echo $this->element('table',
|
||||||
|
array('class' => 'summary',
|
||||||
|
'rows' => $rows,
|
||||||
|
'column_class' => array('field', 'value'),
|
||||||
|
'suppress_alternate_rows' => true,
|
||||||
|
));
|
||||||
|
echo '</div>' . "\n";
|
||||||
|
|
||||||
<DIV CLASS="detail supporting">
|
|
||||||
<?php
|
|
||||||
; // Editor alignment
|
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
**********************************************************************
|
**********************************************************************
|
||||||
@@ -48,8 +47,10 @@ echo $this->element('table',
|
|||||||
* Supporting Elements Section
|
* Supporting Elements Section
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
echo '<div CLASS="detail supporting">' . "\n";
|
||||||
|
|
||||||
/* End "detail supporting" DIV */ ?>
|
/* End "detail supporting" div */
|
||||||
</DIV>
|
echo '</div>' . "\n";
|
||||||
|
|
||||||
</div>
|
/* End page div */
|
||||||
|
echo '</div>' . "\n";
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
<?php /* -*- mode:PHP -*- */ ?>
|
<?php /* -*- mode:PHP -*- */
|
||||||
|
|
||||||
<div class="transaction view">
|
echo '<div class="transaction view">' . "\n";
|
||||||
|
|
||||||
<?php
|
|
||||||
; // Editor alignment
|
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
**********************************************************************
|
**********************************************************************
|
||||||
@@ -12,10 +9,10 @@
|
|||||||
* Transaction Detail Main Section
|
* Transaction Detail Main Section
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$rows = array(array('ID', $transaction['Transaction']['id']),
|
$rows = array(array('ID', $transaction['Transaction']['id']),
|
||||||
array('Timestamp', FormatHelper::datetime($transaction['Transaction']['stamp'])),
|
array('Timestamp', FormatHelper::datetime($transaction['Transaction']['stamp'])),
|
||||||
array('Through', FormatHelper::date($transaction['Transaction']['through_date'])),
|
array('Through', FormatHelper::date($transaction['Transaction']['through_date'])),
|
||||||
array('Due', FormatHelper::date($transaction['Transaction']['due_date'])),
|
array('Due', FormatHelper::date($transaction['Transaction']['due_date'])),
|
||||||
array('Comment', $transaction['Transaction']['comment']));
|
array('Comment', $transaction['Transaction']['comment']));
|
||||||
|
|
||||||
echo $this->element('table',
|
echo $this->element('table',
|
||||||
@@ -29,16 +26,17 @@ echo $this->element('table',
|
|||||||
* Transaction Info Box
|
* Transaction Info Box
|
||||||
*/
|
*/
|
||||||
|
|
||||||
?>
|
echo '<div class="infobox">' . "\n";
|
||||||
<DIV CLASS="infobox">
|
$rows = array();
|
||||||
<DIV CLASS="summary grand total">
|
$rows[] = array('Total:', FormatHelper::currency($total));
|
||||||
Total: <?php echo FormatHelper::currency($total); ?>
|
echo $this->element('table',
|
||||||
</DIV>
|
array('class' => 'summary',
|
||||||
</DIV>
|
'rows' => $rows,
|
||||||
|
'column_class' => array('field', 'value'),
|
||||||
|
'suppress_alternate_rows' => true,
|
||||||
|
));
|
||||||
|
echo '</div>' . "\n";
|
||||||
|
|
||||||
<DIV CLASS="detail supporting">
|
|
||||||
<?php
|
|
||||||
; // Editor alignment
|
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
**********************************************************************
|
**********************************************************************
|
||||||
@@ -47,6 +45,8 @@ echo $this->element('table',
|
|||||||
* Supporting Elements Section
|
* Supporting Elements Section
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
echo '<div CLASS="detail supporting">' . "\n";
|
||||||
|
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
* Entries
|
* Entries
|
||||||
@@ -109,7 +109,8 @@ echo $this->element('table',
|
|||||||
'column_class' => $column_class));
|
'column_class' => $column_class));
|
||||||
|
|
||||||
|
|
||||||
/* End "detail supporting" DIV */ ?>
|
/* End "detail supporting" div */
|
||||||
</DIV>
|
echo '</div>' . "\n";
|
||||||
|
|
||||||
</div>
|
/* End page div */
|
||||||
|
echo '</div>' . "\n";
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
<?php /* -*- mode:PHP -*- */ ?>
|
<?php /* -*- mode:PHP -*- */
|
||||||
|
|
||||||
<div class="unit view">
|
echo '<div class="unit view">' . "\n";
|
||||||
|
|
||||||
<?php
|
|
||||||
; // Editor alignment
|
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
**********************************************************************
|
**********************************************************************
|
||||||
@@ -27,19 +24,18 @@ echo $this->element('table',
|
|||||||
* Unit Info Box
|
* Unit Info Box
|
||||||
*/
|
*/
|
||||||
|
|
||||||
?>
|
echo '<div class="infobox">' . "\n";
|
||||||
<DIV CLASS="infobox">
|
$rows = array();
|
||||||
<DIV CLASS="summary grand deposit">
|
$rows[] = array('Security Deposit:', FormatHelper::currency($outstandingDeposit));
|
||||||
Security Deposit: <?php echo FormatHelper::currency($outstandingDeposit); ?>
|
$rows[] = array('Balance:', FormatHelper::currency($outstandingBalance));
|
||||||
</DIV>
|
echo $this->element('table',
|
||||||
<DIV CLASS="summary grand balance">
|
array('class' => 'summary',
|
||||||
Balance: <?php echo FormatHelper::currency($outstandingBalance); ?>
|
'rows' => $rows,
|
||||||
</DIV>
|
'column_class' => array('field', 'value'),
|
||||||
</DIV>
|
'suppress_alternate_rows' => true,
|
||||||
|
));
|
||||||
|
echo '</div>' . "\n";
|
||||||
|
|
||||||
<DIV CLASS="detail supporting">
|
|
||||||
<?php
|
|
||||||
; // Editor alignment
|
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
**********************************************************************
|
**********************************************************************
|
||||||
@@ -48,6 +44,8 @@ echo $this->element('table',
|
|||||||
* Supporting Elements Section
|
* Supporting Elements Section
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
echo '<div CLASS="detail supporting">' . "\n";
|
||||||
|
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
* Lease History
|
* Lease History
|
||||||
@@ -70,7 +68,9 @@ echo $this->element('leases',
|
|||||||
/* 'ledger' => array('mix'=>1))); */
|
/* 'ledger' => array('mix'=>1))); */
|
||||||
/* } */
|
/* } */
|
||||||
|
|
||||||
/* End "detail supporting" DIV */ ?>
|
|
||||||
</DIV>
|
|
||||||
|
|
||||||
</div>
|
/* End "detail supporting" div */
|
||||||
|
echo '</div>' . "\n";
|
||||||
|
|
||||||
|
/* End page div */
|
||||||
|
echo '</div>' . "\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user