427080de by Kevin Burton

payhistory update

1 parent f089281b
...@@ -553,3 +553,39 @@ div.tablesorterPager input { ...@@ -553,3 +553,39 @@ div.tablesorterPager input {
553 text-align: center; 553 text-align: center;
554 } 554 }
555 555
556 /**/
557
558 #mytable_length, .dataTables_length { float:left; width:200px; }
559 #mytable_filter, .dataTables_filter { float:right; text-align:right; width:400px; }
560 #mytable_info, .dataTables_info { font-size:11px; color: #ccc;}
561
562 .tz-data-table-no-sort thead { display: none; }
563
564 .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; }
565 .sorting_asc { background-image: url(/wp-content/themes/cbv/assets/images/asc.gif); color: #DF3224; }
566 .sorting_desc { background-image: url(/wp-content/themes/cbv/assets/images/desc.gif); color: #DF3224; }
567
568 .paginate_button_disabled { color: #ccc; cursor: default; }
569
570 .dataTables_wrapper {
571 position:relative;
572 clear:both;
573 display: block;
574 margin-bottom:5px;
575 }
576
577 .dataTables_wrapper + p { clear:both; }
578
579
580 .dataTables_info { float:left; }
581 .dataTables_paginate { float:right; width: 400px; text-align:right; font-size: 11px; }
582
583 .paginate_button,
584 .paginate_button_disabled,
585 .paginate_active { padding: 0px 4px; }
586 .paginate_button { cursor: pointer; }
587 .paginate_button:hover { color:#DF3224; }
588
589 div.dataTables_paginate span.paginate_active {
590 color: #DF3224;
591 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -173,7 +173,7 @@ use WP_User; ...@@ -173,7 +173,7 @@ use WP_User;
173 } 173 }
174 174
175 175
176 $html .= '<tr class="'.$row_class.'">'; 176 $html .= '<tr>';
177 $html .= '<td>'.$description.'</td>'; 177 $html .= '<td>'.$description.'</td>';
178 178
179 //if ($status!="credit") { 179 //if ($status!="credit") {
...@@ -287,6 +287,35 @@ use WP_User; ...@@ -287,6 +287,35 @@ use WP_User;
287 Invoice\showMyInvoices($_GET['uid'], "/wp-admin/admin.php?page=cbv_users&action=edit&uid=".$_GET['uid']."&section=payhistory&view="); 287 Invoice\showMyInvoices($_GET['uid'], "/wp-admin/admin.php?page=cbv_users&action=edit&uid=".$_GET['uid']."&section=payhistory&view=");
288 } 288 }
289 ?> 289 ?>
290
291 <?php if (!isset($_GET['view']) && !isset($_GET['pay'])): ?>
292 <div id="tax_receipts" style="margin-top:40px;">
293 <h3>T2202a Receipts</h3>
294 <table cellpadding="0" cellspacing="0" border="0">
295 <tbody>
296
297 <?php
298
299 $t2202a = get_user_meta($_GET['uid'], 't2202a', true);
300 if ( empty ($t2202a) ) {
301 echo '<tr><td colspan="2">No t2202a\'s available.</td></tr>';
302 } else {
303 foreach ($t2202a as $year => $file) {
304 ?>
305 <tr>
306 <td width="120"><strong><?php echo $year; ?></strong></td>
307 <td><a href="<?php echo "/wp-content/uploads/t2202a/".$file; ?>">Download 2010 <?php echo ucwords(strtolower('TUITION, EDUCATION, AND TEXTBOOK AMOUNTS CERTIFICATE'));?></a></td>
308 </tr>
309 <?php
310 }
311 }
312 ?>
313 </tbody>
314 </table>
315 </div>
316 <?php endif; ?>
317
318
290 319
291 320
292 </div> 321 </div>
...@@ -294,10 +323,23 @@ use WP_User; ...@@ -294,10 +323,23 @@ use WP_User;
294 <script type="text/javascript"> 323 <script type="text/javascript">
295 jQuery(document).ready(function($) { 324 jQuery(document).ready(function($) {
296 325
297 $('#invoice-table') 326
298 .tablesorter({ 327
299 sortList: [[0,1]], 328 $('#invoice-table').dataTable({
300 widgets: ['zebra'] 329 "sPaginationType": "full_numbers"
330 , "bFilter": false
331 , "bLengthChange": false
332 , "aaSorting": [[ 0, "desc" ]]
333 , "iDisplayLength": 20
334 , "oLanguage": {
335 "sZeroRecords": "No matching records found"
336 , "sEmptyTable": "No invoices/receipts available"
337 , "sInfo": "Showing _START_ to _END_ of _TOTAL_ invoices/receipts"
338 , "sInfoEmpty": "Showing 0 to 0 of 0 invoices/receipts"
339 , "sInfoFiltered": "(filtered from _MAX_ total invoices/receipts)"
340 }
301 }); 341 });
342
343
302 }); 344 });
303 </script> 345 </script>
......