-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /var/www/html/z_product.bk.230817/
File Upload :
Current File : //var/www/html/z_product.bk.230817/index.php

<?php
# include
	include $_SERVER['DOCUMENT_ROOT'] . '/inc/config.php' ;
	include '/home/choi6871/_kcppay/common.php' ;

# global values
	$code = 'SHP' ;
	$page = ( emptY($_POST['page']))?$_GET['page']:$_POST['page'] ;
	$mode = ( emptY($_POST['mode']))?$_GET['mode']:$_POST['mode'] ;
	$numid = ( emptY($_POST['numid']))?$_GET['numid']:$_POST['numid'] ;
	// list get data
	$c1 = emptY($_POST['c1']) ? $_GET['c1'] : $_POST['c1'] ;
	$c2 = !empty($c1) ? ( emptY($_POST['c2']) ? $_GET['c2'] : $_POST['c2'] ) : '' ;
	$c3 = !empty($c1) && !empty($c2) ? ( emptY($_POST['c3']) ? $_GET['c3'] : $_POST['c3'] ) : '' ;
	$ps = emptY($_POST['ps']) ? $_GET['ps'] : $_POST['ps'] ;			// page size
	$ot = emptY($_POST['ot']) ? $_GET['ot'] : $_POST['ot'] ;				// order type
	$search = emptY($_POST['search']) ? $_GET['search'] : $_POST['search'] ;			// search data(top form)

	$goods__blankWhiteimage = '<div class="detail_ban"><ul><li><span id="banner_pos1"></span></li><!--li><span id="banner_pos2"></span></li--></ul></div>' ;
	// begin 2016-07
	// 0~30±îÁö Àû¿ë °¡´É. 0À̸é ÀÍÀϺÎÅÍ ¼±Åà °¡´ÉÇÕ´Ï´Ù. Çà»çÀÏ
	$ma_options_datesetperiod_M = 4 ;		// ´Üüº¹ ³¯Â¥ ¼±Åà Á¦ÇÑ
	$ma_options_datesetperiod_A = 4 ;		// ´Üüº¹(2) ³¯Â¥ ¼±Åà Á¦ÇÑ
	// end 2016-07

	function MAs__datecheck($date,$type) {
		global $ma_options_datesetperiod_M , $ma_options_datesetperiod_A ;
		$MAs__dateset = $type == '1' ? 0 : ${'ma_options_datesetperiod_' . $type} + 1 ;
		if ( $date == '' ) return false ;
		$nbase = mktime( 0 , 0 , 0 , date('m') , date('d') , date('Y')) ;
		$nset = mktime( 0 , 0 , 0 , substr($date,5,2) , substr($date,8,2) , substr($date,0,4)) ;
		$nc = 0 ;
		while ( $nc < $MAs__dateset ) {
			$nbase += 86400 ;  // 1 day
			if ( date('w',$nbase) < 1 || date('w',$nbase) > 5 ) continue ;
			$nc++;
		}
		if ( $nbase > $nset ) return false ;   // °¡´ÉÇÑ ³¯Â¥ ÀÌÀüÀ¸·Î ¼³Á¤µÇ¾îÀÖÀ¸¸é ¿À·ù
		return true ;
	}

	function MAs__hoobulskin($d_info) {
		// ´Üüº¹ , ´Üüº¹(2) °øÅë »ç¿ë
		$hoooption_hp = explode( '-' , $d_info['hoooption_hp'] ) ;
		$hoooption_teacherhp = explode( '-' , $d_info['hoooption_teacherhp'] ) ;
		return '<div id="dpay_popupview" class="dpay-popwrap" style="position:absolute; z-index:10000; left:50%; background-color: rgb(238, 238, 238); margin-top:30px; margin-left:-120px; display:none;">
				<div class="dpay-headtxt">
				  <strong>¡Ú ÈĺҰáÁ¦½Ã Çʼö ÀÔ·Â »çÇ×ÀÔ´Ï´Ù.</strong><br>
				  <br>
				  <font color="#e00000">ÁÖ¹®ÀÚ¸í°ú ÀÔ±ÝÀÚ¸íÀ» ¶È°°ÀÌ ÇØÁÖ¼¼¿ä.<br> ÀÔ±ÝÀÚ¸íÀÌ ´Ù¸¥ °æ¿ì ²À~! °í°´¼¾ÅÍ·Î ¿¬¶ôÇØÁÖ¼¼¿ä.</font>
				  </div>
				  <div class="dpay-box"><table border="0">
					<tbody><tr>
					  <th>ÀԱݿ¹Á¤ÀÏ</th>
					  <td><input type="text" size="12" name="date_ipdate_tmp" value="' . $d_info['MAtype_payindate'] . '" class="vDatepick3_d2" readonly style="margin-right:5px;"/></td>
					</tr>
					<tr>
					  <th>ÁÖ¹®ÀÚ ¿¬¶ôó</th>
					  <td><select name="ordtel1" style="width:60px;">
							<option value="">¼±ÅÃ</option>
							<option value="010" ' . ( $hoooption_hp[0] == '010' ? 'selected' : '' ) . '>010</option>
							<option value="011" ' . ( $hoooption_hp[0] == '011' ? 'selected' : '' ) . '>011</option>
							<option value="016" ' . ( $hoooption_hp[0] == '016' ? 'selected' : '' ) . '>016</option>
							<option value="017" ' . ( $hoooption_hp[0] == '017' ? 'selected' : '' ) . '>017</option>
							<option value="018" ' . ( $hoooption_hp[0] == '018' ? 'selected' : '' ) . '>018</option>
							<option value="019" ' . ( $hoooption_hp[0] == '019' ? 'selected' : '' ) . '>019</option>
					  </select>
					  - <input type="text" name="ordtel2" id="tel2" value="' . $hoooption_hp[1] . '" style="width:60px;" maxlength="4">
					  - <input type="text" name="ordtel3" id="tel3" value="' . $hoooption_hp[2] . '" style="width:60px;" maxlength="4"></td>
					</tr>
					<tr>
					  <th>Çгâ/¹Ý</th>
					  <td><input type="text" name="schlyear" id="school_year" value="' . $d_info['hoooption_schooly'] . '" style="width:60px"> Çгâ
						<input type="text" name="schlclass" id="class" value="' . $d_info['hoooption_classname'] . '" style="width:60px"> ¹Ý</td>
					</tr>
					<tr>
					  <th>Çб³¸í</th>
					  <td><input type="text" name="schlname" id="school_name" value="' . $d_info['hoooption_schoolname'] . '" style="width:90%;"></td>
					</tr>
					<tr>
					  <th>´ãÀÓ¼±»ý´Ô ¼ºÇÔ</th>
					  <td><input type="text" name="tchname" id="teacher" value="' . $d_info['hoooption_teachername'] . '" style="width:90%;"></td>
					</tr>
					<tr>
					  <th>´ãÀÓ¼±»ý´Ô ¿¬¶ôó</th>
					  <td><select name="tchtel1" style="width:60px;">
							<option value="">¼±ÅÃ</option>
							<option value="010" ' . ( $hoooption_teacherhp[0] == '010' ? 'selected' : '' ) . '>010</option>
							<option value="011" ' . ( $hoooption_teacherhp[0] == '011' ? 'selected' : '' ) . '>011</option>
							<option value="016" ' . ( $hoooption_teacherhp[0] == '016' ? 'selected' : '' ) . '>016</option>
							<option value="017" ' . ( $hoooption_teacherhp[0] == '017' ? 'selected' : '' ) . '>017</option>
							<option value="018" ' . ( $hoooption_teacherhp[0] == '018' ? 'selected' : '' ) . '>018</option>
							<option value="019" ' . ( $hoooption_teacherhp[0] == '019' ? 'selected' : '' ) . '>019</option>
					  </select>
						- <input type="text" name="tchtel2" id="tel2" value="' . $hoooption_teacherhp[1] . '" style="width:60px;" maxlength="4">
						- <input type="text" name="tchtel3" id="tel3" value="' . $hoooption_teacherhp[2] . '" style="width:60px;" maxlength="4"></td>
					</tr>
				  </tbody></table></div>
                  <!--div class="dpay-headtxt">
                   <strong><font color="#e00000" size="+1">¡Ú ÁÖ¹® ÈÄ »ó´ã¼¾ÅÍ·Î ²À! ¿¬¶ô ÁÖ¼¼¿ä.</font><br>
				  <br>
				   <strong><font color="#000" size="+2"> 070-7018-3013</font></strong>
                  </strong></div-->
				  <div class="dpay-btn">
					<a href="javascript:;" onclick="check_dpay_reqdata();"><img src="img/dpay_pop_finish.gif" style="margin-right:5px;"></a>
					<a href="javascript:;" onclick=" cancel_dpay_reqdata();"><img src="img/dpay_pop_cancel.gif"></a>
				</div>
			</div>' ;
	}

	$total = array (
		'rootdir'			=> substr(dirname(__FILE__), strrpos(dirname(__FILE__),'/')) ,
		'loginid'			=> $info_user['loginid'] ,
		'loginname'	=> $info_user['loginname'] ,
		'loginno'			=> $info_user['loginno'] ,
		'loginlevel'		=> $info_user['loginlevel'] ,
		'logincode'		=> $info_user['logincode'] ,
		'now'				=> date('Y-m-d H:i:s') ,
		'ip'					=> getenv('REMOTE_ADDR') ,
		'pagesize'		=> 10 ,
		'nowpage'		=> ( empty($page) ) ? 1 : $page ,
		'blockpage'		=> 10 ,
		'view_skins'	=> 'Y'  ,
		'code'				=> $code ,
		'mode'			=> $mode ,
		'numid'			=> $numid ,
		// search data
		'c1'					=> $c1 ,
		'c2'					=> $c2 ,
		'c3'					=> $c3 ,
		'ps'					=> $ps ,
		'ot'					=> $ot ,
		'search'			=> $search
	) ;
	//$total['rootdir'] .= '_v2' ;

	$total['idxdir']	= $total['rootdir'] . '/idx' ;
	$total['skindir']	= $total['rootdir'] . '/skin' ;
	$total['phpdir'] = $total['rootdir'] . '/php' ;

	$exe->button = $button ;
	$exe->design = array (
								'select'			=> 'font-weight:bold' ,
							) ;
	$exe->errorview = 'Y' ;

	function orderSendsms_bank($hp , $bnk ) {
		global $info_sms ;
		include $_SERVER['DOCUMENT_ROOT'] . '/sms/soap_client.php' ;
		$msg = '½ÎÄ¿³Ý ÁÖ¹®ÀÌ ¿Ï·áµÇ¾ú½À´Ï´Ù. °¨»çÇÕ´Ï´Ù.' ;
		// $msg = 'ÁÖ¹®¿Ï·áµÇ¾ú½À´Ï´Ù. (' . $bnk . ') /½ÎÄ¿³Ý' ;
		sms($hp,$info_sms['from'] , $msg  ,'send') ;
	}

# select keyword
	$total['design'] = $config[$total['code']][2] ;
	$total['table'] = $config[$total['code']][1] ;
	$total['options'] = $config[$total['code']][4] ;

# search group
	include $_SERVER['DOCUMENT_ROOT'] . '/inc/class/public.search.php' ;
	include $_SERVER['DOCUMENT_ROOT'] . '/inc/config_search.php' ;

# link
	$total['selfurl']		= $total['rootdir'] . '/' ;
	$cmnurl = array() ;
	if ( !empty($c1)) $cmnurl[] = 'c1=' . $c1 ;
	if ( !empty($c2)) $cmnurl[] = 'c2=' . $c2 ;
	if ( !empty($c3)) $cmnurl[] = 'c3=' . $c3 ;
	if ( !empty($ps)) $cmnurl[] = 'ps=' . $ps ;
	if ( !empty($ot)) $cmnurl[] = 'ot=' . $ot ;
	if ( !empty($search)) $cmnurl[] = 'search=' . $search ;
	$total['cmnurl']     = $total['selfurl'] . ( count($cmnurl) > 0 ? '?' . implode( '&' , $cmnurl) : '' ) ;
	$total['cmnval']		= $total['cmnurl'] ;
	$total['cmnlist'] 	= $total['cmnurl'] . ( $total['cmnurl'] == $total['selfurl'] ? '?' : '&' ) . 'mode=' . $total['mode'] ; 	// »óǰ ¸®½ºÆ®
	//$total['cmnval']		= $total['cmnurl'] . ( $total['cmnurl'] == $total['selfurl'] ? '?' . substr($total['scode'] . $total['fcode'] . $total['ecode'] . $total['acode'] . $total['bcode'],1) : $total['scode'] . $total['fcode'] . $total['ecode'] . $total['acode'] . $total['bcode'] ) ;
	$total['cmnall']		= $total['cmnval'] . ( $total['cmnval'] == $total['selfurl'] ? '?' : '&' ) . 'page=' . $total['nowpage'] ;
	$total['cmnnb']		= $total['cmnall'] . ( $total['cmnall'] == $total['selfurl'] ? '?' : '&' ) . 'numid=' . $total['numid'] ;

# display
	if ( is_file($_SERVER['DOCUMENT_ROOT'] . $total['idxdir'] . '/' . $total['design'] . '.php')) {
		include $_SERVER['DOCUMENT_ROOT'] . $total['idxdir'] . '/' . $total['design'] . '.php' ;
		$skinfile = $total['skindir'] . '/' . $skinfile ;
		$phpfile = $total['phpdir'] . '/' . $phpfile ;
		if ( is_file($_SERVER['DOCUMENT_ROOT'] . $phpfile))
			include $_SERVER['DOCUMENT_ROOT'] . $phpfile ;
		$result = str_foreach( $total , 'TOTAL' , $result ) ;
	}

# display result
	switch ( $total['view_skins'] ) {
		case 'Y' :
			include_once('header.html') ;
			echo $result ;
			?>


						<?php
			include_once('footer.html') ;
			break ;
		case 'Y2' :		// bankwell °áÁ¦ÆäÀÌÁö
			include_once('header2.html') ;
			echo $result ;
			include_once('footer.html') ;
			break ;
		case 'N' :
			if ( empty($total['title'])) $total['title'] = 'POPUP' ;
			echo '
				<html>
				<head>
				<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
				<title>' . $total['title'] . '</title>
				<link rel="stylesheet" href="/css/style.css" type="text/css" />
				<link rel="stylesheet" href="/css/css.css" type="text/css" />
				<link rel="stylesheet" href="/css/reset.css" type="text/css" />
				<link rel="stylesheet" href="/css/common.css" type="text/css" />
				<link rel="stylesheet" href="/css/detail.css" type="text/css" />
				<script language=\'javascript\' src=\'/inc/config.js\'></script>
				<script language=\'javascript\' src=\'/js.js\'></script>
				</head>
				<body STYLE="background-color:transparent">
			' . $title_type['guide'] ;
			echo $result ;

			echo $title_type['guide_bottom'] . '
				</body>
				</html>
			' ;
			break ;
		case 'X' ;
			echo $result ;
			break ;
	}

?>

Copyright © 2017 || Recoded By Mr.Bumblebee