暫無描述
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

get_images_path.htm 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <!DOCTYPE html>
  2. <html lang="zh-cn">
  3. <head>
  4. <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  8. <!-- Apple devices fullscreen -->
  9. <meta name="apple-mobile-web-app-capable" content="yes">
  10. <!-- Apple devices fullscreen -->
  11. <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
  12. <style type="text/css">
  13. #online{ padding-top: 0 !important; }
  14. #online li img{ vertical-align: middle;
  15. max-width: 100%;
  16. max-height: 106px;
  17. position: absolute;
  18. top: 50%;
  19. transform: translate(-50%,-50%);
  20. left: 50%;
  21. z-index: 1;
  22. }
  23. .saveBtn{
  24. display: inline-block;
  25. *display: inline;
  26. *zoom: 1;
  27. margin-left: 10px;
  28. padding: 0 18px;
  29. height: 40px;
  30. line-height: 40px;
  31. cursor: pointer;
  32. text-align: center;
  33. background: #fff;
  34. border: 1px solid #CFCFCF;
  35. border-radius: 3px;
  36. color: #565656;
  37. font-size: 14px;
  38. }
  39. .tabs li:hover {
  40. color: #fff;
  41. background: #00B7EE;
  42. border-color: transparent;
  43. }
  44. .nonepic{ text-align: center; color: #888; margin-top: 60px }
  45. .heading{ clear: both; margin: 20px 10px; }
  46. .heading h2 {
  47. color: #333333;
  48. font-size: 15px;
  49. margin: 0px;
  50. margin-bottom: 10px;
  51. font-weight: normal;
  52. }
  53. .heading hr {
  54. border: none;
  55. position: relative;
  56. margin: 0px;
  57. height: 1px;
  58. width: 100%;
  59. background: #e5e5e5;
  60. }
  61. .heading hr:before {
  62. height: 2px;
  63. background: #666666;
  64. content: "";
  65. position: absolute;
  66. top: -1px;
  67. width: 60px;
  68. left: 0px;
  69. }
  70. </style>
  71. <link href="__PUBLIC__/plugins/Ueditor/dialogs/image/image.css" rel="stylesheet" type="text/css">
  72. </head>
  73. <body>
  74. <div class="ui-layout-west area manage-area" id="manage_area">
  75. <div id="tree" class="ztree"></div>
  76. </div>
  77. <div class="ui-layout-center" id="online">
  78. <ul id="list" class="tabs">
  79. {notempty name="$common_pic"}
  80. <div class="heading">
  81. <h2>最近使用</h2>
  82. <hr>
  83. </div>
  84. {volist name="common_pic" id="pic"}
  85. <li data-url="{$pic.pic_path}" onclick='hover_new(this);'>
  86. <img src="{$pic.pic_path}" />
  87. <span class="icon"></span>
  88. </li>
  89. {/volist}
  90. {/notempty}
  91. <div class="heading">
  92. <h2>目录图片</h2>
  93. <hr>
  94. </div>
  95. {empty name="$list"}
  96. <div class='nonepic'>暂无图片可选择~</div>
  97. {else/}
  98. {volist name="list" id="vo"}
  99. <li data-url="{$vo.path}" onclick='hover_new(this);'>
  100. <img src="{$vo.path}" />
  101. <span class="icon"></span>
  102. </li>
  103. {/volist}
  104. {/empty}
  105. </ul>
  106. </div>
  107. {load href="__STATIC__/common/js/jquery.min.js" /}
  108. <script type="text/javascript" src="__PUBLIC__/plugins/layer-v3.1.0/layer.js?v={$version|default='1.2.9'}"></script>
  109. <script type="text/javascript">
  110. // 记录选择的图片
  111. function hover_new(this_) {
  112. var num = '{$info.num}';
  113. if (1 == num) {
  114. // 当数量为1时,仅可选择一张图片
  115. $("#list li").each(function(){
  116. $(this).removeClass("selected")
  117. });
  118. }
  119. // 给点击的图片加上Class
  120. $(this_).toggleClass("selected");
  121. }
  122. </script>
  123. </body>
  124. </html>