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 :  /proc/22697/root/home/queenjbs/yuchun/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/22697/root/home/queenjbs/yuchun/admin/event_cash.php
<?include $_SERVER['DOCUMENT_ROOT']."/admin/adminTopMenu.html";
//include $_SERVER['DOCUMENT_ROOT']."/conf/conf_i.php";
if(!$act) $act=1;
		// =============================================== Query
		$tableName = "user_event_cash";

		if(!$pageCount) $pageCount = 20;

		$show_one_page			= $pageCount;
		$show_view_page			= 10;

		$page     = ( $page ) ? $page : 1;
		$offset   = ($page-1)*$show_one_page;

		if($key_word) {
			$key_word = trim($key_word);
			//$where = "AND $key LIKE '%$key_word%'";
			$where = "AND $key LIKE '$key_word'";
		}
		$where ."AND CSPART=2";

		$order_by = ' ORDER BY CS_ID desc';
		$url_tail = "&tab=$tab&tabs=$tabs&key=$key&order_by=$order_by";

		$query_limit  = "limit $offset,$show_one_page";

		$QUERY_TOTAL = "SELECT count(*) FROM $tableName where 1=1  $where $order_by";
		$QUERY_PAGE  = "SELECT * FROM $tableName where 1=1 $where $order_by $query_limit";
		

		$total_count  = get_db($QUERY_TOTAL);
		$total_page   = ceil( $total_count / $show_one_page);
		$start_num    = $total_count - $offset;  //
		$viewlist2     = ( !$total_count ) ? "" : Get_viewpage2($page,$total_count,$show_one_page,$show_view_page,$url_tail);

		$result= mysql_query($QUERY_PAGE,$db_con);
		if(!$result) {
			error("DB_ERROR");
			exit;
		}
		$total = mysql_affected_rows();

		if(!$total){
			//echo "<tr><td colspan='$colsNum' align=center  height='50px'>등록된 정보가 없습니다.</td></tr>";
			$BORAD_LS = "<tr><td colspan=7>등록된 정보가 없습니다.</td></tr>";
		}else{
			for($i=0; $i<$total; $i++) {
				$Num = $start_num - $i;
				$row = mysql_fetch_array($result);
				if($row[CS_PART]==1) $TMP_PART = "사용";
				else $TMP_PART = "적립";
				
				$BORAD_LS .= "
				<tr>
					<td>$Num</td>
					<td><a href='javascript: go_View($row[CS_ID]);' title='수정'>$row[MEM_ID] &nbsp;($row[MEM_IDX])</a></td>
					<td>$TMP_PART</td>
					<td>$row[CS_TYPE]</td>
					<td>$row[CS_PAY]</td>
					<td>$row[CS_SHARE]</td>
					<td>$row[CS_CREATE_D]</td>
					<td>$row[CS_MEMO]</td>
					<td><a href='javascript: go_Delete($row[CS_ID]);' title='삭제'><img src='./images/out.png' alt='' /></a></td>
				</tr>
				";
			}
		}
?>
<script src="/share/js/formcheck.js" type="text/javascript"></script>
<script type="text/javascript">
function go_View(document_no) {
	var f = document.form;
	f.idx.value = document_no;
	f.mode.value = "edit";
	f.action = 'event_cash_wr.php';
	f.submit();
}

function go_Write() {
	var f = document.form;
	f.mode.value = "write";
	f.action = 'event_cash_wr.php';
	f.submit();
}

function go_Delete(idxval) {
	if(confirm("등록된 내용이 삭제 됩니다.\n삭제하시겠습니까?")) {
		var f = document.form;
		f.mode.value = 'del';
		f.idx.value = idxval;
		f.action = './Proc/event_cash_proc.php';
		f.submit();
	}
}

function searchChk() {
	//검색
	document.form.action = "./event_cash.php";
	document.form.submit();
}
</script>
<div id="contents">
	<h2>EVNET CASH 등록</h2>
	<div id="content">
	<ul>
			<li><a href="<?=$PHP_SELF?>" class="act">CASH 리스트</a></li>
	</ul>
	<form name="form" method="post" target="_self" onsubmit="return false;" >
		<input type="hidden" name="idx">
		<input type="hidden" name="mode">
		<input type="hidden" name="act" value="<?=$act?>">
		<fieldset>
			<select name="key">
				<option value="MEM_ID"	<?if($key == "MEM_ID")	echo "selected"; ?>>회원ID</option>
				<option value="MEM_IDX"	<?if($key == "MEM_IDX")	echo "selected"; ?>>회원고유번호</option>
			</select>
			<input type="text" name="key_word" class="type-text" size="20"  maxlength="20" value="<?=$key_word?>"  onKeyPress="if(event.keyCode==13) if(event.keyCode==13) searchChk();">
			<input type="button" value="검색"class="btn_blue" onClick="searchChk();" />
			<input type="button" value="취소" class="btn_blue" onClick="location.href='<?=$PHP_SELF?>?act=<?=$act?>';" />
		</fieldset>
		</form>
	<table summary="관리자모드 게시판입니다" cellspacing="0" >

 		<thead>
			<tr>
				<th>no</th>
				<th>회원ID /회원고유번호</th>
				<th>분류</th>
				<th>사용처</th>
				<th>사용한 캐시</th>
				<th>현재 캐시</th>
				<th>등록일</th>
				<th>메모</th>
				<th>삭제</th>
			</tr>
		</thead>
		<tbody>
		<?=$BORAD_LS?>
		</tbody>
		</table>
		<div class="btn">
			<a href="javascript: go_Write();" class="btn_blue">등록하기</a>
		</div>

	</div>
		<div class="page_list">
		<!--  prev/next_std -->
		<?=$viewlist2?>
		<!--  prev/next_end -->
		</div>
</div>
<p></p>
</body>
</html>


Anon7 - 2021