3427f5d5 by Kevin Burton

added sorting to invoices in the admin

1 parent f2915737
...@@ -483,3 +483,73 @@ input.dp-applied { ...@@ -483,3 +483,73 @@ input.dp-applied {
483 .edit-option-table tbody td { padding: 3px 5px; text-align: left; font-weight: bold; font-size: 11px; } 483 .edit-option-table tbody td { padding: 3px 5px; text-align: left; font-weight: bold; font-size: 11px; }
484 .edit-option-table tbody td textarea, 484 .edit-option-table tbody td textarea,
485 .edit-option-table tbody td input { font-size:11px; width: 99% } 485 .edit-option-table tbody td input { font-size:11px; width: 99% }
486
487 /* tables */
488 table.tablesorter {
489 /*
490 font-family:arial;
491 background-color: #CDCDCD;
492 margin:10px 0pt 15px;
493 font-size: 8pt;
494 width: 100%;
495 */
496 text-align: left;
497 }
498 table.tablesorter thead tr th, table.tablesorter tfoot tr th {
499 /*
500 background-color: #e6EEEE;
501 border: 1px solid #FFF;
502 font-size: 8pt;
503 padding: 4px;
504 */
505 }
506 table.tablesorter thead tr .header {
507 background-image: url(/wp-content/themes/cbv/assets/images/bg.gif);
508 background-repeat: no-repeat;
509 background-position: center right;
510 cursor: pointer;
511 }
512 table.tablesorter tbody td {
513 /*
514 color: #3D3D3D;
515 padding: 4px;
516 background-color: #FFF;
517 vertical-align: top;
518 */
519 }
520 table.tablesorter tbody tr.odd td {
521 background-color:#f5f5f5;
522 }
523 table.tablesorter thead tr .headerSortUp {
524 background-image: url(/wp-content/themes/cbv/assets/images/asc.gif);
525 }
526 table.tablesorter thead tr .headerSortDown {
527 background-image: url(/wp-content/themes/cbv/assets/images/desc.gif);
528 }
529 table.tablesorter thead tr .headerSortDown, table.tablesorter thead tr .headerSortUp {
530 color: #DF3224;
531 }
532
533 div.tablesorterPager {
534 padding: 10px 0 10px 0;
535 background-color: #D6D2C2;
536 text-align: center;
537 }
538 div.tablesorterPager span {
539 padding: 0 5px 0 5px;
540 }
541 div.tablesorterPager input.prev {
542 width: auto;
543 margin-right: 10px;
544 }
545 div.tablesorterPager input.next {
546 width: auto;
547 margin-left: 10px;
548 }
549 div.tablesorterPager input {
550 font-size: 8px;
551 width: 50px;
552 border: 1px solid #330000;
553 text-align: center;
554 }
555
......
...@@ -237,4 +237,14 @@ use WP_User; ...@@ -237,4 +237,14 @@ use WP_User;
237 237
238 238
239 </div> 239 </div>
240 <script src="<?php echo Tools\url('../UserManager.js', __FILE__);?>" type="text/javascript"></script>
...\ No newline at end of file ...\ No newline at end of file
240 <script src="<?php echo Tools\url('../UserManager.js', __FILE__);?>" type="text/javascript"></script>
241 <script type="text/javascript">
242 jQuery(document).ready(function($) {
243
244 $('#invoice-table')
245 .tablesorter({
246 sortList: [[0,1]],
247 widgets: ['zebra']
248 });
249 });
250 </script>
......