예제 #1
0
						$( this ).dialog( "destroy" ); 
				  	},
				  	open: function() {
				
					
					}
				});
				return false;
			});
		</script>
<?php 
} elseif (isset($_GET['action']) && $_GET['action'] == 'finance' && isset($_GET['id'])) {
    require_once "atc_finance.class.php";
    $ATC_Finance = new ATC_Finance();
    if ($ATC_Finance->user_has_permission(ATC_PERMISSION_FINANCE_VIEW, $_GET['id'])) {
        $payments = $ATC_Finance->get_account_history($_GET['id'], '1970-01-01', date('c'));
    }
    ?>
		<table class="tablesorter">
			<thead>
				<tr>
					<th> Date </th>
					<th> Amount </th>
					<th> Payment type </th>
					<th> Reference </th>
					<th> Recorded by </th>
					<!-- <?php 
    echo $ATC->user_has_permission(ATC_PERMISSION_FINANCE_EDIT) ? '<td><a href="personal.php?id=' . $_GET['id'] . '&amp;action=finance" class="button new">New</a></td>' : '';
    ?>
-->
				</tr>
예제 #2
0
 $pdf = new PDF();
 $pdf->AliasNbPages();
 $pdf->SetLeftMargin(10);
 $pdf->SetFont('Arial', 'B', 12);
 $pdf->SetTextColor(0);
 $pdf->SetFillColor(255);
 foreach ($_GET['personnel_id'] as $id) {
     if ($ATC->user_has_permission(ATC_PERMISSION_PERSONNEL_VIEW, $id)) {
         $obj = $ATC->get_personnel($id);
     } else {
         continue;
     }
     $obj->nok = $ATC->get_nok($id);
     $obj->promotions = $ATC->get_promotion_history($id);
     if ($ATC->user_has_permission(ATC_PERMISSION_FINANCE_VIEW, $id)) {
         $obj->payments = $ATC_Finance->get_account_history($id, '1970-01-01', date('c'));
     } else {
         $obj->payments = null;
     }
     //var_dump($obj);
     $pdf->AddPage();
     $footerstring = $obj->rank . ' ' . $obj->display_name;
     $pdf->SetFont('Arial', 'B', 14);
     $pdf->Cell(190, 10, 'Personal Details', 0, 1, 'C', true);
     $pdf->SetFont('Arial', 'B', 8);
     $pdf->SetFillColor(200);
     $pdf->Cell(40, 8, 'Section', 1, 0, 'R', true);
     $pdf->Cell(60, 8, 'On record', 1, 0, 'C', true);
     $pdf->Cell(90, 8, 'Update to', 1, 1, 'C', true);
     $pdf->SetFont('Arial', 'B', 8);
     $pdf->Cell(40, 8, 'Name', 1, 0, 'R', true);