|
|
|
ทำไมฟังก์ชันบางอันใช้ไม่ได้กับ IE 8 แต่ IE7 ใช้ได้ |
|
|
|
|
|
|
|
ฟังก์ชั่นไหนครับ
|
|
|
|
|
Date :
2011-02-05 11:13:48 |
By :
PlaKriM |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- เช็คค่าว่างใน text
- คำนวณ Auto
|
|
|
|
|
Date :
2011-02-05 11:22:59 |
By :
noomleeoud |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
นึกว่า javascript function เอาโค๊ดมาดูครับ
|
|
|
|
|
Date :
2011-02-05 11:26:15 |
By :
PlaKriM |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
เป็น javascript ครับ
Code (PHP)
<SCRIPT language="JavaScript">
function setFocus(form1){
form1.comment_by.focus();
}
function CheckValue(form1) {
if(form1.comment_by.value==""){
alert('Please Insert name');
return false;
}else if(form1.email.value=="") {
alert('Please Insert E-Mail้');
return false;
}else if(form1.comment_rate.value=="") {
alert('Please Insert comment rate้');
return false;
}else if(form1.comment_detail.value=="") {
alert('Please Insert comment้');
return false;
}else {
return true;
}
}
</SCRIPT>
|
|
|
|
|
Date :
2011-02-05 11:58:13 |
By :
noomleeoud |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
เอาฟอร์มมาดูด้วยครับ
|
|
|
|
|
Date :
2011-02-05 12:00:10 |
By :
PlaKriM |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Code (PHP)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>IT Comment Form</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<link href="../itcomment/lib/draw.css" rel="stylesheet" type="text/css" />
</head>
<body bgcolor=#EEF4FC>
<SCRIPT language="JavaScript">
function setFocus(form1){
form1.comment_by.focus();
}
function CheckValue(form1) {
if(form1.comment_by.value==""){
alert('Please Insert name');
return false;
}else if(form1.email.value=="") {
alert('Please Insert E-Mail้');
return false;
}else if(form1.comment_rate.value=="") {
alert('Please Insert comment rate้');
return false;
}else if(form1.comment_detail.value=="") {
alert('Please Insert comment้');
return false;
}else {
return true;
}
}
</SCRIPT>
<?
if($dept_id == SALE){
$dept1="Sale & MKT";
}else if($dept_id==F){
$dept1="F & B";
}else{
$dept1=$dept_id;
}
?>
<FORM onSubmit="return CheckValue(this)" , action="comment_input.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="dept_id" value="<? echo $dept_id; ?>">
<table width="800"border="0" cellspacing="0" cellpadding="0" align="center" bgcolor=#FFFFFF style="border:solid 1px teal">
<tr>
<td align="center">
<? include("../itcomment/lib/head.php");?>
</td>
</tr>
<tr>
<td><div align="left" class="drawtxthead"> <strong>IT COMMENT FORM
</strong></div>
<br>
<table width="700" border="0" align="center">
<tr align="center">
<td width="10%"><div align="right" class="drawtxt">ชื่อผู้ประเมิน</font></div></td>
<td width="2%"><div align="center">: </div></td>
<td width="42%"><div align="left">
<input type="text" name="comment_by" id="comment_by"size="30" maxlength="30" class="drawtxtbox">
</div></td>
<td width="20%"><div align="right" class="drawtxt">Comment No.</font></div></td>
<td width="3%"><div align="center">:</div></td>
<td width="23%"><div align="left" class="drawtxt"> <input type="hidden" name="comment_id" value="<? echo date("Ym").$comp_id.$dept_id;?>"> <? echo date("Ym").$comp_id.$dept_id;?></div></td>
</tr>
<tr>
<td><div align="right" class="drawtxt">สาขา</font></div></td>
<td><div align="center">: </div></td>
<td><input type="hidden" name="comp_id" value="<? echo $comp_id;?>" ><div align="left" class="drawtxt"><? echo $comp_id; ?></div></td>
<td><div align="right" class="drawtxt">วันที่</font></div></td>
<td><div align="center">:</div></td>
<td><div align="left" class="drawtxt"><input type="hidden" name="comment_date" value="<? echo date("Y-m-d");?>"><? echo date("d-m-Y");?></div></td>
</tr>
<tr>
<td><div align="right" class="drawtxt">แผนก</font></div></td>
<td><div align="center">:</div></td>
<td><div align="left" class="drawtxt"><? echo $dept1;?></div></td>
<td><div align="right" class="drawtxt">ผู้รับการประเมิน </div></td>
<td><div align="center">:</div></td>
<td><div align="left" class="drawtxt"> IT Corporate</div></td>
</tr>
<tr>
<td><div align="right" class="drawtxt">E-Mail</font></div></td>
<td><div align="center">:</div></td>
<td><input type="text" name="email" id="email"size="30" maxlength="30" class="drawtxtbox"></td>
<td><div align="right" class="drawtxt">สาขา</font></div></td>
<td><div align="center">:</div></td>
<td><div align="left" class="drawtxt">Corparate</div></td>
</tr>
</table>
<p><div align="left" class="drawtxthead"><strong>ระดับการให้บริการ</strong></div><br>
<table width="700" border="0" align="center">
<tr>
<td> <div class="drawtxtselect">
<input name="comment_rate"type="radio" value="5">
ดีมาก
<input name="comment_rate"type="radio" value="4">
ดี
<input name="comment_rate"type="radio" value="3" checked>
ปานกลาง
<input name="comment_rate"type="radio" value="2">
พอใช้
<input name="comment_rate"type="radio" value="1">
ต้องปรับปรุง </div></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td class="drawtxtselect"><b> Detail : </b></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td align="center"> <TEXTAREA NAME="comment_detail" COLS=100 ROWS=6 maxlength="250" ></TEXTAREA> </td>
</tr>
</table>
<div align="center"><input type="button" name"back" value="<< back" onClick="jascipt:history.go(-1)"> <input type="submit" name="submit" value="submit" > <input type="reset" name="reset" value="reset"></div>
</td>
</tr>
</table>
</form>
<br>
<br>
</body>
</html>
|
|
|
|
|
Date :
2011-02-05 12:19:03 |
By :
noomleeoud |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<FORM onSubmit="return CheckValue(this)" , action="comment_input.php" method="post" enctype="multipart/form-data">
|
|
|
|
|
Date :
2011-02-05 12:20:46 |
By :
PlaKriM |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ขอบคุณครับ
|
|
|
|
|
Date :
2011-02-05 12:23:38 |
By :
noomleeoud |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ได้ไหม
|
|
|
|
|
Date :
2011-02-05 12:34:57 |
By :
PlaKriM |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ได้แล้ว ขอคุณครับ
|
|
|
|
|
Date :
2011-02-05 15:04:06 |
By :
noomleeoud |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 04
|