edit.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. <form id="edit-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">{:__('Orderno')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-orderno" disabled class="form-control" name="row[orderno]" type="text" value="{$row.orderno|htmlentities}">
  6. </div>
  7. </div>
  8. <!--<div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Uc_id')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-uc_id" data-rule="required" data-source="usercompany/index" data-field="projectname" class="form-control selectpage" name="row[uc_id]" type="text" value="{$row.uc_id|htmlentities}">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Company_id')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <input id="c-company_id" data-rule="required" data-source="company/index" data-field="companyname" class="form-control selectpage" name="row[company_id]" type="text" value="{$row.company_id|htmlentities}">
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <input id="c-user_id" data-rule="required" data-source="user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
  24. </div>
  25. </div>-->
  26. <div class="form-group">
  27. <label class="control-label col-xs-12 col-sm-2">{:__('Info')}:</label>
  28. <div class="col-xs-12 col-sm-8">
  29. <input id="c-info" class="form-control" name="row[info]" type="text" value="{$row.info|htmlentities}">
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <label class="control-label col-xs-12 col-sm-2">{:__('Filedata')}:</label>
  34. <div class="col-xs-12 col-sm-8">
  35. <?php
  36. if(!empty($row['filedata_array'])){
  37. foreach($row['filedata_array'] as $key => $val){
  38. if(isset($val['type']) && $val['type'] == 'video'){
  39. echo '<video width="100" height="100" controls><source src="'. localpath_to_netpath($val['url']) .'" type="video/ogg"></video>';
  40. }
  41. if(isset($val['type']) && $val['type'] == 'img'){
  42. echo '<img width="100" height="100" src="'. localpath_to_netpath($val['url']) .'" >';
  43. }
  44. echo '<br>';
  45. }
  46. }
  47. ?>
  48. </div>
  49. </div>
  50. <div class="form-group">
  51. <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
  52. <div class="col-xs-12 col-sm-8">
  53. <input id="c-mobile" class="form-control" name="row[mobile]" type="text" value="{$row.mobile|htmlentities}">
  54. </div>
  55. </div>
  56. <div class="form-group">
  57. <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
  58. <div class="col-xs-12 col-sm-8">
  59. <input id="c-address" class="form-control" name="row[address]" type="text" value="{$row.address|htmlentities}">
  60. </div>
  61. </div>
  62. <!--<div class="form-group">
  63. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  64. <div class="col-xs-12 col-sm-8">
  65. <div class="radio">
  66. {foreach name="statusList" item="vo"}
  67. <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label>
  68. {/foreach}
  69. </div>
  70. </div>
  71. </div>-->
  72. <!--<div class="form-group">
  73. <label class="control-label col-xs-12 col-sm-2">{:__('Canceltime')}:</label>
  74. <div class="col-xs-12 col-sm-8">
  75. <input id="c-canceltime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[canceltime]" type="text" value="{:$row.canceltime?datetime($row.canceltime):''}">
  76. </div>
  77. </div>
  78. <div class="form-group">
  79. <label class="control-label col-xs-12 col-sm-2">{:__('Finishtime')}:</label>
  80. <div class="col-xs-12 col-sm-8">
  81. <input id="c-finishtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[finishtime]" type="text" value="{:$row.finishtime?datetime($row.finishtime):''}">
  82. </div>
  83. </div>
  84. <div class="form-group">
  85. <label class="control-label col-xs-12 col-sm-2">{:__('Baojia_confirmtime')}:</label>
  86. <div class="col-xs-12 col-sm-8">
  87. <input id="c-baojia_confirmtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[baojia_confirmtime]" type="text" value="{:$row.baojia_confirmtime?datetime($row.baojia_confirmtime):''}">
  88. </div>
  89. </div>-->
  90. <!--<div class="form-group">
  91. <label class="control-label col-xs-12 col-sm-2">{:__('Worker_id')}:</label>
  92. <div class="col-xs-12 col-sm-8">
  93. <input id="c-worker_id" data-rule="required" data-source="worker/index" data-field="truename" class="form-control selectpage" name="row[worker_id]" type="text" value="{$row.worker_id|htmlentities}">
  94. </div>
  95. </div>-->
  96. <!--<div class="form-group">
  97. <label class="control-label col-xs-12 col-sm-2">{:__('Cailiao_time')}:</label>
  98. <div class="col-xs-12 col-sm-8">
  99. <input id="c-cailiao_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[cailiao_time]" type="text" value="{:$row.cailiao_time?datetime($row.cailiao_time):''}">
  100. </div>
  101. </div>
  102. <div class="form-group">
  103. <label class="control-label col-xs-12 col-sm-2">{:__('Lingqu_time')}:</label>
  104. <div class="col-xs-12 col-sm-8">
  105. <input id="c-lingqu_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[lingqu_time]" type="text" value="{:$row.lingqu_time?datetime($row.lingqu_time):''}">
  106. </div>
  107. </div>-->
  108. <div class="form-group">
  109. <label class="control-label col-xs-12 col-sm-2">{:__('Lingqu_images')}:</label>
  110. <div class="col-xs-12 col-sm-8">
  111. <div class="input-group">
  112. <input id="c-lingqu_images" class="form-control" size="50" name="row[lingqu_images]" type="text" value="{$row.lingqu_images|htmlentities}">
  113. <div class="input-group-addon no-border no-padding">
  114. <span><button type="button" id="faupload-lingqu_images" class="btn btn-danger faupload" data-input-id="c-lingqu_images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-lingqu_images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  115. <span><button type="button" id="fachoose-lingqu_images" class="btn btn-primary fachoose" data-input-id="c-lingqu_images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  116. </div>
  117. <span class="msg-box n-right" for="c-lingqu_images"></span>
  118. </div>
  119. <ul class="row list-inline faupload-preview" id="p-lingqu_images"></ul>
  120. </div>
  121. </div>
  122. <!--<div class="form-group">
  123. <label class="control-label col-xs-12 col-sm-2">{:__('Shangmen_time')}:</label>
  124. <div class="col-xs-12 col-sm-8">
  125. <input id="c-shangmen_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[shangmen_time]" type="text" value="{:$row.shangmen_time?datetime($row.shangmen_time):''}">
  126. </div>
  127. </div>
  128. <div class="form-group">
  129. <label class="control-label col-xs-12 col-sm-2">{:__('Weixiu_times')}:</label>
  130. <div class="col-xs-12 col-sm-8">
  131. <input id="c-weixiu_times" class="form-control" name="row[weixiu_times]" type="number" value="{$row.weixiu_times|htmlentities}">
  132. </div>
  133. </div>
  134. <div class="form-group">
  135. <label class="control-label col-xs-12 col-sm-2">{:__('Weixiu_id')}:</label>
  136. <div class="col-xs-12 col-sm-8">
  137. <input id="c-weixiu_id" data-rule="required" data-source="weixiu/index" class="form-control selectpage" name="row[weixiu_id]" type="text" value="{$row.weixiu_id|htmlentities}">
  138. </div>
  139. </div>
  140. <div class="form-group">
  141. <label class="control-label col-xs-12 col-sm-2">{:__('Wancheng_time')}:</label>
  142. <div class="col-xs-12 col-sm-8">
  143. <input id="c-wancheng_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[wancheng_time]" type="text" value="{:$row.wancheng_time?datetime($row.wancheng_time):''}">
  144. </div>
  145. </div>-->
  146. <div class="form-group">
  147. <label class="control-label col-xs-12 col-sm-2">{:__('Eva_info')}:</label>
  148. <div class="col-xs-12 col-sm-8">
  149. <input id="c-eva_info" class="form-control" name="row[eva_info]" type="text" value="{$row.eva_info|htmlentities}">
  150. </div>
  151. </div>
  152. <div class="form-group">
  153. <label class="control-label col-xs-12 col-sm-2">{:__('Eva_time')}:</label>
  154. <div class="col-xs-12 col-sm-8">
  155. <input id="c-eva_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[eva_time]" type="text" value="{:$row.eva_time?datetime($row.eva_time):''}">
  156. </div>
  157. </div>
  158. <div class="form-group">
  159. <label class="control-label col-xs-12 col-sm-2">{:__('Eva_score')}:</label>
  160. <div class="col-xs-12 col-sm-8">
  161. <input id="c-eva_score" class="form-control" name="row[eva_score]" type="number" value="{$row.eva_score|htmlentities}">
  162. </div>
  163. </div>
  164. <div class="form-group layer-footer">
  165. <label class="control-label col-xs-12 col-sm-2"></label>
  166. <div class="col-xs-12 col-sm-8">
  167. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  168. </div>
  169. </div>
  170. </form>