403Webshell
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/reportservice - Copy/3/java/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/reportservice - Copy/3/java/js/javascript.js
$(document).ready(function(){
  //$('a').tooltip('hide');
  $("form").submit(function(){	
	empty = false;
	$(":text,select,textarea,:password,:radio,:checkbox").each(function(){
			attr_name = $(this).attr('name');
			if($(this).val()=='' && $("code#"+attr_name).html()!=null){
				tx = $(this).attr("placeholder");
				$(this).focus();
				$("code#"+attr_name).text("กรุณากรอก"+tx+"");
				empty = false;
				return false;				
			}else{
				ms=null;
				if(typeof validForm=="function"){//ตรวจสอบฟังก์ชั่นว่ามี function validForm ประกาศรึไม่
					ms = validForm(attr_name);//validForm()ดึงฟังก์ชันมาจากที่ไฟล์htmlถ้าต้องตรวจสอบเกี่ยวฟอร์ม		
				}
				
				if(ms==null){
					$("code#"+attr_name).html('<i class="icon-ok"></i>');
					empty = true;
				}else{
					$("code#"+attr_name).text(ms);
					$(this).focus();
					empty = false;
					return false;
				}
			}
	});
	if(empty)
		return true;
	else
		return false;	
  });
});
/*
function SubmitForm(e){
	e.form.submit();
}
*/
// JavaScript Document sAcIw
function check_number(e){
	if(!e) e = window.event;
	e_k = e.keyCode || e.which;
	if (e_k != 8 && e_k != 46 && e_k != 37 && e_k != 39 && (e_k < 48 || e_k > 57)) {
		e.returnValue = false;
		e.preventDefault();
	}
}
function check_eng(e){
	if(!e) e = window.event;
	e_n = e.keyCode || e.which;
	if ((e_n<48 || e_n>90) && (e_n<48 || e_n>122)) {
		e.returnValue = false;
		e.preventDefault();
	}
}
/*
	/* เช็คตัวเลข 0-9 
	if (k>=48 && k<=57) { return allowedNum; }
	
	/* เช็คคีย์อังกฤษ a-z, A-Z 
	if ((k>=65 && k<=90) || (k>=97 && k<=122)) { return allowedEng; }
	
	/* เช็คคีย์ไทย ทั้งแบบ non-unicode และ unicode 
	if ((k>=161 && k<=255) || (k>=3585 && k<=3675)) { return allowedThai; }
*/
function popUpWindow(URL, N, W, H, S) { // name, width, height, scrollbars
	var winleft	=	(screen.width - W) / 2;
	var winup	=	(screen.height - H) / 2;
	winProp		=	'width='+W+',height='+H+',left='+winleft+',top='+winup+',scrollbars='+S+',resizable' + ',status=yes'
	Win			=	window.open(URL, N, winProp)
	if (parseInt(navigator.appVersion) >= 4) { Win.window.focus(); }
}

//การคลิกถูก checkbox
function ClickCheckAll(vol,obj){
	var i=1;
    for(i=1;i<=obj.hdnCount.value;i++){
       if(vol.checked == true){
          eval("obj.chkDel"+i+".checked=true"); 
       }else{
          eval("obj.chkDel"+i+".checked=false");
       }
    }
}

function delConfirm(obj){
	var status=false;
	var num = obj.elements.length;
	var counts = 0;
	for(var i=0 ; i < num ; i++ ){
		if(obj[i].type=='checkbox'){
			if(obj[i].checked==true){
				status=true;
				counts++;
			}
		}
	}
	if(status==false){
		alert('กรุณาเลือกข้อมูลอย่างน้อย 1 รายการ');
		return false;
	}else{
		if(confirm('รายการที่เลือก ทั้งหมด '+counts+' รายการ?')){
			return true;
		}else{
			return false;
		}
	}
}

function isValidEmail(str) {
	var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
	return (filter.test(str)); 
}

//คำนวณเลข
/*function CalculationSum(sign,num1,num2){
	switch(sign){
		case "+": return num1 + num2; break;
		case "-": return num1 - num2; break;
		case "*": return num1 * num2; break;
		case "/": return num1 / num2; break;
	}
}
*/
//function calculation คำนวณค่าน้ำ/ค่าไฟ
// คำนวณค่าน้ำไฟแล้วนำไปแสดง
/*function CalculationUnit(value,keys,num,unit){
	var sum,unit,price="";
	$('#'+keys+value+num+'').keyup(function() {
		var maxs = parseFloat($('#'+keys+'max'+num+'').val());
		var mins = parseFloat($('#'+keys+'min'+num+'').val());
		if(maxs>=mins){
		  sum = CalculationSum("-",maxs,mins);
		  price = CalculationSum("*",sum,unit);
		  $('#'+keys+'sum'+num+'').val(Math.round(sum));
		  $('#'+keys+'price'+num+'').val(Math.round(price));
		}else{
		  $('#'+keys+'sum'+num+'').val('');
		  $('#'+keys+'price'+num+'').val('');
		}
	}).keyup();
}
*/


Youez - 2016 - github.com/yon3zu
LinuXploit