| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- {// 引入标签库 }
- <tagLib name="html" />
- <include file="Public:header" />
- <script type="text/javascript" src="__TMPL__Common/js/calendar/calendar.php?lang=zh-cn" ></script>
- <load href='__TMPL__Common/js/calendar/calendar.css' />
- <load href='__TMPL__Common/js/calendar/calendar.js' />
- <style>
- .line {
- min-height: 20px;
- font-size: 13px;
- border-bottom: 1px solid silver;
- padding: 5px 0px;
- }
- .delete {
- cursor: pointer;
- padding: 0px 5px;
- text-decoration: underline;
- color: red;
- }
- </style>
- <div class="main">
- <div class="main_title">{%EDIT} <a href="{:u("QkTree/tree_manage_list",array('order_id'=>$tree_info[order_id]))}" class="back_list">{%BACK_LIST}</a>
- </div>
- <div class="blank5"></div>
- <form id="tree_info_form" name="edit" action="__APP__" method="post" enctype="multipart/form-data">
- <table class="form" cellpadding=0 cellspacing=0>
- <tr>
- <td colspan=2 class="topTd">
- <input type="hidden" name="order_id" value="{$tree_info.order_id}">
- <input type="hidden" name="id" value="{$tree_info.id}">
- </td>
- </tr>
- <tr>
- <td class="item_title">树苗图片:</td>
- <td class="item_input">
- <html:imgUpload name="image" id="image" value="$tree_info.image" /><span class="tip_span" id="tip_span">[图片规格为:345px*500px(宽*高)]</span>
- </td>
- </tr>
- <tr>
- <td class="item_title">拍摄时间:</td>
- <td class="item_input">
- <input type="text" class="textbox require" name="shoot_time" id="shoot_time" value="{$tree_info.shoot_time}" onfocus="this.blur(); return showCalendar('shoot_time', '%Y-%m-%d %H:%M:%S', false, false, 'btn_begin_time');" />
- <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');" />
- <input type="button" class="button" value="{%CLEAR_TIME}" onclick="$('#shoot_time').val('');" />
- </td>
- </tr>
- <tr>
- <td class="item_title"></td>
- <td class="item_input">
- <input type="hidden" id="a" name="a" value="update_tree_info"/>
- <input type="hidden" id="m" name="m" value="QkTree"/>
- <input type="button" id="video_submit" class="button" value="{%EDIT}" onclick="update_tree_info();" />
- <input type="reset" class="button" value="{%RESET}" />
- </td>
- </tr>
- <tr>
- <td colspan=2 class="bottomTd"></td>
- </tr>
- </table>
- </form>
- </div>
- <script>
- function update_tree_info(){
- var form_data = $("#tree_info_form").serialize();
- $.ajax({
- url:ROOT+"?"+VAR_MODULE+"="+MODULE_NAME+"&"+VAR_ACTION+"=update_tree_info",
- data:form_data,
- dataType:"json",
- type:"post",
- success:function(result){
- if (result.status == '1') {
- alert(result.error);
- location.href = ROOT+"?"+VAR_MODULE+"="+MODULE_NAME+"&"+VAR_ACTION+"=tree_manage_list&order_id="+'{$tree_info.order_id}';
- }else{
- alert(result.error);
- }
- }
- });
- }
- </script>
- <include file="Public:footer" />
|