$_SESSION[id]=$_GET["id"];
<html> <head> <link rel="stylesheet" type="text/css" href="CSS/calendar.css"/> <SCRIPT LANGUAGE="JavaScript" CHARSET="windows-874" SRC="Javascript/jscalendar.js"></SCRIPT> <meta http-equiv=Content-Type content="text/html; charset=utf-8"> <link rel="stylesheet" type="text/css" href="CSS/table.css" /> <link href="CSS/default.css" rel="stylesheet" type="text/css" /> <title>Add</title> <script language="JavaScript" type="text/JavaScript"> <!-- add multi record --> function MM_jumpMenu(targ,selObj,restore){ //v3.0 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); if (restore) selObj.selectedIndex=0; } </script> </head> <body> <?php $videoregi = "T"; $carlenda = '<img src="image/formcal.gif" width="16" height="16">'; include("ConnectDB/connectDB.php"); $strSQL = "SELECT MAX(autonumber) as lastid FROM type"; $objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]"); $Num_Rows = mysql_num_rows($objQuery); $objResult = mysql_fetch_array($objQuery); ?> <div id="wrapper"> <div id="header"> <h1>Miccell</h1> <h2>Storage & Content</h2> <ul> <li class="first"><a href="index.php">รายการ</a></li> <li><a href="frmsong.php">เสียง</a></li> <li><a href="frmvideo.php">ภาพ</a></li> <li><a href="frmtype.php">เพลง</a></li> </ul> </div> </div> <div id="middle"> <h2>เพิ่มรายการเพลง</h2> <div class="form" style="width:100%; text-align:center; float:left;"> <form action="addtype.php" name="frmAdd" method="post"> Select Line : <select name="menu1" onChange="MM_jumpMenu('parent',this,0)"> </div> <?php for($i=1;$i<=20;$i++) { if($_GET["Line"] == $i) { $sel = "selected"; } else { $sel = ""; } ?> <option value="<?=$_SERVER["PHP_SELF"];?>?Line=<?=$i;?>" <?=$sel;?>><?=$i;?></option> <?php } ?> </select> <div class="wrapper" style="width:100%; text-align:center; float:left; margin-top:10px; margin-left:8%;"> <div class="head" style="width:10%; float:left;">รหัส</div> <div class="head" style="width:10%; float:left;">=รหัสห้อง</div> <div class="head" style="width:20%; float:left;">ชื่อ</div> <div class="head" style="width:13%; float:left;">ประเภท</div> <div class="head" style="width:10%; float:left;">วันที่เอา</div> <div class="head" style="width:10%; float:left;">วันที่ส่ง</div> <div class="head" style="width:5%; float:left;">ฮาร์ดดิส</div> </div> <?php $line = $_GET["Line"]; if($line == 0){$line=1;} for($i=0;$i<$line;$i++) { $v_id = $videoregi.str_pad($objResult["lastid"]+1+$i,5,"0",STR_PAD_LEFT); ?> <div class="loop" style="width:100%; float:left; margin-left:8%;"> <div class="td" style="width:10%; float:left;"><input name="txtt_id<?=$i;?>" size="14" type="text" id="txtv_id" value="<?php echo $v_id;?>" readonly></div> <div class="td" style="width:10%; float:left;"><input name="txt_id<?=$i;?>" size="14" type="text" id="txtid" value="<?=$_GET["id"];?>" readonly></div> <div class="td" style="width:20%; float:left;"><input name="txt_name<?=$i;?>" size="34" type="text" id="txtname" value="<?=$_GET["name"];?>" readonly></div> <div class="td" style="width:13%; height:26; float:left;"><select name="txts_type<?=$i;?>">div> <div class="td" style="width:10%; float:left;"><input type="text" name="txtt_accept<?=$i;?>" size="11"><a href="javascript:displayDatePicker('txtt_accept<?=$i;?>')"><?=$carlenda?></a></div> <div class="td" style="width:10%; float:left;"><input type="text" name="txtt_send<?=$i;?>" size="11"><a href="javascript:displayDatePicker('txtt_send<?=$i;?>')"><?=$carlenda?></a></div> <div class="td" style="width:5%; float:left;"><input type="text" name="txtv_hdd<?=$i;?>" size="4"></div> </div> <?php } mysql_close($objConnect); ?> </div> <input name="submit" type="submit" class="styled-button-3 value=" id="submit" value="SAVE" style="margin-top:20px;"> <input type="button" class="styled-button-3" onClick="window.history.back()" value="Cancel"> <input type="hidden" name="hdnLine" value="<?=$i;?>"> </form> <body> <html>
<a href="frmaddtype.php?s_id=<?=$objResult["s_id"];?>&s_name=<?=$objResult["s_name"];?>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง