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:
abijah
2009-06-15 21:01:22 +00:00
parent c3139220ee
commit c9c06a9fb4
9 changed files with 207 additions and 221 deletions

View File

@@ -1,9 +1,6 @@
<?php /* -*- mode:PHP -*- */ ?>
<?php /* -*- mode:PHP -*- */
<div class="account view">
<?php
; // Editor alignment
echo '<div class="account view">' . "\n";
/**********************************************************************
**********************************************************************
@@ -12,12 +9,12 @@
* Account Detail Main Section
*/
$rows = array(array('ID', $account['Account']['id']),
array('Name', $account['Account']['name']),
array('Type', $account['Account']['type']),
array('External Name', $account['Account']['external_name']),
array('External Account', $account['Account']['external_account']),
array('Comment', $account['Account']['comment']));
$rows = array(array('ID', $account['Account']['id']),
array('Name', $account['Account']['name']),
array('Type', $account['Account']['type']),
array('External Name', $account['Account']['external_name']),
array('External Account', $account['Account']['external_account']),
array('Comment', $account['Account']['comment']));
echo $this->element('table',
array('class' => 'item account detail',
@@ -30,30 +27,19 @@ echo $this->element('table',
* 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
*/
echo '<div CLASS="detail supporting">' . "\n";
/**********************************************************************
* Ledgers
@@ -82,8 +70,8 @@ echo $this->element('ledger_entries',
'account_type' => $account['Account']['type'],
));
/* End "detail supporting" DIV */ ?>
</DIV>
/* End "detail supporting" div */
echo '</div>' . "\n";
</div>
/* End page div */
echo '</div>' . "\n";

View File

@@ -1,9 +1,6 @@
<?php /* -*- mode:PHP -*- */ ?>
<?php /* -*- mode:PHP -*- */
<div class="contact view">
<?php
; // Editor alignment
echo '<div class="contact view">' . "\n";
/**********************************************************************
**********************************************************************
@@ -15,13 +12,13 @@
$rows = array(array('First Name', $contact['Contact']['first_name']),
array('Middle Name', $contact['Contact']['middle_name']),
array('Last Name', $contact['Contact']['last_name']),
array('Company', $contact['Contact']['company_name']),
array('SSN', $contact['Contact']['id_federal']),
array('ID', ($contact['Contact']['id_local']
. ($contact['Contact']['id_local']
? " - ".$contact['Contact']['id_local_state']
: ""))),
array('Comment', $contact['Contact']['comment']));
array('Company', $contact['Contact']['company_name']),
array('SSN', $contact['Contact']['id_federal']),
array('ID', ($contact['Contact']['id_local']
. ($contact['Contact']['id_local']
? " - ".$contact['Contact']['id_local_state']
: ""))),
array('Comment', $contact['Contact']['comment']));
echo $this->element('table',
array('class' => 'item contact detail',
@@ -34,13 +31,16 @@ echo $this->element('table',
* Contact Info Box
*/
?>
<DIV CLASS="infobox">
</DIV>
echo '<div class="infobox">' . "\n";
$rows = array();
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
*/
echo '<div CLASS="detail supporting">' . "\n";
/**********************************************************************
* Phones
@@ -124,7 +126,8 @@ echo $this->element('customers', array('heading' => '',
'customers' => $contact['Customer']));
/* End "detail supporting" DIV */ ?>
</DIV>
/* End "detail supporting" div */
echo '</div>' . "\n";
</div>
/* End page div */
echo '</div>' . "\n";

View File

@@ -1,9 +1,6 @@
<?php /* -*- mode:PHP -*- */ ?>
<?php /* -*- mode:PHP -*- */
<div class="customer view">
<?php
; // Editor alignment
echo '<div class="customer view">' . "\n";
/**********************************************************************
**********************************************************************
@@ -26,19 +23,18 @@ echo $this->element('table',
* Customer Info Box
*/
?>
<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>
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="detail supporting">
<?php
; // Editor alignment
/**********************************************************************
**********************************************************************
@@ -47,6 +43,8 @@ echo $this->element('table',
* Supporting Elements Section
*/
echo '<div CLASS="detail supporting">' . "\n";
/**********************************************************************
* Contacts
@@ -73,7 +71,8 @@ echo $this->element('accounts',
'accounts' => array($customer['Account'])));
/* End "detail supporting" DIV */ ?>
</DIV>
/* End "detail supporting" div */
echo '</div>' . "\n";
</div>
/* End page div */
echo '</div>' . "\n";

View File

@@ -1,9 +1,6 @@
<?php /* -*- mode:PHP -*- */ ?>
<?php /* -*- mode:PHP -*- */
<div class="lease view">
<?php
; // Editor alignment
echo '<div class="lease view">' . "\n";
/**********************************************************************
**********************************************************************
@@ -12,10 +9,10 @@
* Lease Detail Main Section
*/
$lease_type = $lease['LeaseType'];
$customer = $lease['Customer'];
$account = $lease['Account'];
$unit = $lease['Unit'];
$lease_type = $lease['LeaseType'];
$customer = $lease['Customer'];
$account = $lease['Account'];
$unit = $lease['Unit'];
if (isset($lease['Lease']))
$lease = $lease['Lease'];
@@ -59,20 +56,18 @@ echo $this->element('table',
* 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
*/
/* End "detail supporting" DIV */ ?>
</DIV>
echo '<div CLASS="detail supporting">' . "\n";
</div>
/* End "detail supporting" div */
echo '</div>' . "\n";
/* End page div */
echo '</div>' . "\n";

View File

@@ -1,9 +1,6 @@
<?php /* -*- mode:PHP -*- */ ?>
<?php /* -*- mode:PHP -*- */
<div class="ledger-entry view">
<?php
; // Editor alignment
echo '<div class="ledger-entry view">' . "\n";
/**********************************************************************
**********************************************************************
@@ -12,11 +9,11 @@
* LedgerEntry Detail Main Section
*/
$transaction = $entry['Transaction'];
$debit_ledger = $entry['DebitLedger'];
$credit_ledger = $entry['CreditLedger'];
$source = $entry['MonetarySource'];
$entry = $entry['LedgerEntry'];
$transaction = $entry['Transaction'];
$debit_ledger = $entry['DebitLedger'];
$credit_ledger = $entry['CreditLedger'];
$source = $entry['MonetarySource'];
$entry = $entry['LedgerEntry'];
$rows = array(array('ID', $entry['id']),
array('Transaction', $html->link('#'.$transaction['id'],
@@ -67,13 +64,16 @@ echo $this->element('table',
* LedgerEntry Info Box
*/
?>
<DIV CLASS="infobox">
</DIV>
echo '<div class="infobox">' . "\n";
$rows = array();
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
*/
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";

View File

@@ -1,9 +1,6 @@
<?php /* -*- mode:PHP -*- */ ?>
<?php /* -*- mode:PHP -*- */
<div class="ledger view">
<?php
; // Editor alignment
echo '<div class="ledger view">' . "\n";
/**********************************************************************
**********************************************************************
@@ -12,14 +9,19 @@
* Ledger Detail Main Section
*/
$rows = array(array('ID', $ledger['Ledger']['id']),
array('Name', $ledger['Ledger']['name']),
array('Account', $html->link($ledger['Account']['name'],
array('controller' => 'accounts',
'action' => 'view',
$ledger['Account']['id']))),
array('Status', $ledger['Ledger']['closed'] ? 'Closed' : 'Open'),
array('Comment', $ledger['Ledger']['comment']));
$account = $ledger['Account'];
if (isset($ledger['Ledger']))
$ledger = $ledger['Ledger'];
$rows = array(array('ID', $ledger['id']),
array('Name', $ledger['name']),
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',
array('class' => 'item ledger detail',
@@ -32,30 +34,19 @@ echo $this->element('table',
* 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
*/
echo '<div CLASS="detail supporting">' . "\n";
/**********************************************************************
* Ledger
*/
echo $this->element('ledger_entries',
array('caption' => $ledger['Ledger']['name'],
'ledger_id' => $ledger['Ledger']['id'],
'account_type' => $ledger['Account']['type'],
array('caption' => $ledger['name'],
'ledger_id' => $ledger['id'],
'account_type' => $account['type'],
));
/* End "detail supporting" DIV */ ?>
</DIV>
/* End "detail supporting" div */
echo '</div>' . "\n";
</div>
/* End page div */
echo '</div>' . "\n";

View File

@@ -1,9 +1,6 @@
<?php /* -*- mode:PHP -*- */ ?>
<?php /* -*- mode:PHP -*- */
<div class="monetary-source view">
<?php
; // Editor alignment
echo '<div class="monetary-source view">' . "\n";
/**********************************************************************
**********************************************************************
@@ -12,7 +9,6 @@
* MonetarySource Detail Main Section
*/
$type = $monetarySource['MonetaryType'];
$source = $monetarySource['MonetarySource'];
@@ -33,13 +29,16 @@ echo $this->element('table',
* MonetarySource Info Box
*/
?>
<DIV CLASS="infobox">
</DIV>
echo '<div class="infobox">' . "\n";
$rows = array();
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
*/
echo '<div CLASS="detail supporting">' . "\n";
/* End "detail supporting" DIV */ ?>
</DIV>
/* End "detail supporting" div */
echo '</div>' . "\n";
</div>
/* End page div */
echo '</div>' . "\n";

View File

@@ -1,9 +1,6 @@
<?php /* -*- mode:PHP -*- */ ?>
<?php /* -*- mode:PHP -*- */
<div class="transaction view">
<?php
; // Editor alignment
echo '<div class="transaction view">' . "\n";
/**********************************************************************
**********************************************************************
@@ -12,10 +9,10 @@
* 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('Through', FormatHelper::date($transaction['Transaction']['through_date'])),
array('Due', FormatHelper::date($transaction['Transaction']['due_date'])),
array('Through', FormatHelper::date($transaction['Transaction']['through_date'])),
array('Due', FormatHelper::date($transaction['Transaction']['due_date'])),
array('Comment', $transaction['Transaction']['comment']));
echo $this->element('table',
@@ -29,16 +26,17 @@ echo $this->element('table',
* Transaction Info Box
*/
?>
<DIV CLASS="infobox">
<DIV CLASS="summary grand total">
Total: <?php echo FormatHelper::currency($total); ?>
</DIV>
</DIV>
echo '<div class="infobox">' . "\n";
$rows = array();
$rows[] = array('Total:', FormatHelper::currency($total));
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
/**********************************************************************
**********************************************************************
@@ -47,6 +45,8 @@ echo $this->element('table',
* Supporting Elements Section
*/
echo '<div CLASS="detail supporting">' . "\n";
/**********************************************************************
* Entries
@@ -109,7 +109,8 @@ echo $this->element('table',
'column_class' => $column_class));
/* End "detail supporting" DIV */ ?>
</DIV>
/* End "detail supporting" div */
echo '</div>' . "\n";
</div>
/* End page div */
echo '</div>' . "\n";

View File

@@ -1,9 +1,6 @@
<?php /* -*- mode:PHP -*- */ ?>
<?php /* -*- mode:PHP -*- */
<div class="unit view">
<?php
; // Editor alignment
echo '<div class="unit view">' . "\n";
/**********************************************************************
**********************************************************************
@@ -27,19 +24,18 @@ echo $this->element('table',
* Unit Info Box
*/
?>
<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>
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="detail supporting">
<?php
; // Editor alignment
/**********************************************************************
**********************************************************************
@@ -48,6 +44,8 @@ echo $this->element('table',
* Supporting Elements Section
*/
echo '<div CLASS="detail supporting">' . "\n";
/**********************************************************************
* Lease History
@@ -70,7 +68,9 @@ echo $this->element('leases',
/* 'ledger' => array('mix'=>1))); */
/* } */
/* End "detail supporting" DIV */ ?>
</DIV>
</div>
/* End "detail supporting" div */
echo '</div>' . "\n";
/* End page div */
echo '</div>' . "\n";