add.html 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <extend name="Public:base" />
  2. <block name="content">
  3. <div class="page-header">
  4. <h1>
  5. 新增超值大牌活动
  6. <small>
  7. <i class="icon-double-angle-right"></i>
  8. {$crumbs}
  9. </small>
  10. </h1>
  11. </div>
  12. <div class="row">
  13. <div class="col-xs-12">
  14. <form class="form-horizontal" id="validation-form" method="post" action='{:U("SuperSpike/add")}'>
  15. <div class="form-group required">
  16. <label class="col-sm-2 control-label">超值大牌活动名称:</label>
  17. <div class="col-sm-10">
  18. <input class="form-control" type="text" placeholder="" name="name" value="" />
  19. </div>
  20. </div>
  21. <div class="form-group required">
  22. <label class="col-sm-2 control-label">开始时间:</label>
  23. <div class="col-sm-10">
  24. <input class="form-control" type="text" id="begin_time" placeholder="开始时间" name="begin_time" value="" />
  25. </div>
  26. </div>
  27. <div class="form-group required">
  28. <label class="col-sm-2 control-label">结束时间:</label>
  29. <div class="col-sm-10">
  30. <input class="form-control" type="text" id="end_time" placeholder="结束时间" name="end_time" value="" />
  31. </div>
  32. </div>
  33. <div class="form-group">
  34. <label class="col-sm-1 control-label no-padding-left"> </label>
  35. <div class="col-sm-11">
  36. <input name="send" type="submit" value="提交" class="btn btn-primary" />
  37. </div>
  38. </div>
  39. </form>
  40. </div>
  41. </div>
  42. </block>
  43. <block name="javascript">
  44. <script src="__PUBLIC__/js/moment/moment.js"></script>
  45. <script src="__PUBLIC__/js/moment/locale/zh-cn.js"></script>
  46. <script src="__PUBLIC__/js/eonasdan-bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js"></script>
  47. <link rel="stylesheet" href="__PUBLIC__/js/bootstrap-timepicker/css/bootstrap-timepicker.css" />
  48. <script>
  49. $(function(){
  50. $('#begin_time').datetimepicker({
  51. format: 'YYYY/MM/DD H:mm:ss',//use this option to display seconds
  52. icons: {
  53. time: 'btn btn-lg icon-time',
  54. date: 'btn btn-lg icon-calendar',
  55. up: 'fa icon-chevron-up',
  56. down: 'fa icon-chevron-down',
  57. previous: 'fa icon-chevron-left',
  58. next: 'fa icon-chevron-right',
  59. today: 'fa icon-arrows ',
  60. clear: 'fa icon-trash',
  61. close: 'fa icon-times'
  62. }
  63. }).next().on(ace.click_event, function(){
  64. $(this).prev().focus();
  65. });
  66. $('#end_time').datetimepicker({
  67. format: 'YYYY/MM/DD H:mm:ss',//use this option to display seconds
  68. icons: {
  69. time: 'btn btn-lg icon-time',
  70. date: 'btn btn-lg icon-calendar',
  71. up: 'fa icon-chevron-up',
  72. down: 'fa icon-chevron-down',
  73. previous: 'fa icon-chevron-left',
  74. next: 'fa icon-chevron-right',
  75. today: 'fa icon-arrows ',
  76. clear: 'fa icon-trash',
  77. close: 'fa icon-times'
  78. }
  79. }).next().on(ace.click_event, function(){
  80. $(this).prev().focus();
  81. });
  82. })
  83. </script>
  84. </block>