forked from devsam/core
js, css파일 위치 이동
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
@charset "utf-8";
|
||||
|
||||
#btn_back1{
|
||||
position:absolute;
|
||||
right: 6px;
|
||||
margin:6px;
|
||||
height:40px;
|
||||
}
|
||||
|
||||
#user_list_frame{
|
||||
min-width:920px;
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
<?php
|
||||
namespace sammo;
|
||||
|
||||
if(!defined('ROOT')){
|
||||
define('ROOT', '.');
|
||||
}
|
||||
require_once(ROOT.'/f_config/config.php');
|
||||
CustomHeader();
|
||||
|
||||
@@ -23,20 +23,22 @@ if($userGrade < 6){
|
||||
|
||||
<!-- 스타일 -->
|
||||
<link type="text/css" rel="stylesheet" href="../e_lib/bootstrap.min.css">
|
||||
<link type="text/css" rel="stylesheet" href='memberAdmin.css'>
|
||||
<link type="text/css" rel="stylesheet" href='../css/admin_member.css'>
|
||||
|
||||
<script type="text/javascript" src='../js/common.js'></script>
|
||||
<script type="text/javascript" src='../e_lib/jquery-3.2.1.min.js'></script>
|
||||
<script type="text/javascript" src="../e_lib/bootstrap.bundle.min.js"></script>
|
||||
<script type="text/javascript" src='../js/func.js'></script>
|
||||
|
||||
<script type="text/javascript" src='memberAdmin.js'></script>
|
||||
<script type="text/javascript" src='../js/admin_member.js'></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
회원 관리
|
||||
<a href="entrance.php"><button class="btn btn-primary" style="float:right;">돌아가기</button></a>
|
||||
<h3>회원 관리</h3>
|
||||
|
||||
</div>
|
||||
<div class="card-body">
|
||||
가입 허용
|
||||
@@ -61,7 +63,7 @@ if($userGrade < 6){
|
||||
|
||||
<div class="btn-group" role="group">
|
||||
<button onclick="changeSystem('scrub_deleted');" type="button" class="btn btn-secondary">탈퇴 계정 정리(1개월+)</button>
|
||||
<button onclick="changeSystem('scrub_icon');"type="button" class="btn btn-secondary">전콘 정리(1개월+)</button>
|
||||
<button onclick="changeSystem('scrub_icon');" type="button" class="btn btn-secondary">전콘 정리(1개월+)</button>
|
||||
</div>
|
||||
|
||||
<button onclick="changeSystem('scrub_old_user');" type="button" class="btn btn-secondary">오래된 계정 정리(6개월+)</button>
|
||||
|
||||
+7
-11
@@ -22,21 +22,18 @@ $userGrade = $session->userGrade;
|
||||
<link type="text/css" rel="stylesheet" href='../css/config.css'>
|
||||
<link type="text/css" rel="stylesheet" href='../css/app.css'>
|
||||
|
||||
<link type="text/css" rel="stylesheet" href='../i_popup/Style.css'>
|
||||
<link type="text/css" rel="stylesheet" href='../i_entrance/Style.css'>
|
||||
<link type="text/css" rel="stylesheet" href='../css/entrance.css'>
|
||||
|
||||
<!-- 액션 -->
|
||||
<script type="text/javascript" src='../js/common.js'></script>
|
||||
<script type="text/javascript" src='../e_lib/jquery-3.2.1.min.js'></script>
|
||||
<script type="text/javascript" src='../js/func.js'></script>
|
||||
<script type="text/javascript" src='../js/entrance.js'></script>
|
||||
|
||||
<script type="text/javascript" src='../i_popup/Action.js'></script>
|
||||
<script type="text/javascript" src='../i_entrance/Action.js'></script>
|
||||
|
||||
<?php if($userGrade >= 6): ?>
|
||||
<?php if($userGrade >= 5): ?>
|
||||
<!-- 운영자 -->
|
||||
<link type="text/css" rel="stylesheet" href='adminStyle.css'>
|
||||
<script type="text/javascript" src='adminAction.js'></script>
|
||||
<link type="text/css" rel="stylesheet" href='../css/admin_server.css'>
|
||||
<script type="text/javascript" src='../js/admin_server.js'></script>
|
||||
<?php endif;?>
|
||||
|
||||
</head>
|
||||
@@ -45,7 +42,7 @@ $userGrade = $session->userGrade;
|
||||
<div id="server_list_container">
|
||||
|
||||
<?php
|
||||
if($userGrade >= 6){
|
||||
if($userGrade >= 5){
|
||||
echo $templates->render('global_panel',['notice'=>$notice]);
|
||||
}
|
||||
?>
|
||||
@@ -97,9 +94,8 @@ if($userGrade >= 6){
|
||||
</div>
|
||||
|
||||
<?php
|
||||
if($userGrade >= 6){
|
||||
if($userGrade >= 5){
|
||||
echo $templates->render('server_panel',[]);
|
||||
//include('adminInc.php');
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
<?php
|
||||
namespace sammo;
|
||||
|
||||
require_once('_common.php');
|
||||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
ImportStyle("<?=ROOT;?>/i_entrance/member/Style.css");
|
||||
ImportAction("<?=ROOT;?>/i_entrance/member/Action.js");
|
||||
EntranceMember_Import();
|
||||
EntranceMember_Init();
|
||||
</script>
|
||||
|
||||
<div id="EntranceMember_00">
|
||||
<div id="EntranceMember_0000" class="bg2 font4">
|
||||
회 원 정 보
|
||||
<font id="EntranceMember_000000">(0/0)</font>
|
||||
</div>
|
||||
<input id="EntranceMember_0001" type="button" value="돌아가기">
|
||||
<div id="EntranceMember_0006" class="bg2 font2">
|
||||
<div id="EntranceMember_000600"></div>
|
||||
<input id="btn_allow_join" type="button" value="가입허용">
|
||||
<input id="btn_deny_join" type="button" value="가입금지">
|
||||
<input id="btn_allow_login" type="button" value="로그인허용">
|
||||
<input id="btn_deny_login" type="button" value="로그인금지">
|
||||
<input id="btn_process_withdraw" type="button" value="탈퇴처리(1개월)">
|
||||
<input id="btn_process_scrub_olduser" type="button" value="오래된계정(6개월)">
|
||||
</div>
|
||||
<div id="EntranceMember_0002" class="bg2 font2">
|
||||
선택:
|
||||
<select id="EntranceMember_000200" size="1">
|
||||
<option value="0">순서</option>
|
||||
<option value="1">ID</option>
|
||||
<option value="2">장수</option>
|
||||
<option value="3">민번</option>
|
||||
<option value="4">IP</option>
|
||||
<option value="5">등급</option>
|
||||
<option value="6">등록</option>
|
||||
<option value="7">최근</option>
|
||||
</select>
|
||||
<input id="EntranceMember_000201" type="button" value="정렬">
|
||||
</div>
|
||||
<div id="EntranceMember_0003" class="bg2 font2">
|
||||
선택:
|
||||
<select id="EntranceMember_000300" size="1">
|
||||
</select>
|
||||
<input id="EntranceMember_000301" type="button" value="블럭회원">
|
||||
<input id="EntranceMember_000302" type="button" value="일반회원">
|
||||
<input id="EntranceMember_000303" type="button" value="참여회원">
|
||||
<input id="EntranceMember_000304" type="button" value="유효회원">
|
||||
<input id="EntranceMember_000305" type="button" value="특별회원">
|
||||
<input id="EntranceMember_000306" type="button" value="전콘제거">
|
||||
<input id="EntranceMember_000307" type="button" value="비번초기화">
|
||||
<input id="EntranceMember_000308" type="button" value="회원삭제">
|
||||
</div>
|
||||
<div id="EntranceMember_0004" class="bg1">
|
||||
<div id="EntranceMember_000400">순번</div>
|
||||
<div id="EntranceMember_000401">ID</div>
|
||||
<div id="EntranceMember_000402">민번</div>
|
||||
<div id="EntranceMember_000403">닉네임</div>
|
||||
<div id="EntranceMember_000404">IP</div>
|
||||
<div id="EntranceMember_000405">블럭</div>
|
||||
<div id="EntranceMember_000406">최근블럭일</div>
|
||||
<div id="EntranceMember_000407">등록</div>
|
||||
<div id="EntranceMember_000408">최근등록일</div>
|
||||
<div id="EntranceMember_000409">등급</div>
|
||||
<div id="EntranceMember_000412">사진</div>
|
||||
<div id="EntranceMember_000413">SVR</div>
|
||||
<div id="EntranceMember_000414">탈퇴</div>
|
||||
</div>
|
||||
<div id="EntranceMember_0005">
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,80 +0,0 @@
|
||||
<?php
|
||||
namespace sammo;
|
||||
|
||||
require_once('_common.php');
|
||||
$session = Session::requireLogin();
|
||||
|
||||
|
||||
|
||||
// 외부 파라미터
|
||||
// $_GET['select'] : 정렬선택
|
||||
$select = $_GET['select'];
|
||||
|
||||
$db = RootDB::db();
|
||||
$userGrade = $session->userGrade;
|
||||
if($userGrade < 6) {
|
||||
Json::die([
|
||||
'result'=>'FAIL',
|
||||
'msg'=>'운영자 권한이 없습니다.'
|
||||
]);
|
||||
}
|
||||
|
||||
$orderByStr = '';
|
||||
switch($select) {
|
||||
case 0: $orderByStr = 'ORDER BY NO'; break;
|
||||
case 1: $orderByStr = 'ORDER BY ID'; break;
|
||||
case 2: $orderByStr = 'ORDER BY NAME'; break;
|
||||
case 3: $orderByStr = 'ORDER BY PID'; break;
|
||||
case 4: $orderByStr = 'ORDER BY IP'; break;
|
||||
case 5: $orderByStr = 'ORDER BY GRADE DESC'; break;
|
||||
case 6: $orderByStr = 'ORDER BY REG_NUM DESC'; break;
|
||||
case 7: $orderByStr = 'ORDER BY REG_DATE DESC'; break;
|
||||
}
|
||||
|
||||
$response['lists'] = '';
|
||||
$response['members'] = '<table id="EntranceMember_000500" class="bg0">';
|
||||
|
||||
$members = $db->queryFirstRow('SELECT NO, ID, PID, NAME, IP, PICTURE, IMGSVR, GRADE, REG_NUM, REG_DATE, BLOCK_NUM, BLOCK_DATE, QUIT FROM MEMBER %l', $orderByStr);
|
||||
$count = count($members);
|
||||
foreach($members as $member){
|
||||
$member['PID'] = substr($member['PID'], 0, 8);
|
||||
$member['PICTURE'] = substr($member['PICTURE'], -8);
|
||||
|
||||
if($member['GRADE'] == 2) { $member['GRADE'] = "<font color=skyblue>{$member['GRADE']}</font>"; }
|
||||
if($member['GRADE'] == 3) { $member['GRADE'] = "<font color=limegreen>{$member['GRADE']}</font>"; }
|
||||
if($member['GRADE'] == 4) { $member['GRADE'] = "<font color=cyan>{$member['GRADE']}</font>"; }
|
||||
if($member['GRADE'] == 5) { $member['GRADE'] = "<font color=blue>{$member['GRADE']}</font>"; }
|
||||
if($member['GRADE'] == 6) { $member['GRADE'] = "<font color=blue>{$member['GRADE']}</font>"; }
|
||||
|
||||
$response['lists'] .= "<option value='{$member['NO']}'>{$member['NAME']}</option>";
|
||||
|
||||
$response['members'] .= "
|
||||
<tr>
|
||||
<td class='EntranceMember_00050000'>{$member['NO']}</td>
|
||||
<td class='EntranceMember_00050001'>{$member['ID']}</td>
|
||||
<td class='EntranceMember_00050002'>{$member['PID']}</td>
|
||||
<td class='EntranceMember_00050003'>{$member['NAME']}</td>
|
||||
<td class='EntranceMember_00050004'>{$member['IP']}</td>
|
||||
<td class='EntranceMember_00050005'>{$member['BLOCK_NUM']}</td>
|
||||
<td class='EntranceMember_00050006'>{$member['BLOCK_DATE']}</td>
|
||||
<td class='EntranceMember_00050007'>{$member['REG_NUM']}</td>
|
||||
<td class='EntranceMember_00050008'>{$member['REG_DATE']}</td>
|
||||
<td class='EntranceMember_00050009'>{$member['GRADE']}</td>
|
||||
<td class='EntranceMember_00050012'>{$member['PICTURE']}</td>
|
||||
<td class='EntranceMember_00050013'>{$member['IMGSVR']}</td>
|
||||
<td class='EntranceMember_00050014'>{$member['QUIT']}</td>
|
||||
</tr>";
|
||||
}
|
||||
$response['members'] .= '</table>';
|
||||
|
||||
$response['count'] = "(0000/{$count})";
|
||||
|
||||
$system = RootDB::db()->queryFirstRow('SELECT `REG`, `LOGIN` FROM `SYSTEM` WHERE `NO`=1');
|
||||
|
||||
$response['state'] = "가입: {$system['REG']}, 로그인: {$system['LOGIN']}";
|
||||
|
||||
$response['result'] = 'SUCCESS';
|
||||
|
||||
Json::die($response);
|
||||
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
<?php
|
||||
namespace sammo;
|
||||
|
||||
if(!defined('ROOT')){
|
||||
define('ROOT', '../..');
|
||||
}
|
||||
require_once(ROOT.'/f_config/config.php');
|
||||
CustomHeader();
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
<div class="bg2 section_title with_border">회 원 관 리</div>
|
||||
<div class="center_ordered_items with_border bg0">
|
||||
<a href="admin_userlist.php"><button class="with_skin" type="button">회원 관리</button></a>
|
||||
<button id="btn_icon_scrub" class="with_skin" >전콘 정리</button>
|
||||
</div>
|
||||
<div class="center_ordered_items with_border bg0">
|
||||
<textarea cols="80" rows="3" id="notice_edit" name="notice"><?=$notice?></textarea>
|
||||
|
||||
@@ -8,18 +8,14 @@
|
||||
<!-- 스타일 -->
|
||||
<link type="text/css" rel="stylesheet" href='../css/config.css'>
|
||||
<link type="text/css" rel="stylesheet" href='../css/app.css'>
|
||||
|
||||
<link type="text/css" rel="stylesheet" href='../i_popup/Style.css'>
|
||||
<link type="text/css" rel="stylesheet" href='../i_entrance/user_info.css'>
|
||||
<link type="text/css" rel="stylesheet" href='../css/user_info.css'>
|
||||
|
||||
<!-- 액션 -->
|
||||
<script type="text/javascript" src='../js/common.js'></script>
|
||||
<script type="text/javascript" src='../e_lib/jquery-3.2.1.min.js'></script>
|
||||
<script type="text/javascript" src='../e_lib/sha512.min.js'></script>
|
||||
<script type="text/javascript" src='../js/func.js'></script>
|
||||
|
||||
<script type="text/javascript" src='../i_popup/Action.js'></script>
|
||||
<script type="text/javascript" src='user_info.js'></script>
|
||||
<script type="text/javascript" src='../js/user_info.js'></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="user_info_container">
|
||||
|
||||
@@ -1,128 +0,0 @@
|
||||
var Popup_callback = function() {};
|
||||
var Popup_waitTimer;
|
||||
|
||||
function Popup_Import() {
|
||||
}
|
||||
|
||||
function Popup_Init() {
|
||||
$("#Popup_0102").click(Popup_AlertOK);
|
||||
|
||||
$("#Popup_0202").click(Popup_ConfirmYes);
|
||||
$("#Popup_0203").click(Popup_ConfirmNo);
|
||||
|
||||
$("#Popup_0303").click(Popup_WaitHide);
|
||||
}
|
||||
|
||||
function Popup_Update() {
|
||||
}
|
||||
|
||||
function Popup_Alert(msg, callback) {
|
||||
$("#Popup_0101").text(msg);
|
||||
|
||||
Popup_callback = callback;
|
||||
|
||||
Popup_AlertShow();
|
||||
|
||||
// 익스플로러 버그로 인해 딜레이 줌
|
||||
setTimeout(function() { $("#Popup_0102").focus(); }, 10);
|
||||
}
|
||||
|
||||
function Popup_AlertOK() {
|
||||
if(Popup_callback) {
|
||||
Popup_callback();
|
||||
Popup_callback = "";
|
||||
}
|
||||
|
||||
Popup_AlertHide();
|
||||
}
|
||||
|
||||
function Popup_AlertShow() {
|
||||
$("#Popup_00").show();
|
||||
$("#Popup_01").show();
|
||||
}
|
||||
|
||||
function Popup_AlertHide() {
|
||||
$("#Popup_00").hide();
|
||||
$("#Popup_01").hide();
|
||||
}
|
||||
|
||||
function Popup_Confirm(msg, callback) {
|
||||
$("#Popup_0201").text(msg);
|
||||
|
||||
Popup_callback = callback;
|
||||
|
||||
Popup_ConfirmShow();
|
||||
|
||||
// 익스플로러 버그로 인해 딜레이 줌
|
||||
setTimeout(function() { $("#Popup_0203").focus(); }, 10);
|
||||
}
|
||||
|
||||
function Popup_ConfirmYes() {
|
||||
Popup_ConfirmHide();
|
||||
|
||||
if(Popup_callback) {
|
||||
Popup_callback();
|
||||
Popup_callback = "";
|
||||
}
|
||||
}
|
||||
|
||||
function Popup_ConfirmNo() {
|
||||
Popup_callback = "";
|
||||
|
||||
Popup_ConfirmHide();
|
||||
}
|
||||
|
||||
function Popup_ConfirmShow() {
|
||||
$("#Popup_00").show();
|
||||
$("#Popup_02").show();
|
||||
}
|
||||
|
||||
function Popup_ConfirmHide() {
|
||||
$("#Popup_00").hide();
|
||||
$("#Popup_02").hide();
|
||||
}
|
||||
|
||||
function Popup_Wait(callback) {
|
||||
$("#Popup_0301").text("처리중입니다.");
|
||||
Popup_waitTimer = setInterval(Popup_WaitInvalidate, 1000);
|
||||
|
||||
$("#Popup_00").show();
|
||||
$("#Popup_03").show();
|
||||
|
||||
callback();
|
||||
}
|
||||
|
||||
function Popup_WaitShow(msg, callback) {
|
||||
clearTimeout(Popup_waitTimer);
|
||||
|
||||
Popup_callback = callback;
|
||||
|
||||
$("#Popup_0301").text(msg);
|
||||
$("#Popup_0303").show();
|
||||
|
||||
// 익스플로러 버그로 인해 딜레이 줌
|
||||
setTimeout(function() { $("#Popup_0303").focus(); }, 10);
|
||||
}
|
||||
|
||||
function Popup_WaitHide() {
|
||||
clearTimeout(Popup_waitTimer);
|
||||
|
||||
if(Popup_callback) {
|
||||
Popup_callback();
|
||||
Popup_callback = "";
|
||||
}
|
||||
|
||||
$("#Popup_0303").hide();
|
||||
$("#Popup_00").hide();
|
||||
$("#Popup_03").hide();
|
||||
}
|
||||
|
||||
function Popup_WaitInvalidate() {
|
||||
var waitMsg = $("#Popup_0302").text();
|
||||
|
||||
if(waitMsg.length >= 5) {
|
||||
waitMsg = "";
|
||||
}
|
||||
|
||||
$("#Popup_0302").text(waitMsg+".");
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
<?php
|
||||
namespace sammo;
|
||||
|
||||
require_once('_common.php');
|
||||
?>
|
||||
|
||||
<div id="Popup_00">
|
||||
</div>
|
||||
<div id="Popup_01">
|
||||
<div id="Popup_0100" class="bg1">알 림</div>
|
||||
<div id="Popup_0101" class="bg0"></div>
|
||||
<input id="Popup_0102" type="button" value="확인">
|
||||
</div>
|
||||
|
||||
<div id="Popup_02">
|
||||
<div id="Popup_0200" class="bg1">선 택</div>
|
||||
<div id="Popup_0201" class="bg0"></div>
|
||||
<input id="Popup_0202" type="button" value="예">
|
||||
<input id="Popup_0203" type="button" value="아니요">
|
||||
</div>
|
||||
|
||||
<div id="Popup_03">
|
||||
<div id="Popup_0300" class="bg1">처 리 중</div>
|
||||
<div id="Popup_0301" class="bg0"></div>
|
||||
<div id="Popup_0302">.</div>
|
||||
<input id="Popup_0303" type="button" value="확인">
|
||||
</div>
|
||||
@@ -1,98 +0,0 @@
|
||||
@charset "utf-8";
|
||||
|
||||
#Popup_00 {
|
||||
width: 99%; height: 99%;
|
||||
background-color: #000000;
|
||||
position: absolute; top: 0px; left: 0px;
|
||||
z-index: 10;
|
||||
opacity: 0.5; filter: alpha(opacity:50);
|
||||
display: none;
|
||||
}
|
||||
|
||||
#Popup_01 {
|
||||
width: 302px; height: 142px;
|
||||
position: absolute; top: 40%; left: 50%;
|
||||
margin-left: -150px; margin-top: -70px;
|
||||
z-index: 10;
|
||||
display: none;
|
||||
}
|
||||
|
||||
#Popup_0100 {
|
||||
width: 300px; height: 20px;
|
||||
position: absolute; top: 0px; left: 0px;
|
||||
}
|
||||
|
||||
#Popup_0101 {
|
||||
width: 290px; height: 110px;
|
||||
position: absolute; top: 20px; left: 0px;
|
||||
padding: 5px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#Popup_0102 {
|
||||
width: 200px; height: 30px;
|
||||
position: absolute; top: 100px; left: 50px;
|
||||
}
|
||||
|
||||
#Popup_02 {
|
||||
width: 302px; height: 142px;
|
||||
position: absolute; top: 40%; left: 50%;
|
||||
margin-left: -150px; margin-top: -70px;
|
||||
z-index: 10;
|
||||
display: none;
|
||||
}
|
||||
|
||||
#Popup_0200 {
|
||||
width: 300px; height: 20px;
|
||||
position: absolute; top: 0px; left: 0px;
|
||||
}
|
||||
|
||||
#Popup_0201 {
|
||||
width: 290px; height: 110px;
|
||||
position: absolute; top: 20px; left: 0px;
|
||||
padding: 5px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#Popup_0202 {
|
||||
width: 100px; height: 30px;
|
||||
position: absolute; top: 100px; left: 40px;
|
||||
}
|
||||
|
||||
#Popup_0203 {
|
||||
width: 100px; height: 30px;
|
||||
position: absolute; top: 100px; left: 160px;
|
||||
}
|
||||
|
||||
#Popup_03 {
|
||||
width: 302px; height: 112px;
|
||||
position: absolute; top: 40%; left: 50%;
|
||||
margin-left: -150px; margin-top: -55px;
|
||||
z-index: 10;
|
||||
display: none;
|
||||
}
|
||||
|
||||
#Popup_0300 {
|
||||
width: 300px; height: 20px;
|
||||
position: absolute; top: 0px; left: 0px;
|
||||
}
|
||||
|
||||
#Popup_0301 {
|
||||
width: 290px; height: 80px;
|
||||
position: absolute; top: 20px; left: 0px;
|
||||
padding: 5px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#Popup_0302 {
|
||||
width: 20px; height: 20px;
|
||||
position: absolute; top: 50px; left: 140px;
|
||||
border: none;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#Popup_0303 {
|
||||
width: 200px; height: 30px;
|
||||
position: absolute; top: 70px; left: 50px;
|
||||
display: none;
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
<?php
|
||||
namespace sammo;
|
||||
|
||||
if(!defined('ROOT')){
|
||||
define('ROOT', '..');
|
||||
}
|
||||
require_once(ROOT.'/f_config/config.php');
|
||||
|
||||
CustomHeader();
|
||||
|
||||
@@ -76,22 +76,24 @@ function Entrance_Member() {
|
||||
function Entrance_AdminChangeNotice() {
|
||||
var notice = $("#notice_edit").val();
|
||||
|
||||
Popup_Confirm('정말 실행하시겠습니까?', function() {
|
||||
Popup_Wait(function() {
|
||||
PostJSON(
|
||||
"../i_entrance/j_server_change_status.php", {
|
||||
action: 'notice',
|
||||
notice: notice
|
||||
},
|
||||
function(response, textStatus) {
|
||||
if(response.result == "SUCCESS") {
|
||||
location.reload();
|
||||
} else {
|
||||
Popup_WaitShow(response.msg);
|
||||
}
|
||||
}
|
||||
)
|
||||
})
|
||||
if(!confirm('정말 실행하시겠습니까?')){
|
||||
return;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
type:'post',
|
||||
url:'j_server_change_status.php',
|
||||
dataType:'json',
|
||||
data:{
|
||||
action: 'notice',
|
||||
notice: notice
|
||||
}
|
||||
}).then(function(response){
|
||||
if(response.result == "SUCCESS") {
|
||||
location.reload();
|
||||
} else {
|
||||
alert(response.msg);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -99,28 +101,29 @@ function modifyServerStatus(caller, action) {
|
||||
var $caller = $(caller);
|
||||
var server = $caller.parents('tr').data('server_name');
|
||||
|
||||
Popup_Confirm('정말 실행하시겠습니까?', function() {
|
||||
Popup_Wait(function() {
|
||||
PostJSON(
|
||||
"../i_entrance/j_server_change_status.php", {
|
||||
server: server,
|
||||
action: action
|
||||
},
|
||||
function(response, textStatus) {
|
||||
if(response.result == "SUCCESS") {
|
||||
Popup_WaitHide();
|
||||
if(action == 'reset') {
|
||||
ReplaceFrame(response.installURL);
|
||||
} else {
|
||||
Replace("entrance.php");
|
||||
}
|
||||
} else {
|
||||
Popup_WaitShow(response.msg);
|
||||
}
|
||||
}
|
||||
)
|
||||
})
|
||||
});
|
||||
if(!confirm('정말 실행하시겠습니까?')){
|
||||
return;
|
||||
}
|
||||
$.ajax({
|
||||
type:'post',
|
||||
url:'j_server_change_status.php.php',
|
||||
dataType:'json',
|
||||
data:{
|
||||
server: server,
|
||||
action: action
|
||||
}
|
||||
}).then(function(response) {
|
||||
if(response.result == "SUCCESS") {
|
||||
if(action == 'reset') {
|
||||
location.href = response.installURL;
|
||||
} else {
|
||||
location.reload();
|
||||
}
|
||||
} else {
|
||||
alert(response.msg);
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
function Entrance_AdminNPCLogin(caller) {
|
||||
@@ -42,33 +42,20 @@ var serverLoginTemplate = "\
|
||||
</td>\
|
||||
";
|
||||
|
||||
function Entrance_Import() {
|
||||
}
|
||||
|
||||
function Entrance_Init() {
|
||||
$(function(){
|
||||
$("#btn_logout").click(Entrance_Logout);
|
||||
}
|
||||
|
||||
function Entrance_Update() {
|
||||
Entrance_UpdateServer();
|
||||
}
|
||||
});
|
||||
|
||||
function Entrance_UpdateServer() {
|
||||
Popup_Wait(function() {
|
||||
PostJSON(
|
||||
"../i_entrance/j_server_get_status.php", {
|
||||
},
|
||||
function(response, textStatus) {
|
||||
if(response.result == "SUCCESS") {
|
||||
Entrance_drawServerList(response.server);
|
||||
//Entrance_ServerList(response.serverCount, response.servers);
|
||||
//Entrance_ServerListPosition();
|
||||
Popup_WaitHide();
|
||||
} else {
|
||||
Popup_WaitShow("서버목록 로드 실패!");
|
||||
}
|
||||
}
|
||||
)
|
||||
$.ajax({
|
||||
type:'post',
|
||||
url:"j_server_get_status.php",
|
||||
dataType:'json',
|
||||
}).then(function(response){
|
||||
if(response.result == "SUCCESS") {
|
||||
Entrance_drawServerList(response.server);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -85,8 +72,6 @@ function Entrance_drawServerList(serverInfos){
|
||||
|
||||
|
||||
$.getJSON("../"+serverInfo.name+'/j_server_basic_info.php',{}, function(result){
|
||||
console.log(result);
|
||||
console.log(result.game);
|
||||
if(!result.game){
|
||||
return;
|
||||
}
|
||||
@@ -135,50 +120,16 @@ function Entrance_drawServerList(serverInfos){
|
||||
});
|
||||
}
|
||||
|
||||
function Entrance_ServerListPosition() {
|
||||
var heightTitle = $("#Entrance_000000").height();
|
||||
var heightSub = $("#Entrance_000001").height();
|
||||
var heightList = $("#Entrance_000002").height();
|
||||
var heightComment = $("#Entrance_000003").height();
|
||||
var top = heightTitle+heightSub+heightList+5;
|
||||
|
||||
$("#Entrance_000003").css("top", top+"px");
|
||||
top += heightComment;
|
||||
$("#Entrance_0000").height(top+2);
|
||||
top = 20 + top;
|
||||
$("#Entrance_0001").css("top", top+"px");
|
||||
top = 20 + top + $("#Entrance_0001").height();
|
||||
$("#Entrance_0002").css("top", top+"px");
|
||||
top = 20 + top + $("#Entrance_0002").height();
|
||||
$("#Entrance_0003").css("top", top+"px");
|
||||
}
|
||||
|
||||
function Entrance_Logout() {
|
||||
Popup_Wait(function() {
|
||||
PostJSON(
|
||||
"../i_entrance/j_logout.php", {
|
||||
},
|
||||
function(response, textStatus) {
|
||||
if(response.result) {
|
||||
Popup_WaitHide();
|
||||
ReplaceFrame("../");
|
||||
} else {
|
||||
Popup_WaitShow("로그아웃 실패!");
|
||||
}
|
||||
}
|
||||
)
|
||||
$.ajax({
|
||||
type:'post',
|
||||
url:"j_logout.php",
|
||||
dataType:'json',
|
||||
}).then(function(response) {
|
||||
if(response.result) {
|
||||
location.href="../";
|
||||
} else {
|
||||
alert('로그아웃 실패');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$(function(){
|
||||
ImportView("body", "../i_popup/Frame.php");
|
||||
//ImportView("body", "Frame.php");
|
||||
|
||||
Popup_Import();
|
||||
Popup_Init();
|
||||
Popup_Update();
|
||||
|
||||
Entrance_Import();
|
||||
Entrance_Init();
|
||||
Entrance_Update();
|
||||
});
|
||||
@@ -229,80 +229,3 @@ $(function(){
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
|
||||
function EntranceManage_Update() {
|
||||
Popup_Wait(function() {
|
||||
PostJSON(
|
||||
"../../i_entrance/manage/Get.php", {
|
||||
},
|
||||
function(response, textStatus) {
|
||||
if(response.result == "SUCCESS") {
|
||||
EntranceManage_UpdateInfo(response);
|
||||
Popup_WaitHide();
|
||||
} else {
|
||||
Popup_WaitShow("정보 로드 실패!");
|
||||
}
|
||||
}
|
||||
)
|
||||
});
|
||||
}
|
||||
|
||||
function EntranceManage_ChangeIcon() {
|
||||
if($("#EntranceManage_001601").val() == "") {
|
||||
Popup_Alert("파일을 선택해 주세요!");
|
||||
} else {
|
||||
Popup_Wait(function() {
|
||||
$("#formIcon").submit();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function EntranceManage_DeleteIcon() {
|
||||
Popup_Confirm('정말 실행하시겠습니까?', function() {
|
||||
Popup_Wait(function() {
|
||||
PostJSON(
|
||||
"../../i_entrance/manage/deletePost.php", {
|
||||
},
|
||||
function(response, textStatus) {
|
||||
Popup_WaitShow(response.msg, function() {
|
||||
EntranceManage_Update();
|
||||
});
|
||||
}
|
||||
)
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
function EntranceManage_Quit() {
|
||||
var pw = $("#EntranceManage_000600").val();
|
||||
|
||||
if(pw.length < 4 || pw.length > 12) {
|
||||
Popup_Alert("현재 비밀번호를 입력해주세요.", function() {
|
||||
$("#EntranceManage_000600").val("");
|
||||
$("#EntranceManage_000600").focus();
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
Popup_Confirm('정말 탈퇴하시겠습니까?', function() {
|
||||
Popup_Wait(function() {
|
||||
PostJSON(
|
||||
"../../i_entrance/manage/quitPost.php", {
|
||||
pw: hex_md5(pw+""+pw)
|
||||
},
|
||||
function(response, textStatus) {
|
||||
if(response.result == "SUCCESS") {
|
||||
Popup_WaitShow(response.msg, function() {
|
||||
ReplaceFrame("../../");
|
||||
});
|
||||
} else {
|
||||
Popup_WaitShow(response.msg, function() {
|
||||
EntranceManage_Update();
|
||||
});
|
||||
}
|
||||
}
|
||||
)
|
||||
})
|
||||
});
|
||||
}
|
||||
@@ -1,67 +0,0 @@
|
||||
body, html{
|
||||
height: 100%;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
.main{
|
||||
margin-top: 70px;
|
||||
}
|
||||
|
||||
h1.title {
|
||||
font-size: 50px;
|
||||
font-family: 'Passion One', cursive;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
hr{
|
||||
width: 10%;
|
||||
/*color: #fff;*/
|
||||
}
|
||||
|
||||
.form-group{
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
label{
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
input,
|
||||
input::-webkit-input-placeholder {
|
||||
font-size: 11px;
|
||||
padding-top: 3px;
|
||||
}
|
||||
|
||||
.main-login{
|
||||
/*background-color: #fff;*/
|
||||
/* shadows and rounded borders */
|
||||
-moz-border-radius: 2px;
|
||||
-webkit-border-radius: 2px;
|
||||
border-radius: 2px;
|
||||
-moz-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);
|
||||
-webkit-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);
|
||||
box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);
|
||||
|
||||
}
|
||||
|
||||
.main-center{
|
||||
margin-top: 30px;
|
||||
margin: 0 auto;
|
||||
max-width: 330px;
|
||||
padding: 40px 40px;
|
||||
|
||||
}
|
||||
|
||||
.login-button{
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.login-register{
|
||||
font-size: 11px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
.terms{
|
||||
max-height: 200px; overflow: auto;
|
||||
}
|
||||
Reference in New Issue
Block a user