PageRenderTime 54ms CodeModel.GetById 24ms RepoModel.GetById 1ms app.codeStats 0ms

/mall/upload/admin/view/template/common/header.tpl

https://bitbucket.org/allanxyh/uniquemall
Smarty Template | 220 lines | 219 code | 1 blank | 0 comment | 12 complexity | 4beb53b9c659d7aa7bd8615ee15c9cb7 MD5 | raw file
  1. <!DOCTYPE html>
  2. <html dir="<?php echo $direction; ?>" lang="<?php echo $lang; ?>">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <title><?php echo $title; ?></title>
  6. <base href="<?php echo $base; ?>" />
  7. <?php if ($description) { ?>
  8. <meta name="description" content="<?php echo $description; ?>" />
  9. <?php } ?>
  10. <?php if ($keywords) { ?>
  11. <meta name="keywords" content="<?php echo $keywords; ?>" />
  12. <?php } ?>
  13. <?php foreach ($links as $link) { ?>
  14. <link href="<?php echo $link['href']; ?>" rel="<?php echo $link['rel']; ?>" />
  15. <?php } ?>
  16. <link rel="stylesheet" type="text/css" href="view/stylesheet/stylesheet.css" />
  17. <?php foreach ($styles as $style) { ?>
  18. <link rel="<?php echo $style['rel']; ?>" type="text/css" href="<?php echo $style['href']; ?>" media="<?php echo $style['media']; ?>" />
  19. <?php } ?>
  20. <script type="text/javascript" src="view/javascript/jquery/jquery-1.7.1.min.js"></script>
  21. <script type="text/javascript" src="view/javascript/jquery/ui/jquery-ui-1.8.16.custom.min.js"></script>
  22. <link type="text/css" href="view/javascript/jquery/ui/themes/ui-lightness/jquery-ui-1.8.16.custom.css" rel="stylesheet" />
  23. <script type="text/javascript" src="view/javascript/jquery/tabs.js"></script>
  24. <script type="text/javascript" src="view/javascript/jquery/superfish/js/superfish.js"></script>
  25. <script type="text/javascript" src="view/javascript/common.js"></script>
  26. <?php foreach ($scripts as $script) { ?>
  27. <script type="text/javascript" src="<?php echo $script; ?>"></script>
  28. <?php } ?>
  29. <script type="text/javascript">
  30. //-----------------------------------------
  31. // Confirm Actions (delete, uninstall)
  32. //-----------------------------------------
  33. $(document).ready(function(){
  34. // Confirm Delete
  35. $('#form').submit(function(){
  36. if ($(this).attr('action').indexOf('delete',1) != -1) {
  37. if (!confirm('<?php echo $text_confirm; ?>')) {
  38. return false;
  39. }
  40. }
  41. });
  42. // Confirm Uninstall
  43. $('a').click(function(){
  44. if ($(this).attr('href') != null && $(this).attr('href').indexOf('uninstall', 1) != -1) {
  45. if (!confirm('<?php echo $text_confirm; ?>')) {
  46. return false;
  47. }
  48. }
  49. });
  50. });
  51. </script>
  52. </head>
  53. <body>
  54. <div id="container">
  55. <div id="header">
  56. <div class="div1">
  57. <div class="div2"><img src="view/image/logo.png" title="<?php echo $heading_title; ?>" onclick="location = '<?php echo $home; ?>'" /></div>
  58. <?php if ($logged) { ?>
  59. <div class="div3"><img src="view/image/lock.png" alt="" style="position: relative; top: 3px;" />&nbsp;<?php echo $logged; ?></div>
  60. <?php } ?>
  61. </div>
  62. <?php if ($logged) { ?>
  63. <div id="menu">
  64. <ul class="left" style="display: none;">
  65. <li id="dashboard"><a href="<?php echo $home; ?>" class="top"><?php echo $text_dashboard; ?></a></li>
  66. <li id="catalog"><a class="top"><?php echo $text_catalog; ?></a>
  67. <ul>
  68. <li><a href="<?php echo $category; ?>"><?php echo $text_category; ?></a></li>
  69. <li><a href="<?php echo $product; ?>"><?php echo $text_product; ?></a></li>
  70. <li><a href="<?php echo $filter; ?>"><?php echo $text_filter; ?></a></li>
  71. <li><a class="parent"><?php echo $text_attribute; ?></a>
  72. <ul>
  73. <li><a href="<?php echo $attribute; ?>"><?php echo $text_attribute; ?></a></li>
  74. <li><a href="<?php echo $attribute_group; ?>"><?php echo $text_attribute_group; ?></a></li>
  75. </ul>
  76. </li>
  77. <li><a href="<?php echo $option; ?>"><?php echo $text_option; ?></a></li>
  78. <li><a href="<?php echo $manufacturer; ?>"><?php echo $text_manufacturer; ?></a></li>
  79. <li><a href="<?php echo $download; ?>"><?php echo $text_download; ?></a></li>
  80. <li><a href="<?php echo $review; ?>"><?php echo $text_review; ?></a></li>
  81. <li><a href="<?php echo $information; ?>"><?php echo $text_information; ?></a></li>
  82. </ul>
  83. </li>
  84. <li id="extension"><a class="top"><?php echo $text_extension; ?></a>
  85. <ul>
  86. <li><a href="<?php echo $module; ?>"><?php echo $text_module; ?></a></li>
  87. <li><a href="<?php echo $shipping; ?>"><?php echo $text_shipping; ?></a></li>
  88. <li><a href="<?php echo $payment; ?>"><?php echo $text_payment; ?></a></li>
  89. <li><a href="<?php echo $total; ?>"><?php echo $text_total; ?></a></li>
  90. <li><a href="<?php echo $feed; ?>"><?php echo $text_feed; ?></a></li>
  91. </ul>
  92. </li>
  93. <li id="sale"><a class="top"><?php echo $text_sale; ?></a>
  94. <ul>
  95. <li><a href="<?php echo $order; ?>"><?php echo $text_order; ?></a></li>
  96. <li><a href="<?php echo $return; ?>"><?php echo $text_return; ?></a></li>
  97. <li><a class="parent"><?php echo $text_customer; ?></a>
  98. <ul>
  99. <li><a href="<?php echo $customer; ?>"><?php echo $text_customer; ?></a></li>
  100. <li><a href="<?php echo $customer_group; ?>"><?php echo $text_customer_group; ?></a></li>
  101. <li><a href="<?php echo $customer_ban_ip; ?>"><?php echo $text_customer_ban_ip; ?></a></li>
  102. </ul>
  103. </li>
  104. <li><a href="<?php echo $affiliate; ?>"><?php echo $text_affiliate; ?></a></li>
  105. <li><a href="<?php echo $coupon; ?>"><?php echo $text_coupon; ?></a></li>
  106. <li><a class="parent"><?php echo $text_voucher; ?></a>
  107. <ul>
  108. <li><a href="<?php echo $voucher; ?>"><?php echo $text_voucher; ?></a></li>
  109. <li><a href="<?php echo $voucher_theme; ?>"><?php echo $text_voucher_theme; ?></a></li>
  110. </ul>
  111. </li>
  112. <li><a href="<?php echo $contact; ?>"><?php echo $text_contact; ?></a></li>
  113. </ul>
  114. </li>
  115. <li id="system"><a class="top"><?php echo $text_system; ?></a>
  116. <ul>
  117. <li><a href="<?php echo $setting; ?>"><?php echo $text_setting; ?></a></li>
  118. <li><a class="parent"><?php echo $text_design; ?></a>
  119. <ul>
  120. <li><a href="<?php echo $layout; ?>"><?php echo $text_layout; ?></a></li>
  121. <li><a href="<?php echo $banner; ?>"><?php echo $text_banner; ?></a></li>
  122. </ul>
  123. </li>
  124. <li><a class="parent"><?php echo $text_users; ?></a>
  125. <ul>
  126. <li><a href="<?php echo $user; ?>"><?php echo $text_user; ?></a></li>
  127. <li><a href="<?php echo $user_group; ?>"><?php echo $text_user_group; ?></a></li>
  128. </ul>
  129. </li>
  130. <li><a class="parent"><?php echo $text_localisation; ?></a>
  131. <ul>
  132. <li><a href="<?php echo $language; ?>"><?php echo $text_language; ?></a></li>
  133. <li><a href="<?php echo $currency; ?>"><?php echo $text_currency; ?></a></li>
  134. <li><a href="<?php echo $stock_status; ?>"><?php echo $text_stock_status; ?></a></li>
  135. <li><a href="<?php echo $order_status; ?>"><?php echo $text_order_status; ?></a></li>
  136. <li><a class="parent"><?php echo $text_return; ?></a>
  137. <ul>
  138. <li><a href="<?php echo $return_status; ?>"><?php echo $text_return_status; ?></a></li>
  139. <li><a href="<?php echo $return_action; ?>"><?php echo $text_return_action; ?></a></li>
  140. <li><a href="<?php echo $return_reason; ?>"><?php echo $text_return_reason; ?></a></li>
  141. </ul>
  142. </li>
  143. <li><a href="<?php echo $country; ?>"><?php echo $text_country; ?></a></li>
  144. <li><a href="<?php echo $zone; ?>"><?php echo $text_zone; ?></a></li>
  145. <li><a href="<?php echo $geo_zone; ?>"><?php echo $text_geo_zone; ?></a></li>
  146. <li><a class="parent"><?php echo $text_tax; ?></a>
  147. <ul>
  148. <li><a href="<?php echo $tax_class; ?>"><?php echo $text_tax_class; ?></a></li>
  149. <li><a href="<?php echo $tax_rate; ?>"><?php echo $text_tax_rate; ?></a></li>
  150. </ul>
  151. </li>
  152. <li><a href="<?php echo $length_class; ?>"><?php echo $text_length_class; ?></a></li>
  153. <li><a href="<?php echo $weight_class; ?>"><?php echo $text_weight_class; ?></a></li>
  154. </ul>
  155. </li>
  156. <li><a href="<?php echo $error_log; ?>"><?php echo $text_error_log; ?></a></li>
  157. <li><a href="<?php echo $backup; ?>"><?php echo $text_backup; ?></a></li>
  158. </ul>
  159. </li>
  160. <li id="reports"><a class="top"><?php echo $text_reports; ?></a>
  161. <ul>
  162. <li><a class="parent"><?php echo $text_sale; ?></a>
  163. <ul>
  164. <li><a href="<?php echo $report_sale_order; ?>"><?php echo $text_report_sale_order; ?></a></li>
  165. <li><a href="<?php echo $report_sale_tax; ?>"><?php echo $text_report_sale_tax; ?></a></li>
  166. <li><a href="<?php echo $report_sale_shipping; ?>"><?php echo $text_report_sale_shipping; ?></a></li>
  167. <li><a href="<?php echo $report_sale_return; ?>"><?php echo $text_report_sale_return; ?></a></li>
  168. <li><a href="<?php echo $report_sale_coupon; ?>"><?php echo $text_report_sale_coupon; ?></a></li>
  169. </ul>
  170. </li>
  171. <li><a class="parent"><?php echo $text_product; ?></a>
  172. <ul>
  173. <li><a href="<?php echo $report_product_viewed; ?>"><?php echo $text_report_product_viewed; ?></a></li>
  174. <li><a href="<?php echo $report_product_purchased; ?>"><?php echo $text_report_product_purchased; ?></a></li>
  175. </ul>
  176. </li>
  177. <li><a class="parent"><?php echo $text_customer; ?></a>
  178. <ul>
  179. <li><a href="<?php echo $report_customer_online; ?>"><?php echo $text_report_customer_online; ?></a></li>
  180. <li><a href="<?php echo $report_customer_order; ?>"><?php echo $text_report_customer_order; ?></a></li>
  181. <li><a href="<?php echo $report_customer_reward; ?>"><?php echo $text_report_customer_reward; ?></a></li>
  182. <li><a href="<?php echo $report_customer_credit; ?>"><?php echo $text_report_customer_credit; ?></a></li>
  183. </ul>
  184. </li>
  185. <li><a class="parent"><?php echo $text_affiliate; ?></a>
  186. <ul>
  187. <li><a href="<?php echo $report_affiliate_commission; ?>"><?php echo $text_report_affiliate_commission; ?></a></li>
  188. </ul>
  189. </li>
  190. </ul>
  191. </li>
  192. <li id="supplier"><a class="top"><?php echo $text_supplier_management; ?></a>
  193. <ul>
  194. <li><a href="<?php echo $supplier_list; ?>"><?php echo $text_supplier_list; ?></a></li>
  195. <!--<li><a href="http://www.opencart.com/index.php?route=documentation/introduction" target="_blank"><?php echo $text_documentation; ?></a></li>
  196. <li><a href="http://forum.opencart.com" target="_blank"><?php echo $text_support; ?></a></li> -->
  197. </ul>
  198. </li>
  199. <!--<li id="help"><a class="top"><?php echo $text_help; ?></a>
  200. <ul>
  201. <li><a href="http://www.opencart.com" target="_blank"><?php echo $text_opencart; ?></a></li>
  202. <li><a href="http://www.opencart.com/index.php?route=documentation/introduction" target="_blank"><?php echo $text_documentation; ?></a></li>
  203. <li><a href="http://forum.opencart.com" target="_blank"><?php echo $text_support; ?></a></li>
  204. </ul>
  205. </li>-->
  206. </ul>
  207. <ul class="right" style="display: none;">
  208. <li id="store"><a href="<?php echo $store; ?>" target="_blank" class="top"><?php echo $text_front; ?></a>
  209. <ul>
  210. <?php foreach ($stores as $stores) { ?>
  211. <li><a href="<?php echo $stores['href']; ?>" target="_blank"><?php echo $stores['name']; ?></a></li>
  212. <?php } ?>
  213. </ul>
  214. </li>
  215. <li><a class="top" href="<?php echo $logout; ?>"><?php echo $text_logout; ?></a></li>
  216. </ul>
  217. </div>
  218. <?php } ?>
  219. </div>