580d22962c4c8c888375d8388f0eea82b8b8caf5.svn-base 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <!--框架必需start-->
  5. <script type="text/javascript" src="../../libs/js/jquery.js"></script>
  6. <script type="text/javascript" src="../../libs/js/language/cn.js"></script>
  7. <script type="text/javascript" src="../../libs/js/framework.js"></script>
  8. <link href="../../libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
  9. <link rel="stylesheet" type="text/css" id="skin" prePath="../../"/>
  10. <link rel="stylesheet" type="text/css" id="customSkin"/>
  11. <!--框架必需end-->
  12. <!--拖拽排序start-->
  13. <script type="text/javascript" src="../../libs/js/drag/dragSort.js"></script>
  14. <!--拖拽排序end-->
  15. <script type="text/javascript">
  16. function initComplete(){
  17. $("#list1, #list2").dragSort({ dragSelector: "div", dragBetween: true, dragEnd: saveOrder, placeHolderTemplate: "<li class='placeHolder'><div></div></li>" });
  18. }
  19. function saveOrder() {
  20. var serialStr = "";
  21. $("#list1 li").each(function(i, elm) { serialStr += (i > 0 ? "|" : "") + $(elm).children().html(); });
  22. $("input[name=list1SortOrder]").val(serialStr);
  23. };
  24. </script>
  25. <style>
  26. #list1, #list2 { width:100%; list-style-type:none; margin:0px; min-height:70px; }
  27. #list1 li, #list2 li { float:left; padding:5px; width:80px; height:80px; }
  28. #list1 div, #list2 div { width:70px; height:70px; text-align:center; text-align:center;line-height:70px; }
  29. .placeHolder div { background-color:#ffffec !important; border:dashed 1px gray !important;border-radius: 3px 3px 3px 3px; }
  30. .group_line{
  31. border-bottom:solid 1px #000000;
  32. height:30px;
  33. }
  34. .group_line2{
  35. height:30px;
  36. }
  37. </style>
  38. <body>
  39. <ul id="list2">
  40. <li><div><img src="../../libs/icons/png_64/10.png"/></div></li>
  41. <li><div><img src="../../libs/icons/png_64/11.png"/></div></li>
  42. <li><div><img src="../../libs/icons/png_64/12.png"/></div></li>
  43. <li><div><img src="../../libs/icons/png_64/13.png"/></div></li>
  44. <li><div><img src="../../libs/icons/png_64/14.png"/></div></li>
  45. <li><div><img src="../../libs/icons/png_64/15.png"/></div></li>
  46. <li><div><img src="../../libs/icons/png_64/16.png"/></div></li>
  47. <li><div><img src="../../libs/icons/png_64/17.png"/></div></li>
  48. <li><div><img src="../../libs/icons/png_64/18.png"/></div></li>
  49. <dt class="clear"></dt>
  50. </ul>
  51. <div class="group_line"></div>
  52. <div class="group_line2"></div>
  53. <ul id="list1">
  54. <li><div><img src="../../libs/icons/png_64/01.png"/></div></li>
  55. <li><div><img src="../../libs/icons/png_64/02.png"/></div></li>
  56. <li><div><img src="../../libs/icons/png_64/03.png"/></div></li>
  57. <li><div><img src="../../libs/icons/png_64/04.png"/></div></li>
  58. <li><div><img src="../../libs/icons/png_64/05.png"/></div></li>
  59. <li><div><img src="../../libs/icons/png_64/06.png"/></div></li>
  60. <li><div><img src="../../libs/icons/png_64/07.png"/></div></li>
  61. <li><div><img src="../../libs/icons/png_64/08.png"/></div></li>
  62. <li><div><img src="../../libs/icons/png_64/09.png"/></div></li>
  63. <dt class="clear"></dt>
  64. </ul>
  65. <input name="list1SortOrder" type="hidden" />
  66. </body>
  67. </html>