 |
|
บังเอิญข้อมูลเป็น array แบบให้เลือก checkbox เพื่อไปทำงานอีกหน้าหนึ่ง เพื่อทำรายงาน
<td align =center height = '6' ><font color="#990000" size="1" face=" tahoma, ms sans serif, sans-serif"><input type ="checkbox" name= "Check_id[]" value=<?= $bscgrqt_id;?> checked ></td>
โดยเลือกว่าจะเอาข้อหนึ่งข้อใด ใน list ไปทำรายงาน ไม่ได้เอาทั้งหมด
โดยผ่านคำสั่งดังนี้
<INPUT TYPE="button" name = "SelDevelope" value =" Preview " OnClick = "Shwreport()" >
jv มันไม่ work ครับ ต้องเขียนอย่างไรดี เรียนปรึกษา
<script language="javascript">
function Shwreport()
{
var ck
ck = document.checkFm_config.Check_id[].value ; <---- ตรงนี้ครับ ผมไม่รู้ว่าจะทำอย่างไร ไม่work
wlDp = window.open( '', "displayWindowConf2", 'toolbar=yes,location=top,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes, copyhistory=yes,fullscreen =yes' ) ;
// displayWindowConf.moveTo(0,0);
wlDp.focus() ;
wlDp.location.href("../../../Administration/Function_bsc/Insert_bsc_SAR.php?RevConf_SAR="+1+"&Check="+ck) ;
}
</script>
Tag : - - - -
|
|
 |
 |
 |
 |
Date :
18 มิ.ย. 2550 10:34:11 |
By :
บอยมือใหม่ |
View :
1585 |
Reply :
5 |
|
 |
 |
 |
 |
|
|
|
 |