add.html 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2. <div class="form-group">
  3. <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Desc')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-desc" data-rule="required" class="form-control" name="row[desc]" type="text" value="">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <div class="input-group">
  18. <input id="c-image" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="">
  19. <div class="input-group-addon no-border no-padding">
  20. <span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  21. <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  22. </div>
  23. <span class="msg-box n-right" for="c-image"></span>
  24. </div>
  25. <ul class="row list-inline faupload-preview" id="p-image"></ul>
  26. </div>
  27. </div>
  28. <div class="form-group">
  29. <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
  30. <div class="col-xs-12 col-sm-8">
  31. <input id="c-price" data-rule="required" class="form-control" name="row[price]" type="text" value="0">
  32. </div>
  33. </div>
  34. <div class="form-group">
  35. <label class="control-label col-xs-12 col-sm-2">{:__('Signupendtime')}:</label>
  36. <div class="col-xs-12 col-sm-8">
  37. <input id="c-signupendtime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[signupendtime]" type="text" value="{:date('Y-m-d H:i:s')}">
  38. </div>
  39. </div>
  40. <div class="form-group">
  41. <label class="control-label col-xs-12 col-sm-2">{:__('Starttime')}:</label>
  42. <div class="col-xs-12 col-sm-8">
  43. <input id="c-starttime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[starttime]" type="text" value="{:date('Y-m-d H:i:s')}">
  44. </div>
  45. </div>
  46. <div class="form-group">
  47. <label class="control-label col-xs-12 col-sm-2">{:__('Endtime')}:</label>
  48. <div class="col-xs-12 col-sm-8">
  49. <input id="c-endtime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[endtime]" type="text" value="{:date('Y-m-d H:i:s')}">
  50. </div>
  51. </div>
  52. <div class="form-group">
  53. <label class="control-label col-xs-12 col-sm-2">{:__('Num')}:</label>
  54. <div class="col-xs-12 col-sm-8">
  55. <input id="c-num" data-rule="required" class="form-control" name="row[num]" type="number" value="0">
  56. </div>
  57. </div>
  58. <div class="form-group">
  59. <label class="control-label col-xs-12 col-sm-2">{:__('Activecontent')}:</label>
  60. <div class="col-xs-12 col-sm-8">
  61. <textarea id="c-activecontent" data-rule="required" class="form-control editor" rows="5" name="row[activecontent]" cols="50"></textarea>
  62. </div>
  63. </div>
  64. <div class="form-group">
  65. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  66. <div class="col-xs-12 col-sm-8">
  67. <div class="radio">
  68. {foreach name="statusList" item="vo"}
  69. <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label>
  70. {/foreach}
  71. </div>
  72. </div>
  73. </div>
  74. <!--<div class="form-group">
  75. <label class="control-label col-xs-12 col-sm-2">{:__('Msgstatus')}:</label>
  76. <div class="col-xs-12 col-sm-8">
  77. <div class="radio">
  78. {foreach name="msgstatusList" item="vo"}
  79. <label for="row[msgstatus]-{$key}"><input id="row[msgstatus]-{$key}" name="row[msgstatus]" type="radio" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label>
  80. {/foreach}
  81. </div>
  82. </div>
  83. </div>-->
  84. <div class="form-group">
  85. <label class="control-label col-xs-12 col-sm-2">{:__('Showstatus')}:</label>
  86. <div class="col-xs-12 col-sm-8">
  87. <div class="radio">
  88. {foreach name="showstatusList" item="vo"}
  89. <label for="row[showstatus]-{$key}"><input id="row[showstatus]-{$key}" name="row[showstatus]" type="radio" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label>
  90. {/foreach}
  91. </div>
  92. </div>
  93. </div>
  94. <!--<div class="form-group">
  95. <label class="control-label col-xs-12 col-sm-2">{:__('Is_autoshow')}:</label>
  96. <div class="col-xs-12 col-sm-8">
  97. <select id="c-is_autoshow" data-rule="required" class="form-control selectpicker" name="row[is_autoshow]">
  98. {foreach name="isAutoshowList" item="vo"}
  99. <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
  100. {/foreach}
  101. </select>
  102. </div>
  103. </div>
  104. <div class="form-group">
  105. <label class="control-label col-xs-12 col-sm-2">{:__('Showtime')}:</label>
  106. <div class="col-xs-12 col-sm-8">
  107. <input id="c-showtime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[showtime]" type="text" value="{:date('Y-m-d H:i:s')}">
  108. </div>
  109. </div>
  110. <div class="form-group">
  111. <label class="control-label col-xs-12 col-sm-2">{:__('Is_banner')}:</label>
  112. <div class="col-xs-12 col-sm-8">
  113. <select id="c-is_banner" data-rule="required" class="form-control selectpicker" name="row[is_banner]">
  114. {foreach name="isBannerList" item="vo"}
  115. <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
  116. {/foreach}
  117. </select>
  118. </div>
  119. </div>-->
  120. <div class="form-group">
  121. <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
  122. <div class="col-xs-12 col-sm-8">
  123. <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="0">
  124. </div>
  125. </div>
  126. <div class="form-group layer-footer">
  127. <label class="control-label col-xs-12 col-sm-2"></label>
  128. <div class="col-xs-12 col-sm-8">
  129. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  130. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  131. </div>
  132. </div>
  133. </form>