PageRenderTime 311ms CodeModel.GetById 18ms RepoModel.GetById 2ms app.codeStats 0ms

/opencart/trunk/upload/admin/view/template/common/menu.tpl

http://coderstalk.googlecode.com/
Smarty Template | 144 lines | 134 code | 10 blank | 0 comment | 11 complexity | 4634cbea48ba17afdf8516b889f67420 MD5 | raw file
Possible License(s): GPL-3.0, LGPL-2.1, AGPL-3.0
  1. <?php if ($logged) { ?>
  2. <div id="menu">
  3. <ul id="nav" style="display: none;">
  4. <li id="admin"><a class="top"><?php echo $text_admin; ?></a>
  5. <ul>
  6. <li><a href="<?php echo $home; ?>"><?php echo $text_home; ?></a></li>
  7. <li><a href="<?php echo $shop; ?>"><?php echo $text_shop; ?></a></li>
  8. <li><a class="parent"><?php echo $text_configuration; ?></a>
  9. <ul>
  10. <li><a href="<?php echo $setting; ?>"><?php echo $text_setting; ?></a></li>
  11. <li><a class="parent"><?php echo $text_users; ?></a>
  12. <ul>
  13. <li><a href="<?php echo $user; ?>"><?php echo $text_user; ?></a></li>
  14. <li><a href="<?php echo $user_group; ?>"><?php echo $text_user_group; ?></a></li>
  15. </ul>
  16. </li>
  17. <li><a class="parent"><?php echo $text_localisation; ?></a>
  18. <ul>
  19. <li><a href="<?php echo $language; ?>"><?php echo $text_language; ?></a></li>
  20. <li><a href="<?php echo $currency; ?>"><?php echo $text_currency; ?></a></li>
  21. <li><a href="<?php echo $stock_status; ?>"><?php echo $text_stock_status; ?></a></li>
  22. <li><a href="<?php echo $order_status; ?>"><?php echo $text_order_status; ?></a></li>
  23. <li><a href="<?php echo $country; ?>"><?php echo $text_country; ?></a></li>
  24. <li><a href="<?php echo $zone; ?>"><?php echo $text_zone; ?></a></li>
  25. <li><a href="<?php echo $geo_zone; ?>"><?php echo $text_geo_zone; ?></a></li>
  26. <li><a href="<?php echo $tax_class; ?>"><?php echo $text_tax_class; ?></a></li>
  27. <li><a href="<?php echo $measurement_class; ?>"><?php echo $text_measurement_class; ?></a></li>
  28. <li><a href="<?php echo $weight_class; ?>"><?php echo $text_weight_class; ?></a></li>
  29. </ul>
  30. </li>
  31. <li><a href="<?php echo $error_log; ?>"><?php echo $text_error_log; ?></a></li>
  32. <li><a href="<?php echo $backup; ?>"><?php echo $text_backup; ?></a></li>
  33. </ul>
  34. </li>
  35. <li><a href="<?php echo $logout; ?>"><?php echo $text_logout; ?></a></li>
  36. </ul>
  37. </li>
  38. <li id="catalog"><a class="top"><?php echo $text_catalog; ?></a>
  39. <ul>
  40. <li><a href="<?php echo $category; ?>"><?php echo $text_category; ?></a></li>
  41. <li><a href="<?php echo $product; ?>"><?php echo $text_product; ?></a></li>
  42. <li><a href="<?php echo $manufacturer; ?>"><?php echo $text_manufacturer; ?></a></li>
  43. <li><a href="<?php echo $download; ?>"><?php echo $text_download; ?></a></li>
  44. <li><a href="<?php echo $review; ?>"><?php echo $text_review; ?></a></li>
  45. <li><a href="<?php echo $information; ?>"><?php echo $text_information; ?></a></li>
  46. </ul>
  47. </li>
  48. <li id="extension"><a class="top"><?php echo $text_extension; ?></a>
  49. <ul>
  50. <li><a href="<?php echo $module; ?>"><?php echo $text_module; ?></a></li>
  51. <li><a href="<?php echo $shipping; ?>"><?php echo $text_shipping; ?></a></li>
  52. <li><a href="<?php echo $payment; ?>"><?php echo $text_payment; ?></a></li>
  53. <li><a href="<?php echo $total; ?>"><?php echo $text_total; ?></a></li>
  54. <li><a href="<?php echo $feed; ?>"><?php echo $text_feed; ?></a></li>
  55. </ul>
  56. </li>
  57. <li id="customers"><a class="top"><?php echo $text_customers; ?></a>
  58. <ul>
  59. <li><a href="<?php echo $customer; ?>"><?php echo $text_customer; ?></a></li>
  60. <li><a href="<?php echo $customer_group; ?>"><?php echo $text_customer_group; ?></a></li>
  61. <li><a href="<?php echo $order; ?>"><?php echo $text_order; ?></a></li>
  62. <li><a href="<?php echo $coupon; ?>"><?php echo $text_coupon; ?></a></li>
  63. <li><a href="<?php echo $contact; ?>"><?php echo $text_contact; ?></a></li>
  64. </ul>
  65. </li>
  66. <li id="reports"><a class="top"><?php echo $text_reports; ?></a>
  67. <ul>
  68. <li><a href="<?php echo $report_sale; ?>"><?php echo $text_report_sale; ?></a></li>
  69. <li><a href="<?php echo $report_viewed; ?>"><?php echo $text_report_viewed; ?></a></li>
  70. <li><a href="<?php echo $report_purchased; ?>"><?php echo $text_report_purchased; ?></a></li>
  71. </ul>
  72. </li>
  73. <li id="help"><a class="top"><?php echo $text_help; ?></a>
  74. <ul>
  75. <li><a onclick="window.open('http://www.opencart.com');"><?php echo $text_opencart; ?></a></li>
  76. <li><a onclick="window.open('http://www.opencart.com/index.php?route=documentation/introduction');"><?php echo $text_documentation; ?></a></li>
  77. <li><a onclick="window.open('http://forum.opencart.com');"><?php echo $text_support; ?></a></li>
  78. </ul>
  79. </li>
  80. </ul>
  81. <script type="text/javascript"><!--
  82. $(document).ready(function() {
  83. $('#nav').superfish({
  84. hoverClass : 'sfHover',
  85. pathClass : 'overideThisToUse',
  86. delay : 0,
  87. animation : {opacity: 'show', height: 'show'},
  88. speed : 'normal',
  89. autoArrows : false,
  90. dropShadows : false,
  91. disableHI : false, /* set to true to disable hoverIntent detection */
  92. onInit : function(){},
  93. onBeforeShow : function(){},
  94. onShow : function(){},
  95. onHide : function(){}
  96. });
  97. $('#nav').css('display', 'block');
  98. });
  99. //--></script>
  100. <script type="text/javascript"><!--
  101. function getURLVar(urlVarName) {
  102. var urlHalves = String(document.location).toLowerCase().split('?');
  103. var urlVarValue = '';
  104. if (urlHalves[1]) {
  105. var urlVars = urlHalves[1].split('&');
  106. for (var i = 0; i <= (urlVars.length); i++) {
  107. if (urlVars[i]) {
  108. var urlVarPair = urlVars[i].split('=');
  109. if (urlVarPair[0] && urlVarPair[0] == urlVarName.toLowerCase()) {
  110. urlVarValue = urlVarPair[1];
  111. }
  112. }
  113. }
  114. }
  115. return urlVarValue;
  116. }
  117. $(document).ready(function() {
  118. route = getURLVar('route');
  119. if (!route) {
  120. $('#admin').addClass('selected');
  121. } else {
  122. part = route.split('/');
  123. url = part[0];
  124. if (part[1]) {
  125. url += '/' + part[1];
  126. }
  127. $('a[href*=\'' + url + '\']').parents('li[id]').addClass('selected');
  128. }
  129. });
  130. //--></script>
  131. </div>
  132. <?php } else { ?>
  133. <div id="menu"></div>
  134. <?php } ?>