Location: PHPKode > projects > ZenTrack - project/bug tracking software > zentrack_2.6.4/includes/templates/agreementView.php
<? if( !ZT_DEFINED ) { die("Illegal Access"); } ?>
	<?
	$sort = "dtime asc";
	$parms = array(array("status", "=", "1"));
	$tickets = $zen->get_contacts($parms,"ZENTRACK_AGREEMENT",$sort);
	$img = $image? 
    "&nbsp;<IMG SRC='$imageUrl/".$zen->ffv($image)."' border='0'>" : '';
	
if( is_array($tickets) && count($tickets) ) {
   ?>
<table width="100%" cellspacing='1' cellpadding='2' class='formtable'>
<tr><td class='subTitle' align='center' colspan='5'><?=tr("Agreements")?></td></tr>
<tr>
<td class='headerCell' title="<?=tr("ID of the agreement")?>">
<?=tr("ID") . $img ?>
</td>

<td class='headerCell' title="<?=tr("The nr of the agreement")?>">
<?=tr("Nr") . $img ?>
</td>

<td class='headerCell' title="<?=tr("The title of the agreement")?>">
<?=tr("Title") . $img ?>
</td>

<td class='headerCell' title="<?=tr("The company of the agreement")?>">
<?=tr("Company") . $img ?>
</td>

<td class='headerCell' title="<?=tr("The expiration date of the agreement")?>">
<?=tr("Expires") . $img ?>
</td>

</tr>
<?      
$link  = "$rootUrl/agreement.php";
$td_ttl = "title='".tr("Click here to view the Agreement")."'";
$tickets = $hotkeys->activateList($tickets, 'title', 'title', "ticketClk('$link?id={agree_id}')");

  foreach($tickets as $t) {    

      ?>
   <tr  class='bars' onclick='ticketClk("<?=$link?>?id=<?=$t["agree_id"]?>")' 
      <?=$row_rollover_eff?> title="<?=$t['hotkey_tooltip']?>">
   <td height="25" width="5%" valign="middle" <?=$td_ttl?>>
    <?=$zen->ffv($t["agree_id"])?>
   </td>
   <td height="25" width="25%" valign="middle" <?=$td_ttl?>>
    <?=$zen->ffv($t["contractnr"])?>
   </td>
   <td height="25" width="35%" valign="middle" <?=$td_ttl?>>
   <?=$t['hotkey_label']?>
   </td>
      <td height="25" width="25%" valign="middle" <?=$td_ttl?>><?
      if ( !empty($t["company_id"])) {
        $contact = $zen->get_contact($t["company_id"],"ZENTRACK_COMPANY","company_id");
        if( is_array($contact) ) {
          echo strtoupper($contact['title']);
          if($contact['title']){
            print " " .$zen->ffv($contact['office']);
          }
        }	  
      }
   ?>
   </td>
   <td width="20%" valign="middle" <?=$td_ttl?>>
   <?=($t["dtime"])?$zen->showDate($t["dtime"]):"n/a";?>
   </td>
   </tr>       
   <?
   } 
  
?>
</table>
<?
}
else {
  print "&nbsp;<blockquote>There are no agreements to view.</blockquote>\n";
}
?>
Return current item: ZenTrack - project/bug tracking software