Guest User

Untitled

a guest
Oct 19th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. <div class="h" style="width:12px;height:12px;background-color:{echo SOrders::$statuses_color[$o->getStatus()]}">&nbsp;</div>
  2. <div class="pList" style="position:fixed;z-index:9999;background-color:#fff;border:1px solid silver;padding:3px;display:none;margin-top:-15px;">
  3. {echo SOrders::$statuses[$o->getStatus()]}<br/>
  4. {foreach $o->getSOrderProductss() as $p}
  5. {$productUrl = '#'}
  6. {$productModel = $p->getSProducts()}
  7. {if $productModel}
  8. {$productUrl = '/shop/product/'.$productModel->getUrl()}
  9. <a target="_blank" href="{$productUrl}">{echo $p->getProductName()}</a>
  10. {else:}
  11. {echo $p->getProductName()}
  12. {/if}
  13.  
  14. {echo $p->getVariantName()}
  15. {echo $p->getQuantity()} шт. × {echo $p->getPrice(true)} {$CS}
  16. <br/>
  17. {/foreach}
  18. </div>
  19.  
  20.  
  21. {literal}
  22. <script type="text/javascript">
  23. $$(".h").each(function(el) {
  24. el.addEvents({
  25. 'mouseenter': function(e) {
  26. el.getNext().setStyle("display","block");
  27. }
  28. //'mouseleave': function(e) {
  29. // $$(".pList").setStyle("display", "none");
  30. //}
  31. });
  32. });
  33.  
  34. $$(".pList").each(function(el) {
  35. el.addEvents({
  36. 'mouseleave': function(e) {
  37. el.setStyle("display", "none");
  38. }
  39. });
  40. });
  41. </script>
  42. {/literal}
Add Comment
Please, Sign In to add comment