Added comment blocks and context specific side menu link items. Also tweaked the Page titles and headings for the table listings.

git-svn-id: file:///svn-source/pmgr/branches/initial_20090526/site@41 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-05-29 16:01:47 +00:00
parent 1145d293b2
commit 59398cb3f0
5 changed files with 198 additions and 71 deletions

View File

@@ -1,3 +1,3 @@
<div class="contacts index">
<?php echo $this->element('contacts') ?>
<?php echo $this->element('contacts', array('heading' => '<h2>'.$heading.'</h2>')) ?>
</div>

View File

@@ -33,14 +33,14 @@ function datefmt($date) {
*/
echo('<table cellpadding="0" cellspacing="0">' . "\n");
echo(' <CAPTION>Tenant Info</CAPTION>' . "\n");
echo $html->tableCells(array(array('Name', $tenant['Contact']['display_name']),
array('Company', $tenant['Contact']['company_name']),
array('SSN', $tenant['Contact']['id_federal']),
array('ID', $tenant['Contact']['id_num']
. ($tenant['Contact']['id_state']
? " - ".$tenant['Contact']['id_state']
echo $html->tableCells(array(array('Name', $contact['Contact']['display_name']),
array('Company', $contact['Contact']['company_name']),
array('SSN', $contact['Contact']['id_federal']),
array('ID', $contact['Contact']['id_num']
. ($contact['Contact']['id_state']
? " - ".$contact['Contact']['id_state']
: "")),
array('Comment', $tenant['Contact']['comment'])),
array('Comment', $contact['Contact']['comment'])),
null, array('class' => "altrow"), false, false);
echo('</table>' . "\n");
@@ -50,7 +50,7 @@ echo('</table>' . "\n");
*/
$headers = array('Location', 'Preference', 'Type', 'Phone', 'Extension', 'Comment');
$rows = array();
foreach($tenant['ContactPhone'] AS $phone) {
foreach($contact['ContactPhone'] AS $phone) {
$rows[] = array($phone['ContactsMethod']['type'],
$phone['ContactsMethod']['preference'],
$phone['type'],
@@ -73,7 +73,7 @@ if (count($rows)) {
*/
$headers = array('Location', 'Preference', 'Email', 'Comment');
$rows = array();
foreach($tenant['ContactEmail'] AS $email) {
foreach($contact['ContactEmail'] AS $email) {
$rows[] = array($email['ContactsMethod']['type'],
$email['ContactsMethod']['preference'],
$email['email'],
@@ -94,7 +94,7 @@ if (count($rows)) {
*/
$headers = array('Location', 'Preference', 'Address', 'City', 'State', 'Zip', 'Country', 'Comment');
$rows = array();
foreach($tenant['ContactAddress'] AS $address) {
foreach($contact['ContactAddress'] AS $address) {
$rows[] = array($address['ContactsMethod']['type'],
$address['ContactsMethod']['preference'],
$address['address'],
@@ -119,7 +119,7 @@ if (count($rows)) {
*/
$headers = array('Lease', 'Unit', 'Signed', 'Move-In', 'Move-Out', 'Rent', 'Deposit', 'Comment');
$rows = array();
foreach($tenant['Lease'] AS $lease) {
foreach($contact['Lease'] AS $lease) {
$rows[] = array('#'.$lease['id'],
$html->link($lease['Unit']['name'],
array('controller' => 'units',
@@ -145,7 +145,7 @@ echo('</table>' . "\n");
*/
$security_deposit = 0;
$grand_total = 0;
foreach($tenant['Lease'] AS $lease) {
foreach($contact['Lease'] AS $lease) {
$headers = array('Date', /*'Through',*/ /*'Charge/Receipt'*/'ID', 'Type', 'Comment', 'Amount', 'Total');
$rows = array();

View File

@@ -1,3 +1,3 @@
<div class="units index">
<?php echo $this->element('units') ?>
<?php echo $this->element('units', array('heading' => '<h2>'.$heading.'</h2>')) ?>
</div>