  | 
              
	              
	                
  
    
	 
        รบกวนถามเรื่อง java script ใน PHP ด้วยครับ (ทำไมเอา jQuery สองตัวมาใช้ด้วยกันแล้วไม่ทำงาน)     | 
   
  
    |   | 
   
 
 
 
              
  
          
		
     
		
	  
        
             | 
            | 
            | 
             | 
         
        
             | 
                       | 
          
            
               
                 jQuery.noConflict() หาดูครับ มันชนกับหมูทู่!                        
               
               | 
             
            
              
			                              
                              
              
                
                     | 
                     | 
                     | 
                 
                
                     | 
                  
                      
                        | Date :
                            2011-11-30 16:50:43 | 
                        By :
                            ikikkok | 
                         
                    | 
                     | 
                 
                
                     | 
                     | 
                     | 
                 
                | 
             
           
			         | 
             | 
         
        
             | 
            | 
             | 
             | 
         
          
	    
     
               
		
     
		
	  
        
             | 
            | 
            | 
             | 
         
        
             | 
                       | 
          
            
               
                 s=Object.prototype.toString;o.extend({noConflict:function(E){l.$=p;if(E){l.jQuery=y}return o} 
 
 
ใช่ตัวนี้หรือเปล่าครับ ถ้าใช่ต้องแก้ประมาณใหนครับ                        
               
               | 
             
            
              
			                              
                              
              
                
                     | 
                     | 
                     | 
                 
                
                     | 
                  
                      
                        | Date :
                            2011-11-30 17:06:51 | 
                        By :
                            ziix | 
                         
                    | 
                     | 
                 
                
                     | 
                     | 
                     | 
                 
                | 
             
           
			         | 
             | 
         
        
             | 
            | 
             | 
             | 
         
          
	    
     
               
		
     
		
	     
	    
     
               
		
     
		
	  
        
             | 
            | 
            | 
             | 
         
        
             | 
                       | 
          
            
               
                 เป็น code ประมาณนี้ 
 
 
<? 
session_start(); 
unset($_SESSION[sess_userid]); 
unset($_SESSION[sess_user]); 
session_destroy(); 
?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<title>login</title> 
 
<link rel="stylesheet" type="text/css" href="css/smoothness/jquery-ui-1.7.2.custom.css"> 
<link rel="stylesheet" media="screen" href="styles/vlaCal-v2.1.css" type="text/css" /> 
               <script type="text/javascript" src="jslib/mootools-1.2-core.js"></script> 
	<script type="text/javascript" src="jslib/vlaCal-v2.1.js"></script> 
<script type="text/javascript" src="jslib/jquery-1.3.2.min.js"></script> 
<script type="text/javascript" src="jslib/jquery-ui-1.7.2.custom.min.js"></script> 
 
 
<style type="text/css"> 
body { 
		cursor: default; 
		text-align: left; 
		font-family: calibri, arial, sans-serif; 
		font-size: 13px; 
		margin: 0; 
		padding: 5px; 
	} 
	 
	table th { 
		vertical-align: top; 
	} 
 
	input { 
		text-align: center; 
		font-family: calibri, arial, sans-serif; 
		font-size: 13px; 
		background-color: white; 
		border: 1px solid; 
		border-color: #abadb3 #dbdfe6 #e3e9ef #e2e3ea; 
		padding: 2px; 
	} 
	input:focus, input:hover  { 
		border-color: #5794bf #b7d5ea #c7e2f1 #c5daed; 
	} 
 
	.pickerImg { 
		position: absolute; 
		margin-left: -16px; 
		margin-top: 5px; 
		cursor: pointer; 
	} 
	.infoBox { 
		background-color: #fefdec; 
		border: 1px solid #edebcd; 
		padding: 6px; 
		margin-bottom: 20px; 
	} 
</style> 
 
 
<script type='text/javascript'> 
 
window.addEvent('domready', function() {  
			new vlaDatePicker('exampleI'); 
			 
		});	 
 
function obj_center(obj){ 
	var windowWidth = document.documentElement.clientWidth; 
	var windowHeight = document.documentElement.clientHeight; 
	var popupHeight = $("#"+obj).height(); 
	var popupWidth = $("#"+obj).width(); 
	//centering 
	 
	$("#"+obj).css({ 
		"position": "absolute", 
		"top": windowHeight/2-popupHeight/2, 
		"left": windowWidth/2-popupWidth/2 
	}); 
} 
 
</script> 
</head> 
<center> 
 
<body onload="document.main_log.user_id.focus();"> 
<table width="100" border="0" id='div_show' > 
  <tr> 
    <td><table width="386" border="0" style ="font-family:Tahoma, Geneva, sans-serif; font-size:11px;border:3px #BEBEBE solid"> 
      <tr> 
        <td width="361" align="center" style ="font-family:Tahoma, Geneva, sans-serif; font-size:18px;"><p></p> 
            Stamp Time- transcosmos(Thailand) 
            <p style ="font-family:Tahoma, Geneva, sans-serif; font-size:11px;color: #FF6600"><strong>Authentication Required</strong></p></td> 
      </tr> 
      <tr> 
        <td width="361"><form name='main_log' action="inc/chk_login.php" method="post"> 
            <table width="301" border="0" style ="font-family:Tahoma, Geneva, sans-serif; font-size:12px;" align="center"> 
              <tr> 
                <td width="92" align="left"><strong>Shift On Date</strong> </td> 
                <td width="78" align="left" ><input id="exampleI" name="date" type="text" style="width: 80px;" maxlength="10" /> </td> 
                <td width="117"  align="left"><input name="text_datepicker" type="text"  id="text_datepicker"  style="width:50px " value="<? echo date('H:i:s'); ?>" maxlength="8" ReadOnly="true" /  ></td> 
              </tr> 
              <tr> 
                <td height="34" colspan="3" align="center"> </td> 
              </tr> 
              <tr> 
                <td colspan="3" align="center"><table width="214" border="1"> 
                    <tr> 
                      <td width="86"><div align="right"> 
                        <input type="submit" name="Submit" id="Submit" value="Login"  
        style="	color:white; /* สีของตัวอักษร */ 
  				border:1px solid navy; /* กรอบของปุ่ม */ 
  				background-color:#33FF00; /* สีพื้นของปุ่ม */ 
  				font:18pt Tahoma; /* แบบอักษร */ 
  				padding:3px; /* ช่องว่างระหว่างกรอบกับตัวอักษร */ 
				width:95px; 
				height:65px; 
   		"/> 
                      </div></td> 
					  <td width="20"></td> 
                      <td width="86"><div align="right"> 
                        <input type="submit" name="Submit2" id="Submit2" value="Logout "  
        style="	color:white; /* สีของตัวอักษร */ 
  				border:1px solid navy; /* กรอบของปุ่ม */ 
  				background-color:#ff6600; /* สีพื้นของปุ่ม */ 
  				font:18pt Tahoma; /* แบบอักษร */ 
  				padding:3px; /* ช่องว่างระหว่างกรอบกับตัวอักษร */ 
				width:95px; 
				height:65px; 
   		"/> 
                      </div></td> 
                    </tr> 
                  </table> 
                  <div align="center"></div></td> 
                </tr> 
              <tr> 
                <td colspan="3"></td> 
              </tr> 
            </table> 
            <div align="center"> 
              <p> </p> 
            </div> 
        </form></td> 
      </tr> 
      <tr> 
        <td></td> 
      </tr> 
    </table> 
    <div align="right" style="font-family:Tahoma, Geneva, sans-serif; font-size:11px"><span style="color: #BEBEBE">** This Application is support only IE (Internet Explorer) </span></div> 
    </td> 
  </tr> 
</table> 
</body> 
</center> 
</html>                        
               
               | 
             
            
              
			                              
                              
              
                
                     | 
                     | 
                     | 
                 
                
                     | 
                  
                      
                        | Date :
                            2011-11-30 18:08:33 | 
                        By :
                            ziix | 
                         
                    | 
                     | 
                 
                
                     | 
                     | 
                     | 
                 
                | 
             
           
			         | 
             | 
         
        
             | 
            | 
             | 
             | 
         
          
	    
     
      		  
	
     | 
   
 
                 |