KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /home/queenjbs/jaejoong_X/store/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home/queenjbs/jaejoong_X/store/test.html
<?php 
	include $_SERVER['DOCUMENT_ROOT']."/conf/conf_dir.php";

?>
<!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>
		<meta charset="UTF-8">
		<meta name="Author"        	content="<?=$META_AUTHOR?>">
		<meta name="Keywords"       content="<?=$META_KEYWORD?>">
		<meta name="Description" 			content="<?=$META_DISCRIPTION?>">
		<!--link rel="shortcut icon" href="../images/default/favicon.ico" type="image/x-icon" -->  

		<title><?=$PAGE_TITLE?></title>
	<script language="JavaScript">
	<!--
	function send_input(flag){
		var f = document.form;
		if(flag==1){
			f.r_name.value = f.o_name.value;
			f.r_email.value = f.o_email.value;
			f.r_tel.value = f.o_tel.value;
			f.r_addr.value = f.o_addr.value;
			f.r_zip.value = f.o_zip.value;
		}else{
			f.r_name.value ="";
			f.r_email.value="";
			f.r_tel.value="";
			f.r_addr.vaule = "";
			f.r_zip.vaule = "";
		}
	}

	function chkdeli(val){
		var f = document.form;
		if(!f.deli_price.value){
		f.deli_price.value = val;
		}
		document.getElementById("span_price1").innerHTML = val+"円";
		f.total_price.value = eval(val) + eval(f.tmp_price.value);
		document.getElementById("span_price2").innerHTML = f.total_price.value+"円(税込)";
		
	}

	function checkr(){
		var obj = document.form;
			if(!obj.r_name.value){
				alert("お名前をご入力下さい.");
				obj.r_name.focus();
				return;
			}else if(!obj.r_email.value){
				alert("電子メールをご入力下さい.");
				obj.r_email.focus();
				return;
			}else if(!obj.o_tel.value){
				alert("電話番号をご入力下さい.");
				obj.r_tel.focus();
				return ;
			}else if(!obj.o_addr.value){
				alert("住所をご入力下さい.");
				obj.r_addr.focus();
				return;
			}else if(!obj.o_zip.value){
				alert("郵便番号をご入力下さい.");
				obj.r_zip.focus();
				return;
			}else if(!obj.deli_price.value){
				alert("配送選択をお選び下さい.");
				obj.deliradio.focus();
				return;
			}
			if((obj.r_email.value.indexOf("@")==-1) || (obj.r_email.value.indexOf(".")==-1)){

				alert("E-mailを正確にご入力下さい.");
				obj.r_email.focus();
				return; 
			}
			obj.mode.value = "order_proc";
			obj.action = "./store_order_proc.php";
			obj.submit();
	}

	//-->
	</script>
	</head>
	<body>
	
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="order_form_01">
		
		<tr>
			<td width="17%">配送選択</td>
			<td width="83%" colspan="2" class="form_right">
			<?
				$idx =1;
				$QUERY_PAGE  = "SELECT * FROM shop_deli where product = '$idx'";
				$results= mysql_query($QUERY_PAGE,$db_con);
				$totals = mysql_affected_rows();
				for($i=0; $i<$totals; $i++) {
					$rows = mysql_fetch_array($results);
					
					echo "<input type='radio' name='deliradio' value='".$rows[deliPrice]."' onclick='chkdeli(this.value);'/>".$rows[deliName]." ".$rows[deliPrice]."円";
				}
			
			?>
			</td>
		</tr>
		<tr>
			<td>注文者名</td>
			<td colspan="2" class="form_right"><input type="text" name="r_name"/>&nbsp;<span class="a3a3a3">商品の受取人の名前をご入力下さい</span></td>
		</tr>
		<tr>
			<td>電子メール</td>
			<td colspan="2"><input type="text" name="r_email"/></td>
		</tr>
		<tr>
			<td>郵便番号</td>
			<td><input type="text" name="r_zip"/></td>
		</tr>
		<tr>
			<td>住所</td>
			<td colspan="2"><input type="text" name="r_addr" size="80"/></td>
		</tr>
		<tr>
			<td>電話番号</td>
			<td colspan="2"><input type="text" name="r_tel"/></td>
		</tr>
		
		<tr>
			<td>配送中注意事項</td>
			<td colspan="2"><textarea name="memo"></textarea></td>
		</tr>
	</table>
	<a href="javascript:checkr();"><li class="btn_03">購入する</li></a>
	</body>
</html>

Anon7 - 2021