//**** List (Start) ***// function ListList(SelectValue) { frmMain.ddlList.length = 0 //*** Insert null Default Value ***// var myOption = new Option('','') frmMain.ddlList.options[frmMain.ddlList.length]= myOption <? $intRows = 0; $strSQL = "SELECT * FROM List_RE ORDER BY LIST_ID ASC "; $objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]"); $intRows = 0; while($objResult = mysql_fetch_array($objQuery)) { $intRows++; ?> x = <?=$intRows;?>; mySubList = new Array(); strGroup = <?=$objResult["ID_TYPE"];?>; strValue = "<?=$objResult["LIST_ID"];?>"; strItem = "<?=$objResult["LIST_NAME"];?>"; mySubList[x,0] = strItem; mySubList[x,1] = strGroup; mySubList[x,2] = strValue; if (mySubList[x,1] == SelectValue){ var myOption = new Option(mySubList[x,0], mySubList[x,2]) frmMain.ddlList.options[frmMain.ddlList.length]= myOption } <? } ?> } //**** List (End) ***//
function CreateNewRow() { var intLine = parseInt(document.frmMain.hdnMaxLine.value); intLine++; var theTable = document.getElementById("tbExp"); var newRow = theTable.insertRow(theTable.rows.length) newRow.id = newRow.uniqueID var newCell //*** Column 1 ***// newCell = newRow.insertCell(0); newCell.id = newCell.uniqueID; newCell.setAttribute("className", "css-name"); newCell.innerHTML ="<center><SELECT NAME=\"ddlGeo"+intLine+"\" ID=\"ddlGeo"+intLine+"\"onChange = \"ListList(this.value)"+intLine+"\"></SELECT></center>"; CreateSelectOptiontype("ddlGeo"+intLine) //*** Column 2 ***// newCell = newRow.insertCell(1); newCell.id = newCell.uniqueID; newCell.setAttribute("className", "css-name"); newCell.innerHTML = "<center><SELECT NAME=\"ddlList"+intLine+"\" ID=\"ddlList"+intLine+"\"onChange = \"wagePrice(this.value)"+intLine+"\"></SELECT></center>"; CreateSelectOptionList("ddlList"+intLine)
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง