add_tree_info.html 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. {// 引入标签库 }
  2. <tagLib name="html" />
  3. <include file="Public:header" />
  4. <script type="text/javascript" src="__TMPL__Common/js/calendar/calendar.php?lang=zh-cn" ></script>
  5. <load href='__TMPL__Common/js/calendar/calendar.css' />
  6. <load href='__TMPL__Common/js/calendar/calendar.js' />
  7. <style>
  8. .line {
  9. min-height: 20px;
  10. font-size: 13px;
  11. border-bottom: 1px solid silver;
  12. padding: 5px 0px;
  13. }
  14. .delete {
  15. cursor: pointer;
  16. padding: 0px 5px;
  17. text-decoration: underline;
  18. color: red;
  19. }
  20. </style>
  21. <div class="main">
  22. <div class="main_title">{%ADD} <a href="{:u("QkTree/tree_manage_list",array('order_id'=>$order_id))}" class="back_list">{%BACK_LIST}</a>
  23. </div>
  24. <div class="blank5"></div>
  25. <form id="tree_info_form" name="add" action="__APP__" method="post" enctype="multipart/form-data">
  26. <table class="form" cellpadding=0 cellspacing=0>
  27. <tr>
  28. <td colspan=2 class="topTd"><input type="hidden" name="order_id" value="{$order_id}"></td>
  29. </tr>
  30. <tr>
  31. <td class="item_title">树苗图片:</td>
  32. <td class="item_input">
  33. <html:imgUpload name="image" id="image" value="" /><span class="tip_span" id="tip_span">[图片规格为:345px*500px(宽*高)]</span>
  34. </td>
  35. </tr>
  36. <tr>
  37. <td class="item_title">拍摄时间:</td>
  38. <td class="item_input">
  39. <input type="text" class="textbox require" name="shoot_time" id="shoot_time" value="" onfocus="this.blur(); return showCalendar('shoot_time', '%Y-%m-%d %H:%M:%S', false, false, 'btn_begin_time');" />
  40. <input type="button" class="button" id="btn_shoot_time" value="{%SELECT_TIME}" onclick="return showCalendar('shoot_time', '%Y-%m-%d %H:%M:%S', false, false, 'btn_shoot_time');" />
  41. <input type="button" class="button" value="{%CLEAR_TIME}" onclick="$('#shoot_time').val('');" />
  42. </td>
  43. </tr>
  44. <tr>
  45. <td class="item_title"></td>
  46. <td class="item_input">
  47. <input type="hidden" id="a" name="a" value="insert_tree_info"/>
  48. <input type="hidden" id="m" name="m" value="QkTree"/>
  49. <input type="button" id="video_submit" class="button" value="{%ADD}" onclick="insert_tree_info();" />
  50. <input type="reset" class="button" value="{%RESET}" />
  51. </td>
  52. </tr>
  53. <tr>
  54. <td colspan=2 class="bottomTd"></td>
  55. </tr>
  56. </table>
  57. </form>
  58. </div>
  59. <script>
  60. function insert_tree_info(){
  61. var form_data = $("#tree_info_form").serialize();
  62. $.ajax({
  63. url:ROOT+"?"+VAR_MODULE+"="+MODULE_NAME+"&"+VAR_ACTION+"=insert_tree_info",
  64. data:form_data,
  65. dataType:"json",
  66. type:"post",
  67. success:function(result){
  68. if (result.status == '1') {
  69. alert(result.error);
  70. location.href = ROOT+"?"+VAR_MODULE+"="+MODULE_NAME+"&"+VAR_ACTION+"=tree_manage_list&order_id="+'{$order_id}';
  71. }else{
  72. alert(result.error);
  73. }
  74. }
  75. });
  76. }
  77. </script>
  78. <include file="Public:footer" />