146 lines
5.4 KiB
PHP
146 lines
5.4 KiB
PHP
<?
|
|
if (!$argu['p']) $argu['p'] = 1;
|
|
if(empty($argu['mode'])) $argu['mode'] = "LIST_FORM";
|
|
|
|
$default_querystring = "pagecode=".$argu["pagecode"]."&subpage=".$argu["subpage"]."&p=".$argu['p'];
|
|
if(isset($argu["s_case1"]) && $argu['s_case1']) $default_querystring .= "&s_case1=".urlencode($argu['s_case1']);
|
|
if(isset($argu["s_case2"]) && $argu['s_case2']) $default_querystring .= "&s_case2=".urlencode($argu['s_case2']);
|
|
if(isset($argu["s_date"]) && $argu['s_date']) $default_querystring .= "&s_date=".urlencode($argu['s_date']);
|
|
if(isset($argu["e_date"]) && $argu['e_date']) $default_querystring .= "&e_date=".urlencode($argu['e_date']);
|
|
if(isset($argu["Search"]) && $argu['Search']) $default_querystring .= "&Search=".urlencode($argu['Search']);
|
|
|
|
switch ($argu['mode']) {
|
|
case "LIST_FORM":
|
|
$_list = $obj_User->get_admlog_list($argu, $total);
|
|
break;
|
|
}
|
|
?>
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<h1 class="page-header">관리자 접속로그</h1>
|
|
</div>
|
|
<!-- /.col-lg-12 -->
|
|
</div>
|
|
<!-- /.row -->
|
|
<?
|
|
/***********************************
|
|
===== 리스트 폼일경우 =====
|
|
***********************************/
|
|
if ($argu['mode'] == "LIST_FORM") {
|
|
?>
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<div class="panel panel-default">
|
|
<div class="panel-body">
|
|
<form role="form" name="f" method="get" action="<?=$_SERVER["PHP_SELF"]?>">
|
|
<input type="hidden" name="mode" id="mode" value="LIST_FORM">
|
|
<input type="hidden" name="pagecode" value="<?=$argu['pagecode']?>">
|
|
<input type="hidden" name="subpage" value="<?=$argu['subpage']?>">
|
|
<input type="hidden" name="p" value="<?=$argu['p']?>">
|
|
<div class="row">
|
|
<div class="col-sm-2">
|
|
<div class="input-group date" data-provide="datepicker" >
|
|
<input type="text" class="form-control datepicker" name="s_date" id="s_date" placeholder="시작일" readonly value="<?=$argu["s_date"]?>">
|
|
<div class="input-group-addon">
|
|
<span class="glyphicon glyphicon-th"></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-2">
|
|
<div class="input-group date" data-provide="datepicker" >
|
|
<input type="text" class="form-control datepicker" name="e_date" id="e_date" placeholder="종료일" readonly value="<?=$argu["e_date"]?>">
|
|
<div class="input-group-addon">
|
|
<span class="glyphicon glyphicon-th"></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-3">
|
|
<div class="form-group input-group">
|
|
<input type="text" class="form-control" name="Search" value="<?=htmlspecialchars($argu['Search'])?>">
|
|
<span class="input-group-btn">
|
|
<button class="btn btn-default" type="submit"><i class="fa fa-search"></i>
|
|
</button>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<!-- <button type="button" class="btn btn-success" >엑셀</button> -->
|
|
</div>
|
|
<div class="table-responsive">
|
|
<table class="table table-striped table-bordered table-hover">
|
|
<colgroup>
|
|
<col width="5%" />
|
|
<col width="10%" />
|
|
<col width="10%" />
|
|
<col width="10%" />
|
|
<col width="*" />
|
|
<col width="10%" />
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<th>번호</th>
|
|
<th>IP</th>
|
|
<th>일시</th>
|
|
<th>아이디</th>
|
|
<th>페이지</th>
|
|
<th>내역</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?
|
|
if(count($_list) > 0){ // 리스트가 있을경우
|
|
for($i=0;$i<count($_list);$i++){
|
|
|
|
?>
|
|
<tr>
|
|
<td><?=number_format($total - $obj_User->_LIST_NUM * ($argu[p] - 1) - $i)?></td>
|
|
<td><?=$_list[$i]["ip"]?></td>
|
|
<td><?=$_list[$i]['regdate']?></td>
|
|
<td><?=$_list[$i]['user_id']?></td>
|
|
<td><?=$_list[$i]['view']?></td>
|
|
<td><?=$_list[$i]['history']?></td>
|
|
</tr>
|
|
<?
|
|
}
|
|
}else{ // 리스트가 없을경우
|
|
?>
|
|
<tr>
|
|
<td colspan="6">등록된 내용이 없습니다</td>
|
|
</tr>
|
|
<?
|
|
}
|
|
?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- /.table-responsive -->
|
|
|
|
<div class="row">
|
|
<div class="col-sm-6">
|
|
</div>
|
|
<div class="col-sm-6">
|
|
<div class="dataTables_paginate paging_simple_numbers">
|
|
<ul class="pagination">
|
|
<?=page_index_admin($total,$argu['p'],preg_replace(array("/^p=(\d+)/","/&p=(\d+)/","/&p=/i","/&p=(\d+)/","/&p=/i"),"",$_SERVER["QUERY_STRING"]),$obj_User->_LIST_NUM,$scale=10,BOARD_FIRST_IMG,BOARD_LAST_IMG,BOARD_PREV_IMG,BOARD_NEXT_IMG);?>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- /.col-lg-12 -->
|
|
</div>
|
|
<?
|
|
}
|
|
/***********************************
|
|
===== 등록/수정 폼일경우 =====
|
|
***********************************/
|
|
elseif ($argu['mode'] == "INSERT_FORM" || $argu['mode'] == "MODIFY_FORM") {
|
|
$_w_mode=($argu['mode'] == "INSERT_FORM") ? "INSERT_ACTION" : "MODIFY_ACTION";
|
|
$argu["p"]=($argu['mode'] == "INSERT_FORM") ? 1 : $argu["p"];
|
|
?>
|
|
<?
|
|
}
|
|
?>
|