add.html 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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">{:__('Training_id')}:</label>
  14. <div class="col-xs-12 col-sm-8">
  15. <input id="c-training_id" data-rule="required" data-source="training/index" class="form-control selectpage" name="row[training_id]" type="text" value="">
  16. </div>
  17. </div>
  18. <div class="form-group">
  19. <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
  20. <div class="col-xs-12 col-sm-8">
  21. <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text">
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label class="control-label col-xs-12 col-sm-2">{:__('Phone')}:</label>
  26. <div class="col-xs-12 col-sm-8">
  27. <input id="c-Phone" data-rule="required" class="form-control" name="row[Phone]" type="text">
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. <label class="control-label col-xs-12 col-sm-2">{:__('Num')}:</label>
  32. <div class="col-xs-12 col-sm-8">
  33. <input id="c-num" data-rule="required" class="form-control" name="row[num]" type="number" value="0">
  34. </div>
  35. </div>
  36. <div class="form-group">
  37. <label class="control-label col-xs-12 col-sm-2">{:__('Turn_up')}:</label>
  38. <div class="col-xs-12 col-sm-8">
  39. <input id="c-turn_up" class="form-control" name="row[turn_up]" type="text" value="0">
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  44. <div class="col-xs-12 col-sm-8">
  45. <div class="radio">
  46. {foreach name="statusList" item="vo"}
  47. <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>
  48. {/foreach}
  49. </div>
  50. </div>
  51. </div>
  52. <div class="form-group">
  53. <label class="control-label col-xs-12 col-sm-2">{:__('Sn')}:</label>
  54. <div class="col-xs-12 col-sm-8">
  55. <input id="c-SN" data-rule="required" class="form-control" name="row[SN]" type="text">
  56. </div>
  57. </div>
  58. <div class="form-group">
  59. <label class="control-label col-xs-12 col-sm-2">{:__('Sendtime')}:</label>
  60. <div class="col-xs-12 col-sm-8">
  61. <input id="c-sendtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[sendtime]" type="text" value="{:date('Y-m-d H:i:s')}">
  62. </div>
  63. </div>
  64. <div class="form-group layer-footer">
  65. <label class="control-label col-xs-12 col-sm-2"></label>
  66. <div class="col-xs-12 col-sm-8">
  67. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  68. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  69. </div>
  70. </div>
  71. </form>