add.html 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <admintpl file="header" />
  2. </head>
  3. <body>
  4. <div class="wrap">
  5. <ul class="nav nav-tabs">
  6. <li ><a href="{:U('Gift/index')}">礼物列表</a></li>
  7. <li class="active"><a >礼物添加</a></li>
  8. </ul>
  9. <form method="post" class="form-horizontal js-ajax-form" action="{:U('Gift/add_post')}">
  10. <fieldset>
  11. <div class="control-group">
  12. <label class="control-label">礼物分类</label>
  13. <div class="controls">
  14. <select name="sid">
  15. <option value="0">默认分类</option>
  16. <volist name="gift_sort" id="vo">
  17. <option value="{$vo.id}">{$vo.sortname}</option>
  18. </volist>
  19. </select>
  20. <span class="form-required">*</span>
  21. </div>
  22. </div>
  23. <div class="control-group">
  24. <label class="control-label">礼物类型</label>
  25. <div class="controls">
  26. <label class="radio inline" for="type_0"><input type="radio" name="type" value="0" id="type_0" checked >普通礼物</label>
  27. <label class="radio inline" for="type_1"><input type="radio" name="type" value="1" id="type_1" >连续礼物</label>
  28. <span class="form-required">*</span>
  29. </div>
  30. </div>
  31. <div class="control-group">
  32. <label class="control-label">序号</label>
  33. <div class="controls">
  34. <input type="text" name="orderno" value="0">
  35. <span class="form-required">*</span>
  36. </div>
  37. </div>
  38. <div class="control-group">
  39. <label class="control-label">礼物名称</label>
  40. <div class="controls">
  41. <input type="text" name="giftname">
  42. <span class="form-required">*</span>
  43. </div>
  44. </div>
  45. <div class="control-group">
  46. <label class="control-label">所需点数</label>
  47. <div class="controls">
  48. <input type="text" name="needcoin">
  49. <span class="form-required">*</span>
  50. </div>
  51. </div>
  52. <div class="control-group">
  53. <label class="control-label">小图</label>
  54. <div class="controls">
  55. <div >
  56. <input type="hidden" name="gifticon_mini" id="thumb1" value="">
  57. <a href="javascript:void(0);" onclick="flashupload('thumb_images', '附件上传','thumb1',thumb_images,'1,jpg|jpeg|gif|png|bmp,1,,,1','','','');return false;">
  58. <img src="__TMPL__Public/assets/images/default-thumbnail.png" id="thumb1_preview" width="135" style="cursor: hand" />
  59. </a>
  60. <input type="button" class="btn btn-small" onclick="$('#thumb1_preview').attr('src','__TMPL__Public/assets/images/default-thumbnail.png');$('#thumb1').val('');return false;" value="取消图片">
  61. </div>
  62. <span class="form-required"></span>
  63. </div>
  64. </div>
  65. <div class="control-group">
  66. <label class="control-label">大图</label>
  67. <div class="controls">
  68. <div >
  69. <input type="hidden" name="gifticon" id="thumb2" value="">
  70. <a href="javascript:void(0);" onclick="flashupload('thumb_images', '附件上传','thumb2',thumb_images,'1,jpg|jpeg|gif|png|bmp,1,,,1','','','');return false;">
  71. <img src="__TMPL__Public/assets/images/default-thumbnail.png" id="thumb2_preview" width="135" style="cursor: hand" />
  72. </a>
  73. <input type="button" class="btn btn-small" onclick="$('#thumb2_preview').attr('src','__TMPL__Public/assets/images/default-thumbnail.png');$('#thumb2').val('');return false;" value="取消图片">
  74. </div>
  75. <span class="form-required"></span>
  76. </div>
  77. </div>
  78. </fieldset>
  79. <div class="form-actions">
  80. <button type="submit" class="btn btn-primary js-ajax-submit">{:L('ADD')}</button>
  81. <a class="btn" href="{:U('link/index')}">{:L('BACK')}</a>
  82. </div>
  83. </form>
  84. </div>
  85. <script src="__PUBLIC__/js/common.js"></script>
  86. <script type="text/javascript" src="__PUBLIC__/js/content_addtop.js"></script>
  87. </body>
  88. </html>