本帖最后由 .個朲綉√ 于 2011-9-20 20:09 编辑
下面这网页中其中一段源码: <tr class="tr_out0" onClick="chooseRow(this)" onMouseOver="overRow(this)" onMouseOut="outRow(this)" onDblClick="popTr(this)">
<td class="data_desc">312935182</td>
<td class="data_desc">GSM普通<input type="hidden" name="mdn_to_subs.service_type" value="1001"></td>
<td class="data_desc">13838389438<input type="hidden" name="mdn_to_subs.service_num" value="13838389438"> </td>
<td class="data_desc" style="display:none" >江苏<input type="hidden" name="mdn_to_subs.region_id" value="A"></td>
<td class="data_desc" >313290961<input type="hidden" name="mdn_to_subs.subscription_id" value="313290961"></td>
<td class="data_desc" >300592589<input type="hidden" name="mdn_to_subs.customer_id" value="300592589"></td>
<td class="data_desc" align="center" >停机<input type="hidden" name="mdn_to_subs.service_status" value="2"></td>
<td class="data_desc" >2011-09-20<input type="hidden" name="mdn_to_subs.active_date" value="2011-09-20"></td> <td class="data_desc" >2037-01-01<input type="hidden" name="mdn_to_subs.inactive_date" value="2037-01-01"></td>
<td class="data_desc" align="center">
<input class=standardButton style="width:60px" type="button" name="btokok" value="选定" onClick="chooseBusitype(this)" service_type='1001'>
<input class=standardButton style="width:60px" type="button" name="btset" value="重填" onClick="window.parent.history.go(0)" >
<input type="hidden" name="mdn_to_subs.account_id" value="312935182">
<input type="hidden" name="region_id" value="A">
</td>
</tr>
<tr class="tr_out0" onClick="chooseRow(this)" onMouseOver="overRow(this)" onMouseOut="outRow(this)" onDblClick="popTr(this)">
<td class="data_desc">312935182</td>
<td class="data_desc">GSM普通<input type="hidden" name="mdn_to_subs.service_type" value="1001"></td>
<td class="data_desc">13838389438<input type="hidden" name="mdn_to_subs.service_num" value="13838389438"> </td>
<td class="data_desc" style="display:none" >江苏<input type="hidden" name="mdn_to_subs.region_id" value="A"></td>
<td class="data_desc" >313290961<input type="hidden" name="mdn_to_subs.subscription_id" value="313290961"></td>
<td class="data_desc" >300592589<input type="hidden" name="mdn_to_subs.customer_id" value="300592589"></td>
<td class="data_desc" align="center" >无效<input type="hidden" name="mdn_to_subs.service_status" value="0"></td>
<td class="data_desc" >2011-07-15<input type="hidden" name="mdn_to_subs.active_date" value="2011-07-15"></td> <td class="data_desc" >2011-09-20<input type="hidden" name="mdn_to_subs.inactive_date" value="2011-09-20"></td>
<td class="data_desc" align="center">
<input class=standardButton style="width:60px" type="button" name="btokok" value="选定" onClick="chooseBusitype(this)" service_type='1001'>
<input class=standardButton style="width:60px" type="button" name="btset" value="重填" onClick="window.parent.history.go(0)" >
<input type="hidden" name="mdn_to_subs.account_id" value="312935182">
<input type="hidden" name="region_id" value="A">
</td>
</tr>
<tr class="tr_out0" onClick="chooseRow(this)" onMouseOver="overRow(this)" onMouseOut="outRow(this)" onDblClick="popTr(this)">
<td class="data_desc">306014795</td>
<td class="data_desc">OCS<input type="hidden" name="mdn_to_subs.service_type" value="1050"></td>
<td class="data_desc">13838389438<input type="hidden" name="mdn_to_subs.service_num" value="13838389438"> </td>
<td class="data_desc" style="display:none" >江苏<input type="hidden" name="mdn_to_subs.region_id" value="A"></td>
<td class="data_desc" >306255222<input type="hidden" name="mdn_to_subs.subscription_id" value="306255222"></td>
<td class="data_desc" >0<input type="hidden" name="mdn_to_subs.customer_id" value="0"></td>
<td class="data_desc" align="center" >销户<input type="hidden" name="mdn_to_subs.service_status" value="4"></td>
<td class="data_desc" >2010-07-29<input type="hidden" name="mdn_to_subs.active_date" value="2010-07-29"></td> <td class="data_desc" >2011-04-30<input type="hidden" name="mdn_to_subs.inactive_date" value="2011-04-30"></td>
<td class="data_desc" align="center">
<input class=standardButton style="width:60px" type="button" name="btokok" value="选定" onClick="chooseBusitype(this)" service_type='1050'>
<input class=standardButton style="width:60px" type="button" name="btset" value="重填" onClick="window.parent.history.go(0)" >
<input type="hidden" name="mdn_to_subs.account_id" value="306014795">
<input type="hidden" name="region_id" value="A">
</td>
</tr>
</table>
上图中,有三个选项,停机,无效,销户,销户或无效,可能出现多次,而且选定的控件都是一个名字,Name也都是btokok
但是停机和开机是唯一的,(如下图)我需要选定开机或停要,如可选定呢?用IE.au3操作的,谢谢!!
怎么才能根据用户状态来判断提效哪一个呢?控件Name都是一样的。。。。小弟无才。。。特一请教!!!
|