add.html 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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">{:__('User_id')}:</label>
  14. <div class="col-xs-12 col-sm-8">
  15. <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="">
  16. </div>
  17. </div>
  18. <div class="form-group">
  19. <label class="control-label col-xs-12 col-sm-2">{:__('Order_id')}:</label>
  20. <div class="col-xs-12 col-sm-8">
  21. <input id="c-order_id" data-rule="required" data-source="order/index" class="form-control" name="row[order_id]" type="text" value="">
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label class="control-label col-xs-12 col-sm-2">{:__('Order_name')}:</label>
  26. <div class="col-xs-12 col-sm-8">
  27. <input id="c-order_name" class="form-control" name="row[order_name]" type="text">
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. <label class="control-label col-xs-12 col-sm-2">{:__('Category_id')}:</label>
  32. <div class="col-xs-12 col-sm-8">
  33. <input id="c-category_id" data-rule="required" data-source="category/selectpage" data-params='{"custom[type]":"lave"}' class="form-control selectpage" name="row[category_id]" type="text" value="">
  34. </div>
  35. </div>
  36. <div class="form-group">
  37. <label class="control-label col-xs-12 col-sm-2">{:__('Amount')}:</label>
  38. <div class="col-xs-12 col-sm-8">
  39. <input id="c-amount" class="form-control" step="0.01" name="row[amount]" type="number">
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
  44. <div class="col-xs-12 col-sm-8">
  45. <input id="c-name" class="form-control" name="row[name]" type="text">
  46. </div>
  47. </div>
  48. <div class="form-group">
  49. <label class="control-label col-xs-12 col-sm-2">{:__('Contact')}:</label>
  50. <div class="col-xs-12 col-sm-8">
  51. <input id="c-contact" class="form-control" name="row[contact]" type="text">
  52. </div>
  53. </div>
  54. <div class="form-group">
  55. <label class="control-label col-xs-12 col-sm-2">{:__('Tel')}:</label>
  56. <div class="col-xs-12 col-sm-8">
  57. <input id="c-tel" class="form-control" name="row[tel]" type="text">
  58. </div>
  59. </div>
  60. <div class="form-group">
  61. <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
  62. <div class="col-xs-12 col-sm-8">
  63. <input id="c-address" class="form-control" name="row[address]" type="text">
  64. </div>
  65. </div>
  66. <div class="form-group">
  67. <label class="control-label col-xs-12 col-sm-2">{:__('Is_open')}:</label>
  68. <div class="col-xs-12 col-sm-8">
  69. <select id="c-is_open" class="form-control selectpicker" name="row[is_open]">
  70. {foreach name="isOpenList" item="vo"}
  71. <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
  72. {/foreach}
  73. </select>
  74. </div>
  75. </div>
  76. <div class="form-group">
  77. <label class="control-label col-xs-12 col-sm-2">{:__('Is_ticket')}:</label>
  78. <div class="col-xs-12 col-sm-8">
  79. <select id="c-is_ticket" class="form-control selectpicker" name="row[is_ticket]">
  80. {foreach name="isTicketList" item="vo"}
  81. <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
  82. {/foreach}
  83. </select>
  84. </div>
  85. </div>
  86. <div class="form-group">
  87. <label class="control-label col-xs-12 col-sm-2">{:__('Paid')}:</label>
  88. <div class="col-xs-12 col-sm-8">
  89. <select id="c-paid" class="form-control selectpicker" name="row[paid]">
  90. {foreach name="paidList" item="vo"}
  91. <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
  92. {/foreach}
  93. </select>
  94. </div>
  95. </div>
  96. <div class="form-group">
  97. <label class="control-label col-xs-12 col-sm-2">{:__('Pay_type')}:</label>
  98. <div class="col-xs-12 col-sm-8">
  99. <select id="c-pay_type" class="form-control selectpicker" name="row[pay_type]">
  100. {foreach name="payTypeList" item="vo"}
  101. <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
  102. {/foreach}
  103. </select>
  104. </div>
  105. </div>
  106. <div class="form-group">
  107. <label class="control-label col-xs-12 col-sm-2">{:__('Paytime')}:</label>
  108. <div class="col-xs-12 col-sm-8">
  109. <input id="c-paytime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[paytime]" type="text" value="{:date('Y-m-d H:i:s')}">
  110. </div>
  111. </div>
  112. <div class="form-group">
  113. <label class="control-label col-xs-12 col-sm-2">{:__('Sn')}:</label>
  114. <div class="col-xs-12 col-sm-8">
  115. <input id="c-SN" class="form-control" name="row[SN]" type="text">
  116. </div>
  117. </div>
  118. <div class="form-group">
  119. <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
  120. <div class="col-xs-12 col-sm-8">
  121. <select id="c-type" class="form-control selectpicker" name="row[type]">
  122. {foreach name="typeList" item="vo"}
  123. <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
  124. {/foreach}
  125. </select>
  126. </div>
  127. </div>
  128. <div class="form-group layer-footer">
  129. <label class="control-label col-xs-12 col-sm-2"></label>
  130. <div class="col-xs-12 col-sm-8">
  131. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  132. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  133. </div>
  134. </div>
  135. </form>