Files
tm_sam/i_entrance/adminAction.js
T

111 lines
3.3 KiB
JavaScript

function Entrance_AdminImport() {
}
function Entrance_AdminInit() {
$("#Entrance_000201").click(Entrance_Donation);
$("#Entrance_000202").click(Entrance_Member);
$("#Entrance_000204").click(Entrance_AdminChangeNotice);
$("#Entrance_000205").click(Entrance_IconScrub);
}
function Entrance_AdminUpdate() {
}
function Entrance_IconScrub(){
Popup_Confirm('사용하지 않는 전콘 중 등록된지 2개월이 지난 것들을 삭제합니다.', function() {
Popup_Wait(function() {
PostJSON(
HOME+I+ENTRANCE+W+'iconScrub.php', {
action: 0,
notice: notice
},
function(response, textStatus) {
if(response.result == "SUCCESS") {
Popup_WaitHide();
Replace(ENTRANCE+PHP);
} else {
Popup_WaitShow(response.msg);
}
}
)
})
});
}
function Entrance_Donation() {
$("#Entrance_00").hide();
$("#EntranceDonation_00").show();
EntranceDonation_Update();
}
function Entrance_Member() {
$("#Entrance_00").hide();
$("#EntranceMember_00").show();
EntranceMember_Update();
}
function Entrance_AdminChangeNotice() {
var notice = $("#Entrance_000203").val();
Popup_Confirm('정말 실행하시겠습니까?', function() {
Popup_Wait(function() {
PostJSON(
HOME+I+ENTRANCE+W+ADMIN+POST, {
action: 0,
notice: notice
},
function(response, textStatus) {
if(response.result == "SUCCESS") {
Popup_WaitHide();
Replace(ENTRANCE+PHP);
} else {
Popup_WaitShow(response.msg);
}
}
)
})
});
}
function Entrance_AdminPost(server, select) {
Popup_Confirm('정말 실행하시겠습니까?', function() {
Popup_Wait(function() {
PostJSON(
HOME+I+ENTRANCE+W+ADMIN+POST, {
action: 1,
server: server,
select: select
},
function(response, textStatus) {
if(response.result == "SUCCESS") {
Popup_WaitHide();
if(select == 1) {
ReplaceFrame(response.installURL);
} else {
Replace(ENTRANCE+PHP);
}
} else {
Popup_WaitShow(response.msg);
}
}
)
})
});
}
function Entrance_AdminNPCLogin(serverDir) {
ReplaceFrame(serverDir+W+'npc_login'+PHP);
}
function Entrance_AdminNPCCreate(serverDir) {
ReplaceFrame(serverDir+W+'npc_join'+PHP);
}
function Entrance_AdminClosedLogin(serverDir) {
ReplaceFrame(serverDir+'_close'+W+'npc_login'+PHP);
}
function Entrance_AdminOpen119(serverDir) {
Open(serverDir+W+'119'+PHP);
}