427080de by Kevin Burton

payhistory update

1 parent f089281b
......@@ -553,3 +553,39 @@ div.tablesorterPager input {
text-align: center;
}
/**/
#mytable_length, .dataTables_length { float:left; width:200px; }
#mytable_filter, .dataTables_filter { float:right; text-align:right; width:400px; }
#mytable_info, .dataTables_info { font-size:11px; color: #ccc;}
.tz-data-table-no-sort thead { display: none; }
.sorting, .sorting_asc, .sorting_desc { background-color:transparent; background-position: right; background-repeat: no-repeat; background-image: url(/wp-content/themes/cbv/assets/images/bg.gif); cursor: pointer; }
.sorting_asc { background-image: url(/wp-content/themes/cbv/assets/images/asc.gif); color: #DF3224; }
.sorting_desc { background-image: url(/wp-content/themes/cbv/assets/images/desc.gif); color: #DF3224; }
.paginate_button_disabled { color: #ccc; cursor: default; }
.dataTables_wrapper {
position:relative;
clear:both;
display: block;
margin-bottom:5px;
}
.dataTables_wrapper + p { clear:both; }
.dataTables_info { float:left; }
.dataTables_paginate { float:right; width: 400px; text-align:right; font-size: 11px; }
.paginate_button,
.paginate_button_disabled,
.paginate_active { padding: 0px 4px; }
.paginate_button { cursor: pointer; }
.paginate_button:hover { color:#DF3224; }
div.dataTables_paginate span.paginate_active {
color: #DF3224;
}
\ No newline at end of file
......
......@@ -173,7 +173,7 @@ use WP_User;
}
$html .= '<tr class="'.$row_class.'">';
$html .= '<tr>';
$html .= '<td>'.$description.'</td>';
//if ($status!="credit") {
......@@ -287,6 +287,35 @@ use WP_User;
Invoice\showMyInvoices($_GET['uid'], "/wp-admin/admin.php?page=cbv_users&action=edit&uid=".$_GET['uid']."&section=payhistory&view=");
}
?>
<?php if (!isset($_GET['view']) && !isset($_GET['pay'])): ?>
<div id="tax_receipts" style="margin-top:40px;">
<h3>T2202a Receipts</h3>
<table cellpadding="0" cellspacing="0" border="0">
<tbody>
<?php
$t2202a = get_user_meta($_GET['uid'], 't2202a', true);
if ( empty ($t2202a) ) {
echo '<tr><td colspan="2">No t2202a\'s available.</td></tr>';
} else {
foreach ($t2202a as $year => $file) {
?>
<tr>
<td width="120"><strong><?php echo $year; ?></strong></td>
<td><a href="<?php echo "/wp-content/uploads/t2202a/".$file; ?>">Download 2010 <?php echo ucwords(strtolower('TUITION, EDUCATION, AND TEXTBOOK AMOUNTS CERTIFICATE'));?></a></td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
<?php endif; ?>
</div>
......@@ -294,10 +323,23 @@ use WP_User;
<script type="text/javascript">
jQuery(document).ready(function($) {
$('#invoice-table')
.tablesorter({
sortList: [[0,1]],
widgets: ['zebra']
$('#invoice-table').dataTable({
"sPaginationType": "full_numbers"
, "bFilter": false
, "bLengthChange": false
, "aaSorting": [[ 0, "desc" ]]
, "iDisplayLength": 20
, "oLanguage": {
"sZeroRecords": "No matching records found"
, "sEmptyTable": "No invoices/receipts available"
, "sInfo": "Showing _START_ to _END_ of _TOTAL_ invoices/receipts"
, "sInfoEmpty": "Showing 0 to 0 of 0 invoices/receipts"
, "sInfoFiltered": "(filtered from _MAX_ total invoices/receipts)"
}
});
});
</script>
......