-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathinvoice.php
More file actions
78 lines (72 loc) · 2.49 KB
/
Copy pathinvoice.php
File metadata and controls
78 lines (72 loc) · 2.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
$_user_location = 'users';
define('AT_INCLUDE_PATH', '../../include/');
require (AT_INCLUDE_PATH.'vitals.inc.php');
require (AT_INCLUDE_PATH.'html/frameset/header.inc.php');
$sql = "SELECT * FROM %smembers WHERE member_id=%d";
$row = queryDB($sql, array(TABLE_PREFIX, $_SESSION['member_id']), TRUE);
$_GET['payment_id'] = intval($_GET['payment_id']);
$amount = floatval($_GET['amount']);
$date = date('F d, Y');
?>
<a href="javascript:void(0)" onClick="window.print()"><?php echo _AT('ec_print_invoice'); ?></a>
<br><br>
<table width="500px" style="border:1px solid rgb(112, 161, 202); margin:10px;">
<tr>
<td><h3><?php echo _AT('ec_invoice'); ?></h3></td>
</tr>
<tr>
<td><?php echo _AT('ec_invoice'); ?># <?php echo $_GET['payment_id']; ?></td><td><?php echo $date; ?></td>
</tr>
<tr>
<td width="50%" valign="top">
<?php echo _AT('to'); ?>:<br /><?php
if($row['last_name']){
$contribinfo .= ''.$row['first_name'].' ' .$row['last_name'].'<br />';
}
if($row['organization']){
$contribinfo .= ''.$row['organization'].'<br />';
}
if($row['email']){
$contribinfo .= ''.$row['email'].'<br />';
}
if($row['address']){
$contribinfo .= ''.$row['address'].'<br />';
}
if($row['city']){
$contribinfo .= ''.$row['city'].'<br />';
}
if($row['province']){
$contribinfo .= ''.$row['province'].'<br />';
}
if($row['postal']){
$contribinfo .= ''.$row['postal'].'<br />';
}
if($row['phone']){
$contribinfo .= ''.$row['phone'].'<br />';
}
if($row['country']){
$contribinfo .= ''.$row['country'].'<br />';
}
echo $contribinfo;
?>
</td>
<td width="50%" valign="top">
<?php echo _AT('from'); ?>:<br />
<?php echo nl2br($_config['ec_contact_address']); ?>
</td>
</tr>
</table>
<table width="500px" style="border:1px solid rgb(112, 161, 202); margin:10px;">
<th width="75%" align="left"><?php echo _AT('course'); ?></th><th width="25%" align="left"><?php echo _AT('ec_fees'); ?></th></tr>
<?php
echo '<tr><td>'. htmlspecialchars($stripslashes($_GET['course_title'])).'</td>';
echo '<td>'.$_config['ec_currency_symbol'].$amount.'</td></tr>';
echo '<tr><td colspan="2"><hr /></td></tr>';
echo '<tr><td><strong>'._AT('total').':</strong></td><td>'.$_config['ec_currency_symbol'].$amount.' '.$_config['ec_currency'].'</td></tr>';
?>
</table>
<table width="500px" style="border:1px solid rgb(112, 161, 202); margin:10px;">
<tr><td><?php echo _AT('sent_via_atutor', AT_BASE_HREF);?>
</td></tr></table>
<?php require (AT_INCLUDE_PATH.'html/frameset/footer.inc.php'); ?>