product_manage_edit.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <link href="<?= WEB_SITE_GLOBAL ?>/img/admin/style.css" rel="stylesheet" type="text/css" />
  6. <script type="text/javascript" src="<?= WEB_SITE_GLOBAL ?>/js/jquery-1.7.1.min.js"></script>
  7. <script type="text/javascript" src="<?= WEB_SITE_GLOBAL ?>/js/admin/over.js"></script>
  8. <script type="text/javascript" src="<?= WEB_SITE_GLOBAL ?>/js/admin/admin.js"></script>
  9. <script type="text/javascript" src="<?= WEB_SITE_GLOBAL ?>/js/editor_config.js"></script>
  10. <script type="text/javascript" src="<?= WEB_SITE_GLOBAL ?>/js/editor.min.js"></script>
  11. <link rel="stylesheet" href="<?= WEB_SITE_GLOBAL ?>/css/themes/default/ueditor.css" />
  12. </head>
  13. <body>
  14. <div class="main_content new_product">
  15. <div class="crumbbar">快速导航 » {{map}}</div>
  16. <div class=" clearfix">
  17. <div class="globle_list">
  18. <form action="/admin/product_manage_edit" enctype="multipart/form-data" method="post" onsubmit="return article_form()">
  19. <table width="100%" border="0" cellpadding="2" cellspacing="6" style="_margin-left:-10px; ">
  20. <tbody><tr>
  21. <td><table width="100%" border="0" cellpadding="2" cellspacing="6">
  22. <tbody><tr>
  23. <td>
  24. <div id="append"></div>
  25. <input type="hidden" name="pid" value="{{product.0.pid}}"></input>
  26. <input type="hidden" name="is_edit" value="1"></input>
  27. <table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder">
  28. <tbody><tr class="header">
  29. <td colspan="2">产品</td>
  30. </tr>
  31. <tr>
  32. <td class="altbg1" width="100"><b>类别:</b></td>
  33. <td class="altbg2">产品<input type="radio" name="p_type" id="p_type" onclick="type_pro()" <!-- if {{product.0.p_type}}==1 --> checked <!-- endif --> value="1" ></input>
  34. 驱动<input type="radio" name="p_type" id="p_type" onclick="type_eng()" <!-- if {{product.0.p_type}}==2 --> checked <!-- endif --> value="2" ></input>
  35. 链接<input type="radio" name="p_type" id="p_type" onclick="type_link()" <!-- if {{product.0.p_type}}==3 --> checked <!-- endif --> value="3" ></input>
  36. </td>
  37. </tr>
  38. <tr>
  39. <td class="altbg1" width="100"><b>标题:</b></td>
  40. <td class="altbg2"><input class="text" type="text" name="title" id="title" value="{{product.0.title}}" style="width: 300px"/></td>
  41. </tr>
  42. <tr>
  43. <td class="altbg1" width="100"><b>全称:</b></td>
  44. <td class="altbg2"><input class="text" type="text" name="fulltitle" id="fulltitle" value="{{product.0.fulltitle}}" style="width: 300px"/></td>
  45. </tr>
  46. <tr id="link" <!-- if {{product.0.p_type}}!=3 --> style="display:none" <!-- endif --> >
  47. <td class="altbg1" width="100"><b>链接:</b></td>
  48. <td class="altbg2"><input class="text" type="text" name="link" id="link" value="http://" style="width: 300px"/></td>
  49. </tr>
  50. <tr>
  51. <td class="altbg1" width="100"><b>所属栏目:</b></td>
  52. <td class="altbg2"><select name="cid" id="cid">
  53. <option value="0">请选择</option>
  54. <!-- loop column -->
  55. <option value="{{column' value.cid}}" <!-- if {{product.0.cid}}=={{column' value.cid}} --> selected <!-- endif -->>{{column' value.title}}</option>
  56. <!-- endloop -->
  57. </select></td>
  58. </tr>
  59. <tr>
  60. <td class="altbg1" width="100"><b>下载信息:</b></td>
  61. <td class="altbg2">
  62. <select name="dn" id="dn" >
  63. <option value="0">请选择</option>
  64. <!-- loop down -->
  65. <option value="{{down' value.did}}">{{down' value.fulltitle}}</option>
  66. <!-- endloop -->
  67. </select>
  68. <input type="hidden" name="did" id="did" value="{{product.0.did}}"></input>
  69. <input type="button" onclick="getdid()" value="添加"></input>
  70. <!-- <input type="button" onclick="clearVal()" value="清空所选,重新选择" /> -->
  71. <span id="dmes"></span>
  72. </td>
  73. </tr>
  74. <table id="t_info" <!-- if {{product.0.p_type}}==2||{{product.0.p_type}}==3 --> style="display:none" <!-- endif -->>
  75. <tr>
  76. <td class="altbg1" width="100"><b>添加动画:</b></td>
  77. <td class="altbg2"><select name="an" id="an">
  78. <option value="0">请选择</option>
  79. <!-- loop animation -->
  80. <option value="{{animation' value.aid}}">{{animation' value.title}}</option>
  81. <!-- endloop -->
  82. </select>
  83. <input type="hidden" name="anid" id="anid" value="{{product.0.anid}}"></input>
  84. <input type="button" onclick="getanid()" value="添加"></input>
  85. <span id="ames"></span>
  86. </td>
  87. </tr>
  88. <tr>
  89. <td class="altbg1" width="100"><b>产品logo:</b></td>
  90. <td class="altbg2"><input name="logo" id="logo" type="file" /></td>
  91. </tr>
  92. <tr>
  93. <td class="altbg1" width="100"><b>介绍内容:</b></td>
  94. <td class="altbg2" >
  95. <script type="text/plain" id="content" name="content" style="width:600px" >{{product.0.content}}</script>
  96. </td>
  97. </tr>
  98. <tr>
  99. <td class="altbg1" width="100"><b>版本信息:</b></td>
  100. <td class="altbg2" >
  101. <script type="text/plain" id="edition" name="edition" style="width:600px" >{{product.0.edition}}</script>
  102. </td>
  103. </tr>
  104. </table>
  105. </tbody></table>
  106. <br/>
  107. <center><input type="submit" class="button" name="submit" value="提 交"/></center><br/>
  108. </td></tr>
  109. </tbody>
  110. </table>
  111. </td></tr></tbody></table></form>
  112. </div>
  113. </div>
  114. </div>
  115. <script type="text/javascript">
  116. enroll_editor = new UE.ui.Editor();
  117. enroll_editor.render('content');
  118. e = new UE.ui.Editor();
  119. e.render('edition');
  120. </script>
  121. </body>
  122. </html>