001.
<html>
002.
<head>
003.
<meta http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
004.
<title></title>
005.
<?php
$objConnect
= mysql_connect(
"localhost"
,
"root"
,
"12345"
)
or
die
(
"Error Connect to Database"
);
006.
$objDB
= mysql_select_db(
"ServiceRequestDB"
);
007.
?>
008.
</head>
009.
<body>
010.
011.
<p> </p>
012.
<div id=
"printable"
>
013.
<Center>
014.
<p><font color=
"#000000"
><b>
015.
</b></font></p>
016.
<form action=
"phpMySQLAddSave.php"
name=
"frmAdd"
method=
"post"
>
017.
018.
<table width=
"1056"
height=
"84"
border=
"1"
align=
"center"
cellpadding=
"0"
cellspacing=
"0"
>
019.
<font face=
"MS Sans Serif"
>
020.
<b>วันที่ : </b></font>
021.
<input name=
"date"
size=
"20"
/>
022.
</p></td>
023.
</tr>
024.
</table>
025.
<table width=
"1056"
height=
"133"
border=
"1"
align=
"center"
cellpadding=
"0"
cellspacing=
"0"
>
026.
<tr>
027.
<td height=
"131"
colspan=
"6"
><p>
028.
<label
for
=
"textfield2"
> ข้าพเจ้าชื่อ</label>
029.
<input type=
"text"
name=
"FName"
id=
"txtFName"
size=
"15"
style=
"font: 18pt AngsanaUPC"
/>
030.
<label
for
=
"txt3"
>นามสกุล</label>
031.
<label
for
=
"textfield8"
></label>
032.
<input type=
"text"
name=
"LName"
id=
"txtLName"
size=
"15"
style=
"font: 18pt AngsanaUPC"
/>
033.
<label
for
=
"textfield8"
>รหัส</label>
034.
<input type=
"text"
name=
"UserID"
id=
"txtUserID"
size=
"15"
style=
"font: 18pt AngsanaUPC"
/>
035.
<label
for
=
"department2"
>ฝ่าย </label>
036.
<select name=
"Department"
id=
"txtDepartment"
style=
"font: 18pt AngsanaUPC"
>
037.
<option value=
""
></option>
038.
<?php
039.
$strSQL1
=
"SELECT * FROM Department"
;
040.
$objQuery1
= mysql_query(
$strSQL1
)
or
die
(
"Error Query ["
.
$strSQL1
.
"]"
);
041.
while
(
$objResult1
= mysql_fetch_array(
$objQuery1
))
042.
{
043.
?>
044.
<option value=
"<?=$objResult1["
Department
"];?>"
><?=
$objResult1
[
"Department"
];?></option>
045.
<?php
046.
}
047.
?>
048.
</select>
049.
<label
for
=
"division2"
>แผนก</label>
050.
<select name=
"Division"
id=
"txtDivision"
style=
"font: 18pt AngsanaUPC"
>
051.
<option value=
""
></option>
052.
<?php
053.
$strSQL2
=
"SELECT * FROM Division"
;
054.
$objQuery2
= mysql_query(
$strSQL2
)
or
die
(
"Error Query ["
.
$strSQL2
.
"]"
);
055.
while
(
$objResult2
= mysql_fetch_array(
$objQuery2
))
056.
{
057.
?>
058.
<option value=
"<?=$objResult2["
Division
"];?>"
><?=
$objResult2
[
"Division"
];?></option>
059.
<?php
060.
}
061.
?>
062.
</select>
063.
</p>
064.
<p> มีความประสงค์จะขอรับบริการจากแผนกคอมพิวเตอร์ ดังนี้ <br />
065.
</p></td>
066.
</tr>
067.
</table>
068.
<table width=
"1056"
height=
"215"
border=
"1"
align=
"center"
cellpadding=
"0"
cellspacing=
"0"
>
069.
<tr>
070.
<td width=
"210"
height=
"213"
align=
"center"
> อุปกรณ์คอมพิวเตอร์</td>
071.
<td width=
"829"
><p>
072.
<label
for
=
"select4"
> คำขอ </label>
073.
074.
<select name=
"Request"
id=
"select4"
style=
"font: 18pt AngsanaUPC"
>
075.
<option value=
""
selected=
"selected"
></option>
076.
<option value =
"ขอใหม่/เพิ่มเติม"
>ขอใหม่/เพิ่มเติม</option>
077.
<option value =
"ขออัพเกรด/เปลี่ยน"
>ขออัพเกรด/เปลี่ยน</option>
078.
<option value =
"ชำรุด/ตรวจเช็ค"
>ชำรุด/ตรวจเช็ค</option>
079.
<option value =
"ขอส่งคืน/ยกเลิก"
>ขอส่งคืน/ยกเลิก </option>
080.
</select>
081.
082.
<label
for
=
"textfield21"
>อุปกรณ์</label>
083.
084.
<label
for
=
"checkbox11"
> </label>
085.
<label
for
=
"checkbox12"
>
086.
<input type=
"text"
name=
"Hardware"
size=
"18"
style=
"font: 18pt AngsanaUPC"
/>
087.
</label>
088.
<label
for
=
"textfield22"
> ยี่ห้อ</label>
089.
090.
<input name=
"Product"
type=
"text"
id=
"cb08"
size=
"18"
style=
"font: 18pt AngsanaUPC"
/>
091.
<br /></p>
092.
<p>
093.
<label
for
=
"textfield24"
> รุ่น</label>
094.
095.
<input type=
"text"
name=
"Gen"
size=
"18"
style=
"font: 18pt AngsanaUPC"
/>
096.
097.
<label
for
=
"textfield25"
>หมายเลข</label>
098.
099.
<input type=
"text"
name=
"SerialNumber"
size=
"18"
style=
"font: 18pt AngsanaUPC"
/>
100.
101.
<label
for
=
"txt6"
>รหัสทรัพย์สิน </label>
102.
103.
<input type=
"text"
name=
"AssetCode"
size=
"18"
style=
"font: 18pt AngsanaUPC"
/>
104.
</p>
105.
<p>
106.
<label
for
=
"Spec"
> สเปคเครื่อง </label>
107.
<input type=
"text"
name=
"Spec"
id=
"Spec"
size=
"100"
style=
"font: 18pt AngsanaUPC"
/>
108.
</p></td>
109.
</tr>
110.
</table>
111.
<table width=
"1056"
height=
"292"
border=
"1"
align=
"center"
cellpadding=
"0"
cellspacing=
"0"
>
112.
<tr>
113.
<td width=
"210"
height=
"290"
align=
"center"
>โปรแกรมคอมพิวเตอร์</td>
114.
<td width=
"829"
><p>
115.
<label>
116.
<input name=
"OS"
type=
"checkbox"
id=
"OperatingSystemVersion"
value=
"OperatingSystemVersion"
/>
117.
Operating System </label>
118.
<select name=
"OS"
id=
"OperatingSystemVersion"
>
119.
<option selected=
"selected"
> </option>
120.
<option value=
"Windows 7"
>Windows 7</option>
121.
<option value=
"Windows 8"
>Windows 8</option>
122.
<option value=
"Windows 10"
>Windows 10</option>
123.
</select>
124.
<br />
125.
<label>
126.
<input type=
"checkbox"
name=
"MSofficever"
value=
"Microsoft Office Version"
id=
"Program_1"
/>
127.
Microsoft Office Version</label>
128.
<select name=
"MSofficever"
id=
"Program_1"
value=
"MSoffice"
>
129.
<option selected=
"selected"
> </option>
130.
<option value=
"Microsoft Office Version 2007"
>Microsoft Office Version 2007</option>
131.
<option value=
"Microsoft Office Version 2010"
>Microsoft Office Version 2010</option>
132.
<option value=
"Microsoft Office Version 2013"
>Microsoft Office Version 2013</option>
133.
<option value=
"Microsoft Office Version 2016"
>Microsoft Office Version 2016</option>
134.
</select>
135.
<br />
136.
<label>
137.
<input type=
"checkbox"
name=
"Program[]"
value=
"ACDSee"
id=
"program_2"
/>
138.
ACDSee</label>
139.
<br />
140.
<label>
141.
<input type=
"checkbox"
name=
"Program[]"
value=
"Acrobat Reader"
id=
"program_3"
/>
142.
Acrobat Reader</label>
143.
<br />
144.
<label>
145.
<input type=
"checkbox"
name=
"Program[]"
value=
"Dictionary"
id=
"program_4"
/>
146.
Dictionary</label>
147.
<br />
148.
<label>
149.
<input type=
"checkbox"
name=
"Program[]"
value=
"Nero"
id=
"program_5"
/>
150.
Nero</label>
151.
<br />
152.
<label>
153.
<input type=
"checkbox"
name=
"Program[]"
value=
"Chrome"
id=
"program_6"
/>
154.
Chrome</label>
155.
<br />
156.
<label>
157.
<input type=
"checkbox"
name=
"Program[]"
value=
"Firefox"
id=
"program_7"
/>
158.
Firefox</label>
159.
<br />
160.
<label>
161.
<input type=
"checkbox"
name=
"Program[]"
value=
"WinRAR"
id=
"Program_8"
/>
162.
WinRAR</label>
163.
<br />
164.
<label>
165.
<input type=
"checkbox"
name=
"other"
id=
"Program_9"
/>
166.
Other</label>
167.
<input type=
"text"
name=
"Program[]"
id=
"program_9"
size=
"100"
/>
168.
<align=
"center"
>
169.
<input type=
"submit"
value=
"Save!"
size=
"200"
/>
170.
<font color=
"#000000"
><b>
171.
<input name=
"btn1"
type=
"submit"
value=
"PRINT"
style=
"width:65px;"
onclick=
"window.print();"
/>
172.
</b></font></p>
173.
<input type=
"hidden"
name=
"MM_insert"
value=
"form2"
/>
174.
</form>
175.
</body>
176.
</html>