<tr>
<td>
<input type="checkbox" name="chk[]" value="{_LIST_ID}">
</td>
<td>{_LIST_ORDER}</td>
<td>{_LIST_DATE}</td>
{_LIST_ISSHOW} {_LIST_ISCATA}
<td>{_LIST_ISOK}</td>
<td>{_LIST_OD_IN_1}</td>
<td>{_LIST_OD_IN_3}</td>
<td>{_LIST_OD_IN_2}</td>
<td>{_LIST_OD_IN_4}</td>
<td>{_LIST_OD_IN_5}</td>
<td>{_LIST_OD_IN_6}</td>
<td>{mony_a}</td> <!--主要問題抓不到資料-->
<td>{_LIST_TITLE}</td>
<td>{_LIST_NAME}</td>
{_LIST_ISSORT} {_LIST_ISCOPY} {_LIST_ISCALENDAR} {_LIST_ISSIGNUP}{_LIST_ISEDIT} {_LIST_ISDEL}
</tr>
上面有一個 td mony_a 這個資料抓不到資料,但在資料庫名稱沒錯。
下方是輸入的頁面的資料
<!-- START BLOCK : _BLK_MAIN_BODY -->
<form name='myform' id='myform' ENCTYPE=multipart/form-data METHOD=POST>
<div id="content" class="clearfix tabs">
<ul class="tabs-ul">
<li class="selected"><a href="#tabs-basic">{_BODY_TITLE}</a></li>
{_HTML_TABS}
</ul>
<div class="box clearfix" id="tabs-basic">
<h3></h3>
<div id="view_edit">
<table>
<!-- START BLOCK : _BLK_LIST_STATIC -->
{_FOBJ_SELECT_CATA} {_FOBJ_SELECT_CATA_EXT} {_FOBJ_SELECT_CATA_EXT2} {_FOBJ_SELECT_CATA_EXT3} {_FOBJ_SELECT_CATA_EXT4}
<!-- END BLOCK : _BLK_LIST_STATIC -->
<!-- START BLOCK : _BLK_ITEM_LIST -->
<tr>
<th width="160">{_LIST_LANG} : </th>
<td>{_LIST_HTML}</td>
</tr>
<!-- END BLOCK : _BLK_ITEM_LIST -->
<tr>
<td colspan="2">
<div class="function below">
<!-- START BLOCK : _BLK_READ_ONLY -->
<input type="submit" value="{_LANG_OK}">
<!-- END BLOCK : _BLK_READ_ONLY -->
<input type="button" value="{_LANG_ACC_PREVPAGE}" onclick="history.go(-1);">
</div>
</td>
</tr>
</table>
</div>
</div>
<!-- START BLOCK : _BLK_HEADER -->
<div class="box clearfix" id="tabs-header">
<h3></h3>
<div class="function"> <a class="btn chgheader" go_url="{_FOBJ_CHGHEADER}" id_title="{_FOBJ_ID_TITLE}"><span class="ico edit-ico"></span>{_LANG_HEADER_BTN}</a> </div>
<div id="view_edit">
<table>
<tr>
<th width="160">{_LANG_HEADER_TITLE} : </th>
<td>{_FOBJ_META_TITLE}</td>
</tr>
<tr>
<th width="160">{_LANG_HEADER_KW} : </th>
<td>{_FOBJ_META_KW}</td>
</tr>
<tr>
<th width="160">{_LANG_HEADER_DESC} : </th>
<td>{_FOBJ_META_DESC}</td>
</tr>
<tr>
<td colspan="2">
<div class="function below">
<input type="submit" value="{_LANG_OK}">
</div>
</td>
</tr>
</table>
</div>
</div>
<!-- END BLOCK : _BLK_HEADER -->
</div>
</form>
<!-- END BLOCK : _BLK_MAIN_BODY -->
<!-- START BLOCK : _BLK_EXTJS -->
{_EXTJS_BODY}
<!-- END BLOCK : _BLK_EXTJS -->
<script>
$("#std_mony_a,#std_mony_b,#std_mony_c").keyup(function(){
var $mony_a=parseInt($("#std_mony_a").val());
var $mony_b=parseInt($("#std_mony_b").val());
if(!$mony_a) $mony_a=0;
if(!$mony_b) $mony_b=0;
$("#std_mony_c").val( $mony_a - $mony_b );
});
$('#std_title').change(function(){
$.ajax({
type: 'post',
dataType: 'json',
url: 'index.php?opfunc=getod',
data: { id: $(this).val() },
success: function(data) {
$("#std_od_4").val(data.std_style_a_18);
$("#std_od_54").val(data.std_style_a_2);
$("#std_od_60").val(data.std_style_a_17);
$("#std_od_10").val(data.std_style_a_16);
$("#std_od_18").val(data.std_style_a_35);
$("#std_od_24").val(data.std_style_a_1);
$("#std_od_6").val(data.std_style_c_16);
$("#std_od_56").val(data.std_style_c_2);
$("#std_od_62").val(data.std_style_c_15);
$("#std_od_12").val(data.std_style_c_14);
$("#std_od_20").val(data.std_style_c_13);
$("#std_od_26").val(data.std_style_c_1);
//客戶姓名
var is_find="";
$("#mem_id option").filter(function() {
if(this.text == data.std_name){
is_find="1";
return true;
}
}).attr('selected', true);
if(is_find==""){
$('#mem_id').prop('selectedIndex',0);
}
//服務人員
var std_od_3="";
if(data.std_style_a_15){
std_od_3=data.std_style_a_15;
}else if(data.std_style_b_15){
std_od_3=data.std_style_b_15;
}else if(data.std_style_c_12){
std_od_3=data.std_style_c_12;
}else if(data.std_style_d_9){
std_od_3=data.std_style_d_9;
}else if(data.std_style_e_10){
std_od_3=data.std_style_e_10;
}else if(data.std_style_f_15){
std_od_3=data.std_style_f_15;
}
$("#std_od_3").val(std_od_3);
}
});
});
</script>