PageRenderTime 41ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/opencart/trunk/upload/admin/view/template/customer/coupon_list.tpl

http://coderstalk.googlecode.com/
Smarty Template | 81 lines | 81 code | 0 blank | 0 comment | 25 complexity | 9d9606ec8c5c8f29bbae72ea98e58a63 MD5 | raw file
Possible License(s): GPL-3.0, LGPL-2.1, AGPL-3.0
  1. <?php echo $header; ?>
  2. <?php if ($error_warning) { ?>
  3. <div class="warning"><?php echo $error_warning; ?></div>
  4. <?php } ?>
  5. <?php if ($success) { ?>
  6. <div class="success"><?php echo $success; ?></div>
  7. <?php } ?>
  8. <div class="heading">
  9. <h1><?php echo $heading_title; ?></h1>
  10. <div class="buttons"><a onclick="location='<?php echo $insert; ?>'" class="button"><span class="button_left button_insert"></span><span class="button_middle"><?php echo $button_insert; ?></span><span class="button_right"></span></a><a onclick="document.getElementById('form').submit();" class="button"><span class="button_left button_delete"></span><span class="button_middle"><?php echo $button_delete; ?></span><span class="button_right"></span></a></div>
  11. </div>
  12. <form action="<?php echo $delete; ?>" method="post" enctype="multipart/form-data" id="form">
  13. <table class="list">
  14. <thead>
  15. <tr>
  16. <td width="1" style="align: center;"><input type="checkbox" onclick="$('input[name*=\'selected\']').attr('checked', this.checked);" /></td>
  17. <td class="left"><?php if ($sort == 'cd.name') { ?>
  18. <a href="<?php echo $sort_name; ?>" class="<?php echo strtolower($order); ?>"><?php echo $column_name; ?></a>
  19. <?php } else { ?>
  20. <a href="<?php echo $sort_name; ?>"><?php echo $column_name; ?></a>
  21. <?php } ?></td>
  22. <td class="left"><?php if ($sort == 'c.code') { ?>
  23. <a href="<?php echo $sort_code; ?>" class="<?php echo strtolower($order); ?>"><?php echo $column_code; ?></a>
  24. <?php } else { ?>
  25. <a href="<?php echo $sort_code; ?>"><?php echo $column_code; ?></a>
  26. <?php } ?></td>
  27. <td class="right"><?php if ($sort == 'c.discount') { ?>
  28. <a href="<?php echo $sort_discount; ?>" class="<?php echo strtolower($order); ?>"><?php echo $column_discount; ?></a>
  29. <?php } else { ?>
  30. <a href="<?php echo $sort_discount; ?>"><?php echo $column_discount; ?></a>
  31. <?php } ?></td>
  32. <td class="left"><?php if ($sort == 'c.date_start') { ?>
  33. <a href="<?php echo $sort_date_start; ?>" class="<?php echo strtolower($order); ?>"><?php echo $column_date_start; ?></a>
  34. <?php } else { ?>
  35. <a href="<?php echo $sort_date_start; ?>"><?php echo $column_date_start; ?></a>
  36. <?php } ?></td>
  37. <td class="left"><?php if ($sort == 'c.date_end') { ?>
  38. <a href="<?php echo $sort_date_end; ?>" class="<?php echo strtolower($order); ?>"><?php echo $column_date_end; ?></a>
  39. <?php } else { ?>
  40. <a href="<?php echo $sort_date_end; ?>"><?php echo $column_date_end; ?></a>
  41. <?php } ?></td>
  42. <td class="left"><?php if ($sort == 'c.status') { ?>
  43. <a href="<?php echo $sort_status; ?>" class="<?php echo strtolower($order); ?>"><?php echo $column_status; ?></a>
  44. <?php } else { ?>
  45. <a href="<?php echo $sort_status; ?>"><?php echo $column_status; ?></a>
  46. <?php } ?></td>
  47. <td class="right"><?php echo $column_action; ?></td>
  48. </tr>
  49. </thead>
  50. <tbody>
  51. <?php if ($coupons) { ?>
  52. <?php $class = 'odd'; ?>
  53. <?php foreach ($coupons as $coupon) { ?>
  54. <?php $class = ($class == 'even' ? 'odd' : 'even'); ?>
  55. <tr class="<?php echo $class; ?>">
  56. <td style="align: center;"><?php if ($coupon['selected']) { ?>
  57. <input type="checkbox" name="selected[]" value="<?php echo $coupon['coupon_id']; ?>" checked="checked" />
  58. <?php } else { ?>
  59. <input type="checkbox" name="selected[]" value="<?php echo $coupon['coupon_id']; ?>" />
  60. <?php } ?></td>
  61. <td class="left"><?php echo $coupon['name']; ?></td>
  62. <td class="left"><?php echo $coupon['code']; ?></td>
  63. <td class="right"><?php echo $coupon['discount']; ?></td>
  64. <td class="left"><?php echo $coupon['date_start']; ?></td>
  65. <td class="left"><?php echo $coupon['date_end']; ?></td>
  66. <td class="left"><?php echo $coupon['status']; ?></td>
  67. <td class="right"><?php foreach ($coupon['action'] as $action) { ?>
  68. [ <a href="<?php echo $action['href']; ?>"><?php echo $action['text']; ?></a> ]
  69. <?php } ?></td>
  70. </tr>
  71. <?php } ?>
  72. <?php } else { ?>
  73. <tr class="even">
  74. <td class="center" colspan="8"><?php echo $text_no_results; ?></td>
  75. </tr>
  76. <?php } ?>
  77. </tbody>
  78. </table>
  79. </form>
  80. <div class="pagination"><?php echo $pagination; ?></div>
  81. <?php echo $footer; ?>