| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/comservices/backend/Scripts/ |
Upload File : |
window.onload = function() {
var scan_input = document.getElementById('std_id');
scan_input.focus();
var progressIndicator = '<img src="image/34.gif" /> <br />loading...';
$("usesin").innerHTML=progressIndicator;
setTimeout("listNews()");
}
function listNews() {
var url = "show_usesin.php";
new Ajax.Request( url,
{ method: "GET",
onComplete: detail
}
);
}
function detail(news) {
$("usesin").innerHTML = news.responseText;
}
/*menu history*/
function history(tdata) {
var progressIndicator = '<img src="images/loading.gif" /><br /> loading...';
$("contenthere").innerHTML=progressIndicator;
setTimeout(function(){
var url = tdata;
new Ajax.Request( url,
{ method: "GET",
onComplete: detail
}
);
},1000);
}
/*advisor*/
function history1(tdata) {
var progressIndicator = '<img src="image/34.gif" /> กำลังโหลดข้อมูล...';
$("content_ad").innerHTML=progressIndicator;
setTimeout(function(){
var url = tdata;
new Ajax.Request( url,
{ method: "GET",
onComplete: detail1
}
);
},1000);
}
function detail1(news) {
$("content_ad").innerHTML = news.responseText;
}
function openWithoutNavigation(url){
var URL = url;
var name= "registration";
var width = 700;
var height = 550;
window.open(
URL,
name,
'toolbar=0, menubar=0, location=0, scrollbars=0, resizable=0, directories=0, status=0'+ (width?',width='+width:'')+
(height?',height='+height:''),
true
);
}
function openWithoutNavigation1(url){
var URL = url;
var name= "registration";
var width = 780;
var height = 550;
window.open(
URL,
name,
'toolbar=0, menubar=0, location=0, scrollbars=0, resizable=0, directories=0, status=0'+ (width?',width='+width:'')+
(height?',height='+height:''),
true
);
}
function openWithoutNavigation2(url){
var URL = url;
var name= "registration";
var width = 350;
var height = 250;
window.open(
URL,
name,
'toolbar=0, menubar=0, location=0, scrollbars=0, resizable=0, directories=0, status=0'+ (width?',width='+width:'')+
(height?',height='+height:''),
true
);
}
function openWithoutNavigation3(url){
var URL = url;
var name= "registration";
var width = 500;
var height = 500;
window.open(
URL,
name,
'toolbar=0, menubar=0, location=0, scrollbars=0, resizable=0, directories=0, status=0'+ (width?',width='+width:'')+
(height?',height='+height:''),
true
);
}
function openWithoutNavigation4(url){
var URL = url;
var name= "registration";
var width = 500;
var height = 550;
window.open(
URL,
name,
'toolbar=0, menubar=0, location=0, scrollbars=0, resizable=0, directories=0, status=0'+ (width?',width='+width:'')+
(height?',height='+height:''),
true
);
}
//แสดงเวลา
function dateTime() {
var days = new Array("วันอาทิตย์ที่","วันจันทร์ที่","วันอังคารที่","วันพุทธที่",
"วันพฤหัสบดีที่","วันศุกร์ที่","วันเสาร์ที่")
var month = new Array("มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน",
"กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤษจิกายน","ธันวาคม")
var year= new Array("ชวด","ฉลู","ขาล","เถาะ","มะโรง","มะเส็ง","มะเมีย","มะแม","วอก","ระกา","จอ","กุล")
var now = new Date()
var result = days[now.getDay()]+" "
var add1=1900
var add2=add1+543
/* result += now.toLocaleString() */
result += now.getDate()
result += " "+month[now.getMonth()]+" พ.ศ. "
if(now.getYear())
{add1=2;add2=add1+541}
result += now.getYear()+add2
result += " ปี"+year[(now.getYear()+add2+5)%12]
result += " เวลา "+now.getHours()+" นาฬิกา "
result += now.getMinutes()+" นาที"
return result
}
function timeupdate(){
document.timef.timebox.value=dateTime()
setTimeout("timeupdate()",1000)
}
/*
function showProduct(product) {
$("content_area").innerHTML = product.responseText;
Listorder();
}
function Listorder() {
new Ajax.Request( "ShoppingCart.php",
{ method: "GET",
onComplete: showCart
}
);
}
function showCart(result) {
$("cartinfo").innerHTML = result.responseText;
}
function NewOrder(element) {
var additem = element.id;
new Ajax.Request( "ShoppingCart.php?additem=" + additem,
{ method: "GET",
onComplete: showCart
}
);
}
function processbarClear() {
var progressIndicator = '<img src="image/34.gif" /> กำลังยกเลิก...';
$("clearcart").innerHTML=progressIndicator;
setTimeout("ClearOrder()", 1000);
}
function ClearOrder() {
$("clearcart").innerHTML="";
var url = "ClearShoppingCart.php";
new Ajax.Request( url,
{ method: "GET",
onComplete: showCart
}
);
}
function DragProduct(element) {
var idproduct = element.id
new Draggable(idproduct,
{ revert: true, ghosting: true }
);
}
function NewOrderDrag(element) {
var additem = element.id;
var url = "ShoppingCart.php?additem=" + additem;
new Ajax.Request( url,
{ method: "GET",
onComplete: showCart
}
);
}
function handdleEvent(element) {
var ids = element.id;
Event.observe(ids, "mouseover", processToolTip);
Event.observe(ids, "mouseout", clearToolTip);
Event.observe(ids, "click", clearToolTip);
}
function processToolTip(event) {
var ids = Event.element(event).id;
new Ajax.Request( "GetTooltipData.php?id=" + ids,
{ method: "GET",
onComplete: detailToolTip
}
);
$("tooltip").style.display = "block";
$("tooltip").style.width = 465+"px";
$("tooltip").style.background = "#ccc";
$("tooltip").style.fontSize = "small";
$("tooltip").style.padding = 5+ "px";
$("tooltip").style.position = "absolute";
$("tooltip").style.top =Event.pointerY(event) +"px";
$("tooltip").style.left = Event.pointerX(event)-280 +"px";
}
function detailToolTip(result) {
$("tooltip").innerHTML= result.responseText;
}
function clearToolTip(event) {
$("tooltip").style.display = "none";
}
function processbarForm() {
var progressIndicator = '<p style= "color: blue">กำลังส่งข้อมูล<br/><img src="image/loading.gif" /></p> ';
$("infoform").innerHTML=progressIndicator;
setTimeout("contactRequest()", 1000);
}
function contactRequest() {
var cname= $F("name");
var cemail = $F("email");
var cmessage = $F("message");
var url = "ContactSave.php?cname="+cname+"&cemail="+cemail+"&cmessage="+cmessage;
new Ajax.Request( url,
{ method: "GET",
onComplete: saveResult
}
);
}
function saveResult(result) {
$("infoform").innerHTML= result.responseText;
}
function openWithoutNavigation(url){
var URL = url;
var name= "registration";
var width = 460;
var height = 500;
window.open(
URL,
name,
'toolbar=0, menubar=0, location=0, scrollbars=1, resizable=1'+ (width?',width='+width:'')+
(height?',height='+height:''),
true
);
}
*/