import.html 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. {include file="public/header" /}
  2. <div class="page">
  3. <div class="fixed-bar">
  4. <div class="item-title">
  5. <div class="subject">
  6. <h3>{$Think.lang.flea_class}</h3>
  7. <h5></h5>
  8. </div>
  9. {include file="public/admin_items" /}
  10. </div>
  11. </div>
  12. <div class="fixed-empty"></div>
  13. <form method="post" enctype="multipart/form-data" name="form1">
  14. <input type="hidden" name="charset" value="gbk" />
  15. <table class="ds-default-table">
  16. <tbody>
  17. <tr class="noborder">
  18. <td colspan="2" class="required"><label>{$Think.lang.goods_class_import_choose_file}:</label></td>
  19. </tr>
  20. <tr class="noborder">
  21. <td class="vatop rowform"><span class="type-file-box">
  22. <input type="file" name="csv" id="csv" class="type-file-file" size="30" />
  23. </span></td>
  24. <td class="vatop tips">{$Think.lang.goods_class_import_file_tip}</td>
  25. </tr>
  26. <tr>
  27. <td colspan="2" class="required"><label>{$Think.lang.goods_class_import_file_type}:</label>
  28. <a href="{$Think.EXAMPLES_SITE_URL}/flea_class.csv" class="btn btn-mini"><span>{$Think.lang.goods_class_import_example_tip}</span></a></td>
  29. </tr>
  30. <tr class="noborder">
  31. <td class="vatop rowform"><table border="1" cellpadding="3" cellspacing="3" bordercolor="#CCC">
  32. <tbody>
  33. <tr>
  34. <td bgcolor="#EFF8F8">{$Think.lang.ds_sort}</td>
  35. <td bgcolor="#FFFFEC">{$Think.lang.goods_class_import_first_class}</td>
  36. <td bgcolor="#FFFFEC">&nbsp;</td>
  37. <td bgcolor="#FFFFEC">&nbsp;</td>
  38. </tr>
  39. <tr>
  40. <td bgcolor="#EFF8F8">{$Think.lang.ds_sort}</td>
  41. <td bgcolor="#FFFFEC">&nbsp;</td>
  42. <td bgcolor="#FFFFEC">{$Think.lang.goods_class_import_second_class}</td>
  43. <td bgcolor="#FFFFEC">&nbsp;</td>
  44. </tr>
  45. <tr>
  46. <td bgcolor="#EFF8F8">{$Think.lang.ds_sort}</td>
  47. <td bgcolor="#FFFFEC">&nbsp;</td>
  48. <td bgcolor="#FFFFEC">{$Think.lang.goods_class_import_third_class}</td>
  49. <td bgcolor="#FFFFEC">&nbsp;</td>
  50. </tr>
  51. </tbody>
  52. </table></td>
  53. <td class="vatop tips"></td>
  54. </tr>
  55. </tbody>
  56. <tfoot>
  57. <tr class="tfoot">
  58. <td colspan="2"><a href="JavaScript:document.form1.submit();" class="btn"><span>{$Think.lang.ds_import}</span></a></td>
  59. </tr>
  60. </tfoot>
  61. </table>
  62. </form>
  63. </div>
  64. {include file="public/footer" /}
  65. <script type="text/javascript">
  66. $(function(){
  67. var textButton="<input type='text' name='textfield' id='textfield1' class='type-file-text' /><input type='button' name='button' id='button1' value='上传' class='type-file-button' />"
  68. $(textButton).insertBefore("#csv");
  69. $("#csv").change(function(){
  70. $("#textfield1").val($("#csv").val());
  71. });
  72. });
  73. </script>