add.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2. {eq name="admin.cid" value="0"}
  3. <div class="form-group">
  4. <label class="control-label col-xs-12 col-sm-2">{:__('Cid')}:</label>
  5. <div class="col-xs-12 col-sm-8">
  6. <input id="c-cid" data-rule="required" data-source="Company" data-field="company_name" class="form-control selectpage" name="row[cid]" type="text" >
  7. </div>
  8. </div>
  9. {else/}
  10. <input id="c-cid" name="row[cid]" type="hidden" value="{$admin.cid}">
  11. {/eq}
  12. <div class="form-group">
  13. <label class="control-label col-xs-12 col-sm-2">{:__('Category_id')}:</label>
  14. <div class="col-xs-12 col-sm-8">
  15. <input id="c-category_id" data-rule="required" data-source="category/selectpage" data-params='{"custom[type]":"ads"}' class="form-control selectpage" name="row[category_id]" type="text" value="">
  16. </div>
  17. </div>
  18. <div class="form-group">
  19. <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
  20. <div class="col-xs-12 col-sm-8">
  21. <div class="input-group">
  22. <input id="c-image" class="form-control" size="50" name="row[image]" type="text">
  23. <div class="input-group-addon no-border no-padding">
  24. <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" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  25. <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>
  26. </div>
  27. <span class="msg-box n-right" for="c-image"></span>
  28. </div>
  29. <ul class="row list-inline faupload-preview" id="p-image"></ul>
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <label class="control-label col-xs-12 col-sm-2">{:__('Pc_image')}:</label>
  34. <div class="col-xs-12 col-sm-8">
  35. <div class="input-group">
  36. <input id="c-pc_image" class="form-control" size="50" name="row[pc_image]" type="text">
  37. <div class="input-group-addon no-border no-padding">
  38. <span><button type="button" id="faupload-pc_image" class="btn btn-danger faupload" data-input-id="c-pc_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-pc_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  39. <span><button type="button" id="fachoose-pc_image" class="btn btn-primary fachoose" data-input-id="c-pc_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  40. </div>
  41. <span class="msg-box n-right" for="c-pc_image"></span>
  42. </div>
  43. <ul class="row list-inline faupload-preview" id="p-pc_image"></ul>
  44. </div>
  45. </div>
  46. <div class="form-group">
  47. <label class="control-label col-xs-12 col-sm-2">{:__('H5_url')}:</label>
  48. <div class="col-xs-12 col-sm-8">
  49. <input id="c-h5_url" class="form-control" name="row[h5_url]" type="text">
  50. </div>
  51. </div>
  52. <div class="form-group">
  53. <label class="control-label col-xs-12 col-sm-2">{:__('Pc_url')}:</label>
  54. <div class="col-xs-12 col-sm-8">
  55. <input id="c-pc_url" class="form-control" name="row[pc_url]" type="text">
  56. </div>
  57. </div>
  58. <div class="form-group">
  59. <label class="control-label col-xs-12 col-sm-2">{:__('Routine_url')}:</label>
  60. <div class="col-xs-12 col-sm-8">
  61. <input id="c-routine_url" class="form-control" name="row[routine_url]" type="text">
  62. </div>
  63. </div>
  64. <div class="form-group">
  65. <label class="control-label col-xs-12 col-sm-2">{:__('Sort')}:</label>
  66. <div class="col-xs-12 col-sm-8">
  67. <input id="c-sort" class="form-control" name="row[sort]" type="number" value="0">
  68. </div>
  69. </div>
  70. <div class="form-group">
  71. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  72. <div class="col-xs-12 col-sm-8">
  73. <div class="radio">
  74. {foreach name="statusList" item="vo"}
  75. <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label>
  76. {/foreach}
  77. </div>
  78. </div>
  79. </div>
  80. <div class="form-group layer-footer">
  81. <label class="control-label col-xs-12 col-sm-2"></label>
  82. <div class="col-xs-12 col-sm-8">
  83. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  84. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  85. </div>
  86. </div>
  87. </form>