admin page login added

Showing 454 changed files with 2 additions and 4795 deletions
eclipse.preferences.version=1
encoding//admin/inc/php/header.php=UTF-8
encoding/<project>=UTF-8
......
eclipse.preferences.version=1
include_path=0;/groupby
include_path=0;/KCSpecialVehicle
......
12
\ No newline at end of file
12
\ No newline at end of file
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminUser.php" ?>
<?
$_REQUEST["page"] = "-1";
$obj = new AdminUser($_REQUEST, "") ;
$list = $obj->getListOfUserForExcel("M") ;
header('Content-Disposition: attachment; filename=groupUserList_'.$date.'.xls');
$a=$_REQUEST["search_text"];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko">
<META HTTP-EQUIV="imagetoolbar" CONTENT="no"/>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8" />
<title>Application Back Office</title>
<table width="800" border="1" cellpadding="0" cellspacing="0">
<tr>
<td align="center">No</td>
<td align="center">이메일</td>
<td align="center">이름</td>
<td align="center">전화번호</td>
<td align="center">소속그룹</td>
<th width="5%">멤버쉽<br>회원여부</th>
<th width="10%">승인 상태</th>
<td align="center">가입 날짜</td>
</tr>
<? for($i = 0 ; $i < sizeof($list) ; $i++){?>
<tr>
<td align="center" style='mso-number-format:"\@"'><?=sizeof($list)-$i?></td>
<td align="center" style='mso-number-format:"\@"'>
<?
if($list[$i]["regi_type"] == "E")
echo $list[$i]["id"];
else if($list[$i]["regi_type"] == "K")
echo "카카오톡 가입";
else if($list[$i]["regi_type"] == "F")
echo "페이스북 가입";
?>
</td>
<td align="center" style='mso-number-format:"\@"'><?=$list[$i]["name"]?></td>
<td align="center" style='mso-number-format:"\@"'><?=$list[$i]["tel"]?></td>
<td align="center" style='mso-number-format:"\@"'><?=$list[$i]["group_name"]?></td>
<td class="center">
<?=($list[$i]["member_type"] == "M") ? "O" : "X"?>
</td>
<td class="center">
<?if($list[$i]["group_fk"] > 0 && $list[$i]["member_type"] == "H"){ ?>
<input type="button" class="button searchsmall white jBtnMS" value="승인" no="<?=$list[$i]["no"]?>" member_type="M"/>
<input type="button" class="button searchsmall white jBtnMS" value="거절" no="<?=$list[$i]["no"]?>" member_type="N" />
<?} elseif ($list[$i]["group_fk"] > 0 && $list[$i]["member_type"] == "M"){ ?>
승인
<?} elseif ($list[$i]["group_fk"] > 0 && $list[$i]["member_type"] == "N"){ ?>
거절
<?} else { ?>
-
<?} ?>
</td>
<td align="center" style='mso-number-format:"\@"'><?=$list[$i]["reg_dt"]?></td>
</tr>
<?}?>
</table>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="/admin/inc/css/base.css">
<link rel="stylesheet" type="text/css" href="/admin/inc/css/layout.css">
<link rel="stylesheet" type="text/css" href="/admin/inc/css/common.css">
<link rel="stylesheet" type="text/css" href="/admin/inc/css/btn.css">
<script type="text/javascript" src="/common/js/common.js"></script>
<script type="text/javascript" src="/common/js/jsMap.js"></script>
<script type="text/javascript" src="/common/js/jquery-1.7.1.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="/common/js/jquery.cookie.js"></script>
<!-- 리치 js -->
<script type="text/javascript" src="/common/js/jquery_rich/RichBaseExtends.js"></script>
<script type="text/javascript" src="/common/js/jquery_rich/RichBaseElementObject-1.0.js"></script>
<!--
<script type="text/javascript" src="/common/js/jquery_rich/RichFramework-1.0.js"></script>
<script type="text/javascript" src="/common/js/jquery_rich/RichElement-1.0.js"></script>
<script type="text/javascript" src="/common/js/jquery_rich/RHForm-1.0.js"></script>
-->
<script type="text/javascript" src="/common/js/ajaxupload.3.6.js"></script>
<script type="text/javascript" src="/common/js/imgPreview.js"></script>
<script type="text/javascript" src="/common/js/jquery.form.js"></script>
<script>
//*********** 전역변수 선언 스코프 ***********//
var _domain = "<?=$webRoot != '' ? $webRoot : 'http://turi.richware.co.kr' ?>";
var _urlPath = getUrlPath(); // top menu를 위해
var _fullUrlPath = getFullUrlPath(); // left menu 선택을 위해
var _documentUrl = getOriginUrl(); // #제거한 url
//*********** 전역변수 선언 스코프 ***********//
//url 경로 추출
function getUrlPath()
{
var currentUrl = urlRemoveSharp(document.URL);
currentUrl = currentUrl.replace(_domain, "");
var urlArr = currentUrl.split("/");
var retPath = "";
for (var i=1; i < 3 ; i++)
{
if(urlArr[i] != "")
{
retPath += "/"+urlArr[i];
}
}
return retPath;
}
//url 전체경로 추출
function getFullUrlPath()
{
var currentUrl = document.URL;
var urlPath = currentUrl.split("?");
urlPath = urlPath[0];
urlPath = urlRemoveSharp(urlPath);
urlPath = urlPath.replace(_domain, "");
return urlPath;
}
//document.URL 원본 추출
function getOriginUrl()
{
var currentUrl = urlRemoveSharp(document.URL);
return currentUrl;
}
//url에서 #제거
function urlRemoveSharp(url)
{
var urlArr = url.split("?");
urlArr[0] = urlArr[0].replace("#", "");
urlArr = urlArr.join("?");
return urlArr;
}
</script>
\ No newline at end of file
/* ===============================================
작성일 : 2013.01.10
작업자 : 이은영(le3un0@gmail.com)
================================================== */
#Wrap {min-height:100%; width:1260px; margin:0 auto; background:#ffffff;}
#Wrap:after{content:""; display:block; clear:both;}
/* Header */
#Header {
position:relative;
z-index:1;
clear:both;
padding :0 25px 0 25px;
margin:0 auto;
width:1200px;
height:100px;
background-color:#ffffff;}
.hgroup{
width:1200px;
height:50px;
padding:0px 0px 0px 0px;
margin:0px 0px 0px 0px;
float:left;
}
.hgroup td.logo{
width:910px;
padding :15px 0px 0px 5px;
margin:0px 0px 0px 0px;
float:left;
font-size:24px;
color:#1e548f;
font-weight:bold;}
.hgroup td.logo span{
font-size:24px;
color:#777;
font-weight:bold;}
.hgroup td.log{
width:275px;
text-align:right;
padding:30px 0 0 0px;
color:#999;
}
/* 최종 메인메뉴 */
.nav {
float:left;
width:1180px;
height:30px;
margin :0px 2px 0px 0px;
padding:8px 10px 10px 10px;
background-image:url(../images/t_manu_bg.gif);
background-position:top;
background-repeat:repeat-x;
}
.nav ul li{display:block;float:left;}
.nav ul li a{
width:134px;
height:18px;
text-align:center;
display:block;
padding:2px 6px 2px 6px;
color:#ffffff;
text-decoration:none;
font-size:14px;
margin :0px 2px 0px 2px;}
.nav ul li a:hover {
color:#004170;
font-weight:bold;
background-color:#ffffff;
border-radius:3px 3px 3px 3px;
-webkit-border-radius:3px 3px 3px 3px;
-moz-border-radius: 3px 3px 3px 3px;
-o-border-radius: 3px 3px 3px 3px;
}
.nav ul li a.selected{
color:#004170;
font-weight:bold;
background-color:#ffffff;
border-radius:3px 3px 3px 3px;
-webkit-border-radius:3px 3px 3px 3px;
-moz-border-radius: 3px 3px 3px 3px;
-o-border-radius: 3px 3px 3px 3px;
}
/* contWrap */
.conHeight{min-height:100%; z-index:1; margin:0 auto;}
.contWrap {clear:both; padding:0px 25px 140px 25px; *zoom:1; width:1200px; background:#fff; z-index:1; margin:0 auto; min-height:100%;}
.contWrap:after{content:""; display:block; clear:both;}
/* left menu */
.leftWrap {
float:left;
width:200px;
margin:0px 0px 0px 0px;
background-color:#ffffff;
}
.sidemenu ul{
margin:0px 0 20px 0 ;
padding:0px 0 20px 0px ;
width:170px;}
.sidemenu h1{
text-align:left;
padding:0px 0 0px 10px ;
margin:20px 0 0px 0px ;
color:#ffffff;
width:160px;
height:30px;
line-height:30px;
font-size:14px;
background-color:#f5f5f5;
border:1px solid #ebebeb;
color:#3c87c5;
}
.sidemenu li{
text-align:left;
width:180px;
padding:0 0 0 0px ;
color:#666666;
background-color:#fff;
border:0px solid #ebebeb;
font-size:12px;
background-image:url(../images/bg_side_dot.gif);
background-position: bottom;
background-repeat:no-repeat;
}
.sidemenu li a{
text-align:left;
color:#666666;
text-decoration:none;
font-size:12px;
margin:0px 0 0px 8px ;
padding:0px 0 0px 0px ;
line-height:30px;
}
.sidemenu li a:hover{
height:30px;
color: #0078c2;
}
.selected ul{
margin:0px 0 20px 0px ;
padding:0px 0 20px 12px ;
}
.selected h1{
text-align:left;
padding:0px 0 0px 10px ;
margin:20px 0 0px 0px ;
color:#ffffff;
width:160px;
height:30px;
line-height:30px;
font-size:14px;
background-color:#63a7e5;
border:1px #4892d5 solid;
color:#ffffff;
font-weight:bold;
}
.selected li{
text-align:left;
width:180px;
padding:0 0 0 0px ;
background-color:#fff;
border:0px solid #ebebeb;
background-image:url(../images/bg_side_dot.gif);
background-position: bottom;
background-repeat:no-repeat;
}
.selected li a{
text-align:left;
font-size:12px;
color:#666666;
text-decoration:none;
margin:0px 0 0px 10px ;
padding:0px 0 0px 0px ;
line-height:30px;
}
.selected li a:hover{
height:30px;
color: #0078c2;
font-size:12px; }
.left_blank {width:170x; height:50px;}
/* Contents */
#Contents {float:left; padding:20px 0px 0px 0px; display:inline; min-height:630px; height:100%; z-index:9; width: 1000px; }
#ContentsSitemap {float:right; padding:20px 0px 0px 0px; display:inline; min-height:430px; z-index:9; width: 960px; }
#Contents h1{
font-size:24px;
color:#1451ad;
letter-spacing:-1px;
margin:0 0 0px 0;
font-weight: bold;
}
#Contents h2{
width:978px;
font-size:11px;
font-weight:normal;
color:#777;
text-align:right;
padding:4px 10px 4px 10px;
margin:5px 0 10px 0;
background-color:#f5f5f5;
border:1px solid #ebebeb;
border-radius:3px 3px 3px 3px ;
-webkit-border-radius: 3px 3px 3px 3px ;
-moz-border-radius: 3px 3px 3px 3px ;
-o-border-radius:3px 3px 3px 3px ;
}
#Contents h2 span{
color:#3c87c5;
font-size:12px;
text-align:right;
}
/* 사파리 크롬 */
@media screen and (-webkit-min-device-pixel-ratio:0) {
}
<?
phpinfo();
exit;
$ch = curl_init();
$msgJson = array(
"collapse_key" => "score_update" ,
"time_to_live" => 1 ,
"delay_while_idle" => true,
"data" => array(
"flag" => 1,
"message" => 1,
"badge" => 1
),
"registration_ids" => Array("APA91bGgecGR2cNrL_BxUYI69xC_4IquqnCa-047W6tRSX9CbJQVVR_oGvtqO_W_h6Ah9GOFwZWsiq08G_k1-dHZpkXW8OgBcXszFUN6QVTEr2RwQxEE26T1IdFMBedpvhOFeR-hU4du")
) ;
$msg = json_encode($msgJson) ;
$headers = array(
"Content-Type: application/json",
"Content-Length: ". strlen($msg),
"Authorization: key=" . "AIzaSyBmoURv31T4FLmsf_SwoLRRZRijktAMzO0"
);
curl_setopt($ch, CURLOPT_URL, "https://android.googleapis.com/gcm/send");
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $msg);
$result = curl_exec($ch);
echo $result;
curl_close($ch);
?>
\ No newline at end of file
This diff could not be displayed because it is too large.
/**
* Cookie plugin
*
* Copyright (c) 2006 Klaus Hartl (stilbuero.de)
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
*/
/**
* Create a cookie with the given name and value and other optional parameters.
*
* @example $.cookie('the_cookie', 'the_value');
* @desc Set the value of a cookie.
* @example $.cookie('the_cookie', 'the_value', { expires: 7, path: '/', domain: 'jquery.com', secure: true });
* @desc Create a cookie with all available options.
* @example $.cookie('the_cookie', 'the_value');
* @desc Create a session cookie.
* @example $.cookie('the_cookie', null);
* @desc Delete a cookie by passing null as value. Keep in mind that you have to use the same path and domain
* used when the cookie was set.
*
* @param String name The name of the cookie.
* @param String value The value of the cookie.
* @param Object options An object literal containing key/value pairs to provide optional cookie attributes.
* @option Number|Date expires Either an integer specifying the expiration date from now on in days or a Date object.
* If a negative value is specified (e.g. a date in the past), the cookie will be deleted.
* If set to null or omitted, the cookie will be a session cookie and will not be retained
* when the the browser exits.
* @option String path The value of the path atribute of the cookie (default: path of page that created the cookie).
* @option String domain The value of the domain attribute of the cookie (default: domain of page that created the cookie).
* @option Boolean secure If true, the secure attribute of the cookie will be set and the cookie transmission will
* require a secure protocol (like HTTPS).
* @type undefined
*
* @name $.cookie
* @cat Plugins/Cookie
* @author Klaus Hartl/klaus.hartl@stilbuero.de
*/
/**
* Get the value of a cookie with the given name.
*
* @example $.cookie('the_cookie');
* @desc Get the value of a cookie.
*
* @param String name The name of the cookie.
* @return The value of the cookie.
* @type String
*
* @name $.cookie
* @cat Plugins/Cookie
* @author Klaus Hartl/klaus.hartl@stilbuero.de
$.cookie('the_cookie'); // get cookie
$.cookie('the_cookie', 'the_value'); // set cookie
$.cookie('the_cookie', 'the_value', { expires: 7 }); // set cookie with an expiration date seven days in the future
$.cookie('the_cookie', '', { expires: -1 }); // delete cookie
*/
jQuery.cookie = function(name, value, options) {
if (typeof value != 'undefined') { // name and value given, set cookie
options = options || {};
if (value === null) {
value = '';
options = $.extend({}, options); // clone object since it's unexpected behavior if the expired property were changed
options.expires = -1;
}
var expires = '';
if (options.expires < 0)
options.expires = 1;
if (options.path == undefined)
options.path = '/';
if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
var date;
if (typeof options.expires == 'number') {
date = new Date();
date.setTime(date.getTime() + (options.expires * 6 * 60 * 60 * 1000)); // 6 hours
} else {
date = options.expires;
}
expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE
}
// NOTE Needed to parenthesize options.path and options.domain
// in the following expressions, otherwise they evaluate to undefined
// in the packed version for some reason...
var path = options.path ? '; path=' + (options.path) : '';
var domain = options.domain ? '; domain=' + (options.domain) : '';
var secure = options.secure ? '; secure' : '';
//alert(encodeURIComponent(value) + '/' + expires + '/' + path + '/' + domain + '/' + secure);
document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
} else { // only name given, get cookie
var cookieValue = null;
if (document.cookie && document.cookie != '') {
var cookies = document.cookie.split(';');
for (var i = 0; i < cookies.length; i++) {
var cookie = jQuery.trim(cookies[i]);
// Does this cookie string begin with the name we want?
if (cookie.substring(0, name.length + 1) == (name + '=')) {
cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
break;
}
}
}
return cookieValue;
}
};
\ No newline at end of file
function aeClass(name,event,fn)
{
$("." + name).bind(event, eval(fn)).css({cursor : "pointer"}) ;
}
function aeId(name,event,fn)
{
$("#" + name).bind(event, eval(fn)).css({cursor : "pointer"}) ;
}
function aeClassNc(name,event,fn)
{
$("." + name).bind(event, eval(fn)) ;
}
function aeIdNc(name,event,fn)
{
$("#" + name).bind(event, eval(fn)) ;
}
function toggleHTML()
{
var dp = $(".sHtml").css("display") ;
if( dp == "none" )
$(".sHtml").show() ;
else
$(".sHtml").hide() ;
}
function go(url)
{
location.href = url + makeQueryString(sParam) ;
}
function goPage(url)
{
var arrEptKey = new Array("rurl") ;
location.href = url + makeQueryStringEptKey(sParam,arrEptKey) ;
}
function goRurl()
{
if( sParam == undefined )
go(LIST_SC) ;
else
location.href = decodeURIComponent(sParam["rurl"]) ;
}
function jsonAjax(type,url,params,fn,evtFn)
{
$.ajax({type:"POST",
data:params,
dataType:"json",
url:url,
success:function(data,status){
if( data == null )
{
alert("결과 데이터가 없거나 프로세스에 문제가 있습니다.") ;
return ;
}
var listData = data[0] ; //리스트 데이터셋
var retData = data[1] ; //아웃풋 데이터셋
fn(listData,retData,status) ;
if( evtFn != null )
evtFn() ;
},
error:function(request,status){
alert("AJAX 사용 문법을 점검하시기 바랍니다.\n\n" + request.responseText);
}
}) ;
}
function makeQueryString(param)
{
jQuery.extend(param) ;
var queryString = "?" ;
var isFirst = true ;
for( var key in param )
{
if( !isFirst )
queryString += "&" ;
queryString += key + "=" + encodeURIComponent(param[key]) ;
isFirst = false ;
}
return queryString ;
}
//제외할 key를 제어하여 쿼리스트링 만듦
function makeQueryStringEptKey(param,arrEptKey)
{
jQuery.extend(param) ;
var queryString = "?" ;
var isFirst = true ;
for( var key in param )
{
if( jQuery.inArray(key,arrEptKey) < 0 )
{
if( !isFirst )
queryString += "&" ;
queryString += key + "=" + encodeURIComponent(param[key]) ;
isFirst = false ;
}
}
return queryString ;
}
//값 세팅
function setValue(infoData,clsName)
{
var arrInfoForm = jQuery.makeArray($("."+clsName)) ;
var objInfoForm ;
var isFilter ;
$.each(arrInfoForm,function(){
objInfoForm = $(this).attr("fid") ;
isFilter = ( $(this).attr("filter") != undefined ) ;
if( isFilter )
{
eval($(this).attr("filter"))() ;
}
$("#"+objInfoForm).val(( infoData == null ) ? "" : infoData[objInfoForm]) ;
}) ;
}
function debug(param)
{
document.write("http://www.nowniz.com/action.php" + makeQueryString(param) );
}
function setVisibility(arrVis)
{
$.each(jQuery.makeArray($(".action")),function(){
if( jQuery.inArray($(this).attr("id"),arrVis) >= 0 )
{
$(this).show() ;
}
}) ;
}
function progress(isExec)
{
if( isExec )
$("#progress").show() ;
else
$("#progress").hide() ;
}
function popup(popId,css,isCenter,isModal)
{
if( isModal )
{
$("body").append( $("<div id=\"bgdiv\"/>").css({"background":"#333333","position":"absolute","top":0,"left":0,"z-index":10,"opacity":"0.7"}).hide().width("100%").height("100%") ) ;
$("#bgdiv").show();
}
$("#" + popId).css(css) ;
if( isCenter )
{
var windowWidth = document.documentElement.clientWidth;
var windowHeight = document.documentElement.clientHeight;
var popupHeight = $("#" + popId).height();
var popupWidth = $("#" + popId).width();
$("#" + popId).css({"top":windowHeight/2-popupHeight/2,"left":windowWidth/2-popupWidth/2}) ;
}
return $("#" + popId) ;
}
\ No newline at end of file
Bag Attributes
friendlyName: Apple Push Services: com.appg.groupby.dong
localKeyID: 26 19 D0 A1 80 4D 85 9C 55 08 48 62 02 EB 47 C0 2C 45 7A 68
subject=/UID=com.appg.groupby.dong/CN=Apple Push Services: com.appg.groupby.dong/OU=CJ957VXPS8/O=GroupBy. Co. Ltd/C=US
issuer=/C=US/O=Apple Inc./OU=Apple Worldwide Developer Relations/CN=Apple Worldwide Developer Relations Certification Authority
-----BEGIN CERTIFICATE-----
MIIGKzCCBROgAwIBAgIIZoXXDepJvBMwDQYJKoZIhvcNAQELBQAwgZYxCzAJBgNV
BAYTAlVTMRMwEQYDVQQKDApBcHBsZSBJbmMuMSwwKgYDVQQLDCNBcHBsZSBXb3Js
ZHdpZGUgRGV2ZWxvcGVyIFJlbGF0aW9uczFEMEIGA1UEAww7QXBwbGUgV29ybGR3
aWRlIERldmVsb3BlciBSZWxhdGlvbnMgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkw
HhcNMTYwNDE4MDcwMzUxWhcNMTcwNTE4MDcwMzUxWjCBmTElMCMGCgmSJomT8ixk
AQEMFWNvbS5hcHBnLmdyb3VwYnkuZG9uZzEzMDEGA1UEAwwqQXBwbGUgUHVzaCBT
ZXJ2aWNlczogY29tLmFwcGcuZ3JvdXBieS5kb25nMRMwEQYDVQQLDApDSjk1N1ZY
UFM4MRkwFwYDVQQKDBBHcm91cEJ5LiBDby4gTHRkMQswCQYDVQQGEwJVUzCCASIw
DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPOpWV/q9qE+kyo1CdCOHswTbBXT
CENbX5j01L0abwXKQbBU5oFCtE1Hr1VuCVedv/3fV6XQTM3Vbno8Q4CBnFJvBXgm
xwFVHNgE1Mm2LI5vuGnULYlxsLRqVkpjT1gtK5eoF2LmsIA9upAaWn5CxO+SgD/U
sDhI+473BxUkm5W6Oqlxa+kQjAO8uL1AR0Q8mVgPBghIX22MspPK/+KxiiMemHxw
s+CZs/Yr934kfmizZ13htKsoSbDl6sVxKQRPJ0GqH0MzQe1X27faPKfqa90WPSnS
8u4u9Spw/2wkDeLZkX/idK8qvlJW1Kn8NLB2c1avBz2yOnt4eKRJWZz2ffsCAwEA
AaOCAnYwggJyMB0GA1UdDgQWBBQmGdChgE2FnFUISGIC60fALEV6aDAMBgNVHRMB
Af8EAjAAMB8GA1UdIwQYMBaAFIgnFwmpthhgi+zruvZHWcVSVKO3MIIBHAYDVR0g
BIIBEzCCAQ8wggELBgkqhkiG92NkBQEwgf0wgcMGCCsGAQUFBwICMIG2DIGzUmVs
aWFuY2Ugb24gdGhpcyBjZXJ0aWZpY2F0ZSBieSBhbnkgcGFydHkgYXNzdW1lcyBh
Y2NlcHRhbmNlIG9mIHRoZSB0aGVuIGFwcGxpY2FibGUgc3RhbmRhcmQgdGVybXMg
YW5kIGNvbmRpdGlvbnMgb2YgdXNlLCBjZXJ0aWZpY2F0ZSBwb2xpY3kgYW5kIGNl
cnRpZmljYXRpb24gcHJhY3RpY2Ugc3RhdGVtZW50cy4wNQYIKwYBBQUHAgEWKWh0
dHA6Ly93d3cuYXBwbGUuY29tL2NlcnRpZmljYXRlYXV0aG9yaXR5MDAGA1UdHwQp
MCcwJaAjoCGGH2h0dHA6Ly9jcmwuYXBwbGUuY29tL3d3ZHJjYS5jcmwwDgYDVR0P
AQH/BAQDAgeAMBMGA1UdJQQMMAoGCCsGAQUFBwMCMBAGCiqGSIb3Y2QGAwEEAgUA
MBAGCiqGSIb3Y2QGAwIEAgUAMIGGBgoqhkiG92NkBgMGBHgwdgwVY29tLmFwcGcu
Z3JvdXBieS5kb25nMAUMA2FwcAwaY29tLmFwcGcuZ3JvdXBieS5kb25nLnZvaXAw
BgwEdm9pcAwiY29tLmFwcGcuZ3JvdXBieS5kb25nLmNvbXBsaWNhdGlvbjAODAxj
b21wbGljYXRpb24wDQYJKoZIhvcNAQELBQADggEBAIY+FQVJz6SkNI6NctmQP3Yx
xxNmGi1nCyKgppes63ghh8q4cMcnuYZ+U6fBOHcNOIMd7AxADOvym/X92lkk3w4+
EEha0DmxWqOvmdywu60iDg7cMcl8Bavoyiz6FbIa9iVZtHzaTwv3rOLY4D0J2+87
eucu7bOS5GtFmTsq1BkZKWltx2YX1QKsaoQMfciUxSGLQMWxgDbPA80MMxiOHIi0
vNY3kV2Q/PPPnYEGATYXY73ip7qSHUKge87GlwHtot6dXlArMGjCl7FxLGcAX15g
AK+widgYH+I49cXnX1wpl/+YSxbjCfOUd1Ee8nFNWkuonfm6LG67QrocVqGyf0g=
-----END CERTIFICATE-----
Bag Attributes
friendlyName: iPhone Developer: Seunguk Kang (XFEUH5A8WJ)
localKeyID: 26 19 D0 A1 80 4D 85 9C 55 08 48 62 02 EB 47 C0 2C 45 7A 68
subject=/UID=W6DH84FK76/CN=iPhone Developer: Seunguk Kang (XFEUH5A8WJ)/OU=CJ957VXPS8/O=GroupBy. Co. Ltd/C=US
issuer=/C=US/O=Apple Inc./OU=Apple Worldwide Developer Relations/CN=Apple Worldwide Developer Relations Certification Authority
-----BEGIN CERTIFICATE-----
MIIFnDCCBISgAwIBAgIIQzngfvB/kGowDQYJKoZIhvcNAQELBQAwgZYxCzAJBgNV
BAYTAlVTMRMwEQYDVQQKDApBcHBsZSBJbmMuMSwwKgYDVQQLDCNBcHBsZSBXb3Js
ZHdpZGUgRGV2ZWxvcGVyIFJlbGF0aW9uczFEMEIGA1UEAww7QXBwbGUgV29ybGR3
aWRlIERldmVsb3BlciBSZWxhdGlvbnMgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkw
HhcNMTYwNDEyMDA0MTA5WhcNMTcwNDEyMDA0MTA5WjCBjzEaMBgGCgmSJomT8ixk
AQEMClc2REg4NEZLNzYxNDAyBgNVBAMMK2lQaG9uZSBEZXZlbG9wZXI6IFNldW5n
dWsgS2FuZyAoWEZFVUg1QThXSikxEzARBgNVBAsMCkNKOTU3VlhQUzgxGTAXBgNV
BAoMEEdyb3VwQnkuIENvLiBMdGQxCzAJBgNVBAYTAlVTMIIBIjANBgkqhkiG9w0B
AQEFAAOCAQ8AMIIBCgKCAQEA86lZX+r2oT6TKjUJ0I4ezBNsFdMIQ1tfmPTUvRpv
BcpBsFTmgUK0TUevVW4JV52//d9XpdBMzdVuejxDgIGcUm8FeCbHAVUc2ATUybYs
jm+4adQtiXGwtGpWSmNPWC0rl6gXYuawgD26kBpafkLE75KAP9SwOEj7jvcHFSSb
lbo6qXFr6RCMA7y4vUBHRDyZWA8GCEhfbYyyk8r/4rGKIx6YfHCz4Jmz9iv3fiR+
aLNnXeG0qyhJsOXqxXEpBE8nQaofQzNB7Vfbt9o8p+pr3RY9KdLy7i71KnD/bCQN
4tmRf+J0ryq+UlbUqfw0sHZzVq8HPbI6e3h4pElZnPZ9+wIDAQABo4IB8TCCAe0w
PwYIKwYBBQUHAQEEMzAxMC8GCCsGAQUFBzABhiNodHRwOi8vb2NzcC5hcHBsZS5j
b20vb2NzcDAzLXd3ZHIwMTAdBgNVHQ4EFgQUJhnQoYBNhZxVCEhiAutHwCxFemgw
DAYDVR0TAQH/BAIwADAfBgNVHSMEGDAWgBSIJxcJqbYYYIvs67r2R1nFUlSjtzCC
AR0GA1UdIASCARQwggEQMIIBDAYJKoZIhvdjZAUBMIH+MIHDBggrBgEFBQcCAjCB
tgyBs1JlbGlhbmNlIG9uIHRoaXMgY2VydGlmaWNhdGUgYnkgYW55IHBhcnR5IGFz
c3VtZXMgYWNjZXB0YW5jZSBvZiB0aGUgdGhlbiBhcHBsaWNhYmxlIHN0YW5kYXJk
IHRlcm1zIGFuZCBjb25kaXRpb25zIG9mIHVzZSwgY2VydGlmaWNhdGUgcG9saWN5
IGFuZCBjZXJ0aWZpY2F0aW9uIHByYWN0aWNlIHN0YXRlbWVudHMuMDYGCCsGAQUF
BwIBFipodHRwOi8vd3d3LmFwcGxlLmNvbS9jZXJ0aWZpY2F0ZWF1dGhvcml0eS8w
DgYDVR0PAQH/BAQDAgeAMBYGA1UdJQEB/wQMMAoGCCsGAQUFBwMDMBMGCiqGSIb3
Y2QGAQIBAf8EAgUAMA0GCSqGSIb3DQEBCwUAA4IBAQAo3ScxLfDm22vAEMDViHd7
8SBhsAkbe+fUk5Rl0M4IaEhALmBAoy/ZP18LEX/JWxStd327JIF8LACLeDDbUe6D
4EmZyipaUTLWQzX+WqNXvvyiFOQc1wBTmOzqEfxYFzXtGpCWVNbsSBkWyXrE7JXJ
p02+F0/UNBKf7Oc3TiKykK08GVDBRbizWnbTsJ+wAj96R1nmzQMVnbuovIJO237A
mSxj1zClW7KuG3OzW5W4bVjktPHqbXs8slqxLWDGNLaTwOc8zl5LtQxJLiKt8O7X
/qPU8gUVDPjZNl/Xqvr01hBomPaosRMUkyOsWPwuXH0sVa83Ld8C7N1aSJlTcUtW
-----END CERTIFICATE-----
Bag Attributes
friendlyName: GroupbyJikjang
localKeyID: 26 19 D0 A1 80 4D 85 9C 55 08 48 62 02 EB 47 C0 2C 45 7A 68
Key Attributes: <No Attributes>
-----BEGIN RSA PRIVATE KEY-----
MIIEpQIBAAKCAQEA86lZX+r2oT6TKjUJ0I4ezBNsFdMIQ1tfmPTUvRpvBcpBsFTm
gUK0TUevVW4JV52//d9XpdBMzdVuejxDgIGcUm8FeCbHAVUc2ATUybYsjm+4adQt
iXGwtGpWSmNPWC0rl6gXYuawgD26kBpafkLE75KAP9SwOEj7jvcHFSSblbo6qXFr
6RCMA7y4vUBHRDyZWA8GCEhfbYyyk8r/4rGKIx6YfHCz4Jmz9iv3fiR+aLNnXeG0
qyhJsOXqxXEpBE8nQaofQzNB7Vfbt9o8p+pr3RY9KdLy7i71KnD/bCQN4tmRf+J0
ryq+UlbUqfw0sHZzVq8HPbI6e3h4pElZnPZ9+wIDAQABAoIBACxjZn+9yy42uxKO
VPpkWaHty9vx9OhoZfL0byj//se8P9lCrjdQEo6dh4h1okgO2eIC5PG1D7jTr+ue
vOFVO0gdJ47q6YgJnFaSEr2obVeJbLwCxkTqrDlBwfSNQPAcUnuvSItg4TiLhkgo
NOIZgczvEGQQeAXY7dLul6C3aYyN5I/DuQxY8z11jGAgn0UJlBtTWHCE5Bf8RtPZ
New6J2X30JfYZ2PwuWBURmMQXUD8aEGFumlSksmG1lcEDaiLdOF0ZM0vRKAX7Nqg
m9Vozl/gBbsdvgBx1Ct8X2SirrJGoykJWT4opxMP9sBjGoBjfTukru+56CVB8yj+
KPjJv8kCgYEA+6jd89+Tt/TffY2FaV+kQA8znW5LWilQ2B7Q2FlCs7x54A5jUmq3
qKzE1NUMuP4KOauFq4tt1RDXVc3iQsOLRX785qhj73J+S/a61YtzNzgSrEpvmxqP
H1GjOv0WbRHilTabVEoP/cO9e+eY0Ec13Kh4a/K2a7G9DjvUXzydnY8CgYEA990r
LWqOnOZMwZ2JQxupitx/z97lnSUtZ7zfWz8RvjCgKaGZhdG9Tnxg91F8HU0e3spa
lDghSmczL9OiRNKBmDGXiZR7nYqvFd1EOxb2cvZ8fNeuHCYNZHl7IZRBCi9Ny8/n
QHu0+1umtZNeSpWCbLcMoayHNQWC4nx/qDXgOtUCgYEA3pRgmo2oLQ+bi4Rb9vLs
ZuwLDra6VqgsJLo8pN1trWKJuK2BEyfoAHuuKz+z3PpzOMaHl03eepBGpFFQSRSC
XZkPPUK6ANIW+kDixnRsFu61NUUwqNI4u86MvGOULiufZ7HAeDB5LEyvjqMr+SrC
bMNknrUwutedCrXIA+Os0+kCgYEAk3RT13To2pZ3W0eo/O9b8Wwz7SohV1dip7BJ
ADOJDqhG3/1vI5kfEa4U0Yz8VUIn90pSkJLD20uBvBYfFupUhoIaMJLQ52w1tMAp
cy2597KDZJG61qwck4VhpxxXhQOXOIS6gjYV+OMRTjwZgC1ppdtP/G5zESvyLWL7
XsqOVvECgYEAsfxJ3tTSc8EIoyndXJTj2I8Bgmmb4DOMI6xUZADiWQhAS114RHwo
EwRi7d8Qhb4xaTlhPzjbAg0EyqpL2Aif54DapZfKVHbSN0ych9DYXP7/IQ2ABe/a
DRR6frvojSi0yOxqZ7Pw0byjep0lE4MK43M7zew2XTToBEqQ2cp6q4A=
-----END RSA PRIVATE KEY-----
Bag Attributes
friendlyName: GroupbyJikjang
localKeyID: 26 19 D0 A1 80 4D 85 9C 55 08 48 62 02 EB 47 C0 2C 45 7A 68
Key Attributes: <No Attributes>
-----BEGIN RSA PRIVATE KEY-----
MIIEpQIBAAKCAQEA86lZX+r2oT6TKjUJ0I4ezBNsFdMIQ1tfmPTUvRpvBcpBsFTm
gUK0TUevVW4JV52//d9XpdBMzdVuejxDgIGcUm8FeCbHAVUc2ATUybYsjm+4adQt
iXGwtGpWSmNPWC0rl6gXYuawgD26kBpafkLE75KAP9SwOEj7jvcHFSSblbo6qXFr
6RCMA7y4vUBHRDyZWA8GCEhfbYyyk8r/4rGKIx6YfHCz4Jmz9iv3fiR+aLNnXeG0
qyhJsOXqxXEpBE8nQaofQzNB7Vfbt9o8p+pr3RY9KdLy7i71KnD/bCQN4tmRf+J0
ryq+UlbUqfw0sHZzVq8HPbI6e3h4pElZnPZ9+wIDAQABAoIBACxjZn+9yy42uxKO
VPpkWaHty9vx9OhoZfL0byj//se8P9lCrjdQEo6dh4h1okgO2eIC5PG1D7jTr+ue
vOFVO0gdJ47q6YgJnFaSEr2obVeJbLwCxkTqrDlBwfSNQPAcUnuvSItg4TiLhkgo
NOIZgczvEGQQeAXY7dLul6C3aYyN5I/DuQxY8z11jGAgn0UJlBtTWHCE5Bf8RtPZ
New6J2X30JfYZ2PwuWBURmMQXUD8aEGFumlSksmG1lcEDaiLdOF0ZM0vRKAX7Nqg
m9Vozl/gBbsdvgBx1Ct8X2SirrJGoykJWT4opxMP9sBjGoBjfTukru+56CVB8yj+
KPjJv8kCgYEA+6jd89+Tt/TffY2FaV+kQA8znW5LWilQ2B7Q2FlCs7x54A5jUmq3
qKzE1NUMuP4KOauFq4tt1RDXVc3iQsOLRX785qhj73J+S/a61YtzNzgSrEpvmxqP
H1GjOv0WbRHilTabVEoP/cO9e+eY0Ec13Kh4a/K2a7G9DjvUXzydnY8CgYEA990r
LWqOnOZMwZ2JQxupitx/z97lnSUtZ7zfWz8RvjCgKaGZhdG9Tnxg91F8HU0e3spa
lDghSmczL9OiRNKBmDGXiZR7nYqvFd1EOxb2cvZ8fNeuHCYNZHl7IZRBCi9Ny8/n
QHu0+1umtZNeSpWCbLcMoayHNQWC4nx/qDXgOtUCgYEA3pRgmo2oLQ+bi4Rb9vLs
ZuwLDra6VqgsJLo8pN1trWKJuK2BEyfoAHuuKz+z3PpzOMaHl03eepBGpFFQSRSC
XZkPPUK6ANIW+kDixnRsFu61NUUwqNI4u86MvGOULiufZ7HAeDB5LEyvjqMr+SrC
bMNknrUwutedCrXIA+Os0+kCgYEAk3RT13To2pZ3W0eo/O9b8Wwz7SohV1dip7BJ
ADOJDqhG3/1vI5kfEa4U0Yz8VUIn90pSkJLD20uBvBYfFupUhoIaMJLQ52w1tMAp
cy2597KDZJG61qwck4VhpxxXhQOXOIS6gjYV+OMRTjwZgC1ppdtP/G5zESvyLWL7
XsqOVvECgYEAsfxJ3tTSc8EIoyndXJTj2I8Bgmmb4DOMI6xUZADiWQhAS114RHwo
EwRi7d8Qhb4xaTlhPzjbAg0EyqpL2Aif54DapZfKVHbSN0ych9DYXP7/IQ2ABe/a
DRR6frvojSi0yOxqZ7Pw0byjep0lE4MK43M7zew2XTToBEqQ2cp6q4A=
-----END RSA PRIVATE KEY-----
</div>
</div>
</body>
</html>
\ No newline at end of file
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminOperate.php" ?>
<?
$obj = new AdminOperate($_REQUEST);
$info = $obj->getInfoOfPopup();
?>
<input type="hidden" name="no" value="<?=$_REQUEST["no"] ?>"/>
<input type="hidden" name="popup_type" value="<?=$_REQUEST["popup_type"] ?>"/>
<table class="datav" style="width:100%;">
<colgroup>
<col width="30%" />
<col width="70%" />
</colgroup>
<tr>
<th style="height:25px;">이미지</th>
<td class="l">
<?
$fileIndex = "100";
$fileName = "img";
$filePath = ($info["img_path"] == "" ? "" : $info["img_path"]);
include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php";
?>
</td>
</tr>
<tr style="<?= $_REQUEST["popup_type"] != "1" ? "display:none;" : "" ?>" >
<th style="height:25px;">링크</th>
<td class="l">
<input type="text" name="link_url" style="width:95%;" value="<?=$info["link_url"] ?>" />
</td>
</tr>
</table>
\ No newline at end of file
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminOperate.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/header.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/leftOperateManage.php" ?>
<?
$obj = new AdminOperate($_REQUEST, "") ;
$list = $obj->getListOfPopup("1") ;
$vnum = $obj->virtualNum ;
?>
<script src="/admin/inc/fileUpload/fileUploadJS.js"></script>
<script>
var _popup_type = "1";
$(document).ready(function(){
//=====프레입웤 변수들==================================================================================//
var FORM_TARGET_CLS_NM = "DIV#Contents" ; // 폼을 동적 wrap 할 타겟 ID이름
var FORM_NAME = "nf" ; // 폼이름
var FORM_METHOD = "GET" ; // 폼 메쏘드
var FORM_USE_FILE = false ; // 파일폼 사용 여부
var FORM_ACTION = document.URL ;
var NEXT_CMD = "" ; // 다은 수행 할 cmd
//=====================================================================================================//
var jForm = $(FORM_TARGET_CLS_NM).mf({ "name" : FORM_NAME , "method" : FORM_METHOD , "action" : FORM_ACTION , "useFile" : FORM_USE_FILE }) ;
// 페이징
$(".jPage").click2(function(){
jForm.ci() ;
jForm.mi("page",$(this).attr("page")) ;
jForm.submit() ;
}) ;
$(".jAutoSearch").change(function(){
jForm.ci() ;
jForm.submit() ;
});
$(".jSearch").click2(function(){
jForm.ci() ;
jForm.submit() ;
});
$(".jModPop, .jAddPop").click2(function(){
var no = $(this).attr("no");
var title = "팝업 등록";
if(no != undefined)
title = "팝업 수정";
$('#jDialogArea').dialog({
modal : true,
title : title,
open : function(event, ui) { $(".ui-dialog-titlebar-close").hide(); },
width : 400,
height : 500,
resizable : false,
open : function(){
var data = {};
if(no != undefined)
data.no = no;
$.ajax({
url : "/admin/entity/entityPopupView.php?popup_type=" + _popup_type,
data : data,
dataType:"html",
success : function(data)
{
$("#jLayerForm").html(data);
initFileUpload(100);
}
});
},
buttons: [
{
text: "확인",
click: function() {
$("#jLayerForm").ajaxSubmit({
url:"/action_front.php?cmd=AdminOperate.savePopup",
type : "post",
forceSync : true,
dataType : "json",
success : function(data){
alert(data.returnMessage);
location.reload();
}
});
}
},
{
text: "닫기",
click: function() {
destoryFileUpload(100);
$( this ).dialog( "close" );
}
}
],
closeOnEscape: false
});
});
$(".jTargetSearchBtn").click2(function(){
var search_text = $("#jTargetSearchText").val();
var ajax_url = "/admin/entity/entityGroupSearch.php";
if(search_text == "")
{
alert("검색어를 입력해주세요.");
return false;
}
$.ajax({
url : ajax_url,
data : {
"search_text" : search_text
},
dataType:"html",
success : function(data)
{
$("#jSearchResultArea").html(data);
setSearchAreaEventHandler();
}
});
});
$(".jShow").click2(function(){
var no = $(this).attr("no");
$.ajax({
url : "/action_front.php?cmd=AdminOperate.showPopup",
async : false,
cache : false,
dataType : "json",
data : {
"no" : no,
"popup_type" : _popup_type
},
success : function(data){
alert(data.returnMessage);
location.reload();
}
});
});
$(".jDel").click2(function(){
var no = $(this).attr("no");
var noArr = new Array(no);
if(confirm("정말 삭제하시겠습니까?"))
{
deleteAction(noArr);
}
}) ;
// 단체 삭제
$(".jDelMulti").click2(function(){
var noArr = new Array();
var noCount = $(".jNo:checked").length;
if(noCount == 0)
{
alert("삭제할 대상을 하나 이상 선택해주세요.");
return false;
}
if(confirm("정말 삭제하시겠습니까?"))
{
for(var i = 0; i < noCount; i++ )
{
noArr[i] = $(".jNo:checked:eq(" + i + ")").val();
}
deleteAction(noArr);
}
});
$("#jCheckAll").change(function(){
if($(this).is(":checked"))
$(".jNo").prop("checked", true);
else
$(".jNo").prop("checked", false);
});
}) ;
function deleteAction(noArr)
{
$.ajax({
url : "/action_front.php?cmd=AdminOperate.delPopup",
async : false,
cache : false,
dataType : "json",
data : {
"no" : noArr
},
success : function(data){
location.reload();
}
});
}
</script>
<div id="Contents" class="notice">
<h1>이벤트 팝업</h1>
<div class="data" style="width:100%;">
<div class="btngroupright">
<input type="button" class="button bigrounded blue jAddPop" value="등록" />
<input type="button" class="button bigrounded blue jDelMulti" value="삭제" />
</div>
<table class="datacList" style="width:100%;">
<thead>
<tr>
<th class="no" width="5%">No</th>
<th width="5%"><input type="checkbox" id="jCheckAll"></th>
<th width="10%">상태</th>
<th width="15%">이미지</th>
<th width="30%">링크</th>
<th width="15%">등록시간</th>
<th width="20%">관리</th>
</tr>
</thead>
<tbody><!-- 10줄 리스트// 마지막 tr에 class="last" 넣어주세요 -->
<? for($i=0; $i<sizeof($list); $i++){ ?>
<tr class="<?=(sizeof($list)-1 == $i) ? "last" : "datacLists"?>">
<td class="no center">
<?=$vnum--?>
</td>
<td class="center">
<input type="checkbox" class="jNo" value="<?=$list[$i]["no"] ?>" >
</td>
<td class="center">
<?= ($list[$i]["status"] == "Y") ? "노출" : "미노출" ?>
</td>
<td class="center">
<img alt="" src="/upload_img/<?=$list[$i]["img_path"]?>" style="width: 95%;">
</td>
<td class="center">
<?=$list[$i]["link_url"]?>
</td>
<td class="center">
<?=$list[$i]["regist_dt"]?>
</td>
<td class="center">
<input type="button" class="button searchsmall white jModPop" value="수정" no="<?=$list[$i]["no"]?>" />
<input type="button" class="button searchsmall white jDel" value="삭제" no="<?=$list[$i]["no"]?>" />
<input type="button" class="button searchsmall white jShow" value="노출" no="<?=$list[$i]["no"]?>" />
</td>
</tr>
<? } ?>
<?if(sizeof($list) == 0){?>
<tr class="last">
<td class="no center" colspan="5">No Data</td>
</tr>
<?}?>
</tbody>
</table>
<!-- Pagination -->
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/pageNavigation.php" ?>
<!--//Pagination -->
</div>
<div id="jDialogArea"><form id="jLayerForm"></form></div>
</div>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/footer.php" ?>
\ No newline at end of file
<?php
if(! class_exists("Push") ) {
class Push
{
public $pushMessage = "" ; // Push Message
public $pushFlag = "1" ; // Push flag - 1:관리자 전체 푸시 / 2:후기 등록 푸시 / 3:포인트 적립 푸시
public $pushNo = "" ;
public $pushBadge = "0";
private $gcm_key = "AIzaSyB2dCs0PHflZYKnlrhF5bNZl_z7FYRYqfY" ; // 동네
private $gcm_key2 = "AIzaSyBmoURv31T4FLmsf_SwoLRRZRijktAMzO0"; // 직장
//private $gcm_key = "AIzaSyB2dCs0PHflZYKnlrhF5bNZl_z7FYRYqfY";
// xml 키가 들어 왔을경우
function _counstruct($req)
{
}
// 단일 발송
function sendPushOnce($pushKey)
{
if($pushKey["device_type_id"] != "2" && strlen($pushKey["registration_key"]) > 32)
{
if($pushKey["app_type"] == 1){
$this->sendMessageGCM(Array(
$pushKey["registration_key"]
));
} else {
$this->sendMessageGCM2(Array(
$pushKey["registration_key"]
));
}
}
else if($pushKey["device_type_id"] == "2" && strlen($pushKey["registration_key"]) > 32)
{
$this->sendMessageApnsArray(Array(
$pushKey["registration_key"]
));
}
}
//벌크단위로 발송
function sendPushArray($pushKeyArr)
{
$gcmKeyArr = Array();
$gcmKeyArr2 = Array();
$apnsKeyArr = Array();
if($pushKeyArr != null){
foreach($pushKeyArr as $key => $pushKey){
if($pushKey["device_type_id"] != "2" && strlen($pushKey["registration_key"]) > 32){
if($pushKey["app_type"] == 1){
array_push($gcmKeyArr, $pushKey["registration_key"]);
}
else{
array_push($gcmKeyArr2, $pushKey["registration_key"]);
}
}
if($pushKey["device_type_id"] == "2" && strlen($pushKey["registration_key"]) > 32){
array_push($apnsKeyArr, $pushKey["registration_key"]);
}
if(sizeof($gcmKeyArr) >= 500){
$this->sendMessageGCM($gcmKeyArr);
$gcmKeyArr = Array();
}
if(sizeof($gcmKeyArr2) >= 500){
$this->sendMessageGCM2($gcmKeyArr);
$gcmKeyArr = Array();
}
if(sizeof($apnsKeyArr) >= 100){
$this->sendMessageApnsArray($apnsKeyArr);
$apnsKeyArr = Array();
}
}
}
//자투리 푸시들 전송
if(sizeof($gcmKeyArr) > 0){
$this->sendMessageGCM($gcmKeyArr);
}
if(sizeof($gcmKeyArr) > 0){
$this->sendMessageGCM2($gcmKeyArr2);
}
//자투리 푸시들 전송
if(sizeof($apnsKeyArr) > 0){
$this->sendMessageApnsArray($apnsKeyArr);
}
}
// GCM 서버로 MESSAGE 보내기 (동네)
function sendMessageGCM($keyArray)
{
$ch = curl_init();
$msgJson = array(
"collapse_key" => "score_update" ,
"time_to_live" => 1 ,
"delay_while_idle" => true,
"data" => array(
"flag" => $this->pushFlag,
"message" => $this->pushMessage,
"badge" => $this->pushBadge
),
"registration_ids" => $keyArray
) ;
$msg = json_encode($msgJson) ;
$headers = array(
"Content-Type: application/json",
"Content-Length: ". strlen($msg),
"Authorization: key=" . $this->gcm_key
);
curl_setopt($ch, CURLOPT_URL, "https://android.googleapis.com/gcm/send");
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $msg);
$result = curl_exec($ch);
curl_close($ch);
}
// GCM 서버로 MESSAGE 보내기 (직장)
function sendMessageGCM2($keyArray)
{
$ch = curl_init();
$msgJson = array(
"collapse_key" => "score_update" ,
"time_to_live" => 1 ,
"delay_while_idle" => true,
"data" => array(
"flag" => $this->pushFlag,
"message" => $this->pushMessage,
"badge" => $this->pushBadge
),
"registration_ids" => $keyArray
) ;
$msg = json_encode($msgJson) ;
$headers = array(
"Content-Type: application/json",
"Content-Length: ". strlen($msg),
"Authorization: key=" . $this->gcm_key2
);
curl_setopt($ch, CURLOPT_URL, "https://android.googleapis.com/gcm/send");
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $msg);
$result = curl_exec($ch);
curl_close($ch);
}
// 디바이스토큰ID
function sendMessageApns($deviceToken)
{
// 개발용
$apnsHost = 'gateway.sandbox.push.apple.com' ;
$apnsCert = '/www/way21/authFile/way21Dev.pem';
// 운영
// $apnsHost = 'gateway.push.apple.com' ;
// $apnsCert = '/www/way21/authFile/way21Dist.pem';
$pass = 'pass' ;
$apnsPort = 2195 ;
$payload = array('aps' => array('alert' => $this->pushMessage, "no" => $this->push_no, 'flag' => $this->pushFlag , 'badge' => 0, 'sound' => 'default')) ;
$payload = json_encode($payload) ;
$streamContext = stream_context_create() ;
stream_context_set_option($streamContext, 'ssl', 'local_cert', $apnsCert) ;
stream_context_set_option($streamContext, 'ssl', 'passphrase', $pass) ;
// $apns = stream_socket_client($apnsHost, $error, $errorString, 2, STREAM_CLIENT_CONNECT, $streamContext);
// $apns = stream_socket_client('ssl://'.$apnsHost.':'.$apnsPort, $error, $errorString, 2, STREAM_CLIENT_CONNECT, $streamContext);
// $apns = stream_socket_client('ssl://gateway.push.apple.com:2195', $error, $errorString, 2, STREAM_CLIENT_CONNECT, $streamContext) ;
$apns = stream_socket_client('ssl://gateway.sandbox.push.apple.com:2195', $error, $errorString, 2, STREAM_CLIENT_CONNECT, $streamContext) ;
if($apns)
{
$apnsMessage = chr(0).chr(0).chr(32).pack('H*', str_replace(' ', '', $deviceToken)).chr(0).chr(strlen($payload)).$payload ;
fwrite($apns, $apnsMessage) ;
fclose($apns) ;
}
return true ;
}
// 어레이 단위로 보내기
function sendMessageApnsArray($deviceTokenArray)
{
// 개발용
// $apnsHost = 'gateway.sandbox.push.apple.com' ;
// $apnsCert = '/home/ohyou/authFile/OhYouDev0207.pem';
// 운영
// $apnsHost = 'gateway.push.apple.com' ;
// $apnsCert = '/home/ohyou/authFile/OhYouDist.pem';
// LIVE
$apnsHost = 'gateway.push.apple.com' ;
$apnsCert = 'C:/Users/p/workspace_php/groupby/authFile/DST_PUSH_DONG.pem';
$pass = 'pass' ;
$apnsPort = 2195 ;
//echo json_encode($deviceTokenArray);
$streamContext = stream_context_create();
stream_context_set_option($streamContext, 'ssl', 'local_cert', $apnsCert);
stream_context_set_option($streamContext, 'ssl', 'passphrase', $pass);
$apns = @stream_socket_client('ssl://'.$apnsHost.":".$apnsPort, $error, $errorString, 60, STREAM_CLIENT_CONNECT, $streamContext) ;
//echo $apns;
if($apns)
{
for($i=0; $i<sizeof($deviceTokenArray); $i++){
$apnsMessage = "";
$payload = array('aps' => array('alert' => $this->pushMessage, 'flag' => $this->pushFlag , 'badge' => 0, 'sound' => 'default')) ;
$payload = json_encode($payload) ;
//$apnsMessage = chr(0).chr(0).chr(32).pack('H*', str_replace(' ', '', $deviceTokenArray[$i])).chr(0).chr(strlen($payload)).$payload ;
$apnsMessage = chr(0).chr(0).chr(32).pack('H*', str_replace(' ', '', $deviceTokenArray[$i])).chr(intval(strlen($payload)/256)).chr(intval(strlen($payload)%256)).$payload ;
fwrite($apns, $apnsMessage) ;
echo $payload;
}
fclose($apns) ;
}
return true ;
}
}
}
?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/web/inc/php/header.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/ApiBill.php"; ?>
<?
$obj = new ApiBill($_REQUEST);
$data = $obj->getRoomData() ;
// echo json_encode($data) ;
?>
<script>
$(document).ready(function(){
var _isANDApp = (navigator.userAgent.indexOf('APPG(ANDROID)') != -1);
if(!_isANDApp){
var h = $(".Wrap").height() + 100;
$(".Wrap").css({"height" : h + "px"});
}
});
</script>
<div class="Wrap" style="height:100%">
<!-- 헤드 -->
<header>
<ul>
<li class="jBack"><img src="/web/inc/images/btn_top_back_over.png" alt="back" width="20%"/></li>
<li><p>호실상세</p></li><!-- 날짜 -->
<li></li>
</ul>
<div style="clear:both;"></div>
</header>
<!-- 헤드 -->
<!-- 리스트 -->
<div class="contant con2 buil_list room_detail">
<ul>
<li>
<a></a>
<a style="font-weight:bold;">호실정보</a>
<a></a>
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>호실</a><!-- 이름 -->
<a><?= $data["name"] ?></a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>관리 유형</a><!-- 이름 -->
<a>
<? if($data["manage_type"] == "LC") { ?> 장기위탁
<? } else if($data["manage_type"] == "SC") { ?> 단기위탁
<? } else if($data["manage_type"] == "LS") { ?> 장기자기
<? } else if($data["manage_type"] == "SS") { ?> 단기자기
<? } ?>
</a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>호실 비번</a><!-- 이름 -->
<a><?= $data["pw"] ?></a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>계약 진행상황</a><!-- 이름 -->
<a>
<? if($data["contract_status"] == "RD") { ?> 입주
<? } else if($data["contract_status"] == "EP") { ?> 공실
<? } else if($data["contract_status"] == "UC") { ?> 계약중
<? } else if($data["contract_status"] == "CE") { ?> 계약연장
<? } ?>
</a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
</ul>
</div>
<div class="contant con2 buil_list room_detail">
<ul>
<li>
<a></a>
<a style="font-weight:bold;">입주자 정보</a>
<a></a>
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>입주자</a><!-- 이름 -->
<a><?= $data["contractor_name"] ?></a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>연락처</a><!-- 이름 -->
<a><?= $data["contractor_tel"] ?></a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>반환계좌</a><!-- 이름 -->
<a><?= $data["contractor_account_bank"] . $data["contractor_account_no"] ?>
</a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>계약일</a><!-- 이름 -->
<a><?= $data["contractDate"] ?></a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>입주일</a><!-- 이름 -->
<a><?= $data["moveInDate"] ?></a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>계약만료일</a><!-- 이름 -->
<a><?= $data["contractExpireDate"] ?></a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>차량번호</a><!-- 이름 -->
<a><?= $data["contractor_car_no"] ?></a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
</ul>
</div>
<div class="contant con2 buil_list room_detail">
<ul>
<li>
<a></a>
<a style="font-weight:bold;">기타 정보</a>
<a></a>
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>보증금</a><!-- 이름 -->
<a><?= number_format($data["deposit"]) ?>원</a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>예치금</a><!-- 이름 -->
<a><?= number_format($data["balance"]) ?>원</a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>월세</a><!-- 이름 -->
<a><?= number_format($data["monthly_rent"]) ?>원</a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>기본관리비</a><!-- 이름 -->
<a><?= number_format($data["maintenance_fee"]) ?>원</a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>케이블</a><!-- 이름 -->
<a><?= number_format($data["cable"]) ?>원</a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>인터넷</a><!-- 이름 -->
<a><?= number_format($data["internet"]) ?>원</a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>렌트1/2</a><!-- 이름 -->
<a><?= number_format(($data["rent_1"] + $data["rent_2"] )) ?>원</a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>기타</a><!-- 이름 -->
<a><?= number_format($data["etc"]) ?>원</a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>월세입금일</a><!-- 이름 -->
<a><?= $data["monthly_rent_date"] ?>일</a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>건물주송금일</a><!-- 이름 -->
<a><?= $data["payment_owner_date"] ?>일</a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>전기 검침일</a><!-- 이름 -->
<a><?= $data["electricity_check_date"] ?>일</a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>가스 검침일</a><!-- 이름 -->
<a><?= $data["gas_check_date"] ?>일</a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>수도 검침일</a><!-- 이름 -->
<a><?= $data["water_check_date"] ?>일</a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>공과금 납입일</a><!-- 이름 -->
<a><?= $data["billing_date"] ?>일</a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
</ul>
</div>
<div class="contant con2 buil_list room_detail">
<ul>
<li>
<a></a>
<a style="font-weight:bold;">입실/퇴실 예정</a>
<a></a>
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>입실예정일</a><!-- 이름 -->
<a><?= $data["enteringDueDate"] ?></a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>퇴실예정일</a><!-- 이름 -->
<a><?= $data["leavingDueDate"] ?></a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
</ul>
</div>
<!-- 리스트 -->
<!-- 특약 -->
<div class="note">
<div>
<ul class="text1">
<li>특약</li>
<li style="word-break:break-all;"><?= $data["special_contract"] ?></li><!-- 비고내용 -->
</ul>
</div>
</div>
<!-- 특약 -->
</div>
<? include $_SERVER["DOCUMENT_ROOT"] . "/web/inc/php/footer.php" ?>
\ No newline at end of file
/**
* jQuery Simple Dialog
*/
.sd_container{
font-family: arial,helvetica,sans-serif;
margin:0;
padding: 10px;
position: absolute;
background-color: #fff;
border: solid 1px #ccc;
text-align:center;
}
.sd_header{
font-size: 125%;
font-weight:bold;
margin-bottom: 10px;
}
.sd_content{}
.sd_footer{
color: #a0a0a0;
margin-top: 10px;
}
.sd_overlay{
position: absolute;
margin:0;
padding: 0;
top: 0;
left: 0;
background-color: #222;
}
.sd_loading{
background: url('indicator.gif') center no-repeat;
background-color: #fff;
height: 60px;
width: 60px;
}
.sd_closelabel{
position:absolute;
width:50px;
height:22px;
line-height:22px;
top:0;
left:0;
padding:5px;
text-align:center;
background-color:#ccc;
}
.sd_closelabel a {
text-decoration:none;
color: #222;
font-size: 12px;
font-weight:bold;
}
function areaInit(nm, value)
{
if(typeof(nm) == "undefinded")
{
nm = "area"
}
if(document.getElementById(nm) != null){
$("#"+nm).empty();
$("#"+nm)[0].options[0] = new Option;
$("#"+nm + ">option:eq(0)").attr({value:"", text:"대륙선택"});
for(var i=1; i<=ARR_LOCATION.length; i++)
{
$("#"+nm)[0].options[i] = new Option;
$("#"+nm + ">option:eq("+i+")").attr({value:ARR_LOCATION[i-1][0], text:ARR_LOCATION[i-1][0]});
if(value != undefined && value != "" && value == ARR_LOCATION[i-1][0])
$("#"+nm + ">option:eq("+i+")").attr("selected","true") ;
}
}
}
function nationInit(nm, areaIdx, value)
{
if(typeof(nm) == "undefinded")
{
nm = "nation"
}
if(document.getElementById(nm) != null){
$("#"+nm).empty();
$("#"+nm)[0].options[0] = new Option;
$("#"+nm + ">option:eq(0)").attr({value:"", text:"국가선택"});
if(areaIdx >= 0)
{
for(var i=1; i<ARR_LOCATION[areaIdx].length; i++)
{
$("#"+nm)[0].options[i] = new Option;
$("#"+nm + ">option:eq("+i+")").attr({value:ARR_LOCATION[areaIdx][i], text:ARR_LOCATION[areaIdx][i]});
if(value != undefined && value != "" && value == ARR_LOCATION[areaIdx][i])
$("#"+nm + ">option:eq("+i+")").attr("selected","true") ;
}
}
}
}
var ARR_LOCATION = new Array;
ARR_LOCATION[0] = new Array;
ARR_LOCATION[1] = new Array;
ARR_LOCATION[2] = new Array;
ARR_LOCATION[3] = new Array;
ARR_LOCATION[4] = new Array;
ARR_LOCATION[5] = new Array;
ARR_LOCATION[0][0] = "EUROPE";
ARR_LOCATION[0][1] = "ALBANIA" ;
ARR_LOCATION[0][2] = "AUSTRIA" ;
ARR_LOCATION[0][3] = "BELARUS" ;
ARR_LOCATION[0][4] = "BELGIUM" ;
ARR_LOCATION[0][5] = "BOSNIA HERZEGOVINA" ;
ARR_LOCATION[0][6] = "BULGARIA" ;
ARR_LOCATION[0][7] = "CROATIA" ;
ARR_LOCATION[0][8] = "CZECH REPUBLIC" ;
ARR_LOCATION[0][9] = "DENMARK" ;
ARR_LOCATION[0][10] = "ESTONIA" ;
ARR_LOCATION[0][11] = "FINLAND" ;
ARR_LOCATION[0][12] = "FRANCE" ;
ARR_LOCATION[0][13] = "GERMANY" ;
ARR_LOCATION[0][14] = "GREECE" ;
ARR_LOCATION[0][15] = "HUNGARY" ;
ARR_LOCATION[0][16] = "ICELAND" ;
ARR_LOCATION[0][17] = "IRELAND" ;
ARR_LOCATION[0][18] = "ITALY" ;
ARR_LOCATION[0][19] = "LATVIA" ;
ARR_LOCATION[0][20] = "LUXEMBOURG" ;
ARR_LOCATION[0][21] = "MACEDONIA" ;
ARR_LOCATION[0][22] = "MOLDOVA" ;
ARR_LOCATION[0][23] = "NETHERLANDS" ;
ARR_LOCATION[0][24] = "NORWAY" ;
ARR_LOCATION[0][25] = "POLAND" ;
ARR_LOCATION[0][26] = "PORTUGAL" ;
ARR_LOCATION[0][27] = "ROMANIA" ;
ARR_LOCATION[0][28] = "RUSSIAN FEB" ;
ARR_LOCATION[0][29] = "SLOVAKIA" ;
ARR_LOCATION[0][30] = "SLOVENIA" ;
ARR_LOCATION[0][31] = "SPAIN" ;
ARR_LOCATION[0][32] = "SWEDEN" ;
ARR_LOCATION[0][33] = "SWITZERLAND" ;
ARR_LOCATION[0][34] = "UK" ;
ARR_LOCATION[0][35] = "UKRAINE" ;
ARR_LOCATION[0][36] = "YUGOSLAVIA" ;
ARR_LOCATION[1][0] = "ASIA";
ARR_LOCATION[1][1] = "ARMENIA" ;
ARR_LOCATION[1][2] = "AZERBAIJAN" ;
ARR_LOCATION[1][3] = "BAHRAIN" ;
ARR_LOCATION[1][4] = "BANGLADESH" ;
ARR_LOCATION[1][5] = "BHUTAN" ;
ARR_LOCATION[1][6] = "BRUNEI DARUSSALAM" ;
ARR_LOCATION[1][7] = "CAMBODIA" ;
ARR_LOCATION[1][8] = "CHINA" ;
ARR_LOCATION[1][9] = "HONG KONG" ;
ARR_LOCATION[1][10] = "INDIA" ;
ARR_LOCATION[1][11] = "INDONESIA" ;
ARR_LOCATION[1][12] = "IRAN" ;
ARR_LOCATION[1][13] = "ISRAEL" ;
ARR_LOCATION[1][14] = "JAPAN" ;
ARR_LOCATION[1][15] = "JORDAN" ;
ARR_LOCATION[1][16] = "KAZAKHSTAN" ;
ARR_LOCATION[1][17] = "LAOS" ;
ARR_LOCATION[1][18] = "MACAU" ;
ARR_LOCATION[1][19] = "MALAYSIA" ;
ARR_LOCATION[1][20] = "MALDIVES" ;
ARR_LOCATION[1][21] = "MONGOLIA" ;
ARR_LOCATION[1][22] = "MYANMAR" ;
ARR_LOCATION[1][23] = "NEPAL" ;
ARR_LOCATION[1][24] = "OMAN" ;
ARR_LOCATION[1][25] = "PAKISTAN" ;
ARR_LOCATION[1][26] = "PHILIPPINES" ;
ARR_LOCATION[1][27] = "QATAR" ;
ARR_LOCATION[1][28] = "SAUDI ARABIA" ;
ARR_LOCATION[1][29] = "SINGAPORE" ;
ARR_LOCATION[1][30] = "SRILANKA" ;
ARR_LOCATION[1][31] = "SYRIA ARAB REP." ;
ARR_LOCATION[1][32] = "TAIWAN" ;
ARR_LOCATION[1][33] = "THAILAND" ;
ARR_LOCATION[1][34] = "TURKEY" ;
ARR_LOCATION[1][35] = "U.A.E." ;
ARR_LOCATION[1][36] = "UZBEKISTAN" ;
ARR_LOCATION[1][37] = "VIETNAM" ;
ARR_LOCATION[1][38] = "YEMEN" ;
ARR_LOCATION[2][0] = "N.America";
ARR_LOCATION[2][1] = "CANADA";
ARR_LOCATION[2][2] = "COSTARICA";
ARR_LOCATION[2][3] = "DOMINICAN REP.";
ARR_LOCATION[2][4] = "U.S.A";
ARR_LOCATION[3][0] = "S.America";
ARR_LOCATION[3][1] = "ARGENTINA" ;
ARR_LOCATION[3][2] = "BRAZIL" ;
ARR_LOCATION[3][3] = "CHILE" ;
ARR_LOCATION[3][4] = "CUBA" ;
ARR_LOCATION[3][5] = "ECUADOR" ;
ARR_LOCATION[3][6] = "ELSALVADOR" ;
ARR_LOCATION[3][7] = "GUATEMALA" ;
ARR_LOCATION[3][8] = "HAITI" ;
ARR_LOCATION[3][9] = "MEXICO" ;
ARR_LOCATION[3][10] = "PANAMA" ;
ARR_LOCATION[3][11] = "PARAGUAY" ;
ARR_LOCATION[3][12] = "PERU" ;
ARR_LOCATION[3][13] = "TRINIDAD AND TOBAGO" ;
ARR_LOCATION[4][0] = "OCEANIA";
ARR_LOCATION[4][1] = "AUSTRALIA";
ARR_LOCATION[4][2] = "FIJI ISLANDS";
ARR_LOCATION[4][3] = "NEW ZEALAND";
ARR_LOCATION[5][0] = "AFRICA";
ARR_LOCATION[5][1] = "ALGERIA" ;
ARR_LOCATION[5][2] = "ANGOLA" ;
ARR_LOCATION[5][3] = "BENIN" ;
ARR_LOCATION[5][4] = "BOTSWANA" ;
ARR_LOCATION[5][5] = "BURKINA FASO" ;
ARR_LOCATION[5][6] = "CAMEROON" ;
ARR_LOCATION[5][7] = "CAPE VERDE" ;
ARR_LOCATION[5][8] = "CHAD" ;
ARR_LOCATION[5][9] = "CONGO" ;
ARR_LOCATION[5][10] = "DJIBOUTI" ;
ARR_LOCATION[5][11] = "EGYPT" ;
ARR_LOCATION[5][12] = "ERITREA" ;
ARR_LOCATION[5][13] = "ETHIOPIA" ;
ARR_LOCATION[5][14] = "KENYA" ;
ARR_LOCATION[5][15] = "MALI" ;
ARR_LOCATION[5][16] = "MAURITIUS" ;
ARR_LOCATION[5][17] = "MOROCCO" ;
ARR_LOCATION[5][18] = "MOZAMBIQUE" ;
ARR_LOCATION[5][19] = "NICARAGUA" ;
ARR_LOCATION[5][20] = "NIGER" ;
ARR_LOCATION[5][21] = "NIGERIA" ;
ARR_LOCATION[5][22] = "RWANDA" ;
ARR_LOCATION[5][23] = "SENEGAL" ;
ARR_LOCATION[5][24] = "TANZANIA" ;
ARR_LOCATION[5][25] = "TOGO" ;
ARR_LOCATION[5][26] = "TUNISIA" ;
ARR_LOCATION[5][27] = "ZAMBIA" ;
\ No newline at end of file
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminStats.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/header.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/leftStatsManage.php" ?>
<?
$obj = new AdminStats($_REQUEST, "") ;
$list = $obj->getShopPointStatsDataForGroup();
$year = ($_REQUEST["year"] == "") ? date('Y', time()) : $_REQUEST["year"];
$month = ($_REQUEST["month"] == "") ? date('n', time()) : $_REQUEST["month"];
$statsDayList = $obj->getMonthDayListData($year, $month);
?>
<script>
$(document).ready(function(){
//=====프레입웤 변수들==================================================================================//
var FORM_TARGET_CLS_NM = "DIV#Contents" ; // 폼을 동적 wrap 할 타겟 ID이름
var FORM_NAME = "nf" ; // 폼이름
var FORM_METHOD = "GET" ; // 폼 메쏘드
var FORM_USE_FILE = false ; // 파일폼 사용 여부
var FORM_ACTION = document.URL ;
var NEXT_CMD = "" ; // 다은 수행 할 cmd
//=====================================================================================================//
var jForm = $(FORM_TARGET_CLS_NM).mf({ "name" : FORM_NAME , "method" : FORM_METHOD , "action" : FORM_ACTION , "useFile" : FORM_USE_FILE }) ;
// 페이징
$(".jPage").click2(function(){
jForm.ci() ;
jForm.mi("page",$(this).attr("page")) ;
jForm.submit() ;
}) ;
$(".jAutoSearch").change(function(){
jForm.ci() ;
jForm.submit() ;
});
$(".jSearch").click2(function(){
jForm.ci() ;
jForm.submit() ;
});
}) ;
</script>
<div id="Contents" class="notice">
<h1>그룹 별 상세정보</h1>
<div class="data" style="padding-top:30px;" >
<fieldset class="search">
<input type="hidden" name="year" value="<?=$year ?>" />
<input type="hidden" name="rurl" value="<?=$_REQUEST["rurl"] ?>" />
<input type="hidden" name="no" value="<?=$_REQUEST["no"] ?>" />
<div class="jSearchArea" >
<label>
<span># 월</span>
<select name="month">
<?for($i=1; $i<=12; $i++){ ?>
<option value="<?=$i ?>" <?= ($i == $month) ? "SELECTED" : "" ?> ><?=$i ?></option>
<?} ?>
</select>
</label>
<input type="button" class="button bigrounded blue jSearch" style="margin-left:30px;" value="검색" />
</div>
</fieldset>
<div style="width:100%; overflow:scroll; height:600px;">
<table class="datacList" style="table-layout: fixed">
<thead>
<tr>
<th class="no" style="width:100px;">그룹명</th>
<?for($i=0; $i<sizeof($statsDayList); $i++){ ?>
<th style="width:72px;"><?=$statsDayList[$i]["date"]?></th>
<?} ?>
<th style="width:72px;">TOTAL</th>
</tr>
</thead>
<tbody><!-- 10줄 리스트// 마지막 tr에 class="last" 넣어주세요 -->
<? for($i=0; $i<sizeof($list); $i++){ ?>
<tr class="<?=(sizeof($list)-1 == $i) ? "last" : "datacLists"?>">
<td class="no center">
<?=$list[$i]["group_name"]?>
</td>
<?for($j=0; $j<sizeof($statsDayList); $j++){ ?>
<td class="center">
<?=number_format($list[$i]["list"][$statsDayList[$j]["date"]]) ?>
</td>
<?} ?>
<td class="center">
<?=number_format($list[$i]["total_point"]) ?>
</td>
</tr>
<? } ?>
<?if(sizeof($list) == 0){?>
<tr class="last">
<td class="no center" colspan="3">No Data</td>
</tr>
<?}?>
</tbody>
</table>
</div>
</div>
</div>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/footer.php" ?>
\ No newline at end of file
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/ApiBill.php"; ?>
<?
$obj = new ApiBill($_REQUEST);
$result = $obj->getUtilityList() ;
$list = $result["list"] ;
$data = $result["data"] ;
// echo json_encode($list) ;
?>
<!-- 건물명/년도 -->
<div class="year">
<ul>
<li><a><?= $data["buildingName"] ?> <?= $data["roomName"] ?></a></li>
<li><a class="jPopup" page="popupYear.php" rpage="utility.php"><?= $_REQUEST["year"] == "" ? date("Y") : $_REQUEST["year"] ?></a></li>
</ul>
<div style="clear:both"></div>
</div>
<!-- 건물명/년도 -->
<!-- 리스트 -->
<section>
<? for($i=0; $i<sizeof($list); $i++) {
$row = $list[$i] ;
$month = explode("-", $row["month"]) ;
?>
<!-- 리스트 1개당 ul반복 -->
<ul class="jUtilityView" _no="<?= $row["no"] ?>">
<li>
<div class="date">
<p><?= $month[1]?>월</p><!-- 날짜 -->
</div>
</li>
<li>
<p style="margin:20px 0px 7px 0px;"><?= $row["monthDate"] ?> (전기+가스+수도)</p>
<p class="price"><?= number_format($row["current_month_charge"]) ?>원</p><!-- 금액 -->
</li>
<li class="status_box">
<? if($row["is_paid"] == 1) { ?>
<div class="status orange"><a>납입</a></div>
<? } else if($row["is_paid"] == 0) { ?>
<div class="status red"><a>연체</a></div>
<? } else if($row["is_paid"] == 2) { ?>
<div class="status orange"><a>청구</a></div>
<? } ?>
</li>
<div style="clear:both;"></div>
</ul>
<!-- 리스트 1개당 ul반복 -->
<? } ?>
</section>
<!-- 리스트 -->
\ No newline at end of file
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminBase.php" ;?>
<?
/*
* Admin process
* add by dev.lee
* */
if(!class_exists("AdminEtc")){
class AdminEtc extends AdminBase {
function __construct($req)
{
parent::__construct($req);
}
// 관리자 비밀번호 변경
function chageAdminPWD()
{
$no = $this->admUser["no"];
$nowPWD = $this->req["nowPWD"];
$newPWD = $this->req["newPWD"];
$sql = "
SELECT *
FROM tbl_admin
WHERE `no` = '{$no}'
LIMIT 1
";
$result = $this->getRow($sql);
if($result == null)
{
$_REQUEST["msg"] = "재 로그인 후 다시 시도해주세요.";
return false;
}
if($result["admin_pwd"] != MD5($nowPWD))
{
$_REQUEST["msg"] = "현재 비밀번호가 일치하지 않습니다.";
return false;
}
$sql = "
UPDATE tbl_admin
SET admin_pwd = MD5('{$newPWD}')
, admin_pwd_enc = HEX('{$newPWD}')
WHERE `no` = '{$no}'
";
$this->update($sql);
}
} // class end
}
?>
\ No newline at end of file
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/ApiBill.php"; ?>
<?
$obj = new ApiBill($_REQUEST);
$data = $obj->getBuildingInfo() ;
// echo json_encode($data) ;
?>
<div class="Wrap" style="height:100%">
<!-- 리스트 -->
<div class="contant con2 buil_list">
<ul>
<li>
<a></a>
<a style="font-weight:bold;">건물정보</a>
<a></a>
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>건물명</a><!-- 이름 -->
<a><?= $data["name"] ?></a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>건물종류</a><!-- 이름 -->
<a>
<? if($data["type"] == "SG") { ?> 원룸
<? } else if($data["type"] == "OF") { ?> 오피스텔
<? } else if($data["type"] == "UB") { ?> 도생
<? } else if($data["type"] == "AP") { ?> 아파트
<? } else if($data["type"] == "HS") { ?> 주택
<? } else if($data["type"] == "ET") { ?> 기타
<? } ?>
</a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>건물주소</a><!-- 이름 -->
<a><?= $data["address"] ?></a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>계약만기</a><!-- 이름 -->
<a><?= $data["expireDate"] ?></a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
</ul>
</div>
<div class="contant con2 buil_list">
<ul>
<li>
<a></a>
<a style="font-weight:bold;">호실정보</a>
<a></a>
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>호실수</a><!-- 이름 -->
<a><?= $data["room_cnt"] ?>호</a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>입주수</a><!-- 이름 -->
<a><?= $data["resident_cnt"] ?>호</a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>공실수</a><!-- 이름 -->
<a><?= $data["vacant_cnt"] ?>호</a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>퇴실예정</a><!-- 이름 -->
<a><?= $data["leaving_cnt"] ?>호</a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>입실예정</a><!-- 이름 -->
<a><?= $data["entering_cnt"] ?>호</a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
</ul>
</div>
<div class="contant con2 buil_list">
<ul>
<li>
<a></a>
<a style="font-weight:bold;">건물주정보</a>
<a></a>
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>건물주</a><!-- 이름 -->
<a><?= $data["owner_name"] ?></a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>연락처</a><!-- 이름 -->
<a><?= $data["owner_tel"] ?></a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>주소</a><!-- 이름 -->
<a><?= $data["owner_address"] ?></a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>건물주계좌</a><!-- 이름 -->
<a><?= $data["owner_account_bank"] ?><!-- 은행 -->
<?= $data["owner_account_no"] ?></a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
</ul>
</div>
<div class="contant con2 buil_list">
<ul>
<li>
<a></a>
<a style="font-weight:bold;">기타정보</a>
<a></a>
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>임대관리자</a><!-- 이름 -->
<a><?= $data["rent_manager"] ?></a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>관리비 부과 기준일</a><!-- 이름 -->
<a><?= $data["manage_pay_date"] ?>일</a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>공실율</a><!-- 이름 -->
<a class="jPopup" page="popupVacant.php" style="background:url('/web/inc/images/ic_list_arrow.png') no-repeat center right; padding-right:8%;">
<?
if($data["room_cnt"] > 0) {
echo round(($data["vacant_cnt"] / $data["room_cnt"] * 100), 2) ;
} else {
echo "0" ;
}
?> %
</a><!-- 내용 -->
</li>
<div style="clear:both;"></div>
</ul>
</div>
<!-- 리스트 -->
<!-- 비고 -->
<div class="note">
<div>
<ul class="text1">
<li>비고</li>
<li><textarea readonly="readonly" style="word-break:break-all; resize:none; border: none; width: 100%; height: 100%;"><?= $data["note"] ?></textarea></li><!-- 비고내용 -->
</ul>
</div>
</div>
<!-- 비고 -->
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<title></title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="Wrap" style="height:100%">
<!-- 헤드 -->
<header>
<ul>
<li><img src="img/btn_top_back_over.png" alt="back" width="20%"/></li>
<li><p>2017.01</p></li><!-- 날짜 -->
<li></li>
</ul>
<div style="clear:both;"></div>
</header>
<!-- 헤드 -->
<!-- 납부기한/금액 -->
<div class="contant con1">
<dl>
<dt>납부기한 : <span>2017.01.12</span></dt>
<dd>총 금액은 <span style="font-size:15px; color:#ff0000; font-weight:bold";>150,000</span> 원 입니다.</dd>
</dl>
</div>
<!-- 납부기한/금액 -->
<!-- 리스트 -->
<div class="contant con2">
<ul>
<li>
<a><img src="img/circle_bg.png" width="100%"/></a>
<a>일반관리비</a><!-- 이름 -->
<a><span>60,000</span></a><!-- 금액 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="img/circle_bg.png" width="100%"/></a>
<a>인터넷+케이블</a><!-- 이름 -->
<a><span>60,000</span></a><!-- 금액 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="img/circle_bg.png" width="100%"/></a>
<a>렌트</a><!-- 이름 -->
<a><span>60,000</span></a><!-- 금액 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="img/circle_bg.png" width="100%"/></a>
<a>기타</a><!-- 이름 -->
<a><span>60,000</span></a><!-- 금액 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="img/circle_bg.png" width="100%"/></a>
<a>월세</a><!-- 이름 -->
<a><span>60,000</span></a><!-- 금액 -->
</li>
<li class="used rent">
<a></a>
<a>소계 <span>60,000</span></a><!-- 금액 -->
</li>
<div style="clear:both;"></div>
</ul>
</div>
<div class="contant con2">
<ul>
<li>
<a><img src="img/circle_bg.png" width="100%"/></a>
<a>당월부과액</a><!-- 이름 -->
<a><span>60,000</span></a><!-- 금액 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="img/circle_bg.png" width="100%"/></a>
<a>전월 미납액(연체료 포함)</a><!-- 이름 -->
<a><span>60,000</span></a><!-- 금액 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="img/circle_bg.png" width="100%"/></a>
<a>납기 내 금액</a><!-- 이름 -->
<a><span>60,000</span></a><!-- 금액 -->
</li>
<div style="clear:both;"></div>
</ul>
</div>
<div class="contant con2">
<ul>
<li>
<a><img src="img/circle_bg.png" width="100%"/></a>
<a>당월연체료</a><!-- 이름 -->
<a><span>60,000</span></a><!-- 금액 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="img/circle_bg.png" width="100%"/></a>
<a>납기 후 금액</a><!-- 이름 -->
<a><span>60,000</span></a><!-- 금액 -->
</li>
<div style="clear:both;"></div>
</ul>
</div>
<!-- 리스트 -->
<!-- 계좌 -->
<div class="bank">
<div>
<ul class="text1">
<li>입금은행</li>
<li>계좌번호</li>
</ul>
<ul class="text2">
<li>신한</li><!-- 은행 -->
<li>111-111-111111 (최봉수)</li><!-- 계좌번호 -->
</ul>
</div>
</div>
<!-- 계좌 -->
</div>
</body>
</html>
\ No newline at end of file
/**
*
* Base64 encode / decode
* http://www.webtoolkit.info/
*
**/
var Base64 = {
// private property
_keyStr : "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
// public method for encoding
encode : function (input) {
var output = "";
var chr1, chr2, chr3, enc1, enc2, enc3, enc4;
var i = 0;
input = Base64._utf8_encode(input);
while (i < input.length) {
chr1 = input.charCodeAt(i++);
chr2 = input.charCodeAt(i++);
chr3 = input.charCodeAt(i++);
enc1 = chr1 >> 2;
enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);
enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);
enc4 = chr3 & 63;
if (isNaN(chr2)) {
enc3 = enc4 = 64;
} else if (isNaN(chr3)) {
enc4 = 64;
}
output = output +
this._keyStr.charAt(enc1) + this._keyStr.charAt(enc2) +
this._keyStr.charAt(enc3) + this._keyStr.charAt(enc4);
}
return output;
},
// public method for decoding
decode : function (input) {
var output = "";
var chr1, chr2, chr3;
var enc1, enc2, enc3, enc4;
var i = 0;
input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");
while (i < input.length) {
enc1 = this._keyStr.indexOf(input.charAt(i++));
enc2 = this._keyStr.indexOf(input.charAt(i++));
enc3 = this._keyStr.indexOf(input.charAt(i++));
enc4 = this._keyStr.indexOf(input.charAt(i++));
chr1 = (enc1 << 2) | (enc2 >> 4);
chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);
chr3 = ((enc3 & 3) << 6) | enc4;
output = output + String.fromCharCode(chr1);
if (enc3 != 64) {
output = output + String.fromCharCode(chr2);
}
if (enc4 != 64) {
output = output + String.fromCharCode(chr3);
}
}
output = Base64._utf8_decode(output);
return output;
},
// private method for UTF-8 encoding
_utf8_encode : function (string) {
string = string.replace(/\r\n/g,"\n");
var utftext = "";
for (var n = 0; n < string.length; n++) {
var c = string.charCodeAt(n);
if (c < 128) {
utftext += String.fromCharCode(c);
}
else if((c > 127) && (c < 2048)) {
utftext += String.fromCharCode((c >> 6) | 192);
utftext += String.fromCharCode((c & 63) | 128);
}
else {
utftext += String.fromCharCode((c >> 12) | 224);
utftext += String.fromCharCode(((c >> 6) & 63) | 128);
utftext += String.fromCharCode((c & 63) | 128);
}
}
return utftext;
},
// private method for UTF-8 decoding
_utf8_decode : function (utftext) {
var string = "";
var i = 0;
var c = c1 = c2 = 0;
while ( i < utftext.length ) {
c = utftext.charCodeAt(i);
if (c < 128) {
string += String.fromCharCode(c);
i++;
}
else if((c > 191) && (c < 224)) {
c2 = utftext.charCodeAt(i+1);
string += String.fromCharCode(((c & 31) << 6) | (c2 & 63));
i += 2;
}
else {
c2 = utftext.charCodeAt(i+1);
c3 = utftext.charCodeAt(i+2);
string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));
i += 3;
}
}
return string;
}
}
\ No newline at end of file
var fileInfo = {} ;
//함수 네이밍은 꼭 지겨주세요.
function uploader_var(){
return {
btnPath:'/images/search.gif', //100*24 px
upload:'/common/php/Upload.php', //상대경로 절대 경로 모두 가능
overNum:8, //한번에 선택될수 있는 파일갯수 초과시 아래 uploader_alert() 함수 호출
overSize:5*1024*1024, // 파일 한개의 크기 제한 현재 5mb .. (bytes 단위) -> 보기 편하게 * 하는 표현으로 썼을뿐입니다.
typeVar:'file', //전송할 파일 폼 네이밍 (input type="file" name="file") 여기에 해당.
param:{mode:'upload', no:''}, //파일과 같이 전달될 변수 object ..
filterName:"이미지 (*.jpg, *.jpeg, *.gif,*.png, *.bmp)", //확장자제한이름, (1)
filterExt:"*.jpg; *.jpeg; *.gif; *.png; *.bmp;" //확장자 (2)
};
}
/*
(1)(2) 예시 좀더..
ㄱ. filterName:"동영상",
filterExt:"*.wma; *.wmv; *.asf; *.flv;"
ㄴ. filterName:"동영상·이미지",
filterExt:"*.wma; *.wmv; *.asf; *.flv; *.jpg; *.jpeg; *.gif; *.png; *.bmp;"
ㄷ. filterName:"오피스파일",
filterExt:"*.xls; *.ppt; *.doc; *.hwp; *.pdf;"
이건 예시일뿐..
*/
function uploader_alert(val, str){
if(val == 'numOver'){
alert(str + "개의 파일를 초과할 수 없습니다.");
return false;
}else{//ioError 와 securitError 출력부분 없애도 됨
alert(str);
return false;
}
}
//파일전송후 리턴받은 값을 처리하는 함수임.여러개의 인자를 해야 할 경우 리턴받을때 | 등의구분자를 두고 여기서 처리함이..좋을듯
//이부분에서 데이터 임시 저장후 DB에 넣어어두 되고 아래 php코드에서 넣어두 되고.
//보여지는 UI는 여기서 수정하셔야 합니다.
function uploader_return(val){
// 0 : 업로드 로컬 파일명
// 1 : 업로드 변경 파일명
// 2 : 업로드 확장자
// 3 : 업로드 변경 풀파일명
// 4 : 업로드 풀패스
uInfo = val.split("|");//값 받아 오는 것은 파일경로|파일명 이렇게 받아옵니다. 이건 예시일뿐..
name = uInfo[0] ;
uName = uInfo[1] ;
uExt = uInfo[2] ;
uFullName = uInfo[3] ;
path = uInfo[4] ;
fileInfo[uName] = uInfo ;
$("#imgField").append("<div id='div_'"+uName+"' test='aa'>" +
"<table class='list_base'>" +
"<tr><td rowspan='2'>" +
"<img class='image_view' src='"+path+"'/></td><td>" + name + "</td></tr>" +
"<tr><td>" + getSelectImageStr(uName) + "</td></tr>" +
"</table>" +
"</div>") ;
aeId(uName,"click",selImage) ;
aeId("del_"+uName,"click",delImage) ;
}
function delImage()
{
$( "#div_"+$(this).attr("id").replace("del_","") ).remove() ;
}
\ No newline at end of file
<? include $_SERVER["DOCUMENT_ROOT"] . "/web/inc/php/header.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/ApiBill.php"; ?>
<?
$obj = new ApiBill($_REQUEST);
$data = $obj->getUtilityData() ;
$str = explode("-", $data["month"]) ;
$month = $str[0] . "." . $str[1] ;
// echo json_encode($data) ;
?>
<script>
$(document).ready(function(){
$(".jUsingView").click2(function(){
var page = $(this).attr("page");
var number = ("<?= $_REQUEST["no"] ?>");
$.ajax({
url : "/web/billManage/popupUsing.php",
type : "POST",
dataType : "html",
data : {
number : number
}, success : function(data){
$(".jPopupArea").html("") ;
$(".jPopupArea").append(data) ;
$(".jPopupArea").show() ;
}
});
});
$(document).on("click", ".jExit", function(){
$(".jPopupArea").html("") ;
$(".jPopupArea").hide() ;
});
});
</script>
<div class="Wrap" style="height:100%">
<!-- 헤드 -->
<header>
<ul>
<li class="jBack"><img src="/web/inc/images/btn_top_back_over.png" alt="back" width="20%"/></li>
<li><p><?= $month ?></p></li><!-- 날짜 -->
<li></li>
</ul>
<div style="clear:both;"></div>
</header>
<!-- 헤드 -->
<!-- 납부기한/금액 -->
<div class="contant con1">
<dl>
<dt>납부기한 : <span><?= $data["monthDate"] ?></span></dt>
<dd>총 금액은 <span style="font-size:15px; color:#ff0000; font-weight:bold; "><?= number_format($data["current_month_charge"]) ?></span> 원 입니다.</dd>
</dl>
</div>
<!-- 납부기한/금액 -->
<!-- 리스트 -->
<div class="contant con2">
<ul>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>전기료</a><!-- 이름 -->
<a><span><?= number_format($data["electricity_charge"]) ?></span> 원</a><!-- 금액 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>가스료</a><!-- 이름 -->
<a><span><?= number_format($data["gas_charge"]) ?></span> 원</a><!-- 금액 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>수도료</a><!-- 이름 -->
<a><span><?= number_format($data["water_charge"]) ?></span> 원</a><!-- 금액 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>공용 전기료</a><!-- 이름 -->
<a><span><?= number_format($data["community_electricity_charge"]) ?></span> 원</a><!-- 금액 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>공용 수도료</a><!-- 이름 -->
<a><span><?= number_format($data["community_water_charge"]) ?></span> 원</a><!-- 금액 -->
</li>
<li class="used">
<a class="jUsingView">사용량</a>
<a>소계 <span><?= number_format($data["current_month_charge"]) ?></span> 원</a><!-- 금액 -->
</li>
<div style="clear:both;"></div>
</ul>
</div>
<div class="contant con2">
<ul>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>당월부과액</a><!-- 이름 -->
<a><span><?= number_format($data["current_month_charge"]) ?></span> 원</a><!-- 금액 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>전월 미납액(연체료 포함)</a><!-- 이름 -->
<a><span><?= number_format($data["sum_before_payment"]) ?></span> 원</a><!-- 금액 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>납기 내 금액</a><!-- 이름 -->
<a><span><?= number_format($data["current_month_charge"] + $data["sum_before_payment"]) ?></span> 원</a><!-- 금액 -->
</li>
<div style="clear:both;"></div>
</ul>
</div>
<div class="contant con2">
<ul>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>당월연체료</a><!-- 이름 -->
<a><span><?= number_format($data["current_month_late_fee"]) ?></span> 원</a><!-- 금액 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>납기 후 금액</a><!-- 이름 -->
<a><span><?= number_format($data["current_month_charge"] + $data["sum_before_payment"] + $data["current_month_late_fee"]) ?></span> 원</a><!-- 금액 -->
</li>
<div style="clear:both;"></div>
</ul>
</div>
<!-- 리스트 -->
<!-- 계좌 -->
<div class="bank">
<div>
<ul class="text1">
<li>입금은행</li>
<li>계좌번호</li>
</ul>
<ul class="text2">
<li><?= $data["util_account_bank"] ?></li><!-- 은행 -->
<li><?= $data["util_account_no"] ?> (<?= $data["util_account_owner"] ?>)</li><!-- 계좌번호 -->
</ul>
</div>
</div>
<!-- 계좌 -->
</div>
<div class="jPopupArea" style="position: absolute; width: 100%; top: 0px; height: 100%; background: rgba(100, 100, 100, 0.5); display: none;"></div>
<? include $_SERVER["DOCUMENT_ROOT"] . "/web/inc/php/footer.php" ?>
\ No newline at end of file
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminUser.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/header.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/leftUserManage.php" ?>
<?
$obj = new AdminUser($_REQUEST, "") ;
$list = $obj->getListOfUserForBoard("M", null) ;
$vnum = $obj->virtualNum ;
?>
<script>
$(document).ready(function(){
//=====프레입웤 변수들==================================================================================//
var FORM_TARGET_CLS_NM = "DIV#Contents" ; // 폼을 동적 wrap 할 타겟 ID이름
var FORM_NAME = "nf" ; // 폼이름
var FORM_METHOD = "GET" ; // 폼 메쏘드
var FORM_USE_FILE = false ; // 파일폼 사용 여부
var FORM_ACTION = document.URL ;
var NEXT_CMD = "" ; // 다은 수행 할 cmd
//=====================================================================================================//
var jForm = $(FORM_TARGET_CLS_NM).mf({ "name" : FORM_NAME , "method" : FORM_METHOD , "action" : FORM_ACTION , "useFile" : FORM_USE_FILE }) ;
// 페이징
$(".jPage").click2(function(){
jForm.ci() ;
jForm.mi("page",$(this).attr("page")) ;
jForm.submit() ;
}) ;
$(".jAutoSearch").change(function(){
jForm.ci() ;
jForm.submit() ;
});
$(".jSearch").click2(function(){
jForm.ci() ;
jForm.submit() ;
});
$(".jViewUser").click2(function(){
var no = $(this).attr("no");
location.href = "/admin/userManage/userView.php?isMS=1&no=" + no + "&rurl=" + jQuery.rich.bin2hex(document.URL);
});
$(".jAddUserExcel").click2(function(){
var s=$("#search_text").val();
location.href = "/admin/excel/groupUserExcelList.php?search_text="+s;
});
// 회원 탈퇴
$(".jDelUser").click2(function(){
var no = $(this).attr("no");
var noArr = new Array(no);
if(confirm("정말 삭제하시겠습니까?"))
{
deleteAdmin(noArr);
}
}) ;
// 단체 삭제
$(".jDelUserMulti").click2(function(){
var noArr = new Array();
var noCount = $(".jUserNo:checked").length;
if(noCount == 0)
{
alert("삭제할 관리자를 하나 이상 선택해주세요.");
return false;
}
if(confirm("정말 삭제하시겠습니까?"))
{
for(var i = 0; i < noCount; i++ )
{
noArr[i] = $(".jUserNo:checked:eq(" + i + ")").val();
}
deleteAdmin(noArr);
}
});
$(".jBtnMS").click2(function(){
var no = $(this).attr("no");
var member_type = $(this).attr("member_type");
$.ajax({
url : "/action_front.php?cmd=AdminUser.processRequestMemberShipUser",
async : false,
cache : false,
dataType : "json",
data : {
"no" : no
, "member_type" : member_type
},
success : function(data){
alert(data.returnMessage);
location.reload();
}
});
});
$("#jCheckAll").change(function(){
if($(this).is(":checked"))
$(".jUserNo").prop("checked", true);
else
$(".jUserNo").prop("checked", false);
});
}) ;
function deleteAdmin(noArr)
{
$.ajax({
url : "/action_front.php?cmd=AdminUser.deleteUser",
async : false,
cache : false,
dataType : "json",
data : {
"no" : noArr
},
success : function(data){
alert("삭제되었습니다");
location.reload();
}
});
}
</script>
<div id="Contents" class="notice">
<h1>그룹 회원 리스트</h1>
<div class="data">
<fieldset class="search" style="margin-top:30px;">
<div class="jSearchArea" >
<label>
<span># 이메일, 이름, 전화번호</span>
<input type="text" id="search_text" name="search_text" class="wm" value="<?=$_REQUEST['search_text']?>" />
</label>
<input type="button" class="button bigrounded blue jSearch" value="검색" />
</div>
</fieldset>
<?if($loginInfo["admin_type"] == "1"){ ?>
<div class="btngroupright">
<input type="button" class="button bigrounded blue jAddUserExcel" value="회원EXCEL" />
<input type="button" class="button bigrounded blue jDelUserMulti" value="삭제" />
</div>
<?} ?>
<table class="datacList">
<thead>
<tr>
<th class="no" width="5%">No</th>
<?if($loginInfo["admin_type"] == "1"){ ?>
<th width="5%"><input type="checkbox" id="jCheckAll"></th>
<?} ?>
<th width="15%">이메일</th>
<th width="10%">이름</th>
<th width="10%">전화번호</th>
<th width="15%">소속 그룹</th>
<th width="5%">멤버쉽<br>회원여부</th>
<th width="10%">승인 상태</th>
<th width="10%">가입 날짜</th>
<th width="15%">-</th>
</tr>
</thead>
<tbody><!-- 10줄 리스트// 마지막 tr에 class="last" 넣어주세요 -->
<? for($i=0; $i<sizeof($list); $i++){ ?>
<tr class="<?=(sizeof($list)-1 == $i) ? "last" : "datacLists"?>">
<td class="no center">
<?=$vnum--?>
</td>
<?if($loginInfo["admin_type"] == "1"){ ?>
<td class="center">
<input type="checkbox" class="jUserNo" value="<?=$list[$i]["no"] ?>" >
</td>
<?} ?>
<td class="center">
<?
if($list[$i]["regi_type"] == "E")
echo $list[$i]["id"];
else if($list[$i]["regi_type"] == "K")
echo "카카오톡 가입";
else if($list[$i]["regi_type"] == "F")
echo "페이스북 가입";
?>
</td>
<td class="center">
<?=$list[$i]["name"]?>
</td>
<td class="center">
<?=$list[$i]["tel"]?>
</td>
<td class="center">
<?=$list[$i]["group_name"]?>
</td>
<td class="center">
<?=($list[$i]["member_type"] == "M") ? "O" : "X"?>
</td>
<td class="center">
<?if($list[$i]["group_fk"] > 0 && $list[$i]["member_type"] == "H"){ ?>
<input type="button" class="button searchsmall white jBtnMS" value="승인" no="<?=$list[$i]["no"]?>" member_type="M"/>
<input type="button" class="button searchsmall white jBtnMS" value="거절" no="<?=$list[$i]["no"]?>" member_type="N" />
<?} elseif ($list[$i]["group_fk"] > 0 && $list[$i]["member_type"] == "M"){ ?>
승인
<?} elseif ($list[$i]["group_fk"] > 0 && $list[$i]["member_type"] == "N"){ ?>
거절
<?} else { ?>
-
<?} ?>
</td>
<td class="center">
<?=$list[$i]["reg_dt"]?>
</td>
<td class="center">
<input type="button" class="button searchsmall white jViewUser" value="상세보기" no="<?=$list[$i]["no"]?>" />
<?if($loginInfo["admin_type"] == "1"){ ?>
<input type="button" class="button searchsmall white jDelUser" value="삭제" no="<?=$list[$i]["no"]?>" />
<?} ?>
</td>
</tr>
<? } ?>
<?if(sizeof($list) == 0){?>
<tr class="last">
<td class="no center" colspan="11">No Data</td>
</tr>
<?}?>
</tbody>
</table>
<!-- Pagination -->
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/pageNavigation.php" ?>
<!--//Pagination -->
</div>
<div id="jDialogArea" style="display:none;">
<table class="datav" style="width:100%;">
<tr>
<th style="height:25px; width:70px;">포인트</th>
<td>
<input type="input" id="jAddHeartPoint" value="" style="width:100%;"/>
</td>
</tr>
</table>
</div>
</div>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/footer.php" ?>
\ No newline at end of file
GROUP BY Welcome Project~!!!
\ No newline at end of file
</body>
</html>
\ No newline at end of file
<?php
if(! class_exists("LogUtil") ) {
class LogUtil
{
private static function writeLog($logPath, $logData)
{
$logTime = date("Y-m-d H:i:s", time());
$fp = fopen($logPath,"a+");
//파일에 쓰는부분 .
fwrite($fp,"log Date : ".$logTime. " // " . $logData . "\n");
fwrite($fp,"============================================================================\n");
//파일 쓰기 끝 닫기
fclose($fp);
}
private static function makeLogFolder($fileDirectory)
{
if(!is_dir ($fileDirectory)){
mkdir($fileDirectory, 0755, true);
}
}
public static function writeFileLog($basePath, $logData, $foldor = "simpleLog")
{
$today = date("Ymd", time());
$month = date('Ym', time());
$folderPath = $basePath . "/" . $foldor . "/" . $month ;
$fileName = $today.".txt";
$logPath = $folderPath."/".$fileName;
//폴더 생성
self::makeLogFolder($folderPath);
self::writeLog($logPath, $logData);
}
}
}
?>
\ No newline at end of file
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminRent.php" ?>
<?
$obj = new AdminRent($_REQUEST) ;
$list = $obj->getListOfRequestChargeForExcel() ;
$vnum = $obj->virtualNum ;
?>
<?
$fileName = "비용청구 리스트_".date("YmdHis",time());
header( "Content-type: application/vnd.ms-excel; charset=utf-8");
header( "Content-Disposition: attachment; filename=$fileName.xls" );
header( "Content-Description: PHP4 Generated Data" );
?>
<meta http-equiv="Content-Type" content="application/vnd.ms-excel; charset=utf-8">
<table class="datacList">
<tr style = 'background-color:#EBF4FF ;'>
<td>No</td>
<td>건물명</td>
<td>호실</td>
<td>처리내용</td>
<td>신청일</td>
<td>처리일</td>
<td>금액</td>
</tr>
<? for($i=0; $i<sizeof($list); $i++){ ?>
<tr >
<td class="no center">
<?=$vnum--?>
</td>
<td class="center">
<?=$list[$i]["building_name"]?>
</td>
<td class="center">
<?=$list[$i]["room_name"]?>
</td>
<td class="center">
<?=$list[$i]["info"]?>
</td>
<td class="center">
<?php
$formattedDate = date('Y-m-d', strtotime($list[$i]["request_date"]));
if($formattedDate == "1970-01-01") $formattedDate = "";
?>
<?=$formattedDate?>
</td>
<td class="center">
<?php
$formattedDate = date('Y-m-d', strtotime($list[$i]["handled_date"]));
if($formattedDate == "1970-01-01") $formattedDate = "";
?>
<?=$formattedDate?>
</td>
<td class="center">
<?=$list[$i]["charge"]?>
</td>
</tr>
<? } ?>
</table>
\ No newline at end of file
@charset "utf-8";
@import url(https://cdn.rawgit.com/openhiun/hangul/14c0f6faa2941116bb53001d6a7dcd5e82300c3f/nanumbarungothic.css);
@font-face{
font-family:"sandoll";
src:url('./font/SanDoll.ttf') format('truetype');
}
*{ margin : 0; padding : 0;}
li{ list-style : none; }
a{ text-decoration : none;}
/*초기화*/
body{width:100%; height:100%; font-family: 'Nanum Barun Gothic', sans-serif;}/*작업하기전에 확인*/
header{font-family: 'sandoll', sans-serif !important;}
.Wrap{min-height:100%;}
.wrapper{position:relative; width:875px; margin:0 auto; min-width:875px; padding:5px 5px; background:#fff;}/*매번 수정해야함*/
.f14{font-size:14px;}
.f16{font-size:16px;}
.f18{font-size:18px;}
.f20{font-size:20px;}
.f22{font-size:22px;}
.f24{font-size:24px;}
.f28{font-size:28px;}
.f40{font-size:40px;}
.f56{font-size:56px;}
.Cf{color:#fff;}
.Cc{color:#ccc;}
.C0{color:#000;}
.C2{color:#222;}
.C4{color:#444;}
.C7{color:#777;}
.W300{font-weight:300;}
.W400{font-weight:400;}
.W500{font-weight:500;}
.W700{font-weight:700;}
.W900{font-weight:900;}
.roboto{font-family:'Roboto', sans-serif;}
.italic{font-style:italic;}
.active{color:#fff; background:#4a4a4a;}
.under{text-decoration:underline;}
.orange{background:url('/web/inc/images/btn_orange_bg.png') no-repeat center; background-size:100%;}
.long_orange{background:url('/web/inc/images/long_orange_bg.png') no-repeat center; background-size:100%;}
.green{background:url('/web/inc/images/btn_green_bg.png') no-repeat center; background-size:100%;}
.red{background:url('/web/inc/images/red_bg.png') no-repeat center; background-size:100%;}
.navy{background:url('/web/inc/images/navy_bg.png') no-repeat center; background-size:100%;}
.yellow{background:url('/web/inc/images/yellow_bg.png') no-repeat center; background-size:100%;}
.brown{background:url('/web/inc/images/btn_brown_bg.png') no-repeat center; background-size:100%;}
/*공통*/
/*헤더*/
header{width:100%; background:#353535; height:57px;}
header ul{width:100%;}
header ul li{float:left; line-height:57px; width:33.33%; text-align:center;}
header ul li:first-child{text-align:left;}
header ul li:nth-child(2){color:#fff; font-size:2.2em;}
header ul li:last-child{float:right; text-align:right;}
header ul li img{vertical-align:middle; padding:0px 12px;}
/*네비게이션*/
nav{width:100%; background:#e6e7e8; height:43px; font-size:1em; color:#707070;}
nav ul{width:100%;}
nav ul li{width:33.33%; float:left; text-align:center; line-height:43px;}
/*건물명/년도*/
.year{width:100%; height:20px; background:#939393; font-size:0.8em; color:#fff;}
.year ul{width:100%;}
.year ul li{width:50%; float:left; line-height:20px;}
.year ul li:last-child{text-align:right;}
.year ul li a{padding:0px 25px;}
.year ul li:last-child a{padding:0px 45px;}
/*리스트*/
section{width:100%; height:75px; font-size:0.8em;}
section ul{width:100%; border-bottom:1px solid #939393;}
section ul li{width:25%; float:left; overflow:hidden; position:relative;}
section ul li:first-child{text-align:left; font-size:0.95; color:#4a4a4a; line-height:75px;}
section ul li:nth-child(2){width:50%; text-align:center; color:#707070; font-size:0.9em;}
section ul li .date{width:50px; margin-left:25px; text-align:center; background:url('/web/inc/images/btn_data_bg.png') no-repeat center; background-size:100%;}
section ul li .status{width:50px; text-align:center; line-height:75px; color:#fff; margin-left:20%;}
section ul li .price{font-weight:bold; color:#ff0000;}
section .room_info li{width:33.33%; float:left; overflow:hidden; position:relative;}
section .room_info li:nth-child(2){width:33.33%; text-align:center; color:#707070;}
section ul li .room_num{width:80px; margin-left:10%; text-align:center; background:url('/web/inc/images/btn_room_bg.png') no-repeat center; background-size:100%;}
section ul .room_user p{text-align:left; padding:0px 20px;}
section ul .room_user .price{font-weight:normal; color:#707070;}
section .room_info li .status{width:50px; text-align:center; line-height:75px; color:#fff; float:right; margin-right:20%;}
section .room_info li .logn_status{width:75px;}
section .room_info li .rent_list{line-height:32px;}
section .room_info li .rent_list:first-child{margin-top:5px;}
/*납부기한/금액*/
.contant{width:86%; border-bottom:1px solid #707070; margin:0 auto;}
.con1{height:63px;}
.con1 dl{padding:14px 0px; font-size:0.8em; color:#707070;}
.con1 dl dt{margin-bottom:3px;}
.buil_name dl{padding:25px 0px; font-size:0.9em; color:#707070;}
.buil_name dl dt{margin-bottom:0px;}
.bill{height:90px;}
.bill dl{padding:14px 0px; font-size:0.8em; color:#707070;}
.bill dl dd:nth-child(2){margin:7px 0px;}
.con2{padding:10px 0px;}
.con2 ul{padding:0px 15px; font-size:0.85em; color:#707070;}
.con2 ul li{height:22px; width:100%; line-height:22px; margin-bottom:3px;}
.buil_list{padding:15px 0px 10px 0px;}
.buil_list ul li{height:23px; width:100%; line-height:23px; margin-bottom:5px;}
.con2 ul li:last-child{margin-bottom:0px;}
.con2 ul li a:first-child{display:inline-block; width:10px; margin-right:3px;}
.con2 ul li a:last-child{float:right;}
.con2 ul .used{margin-top:14px;}
.con2 ul .used a:first-child{display:inline-block; width:50px; margin-right:3px; text-align:center; background:url('/web/inc/images/btn_usage_bg.png') no-repeat center; background-size:100%; color:#fff; font-size:0.8em;}
.con2 ul .used a:nth-child(2) span{margin-left:29px;}
.con2 ul .rent a:first-child{display:inline-block; width:50px; margin-right:3px; text-align:center; color:#fff; font-size:0.8em;}
.bill2{padding:15px 0px;}
.bill2 ul{padding:0px 15px; font-size:0.82em; color:#707070;}
.bill2 ul li{height:22px; width:100%; line-height:22px; margin-bottom:3px;}
.bill2 ul li span{font-size:0.95em;}
.bill2 ul li:last-child{margin-bottom:0;}
.bill2 ul li a{display:inline-block; width:22%}
.bill2 ul li a:first-child{width:10px; margin-right:3px;}
.bill2 ul li a:nth-child(n+3){text-align:center;}
.bill2 ul li a:last-child{float:right; text-align:right;}
/*계좌*/
.bank{width:86%; margin:0 auto; margin-top:40px; color:#707070; font-size:0.85em;}
.bank div{height:94px; width:90%; margin:0 auto; background:url('/web/inc/images/account_bg.png') no-repeat center; background-size:100%;}
.bank div ul{float:left;}
.bank div .text1{width:25%; height:86px; text-align:center;}
.bank div .text1 li:first-child{margin:23px 0px 17px 0px;}
.bank div .text2{width:74%; height:86px;}
.bank div .text2 li:first-child{margin:23px 0px 17px 14px;}
.bank div .text2 li{margin-left:14px;}
/*비고/특약*/
.note{width:86%; margin:0 auto; margin-top:20px; color:#707070; font-size:0.85em;}
.note div{height:94px; width:90%; margin:0 auto;}
.note div .text1 li:last-child{margin:20px 0px 35px 0px; width:92%; height:85px; border:1px solid #707070; padding:4%;}
.claim_con div{width:100%;}
.claim_con div .text1 li a:first-child{display:inline-block; width:10px; margin-right:3px;}
.claim_con div .text1 li a:last-child{font-weight:bold;}
/*팝업*/
.pop{width:70%; height:175px; color:#707070; background:#fff; margin:0 auto; border-radius:10px; -moz-border-radius:10px; -webkit-border-radius:10px;}/*background:url('/web/inc/images/bg_pop1.png') no-repeat center top; background-size:100%;*/
.pop .head{width:100%; height:42px; border-bottom:1px solid #707070;}
.pop .head li{line-height:42px; width:33%; text-align:center; float:left;}
.pop .head li:first-child{color:#fff;}
.pop .head .title{font-size:0.98em;}
.pop .con{width:100%; height:115px; overflow-y:scroll;}
.pop .con li{width:85%; margin:0 auto; border-bottom:1px solid #707070; height:40px; line-height:40px; text-align:center;}
.pop2{width:64%; height:260px; background:url('/web/inc/images/bg_pop2.png') no-repeat center top; background-size:100%;}
.pop .con2{width:100%; height:180px; overflow-y:scroll; font-size:0.85em;}
.pop .con2 li{width:85%; margin:0 auto; height:40px;}
.pop3_1{width:70%; height:265px; background:#fff; border-radius:10px; -moz-border-radius:10px; -webkit-border-radius:10px;}
.pop3{border:none; width:85%;}
.pop3 ul{font-size:0.9em; color:#707070; border-bottom:1px solid #707070; padding:10px 0;}
.pop3 ul:last-child{border:none;}
.pop3 ul li{height:22px; width:100%; line-height:22px;}
.pop3 ul li:last-child{margin-bottom:0;}
.pop3 ul li a{display:inline-block; width:22%}
.pop3 ul li a:first-child{width:10px; margin-right:3px;}
.pop3 ul li a:nth-child(n+3){text-align:center;}
.pop3 ul li a:last-child{float:right; text-align:right;}
.pop4_1{width:70%; height:345px; background:#fff; border-radius:10px; -moz-border-radius:10px; -webkit-border-radius:10px;}/*background:url('/web/inc/images/bg_pop4.png') no-repeat center top; background-size:100%;*/
.pop4{padding:8px 0px;}
.pop4 ul{padding:0px 15px; font-size:0.9em; color:#707070;}
.pop4 ul li{height:22px; width:100%; line-height:22px; margin-bottom:3px;}
.pop4 ul li:last-child{margin-bottom:0;}
.pop4 ul li a:first-child{display:inline-block; width:10px; margin-right:3px;}
.pop4 ul li a:last-child{float:right;}
.total{width:85%; margin:0 auto; font-size:0.95em; height:35px; line-height:35px;}
.total div{float:right;}
.room_none_pop_box{width:70%; height:165px; background:#fff; border-radius:10px; -moz-border-radius:10px; -webkit-border-radius:10px;}
.room_none_pop{border:none; width:85%;}
.room_none_pop ul{font-size:0.9em; color:#707070; border-bottom:1px solid #707070; padding:10px 0;}
.room_none_pop ul:last-child{border:none;}
.room_none_pop ul li{height:35px; width:100%; line-height:35px;}
.room_none_pop ul li:last-child{margin-bottom:0;}
.room_none_pop ul li a{display:inline-block; width:22%}
.room_none_pop ul li a:first-child{width:10px; margin-right:3px;}
.room_none_pop ul li a:nth-child(n+3){text-align:center;}
.room_none_pop ul li a:last-child{float:right; text-align:right;}
\ No newline at end of file
<div id="jFileUploadArea<?= $fileIndex ?>">
<img id="btnFileUpload<?= $fileIndex ?>" src="/admin/inc/imgUpload/bt_attach.gif" alt="Attach a file"/>
<input type="hidden" id="uploaded_files<?= $fileIndex ?>" name="uploaded_<?= $fileName ?>" NOT_NULL="" value="<?=$filePath?>" title="Upload File"/>
<input type="hidden" id="fileNumber<?= $fileIndex ?>" name="fileNumber_<?= $fileName ?>" NOT_NULL="" value="<?=$fileNumber?>" title="Upload File"/>
<input type="file" id="files<?= $fileIndex ?>" name="<?= $fileName ?>" NOT_NULL="" title="Upload File" style="display:none;"/>
<span id="divPreviewFile<?= $fileIndex ?>" style="display:none;">
<div id="priviewFileScale<?= $fileIndex ?>" style="position:absolute; background-image:url('/admin/inc/imgUpload/btn_x.gif'); width:300px; height:300px; background-repeat:no-repeat; background-size:contain; background-position:center center; display:none;"></div>
<img class="imgSample" src="" width="25" height="21" id="previewFile<?= $fileIndex ?>"/>
<img onclick="javascript:previewFileDelete('<?= $fileIndex ?>');" src="/admin/inc/imgUpload/btn_x.gif" style="cursor:hand;" id="previewDelete<?= $fileIndex ?>" />
</span>
<span id="divFileResult<?= $fileIndex ?>" class="validation4"></span>
</div>
<script type="text/javascript">
$(document).ready(function() {
var index = '<?= $fileIndex ?>';
var filePath = '<?= $filePath ?>';
previewFileBind(index, "filePath", filePath);
});
</script>
\ No newline at end of file
<? include $_SERVER["DOCUMENT_ROOT"] . "/web/inc/php/header.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/ApiBill.php"; ?>
<?
$obj = new ApiBill($_REQUEST);
$data = $obj->getMonthlyData() ;
$str = explode("-", $data["month"]) ;
$month = $str[0] . "." . $str[1] ;
// echo json_encode($data) ;
?>
<div class="Wrap" style="height:100%">
<!-- 헤드 -->
<header>
<ul>
<li class="jBack"><img src="/web/inc/images/btn_top_back_over.png" alt="back" width="20%"/></li>
<li><p><?= $month ?></p></li><!-- 날짜 -->
<li></li>
</ul>
<div style="clear:both;"></div>
</header>
<!-- 헤드 -->
<!-- 납부기한/금액 -->
<div class="contant con1">
<dl>
<dt>납부기한 : <span><?= $data["monthDate"] ?></span></dt>
<dd>총 금액은 <span style="font-size:15px; color:#ff0000; font-weight:bold";><?= number_format($data["current_month_charge"]) ?></span> 원 입니다.</dd>
</dl>
</div>
<!-- 납부기한/금액 -->
<!-- 리스트 -->
<div class="contant con2">
<ul>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>일반관리비</a><!-- 이름 -->
<a><span><?= number_format($data["maintenance_fee"]) ?></span> 원</a><!-- 금액 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>인터넷+케이블</a><!-- 이름 -->
<a><span><?= number_format(($data["internet"] + $data["cable"])) ?></span> 원</a><!-- 금액 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>렌트</a><!-- 이름 -->
<a><span><?= number_format(($data["rent_1"] + $data["rent_2"])) ?></span> 원</a><!-- 금액 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>기타</a><!-- 이름 -->
<a><span><?= number_format($data["etc"]) ?></span> 원</a><!-- 금액 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>월세</a><!-- 이름 -->
<a><span><?= number_format($data["monthly_rent"]) ?></span> 원</a><!-- 금액 -->
</li>
<li class="used rent">
<a></a>
<a>소계 <span><?= number_format($data["current_month_charge"]) ?></span> 원</a><!-- 금액 -->
</li>
<div style="clear:both;"></div>
</ul>
</div>
<div class="contant con2">
<ul>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>당월부과액</a><!-- 이름 -->
<a><span><?= number_format($data["current_month_charge"]) ?></span> 원</a><!-- 금액 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>전월 미납액(연체료 포함)</a><!-- 이름 -->
<a><span><?= number_format($data["sum_before_payment"]) ?></span> 원</a><!-- 금액 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>납기 내 금액</a><!-- 이름 -->
<a><span><?= number_format(($data["current_month_charge"] + $data["sum_before_payment"])) ?></span> 원</a><!-- 금액 -->
</li>
<div style="clear:both;"></div>
</ul>
</div>
<div class="contant con2">
<ul>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>당월연체료</a><!-- 이름 -->
<a><span><?= number_format($data["current_month_late_fee"]) ?></span> 원</a><!-- 금액 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>납기 후 금액</a><!-- 이름 -->
<a><span><?= number_format($data["sum_after_payment"]) ?></span> 원</a><!-- 금액 -->
</li>
<div style="clear:both;"></div>
</ul>
</div>
<!-- 리스트 -->
<!-- 계좌 -->
<div class="bank">
<div>
<ul class="text1">
<li>입금은행</li>
<li>계좌번호</li>
</ul>
<ul class="text2">
<li><?= $data["month_account_bank"] ?></li><!-- 은행 -->
<li><?= $data["month_account_no"] ?> (<?= $data["month_account_owner"] ?>)</li><!-- 계좌번호 -->
</ul>
</div>
</div>
<!-- 계좌 -->
</div>
<? include $_SERVER["DOCUMENT_ROOT"] . "/web/inc/php/footer.php" ?>
\ No newline at end of file
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/ApiBill.php"; ?>
<?
$obj = new ApiBill($_REQUEST);
$data = $obj->getVacantList() ;
?>
<div class="pop room_none_pop_box">
<ul class="head">
<li>o</li>
<li class="title">공실율</li>
<li class="jExit" style="text-align:right;"><img src="/web/inc/images/btn_pop_x.png" alt="esc" width="30%" style="padding:9px 12px 0px 0px;"/></li>
<div style="clear:both;"></div>
</ul>
<!-- 리스트 -->
<div class="contant room_none_pop">
<ul>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a><?= $data["date1"] ?>월</a><!-- 월 -->
<a></a>
<a></a>
<a>
<?
if($data["room_cnt1"] > 0) {
echo round(($data["vacant_cnt1"] / $data["room_cnt1"] * 100), 2) ;
} else {
echo "0" ;
}
?> %
</a><!-- 공실율 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a><?= $data["date2"] ?>월</a><!-- 월 -->
<a></a>
<a></a>
<a>
<?
if($data["room_cnt2"] > 0) {
echo round(($data["vacant_cnt2"] / $data["room_cnt2"] * 100), 2) ;
} else {
echo "0" ;
}
?> %
</a><!-- 공실율 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a><?= $data["date3"] ?>월</a><!-- 월 -->
<a></a>
<a></a>
<a>
<?
if($data["room_cnt3"] > 0) {
echo round(($data["vacant_cnt3"] / $data["room_cnt3"] * 100), 2) ;
} else {
echo "0" ;
}
?> %
</a><!-- 공실율 -->
</li>
<div style="clear:both;"></div>
</ul>
</div>
<!-- 리스트 -->
</div>
\ No newline at end of file
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminUser.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/header.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/leftUserManage.php" ?>
<?
$obj = new AdminUser($_REQUEST, "") ;
$list = $obj->getListOfAdminUser();
$vnum = $obj->virtualNum ;
?>
<script>
$(document).ready(function(){
//=====프레입웤 변수들==================================================================================//
var FORM_TARGET_CLS_NM = "DIV#Contents" ; // 폼을 동적 wrap 할 타겟 ID이름
var FORM_NAME = "nf" ; // 폼이름
var FORM_METHOD = "GET" ; // 폼 메쏘드
var FORM_USE_FILE = false ; // 파일폼 사용 여부
var FORM_ACTION = document.URL ;
var NEXT_CMD = "" ; // 다은 수행 할 cmd
//=====================================================================================================//
var jForm = $(FORM_TARGET_CLS_NM).mf({ "name" : FORM_NAME , "method" : FORM_METHOD , "action" : FORM_ACTION , "useFile" : FORM_USE_FILE }) ;
// 페이징
$(".jPage").click2(function(){
jForm.ci() ;
jForm.mi("page",$(this).attr("page")) ;
jForm.submit() ;
}) ;
$(".jAutoSearch").change(function(){
jForm.ci() ;
jForm.submit() ;
});
$(".jSearch").click2(function(){
jForm.ci() ;
jForm.submit() ;
});
$(".jModAdm").click2(function(){
var no = $(this).attr("no");
location.href = "/admin/userManage/adminView.php?no=" + no + "&rurl=" + jQuery.rich.bin2hex(document.URL);
});
$(".jAddAdm").click2(function(){
location.href = "/admin/userManage/adminView.php?rurl=" + jQuery.rich.bin2hex(document.URL);
});
// 회원 탈퇴
$(".jDelAdm").click2(function(){
var no = $(this).attr("no");
var noArr = new Array(no);
if(confirm("정말 삭제하시겠습니까?"))
{
deleteAdmin(noArr);
}
}) ;
// 단체 삭제
$(".jDelMultiAdm").click2(function(){
var noArr = new Array();
var noCount = $(".jAdminNo:checked").length;
if(noCount == 0)
{
alert("삭제할 관리자를 하나 이상 선택해주세요.");
return false;
}
if(confirm("정말 삭제하시겠습니까?"))
{
for(var i = 0; i < noCount; i++ )
{
noArr[i] = $(".jAdminNo:checked:eq(" + i + ")").val();
}
deleteAdmin(noArr);
}
});
$("#jCheckAll").change(function(){
if($(this).is(":checked"))
$(".jAdminNo").prop("checked", true);
else
$(".jAdminNo").prop("checked", false);
});
}) ;
function deleteAdmin(noArr)
{
$.ajax({
url : "/action_front.php?cmd=AdminUser.deleteAdminUser",
async : false,
cache : false,
dataType : "json",
data : {
"no" : noArr
},
success : function(data){
location.reload();
}
});
}
</script>
<div id="Contents" class="notice">
<h1>관리자 리스트</h1>
<div class="data" style="padding-top:30px;">
<?if($loginInfo["admin_type"] == "1"){ ?>
<fieldset class="search">
<div class="jSearchArea" >
<label>
<span># 관리자 구분</span>
<select id="admin_type" name="admin_type">
<option value="" <?=$_REQUEST['admin_type'] == "" ? "SELECTED" : ""?> >전체</option>
<option value="2" <?=$_REQUEST['admin_type'] == "2" ? "SELECTED" : ""?> >그룹관리자</option>
<option value="3" <?=$_REQUEST['admin_type'] == "3" ? "SELECTED" : ""?> >상점관리자</option>
</select>
</label>
<label>
<span># 관리자 아이디</span>
<input type="text" id="search_text" name="search_text" class="wm" value="<?=$_REQUEST['search_text']?>" />
</label>
<input type="button" class="button bigrounded blue jSearch" value="검색" />
</div>
<!--
<div class="btngroupcenter">
<input type="button" class="button bigrounded blue jSearch" value="검색" />
</div>
-->
</fieldset>
<div class="btngroupright">
<input type="button" class="button bigrounded blue jDelMultiAdm" value="삭제" />
<input type="button" class="button bigrounded blue jAddAdm" value="관리자 등록" />
</div>
<?} ?>
<table class="datacList">
<thead>
<tr>
<th class="no" width="5%">No</th>
<?if($loginInfo["admin_type"] == "1"){ ?>
<th width="5%"><input type="checkbox" id="jCheckAll"></th>
<?} ?>
<th width="5%">관리자<br>타입</th>
<th width="10%">관리자 아이디</th>
<th width="10%">관리자명</th>
<th width="30%">관리 대상<br />(그룹 명, 상점명)</th>
<th width="10%">등록일</th>
<th width="20%">-</th>
</tr>
</thead>
<tbody><!-- 10줄 리스트// 마지막 tr에 class="last" 넣어주세요 -->
<? for($i=0; $i<sizeof($list); $i++){ ?>
<tr class="<?=(sizeof($list)-1 == $i) ? "last" : "datacLists"?>">
<td class="no center">
<?=$vnum--?>
</td>
<?if($loginInfo["admin_type"] == "1"){ ?>
<td class="center">
<input type="checkbox" class="jAdminNo" value="<?=$list[$i]["no"] ?>" >
</td>
<?} ?>
<td class="center">
<?=$list[$i]["admin_type"] == "2" ? "그룹" : "상점"?>
</td>
<td class="center">
<?=$list[$i]["admin_id"]?>
</td>
<td class="center">
<?=$list[$i]["admin_name"]?>
</td>
<td class="center">
<?=$list[$i]["target_name"]?>
</td>
<td class="center">
<?=str_replace(" ", "<br>", $list[$i]["regist_dt"])?>
</td>
<td class="center">
<input type="button" class="button searchsmall white jModAdm" value="상세보기" no="<?=$list[$i]["no"]?>" />
<?if($loginInfo["admin_type"] == "1"){ ?>
<input type="button" class="button searchsmall white jDelAdm" value="삭제" no="<?=$list[$i]["no"]?>" />
<?} ?>
</td>
</tr>
<? } ?>
<?if(sizeof($list) == 0){?>
<tr class="last">
<td class="no center" colspan="11">No Data</td>
</tr>
<?}?>
</tbody>
</table>
<!-- Pagination -->
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/pageNavigation.php" ?>
<!--//Pagination -->
</div>
</div>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/footer.php" ?>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<buildpath>
<buildpathentry kind="src" path=""/>
<buildpathentry kind="con" path="org.eclipse.php.core.LANGUAGE"/>
</buildpath>
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminRent.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/header.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/leftRentManage.php" ?>
<?
$obj = new AdminRent($_REQUEST, "") ;
$list = $obj->getListOfBuilding() ;
$vnum = $obj->virtualNum ;
?>
<script>
$(document).ready(function(){
//=====프레입웤 변수들==================================================================================//
var FORM_TARGET_CLS_NM = "DIV#Contents" ; // 폼을 동적 wrap 할 타겟 ID이름
var FORM_NAME = "nf" ; // 폼이름
var FORM_METHOD = "GET" ; // 폼 메쏘드
var FORM_USE_FILE = false ; // 파일폼 사용 여부
var FORM_ACTION = document.URL ;
var NEXT_CMD = "" ; // 다은 수행 할 cmd
//=====================================================================================================//
var jForm = $(FORM_TARGET_CLS_NM).mf({ "name" : FORM_NAME , "method" : FORM_METHOD , "action" : FORM_ACTION , "useFile" : FORM_USE_FILE }) ;
var dates = $('.jRsvDate').datepicker({
showMonthAfterYear:true,
inline: true,
changeMonth: true,
changeYear: true,
dateFormat : 'yy-mm-dd',
dayNamesMin:['일', '월', '화', '수', '목', '금', ' 토'],
monthNames:['1월','2월','3월','4월','5월','6월','7 월','8월','9월','10월','11월','12월'],
monthNamesShort:['1월','2월','3월','4월','5월','6월','7월','8월','9월','10월','11월','12월'],
showButtonPanel: true, currentText: '오늘 ' , closeText: '닫기',
onSelect: function(selectedDate) {
}
});
// 페이징
$(".jPage").click2(function(){
jForm.ci() ;
jForm.mi("page",$(this).attr("page")) ;
jForm.submit() ;
});
$(".jAutoSearch").change(function(){
jForm.ci() ;
jForm.submit() ;
});
$(".jSearch").click2(function(){
jForm.ci() ;
jForm.submit() ;
});
$(".jView").click2(function(){
var no = $(this).attr("no");
location.href = "/admin/rentManage/buildingView.php?new=0&no=" + no + "&rurl=" + jQuery.rich.bin2hex(document.URL);
});
$(".jAdd").click2(function(){
location.href = "/admin/rentManage/buildingView.php?new=1&rurl=" + jQuery.rich.bin2hex(document.URL);
});
$(".jAddUserExcel").click2(function(){
alert("준비중입니다.");
return false;
window.open('/admin/popup/addUserExcelUpload.php','',"width=700,height=800,scrollbars=yes");
});
$(".jDel").click2(function(){
var no = $(this).attr("no");
var noArr = new Array(no);
if(confirm("정말 삭제하시겠습니까?"))
{
deleteAction(noArr);
}
}) ;
// 단체 삭제
$(".jDelMulti").click2(function(){
var noArr = new Array();
var noCount = $(".jNo:checked").length;
if(noCount == 0)
{
alert("삭제할 대상을 하나 이상 선택해주세요.");
return false;
}
if(confirm("정말 삭제하시겠습니까?"))
{
for(var i = 0; i < noCount; i++ )
{
noArr[i] = $(".jNo:checked:eq(" + i + ")").val();
}
deleteAction(noArr);
}
});
$("#jCheckAll").change(function(){
if($(this).is(":checked"))
$(".jNo").prop("checked", true);
else
$(".jNo").prop("checked", false);
});
}) ;
function deleteAction(noArr)
{
$.ajax({
url : "/action_front.php?cmd=AdminRent.delBuilding",
async : false,
cache : false,
dataType : "json",
data : {
"no" : noArr
},
success : function(data){
alert("삭제되었습니다");
location.reload();
}
});
}
</script>
<div id="Contents" class="notice">
<h1>건물 관리</h1>
<div class="data">
<fieldset class="search" style="margin-top:30px;">
<div class="jSearchArea" >
<label>
<span># 건물명, 건물종류, 건물주, 건물주소, 연락처</span>
<input type="text" id="search_text" name="search_text" class="wm" value="<?=$_REQUEST['search_text']?>" />
</label>
<label>
<span># 관리유형</span>
<select name="manage_type" id="manage_type" class="wm">
<option value="">전체</option>
<option value="<?=$obj->BUILDING_MANAGE_TYPE_LONG_CONS?>" <?=$_REQUEST["manage_type"] == $obj->BUILDING_MANAGE_TYPE_LONG_CONS ? "SELECTED" : ""?>>장기위탁</option>
<option value="<?=$obj->BUILDING_MANAGE_TYPE_SHORT_CONS?>" <?=$_REQUEST["manage_type"] == $obj->BUILDING_MANAGE_TYPE_SHORT_CONS ? "SELECTED" : ""?>>단기위탁</option>
<option value="<?=$obj->BUILDING_MANAGE_TYPE_LONG_SELF?>" <?=$_REQUEST["manage_type"] == $obj->BUILDING_MANAGE_TYPE_LONG_SELF ? "SELECTED" : ""?>>장기자기</option>
<option value="<?=$obj->BUILDING_MANAGE_TYPE_SHORT_SELF?>" <?=$_REQUEST["manage_type"] == $obj->BUILDING_MANAGE_TYPE_SHORT_SELF ? "SELECTED" : ""?>>단기자기</option>
</select>
</label>
<label>
<span># 계약만기일</span>
<?php
$formattedDate = date('Y-m-d', strtotime($_REQUEST["expire_date"]));
if($formattedDate == "1970-01-01") $formattedDate = "";
?>
<input type="text" name="expire_date" id="expire_date" value="<?=$formattedDate?>" class="jRsvDate" />
</label>
<input type="button" class="button bigrounded blue jSearch" style="margin-left:30px;" value="검색" />
</div>
</fieldset>
<div class="btngroupright">
<input type="button" class="button bigrounded blue jAdd" value="등록" />
<input type="button" class="button bigrounded blue jDelMulti" value="삭제" />
</div>
<table class="datacList">
<thead>
<tr>
<th class="no" width="5%">No</th>
<th width="5%"><input type="checkbox" id="jCheckAll"></th>
<th width="5%">건물명</th>
<th width="10%">관리유형</th>
<th width="8%">건물종류</th>
<th width="10%">건물주</th>
<th width="22%">건물주소</th>
<th width="10%">연락처</th>
<th width="10%">계약만기일</th>
<th width="20%">-</th>
</tr>
</thead>
<tbody><!-- 10줄 리스트// 마지막 tr에 class="last" 넣어주세요 -->
<? for($i=0; $i<sizeof($list); $i++){ ?>
<tr class="<?=(sizeof($list)-1 == $i) ? "last" : "datacLists"?>">
<td class="no center">
<?=$vnum--?>
</td>
<td class="center">
<input type="checkbox" class="jNo" value="<?=$list[$i]["no"] ?>" >
</td>
<td class="center">
<?=$list[$i]["name"]?>
</td>
<td class="center">
<?
switch($list[$i]["manage_type"]):
case 'LC': echo '장기위탁'; break;
case 'SC': echo '단기위탁'; break;
case 'LS': echo '장기자기'; break;
case 'SS': echo '단기자기'; break;
endswitch;
?>
</td>
<td class="center">
<?
switch($list[$i]["type"]):
case 'SG': echo '원룸'; break;
case 'OF': echo '오피스텔'; break;
case 'UB': echo '도생'; break;
case 'AP': echo '아파트'; break;
case 'HS': echo '주택'; break;
case 'ET': echo '기타'; break;
endswitch;
?>
</td>
<td class="center">
<?=$list[$i]["owner_name"]?>
</td>
<td class="center">
<?=$list[$i]["address"]?>
</td>
<td class="center">
<?=$list[$i]["owner_tel"]?>
</td>
<td class="center">
<?
if($list[$i]["expire_date"] != "0000-00-00")
echo $list[$i]["expire_date"];
?>
</td>
<td class="center">
<input type="button" class="button searchsmall white jView" value="상세보기" no="<?=$list[$i]["no"]?>" />
<input type="button" class="button searchsmall white jDel" value="삭제" no="<?=$list[$i]["no"]?>" />
</td>
</tr>
<? } ?>
<?if(sizeof($list) == 0){?>
<tr class="last">
<td class="no center" colspan="11">No Data</td>
</tr>
<?}?>
</tbody>
</table>
<!-- Pagination -->
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/pageNavigation.php" ?>
<!--//Pagination -->
</div>
</div>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/footer.php" ?>
\ No newline at end of file
<?include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/FrontBase.php";?>
<?
if(!class_exists("Front")){
class Front extends FrontBase{
function __construct($req)
{
parent::__construct($req);
}
function wrapParam()
{
$this->req['page'] = ($this->req['page'] == "") ? 1 : $this->req['page'] ;
}
//공지사항 FAQ리스트
function getListOfNotice()
{
$noticeType = $this->req["notice_type"];
$lastNoticeNo = $this->req["last_notice_no"];
if($lastNoticeNo == "")
{
$limit = " LIMIT 0, 10 ";
}
else
{
$addWhere .= " AND no < '{$lastNoticeNo}' ";
}
$sql = "
SELECT
*,
CASE WHEN DATE_ADD(regist_dt, INTERVAL 1 DAY) > NOW() THEN '1' ELSE '0' END AS is_new
FROM tbl_notice
WHERE notice_type = '{$noticeType}' {$addWhere}
ORDER BY notice_no DESC
{$limit}
";
$list = $this->getArray($sql);
return $list;
}
}
}
?>
\ No newline at end of file
<?php
if(! class_exists("Email") ) {
class Email {
protected $MailHeaderArray = array(); // 메일헤더를 담을 배열
protected $MailFrom; // 보내는 사람
protected $MailTo; // 회신받을 주소 (기본적으로 보내는 메일주소가 된다)
protected $ArrMailTo = array(); // 받는 사람을 담을 배열
protected $Subject; // 메일제목
protected $MailBody; // 메일본문
protected $Charset = 'UTF-8'; // 메일기본 캐릭터셋
protected $no ; // 데이터베이스 메일폼 no
protected $strArray = array() ; // replace할 배열
protected $ori_subject; // 컨버팅전 제목
function __construct() //보내는 사람
{
}
public function setFrom($email, $name = null)
{
// 보내는 메일
$this->setReplyTo($email);
return $this->MailFrom = ($name) ? $name . ' <' . $email . '>' : $email;
}
public function makeMailBody()
{
$mailbody = $this->MailBody ;
foreach($this->strArray as $key => $val)
$mailbody = str_replace($key, $val, $mailbody) ;
return $mailbody ;
}
public function setReplyTo($email)
{
// 회신주소 - 기본적으로 보내는 메일을 회신주소로 셋한다
return $this->MailTo = $email;
}
public function addTo($email, $name = null)
{
// 받는 메일을 추가한다
return $this->ArrMailTo[$email] = $name;
}
private function AddBasicHeader()
{
// 메일의 기본 헤더를 작성한다
$this->addHeader('From', $this->MailFrom);
$this->addHeader('User-Agent', 'Dabuilder Mail System');
$this->addHeader('X-Accept-Language', 'ko, en');
$this->addHeader('X-Sender', $this->MailTo);
$this->addHeader('X-Mailer', 'PHP');
$this->addHeader('X-Priority', 1);
$this->addHeader('Reply-to', $this->MailTo);
$this->addHeader('Return-Path', $this->MailTo);
$this->addHeader('Content-Type', 'text/html; charset=' . $this->Charset);
$this->addHeader('Content-Transfer-Encoding', 'base64');
}
private function addHeader($Content, $Value)
{
// 메일헤더의 내용을 추가한다
$this->MailHeaderArray[$Content] = $Value;
}
private function makeMailHeader()
{
// 보낼 메일의 헤더를 작성한다
$header = "";
foreach($this->MailHeaderArray as $Key => $Val)
$header .= $Key . ": " . $Val . "\r\n";
return $header . "\r\n";
}
public function setMailBody($Body, $useHtml = true)
{
if(!$useHtml) { // 메일본문이 HTML 형식이 아니면 HTML 형식으로 바꾸어준다
$Body = '
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=' . $this->Charset . '">
</head>
<body>
' . nl2br($Body) . '
</body>
</html>
';
}
$this->MailBody = $Body ; // 메일본문을 셋한다
}
public function setSubject($subject)
{
$this->Subject="=?UTF-8?B?".base64_encode($subject)."?=\n";
$this->ori_subject = $subject ;
}
public function sendMail($fromMail, $fromName, $toMail, $toName, $strArr)
{
$fromName = iconv("UTF-8","EUC-KR",$fromName) ;
$toName = iconv("UTF-8","EUC-KR",$toName) ;
$this->strArray = $strArr ;
// 보내는 메일
$this->setReplyTo($fromMail);
$this->MailFrom = ($fromName) ? $fromName . ' <' . $fromMail . '>' : $fromMail;
// 받는 메일
$this->addTo($toMail, $toName) ;
$Contents = $this->makeMailBody() ;
$Contents = chunk_split(base64_encode($Contents));
// 메일을 전송한다
$this->AddBasicHeader(); // 메일의 기본헤더를 생성한다
$Succ = 0;
foreach($this->ArrMailTo as $Email => $Name) {
$toEMail = ($Name) ? $Name . ' <' . $Email . '>' : $Email; // 받는메일
$this->addHeader('To', $toEMail); // 메일헤더에 받는메일을 추가한다
$header = $this->makeMailHeader(); // 헤더를 작성한다
//echo "subject: " .$this->Subject ."Email". $Email ."header: ". $header ;
if(mail($Email, $this->Subject, $Contents, $header)) $Succ++; // 성공여부 판단
}
return $Succ;
}
}//클래스 종료
}
?>
\ No newline at end of file
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/popupHeader.php" ?>
<script language="javascript">
$(document).ready(function(){
//=====프레입웤 변수들==================================================================================//
var FORM_TARGET_CLS_NM = "#Contents" ; // 폼을 동적 wrap 할 타겟 ID이름
var FORM_NAME = "alf" ; // 폼이름
var FORM_METHOD = "post" ; // 폼 메쏘드
var FORM_USE_FILE = true ; // 파일폼 사용 여부
var FORM_ACTION = "/action_front.php" ;
var NEXT_CMD = "" ; // 다은 수행 할 cmd
//=====================================================================================================//
var jForm = $(FORM_TARGET_CLS_NM).mf({ "name" : FORM_NAME , "method" : FORM_METHOD , "action" : FORM_ACTION , "useFile" : FORM_USE_FILE }) ;
$(".jSubmit").click2(function(){
$("#excelForm").submit();
});
$(".jCancel").click2(function(){
window.close();
});
}) ;
</script>
<div id="Contents" class="notice" style="width:580px;">
<h1 align="center">엑셀파일 업로드</h1>
<div class="datacList" style="width:580px; margin-top:50px; text-align:center;">
<form id="excelForm" action="/action_front.php?cmd=AdminUser.addUserForExcel" method="post" enctype="multipart/form-data">
<input type="hidden" id="flow" name="flow" value="ReOandClose">
업로드 할 Excel파일 <input type="file" name="file" />
<div class="btngroupcenter">
<span class="button bigrounded blue jSubmit">엑셀 업로드 </span>
<span class="button bigrounded blue jCancel">닫기 </span>
</div>
</form>
</div>
</div>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/footer.php" ?>
\ No newline at end of file
<script>
$(document).ready(function(){
$("ul.sidemenu li[matchUrl='" + _fullUrlPath + "']").parents("ul.sidemenu").addClass("selected");
});
</script>
<div class="leftWrap">
<!--<ul class="selected" >-->
<ul class="sidemenu">
<a href="/admin/statsManage/userPointStatsView.php">
<h1>통계 관리</h1>
</a>
<?if($loginInfo["admin_type"] == "1"){ ?>
<li matchUrl="/admin/statsManage/userPointStatsView.php">
<a href="/admin/statsManage/userPointStatsView.php">마이포인트 통계</a>
</li>
<?} ?>
<?if($loginInfo["admin_type"] == "1" || $loginInfo["admin_type"] == "2"){ ?>
<li matchUrl="/admin/statsManage/groupPointStatsView.php">
<a href="/admin/statsManage/groupPointStatsView.php">그룹별 마이포인트 통계</a>
</li>
<?} ?>
<?if($loginInfo["admin_type"] == "1" || $loginInfo["admin_type"] == "3"){ ?>
<li matchUrl="/admin/statsManage/shopPointStatsView.php">
<a href="/admin/statsManage/shopPointStatsView.php">상점별 마이포인트 통계</a>
</li>
<?} ?>
</ul>
<div class="left_blank">
</div>
</div>
\ No newline at end of file
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminStats.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/header.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/leftStatsManage.php" ?>
<?
$obj = new AdminStats($_REQUEST, "") ;
$list = $obj->getListOfPointStatsForUser() ;
$vnum = $obj->virtualNum ;
$year = ($_REQUEST["year"] == "") ? date('Y', time()) : $_REQUEST["year"];
$month = ($_REQUEST["month"] == "") ? date('n', time()) : $_REQUEST["month"];
?>
<script>
$(document).ready(function(){
//=====프레입웤 변수들==================================================================================//
var FORM_TARGET_CLS_NM = "DIV#Contents" ; // 폼을 동적 wrap 할 타겟 ID이름
var FORM_NAME = "nf" ; // 폼이름
var FORM_METHOD = "GET" ; // 폼 메쏘드
var FORM_USE_FILE = false ; // 파일폼 사용 여부
var FORM_ACTION = document.URL ;
var NEXT_CMD = "" ; // 다은 수행 할 cmd
//=====================================================================================================//
var jForm = $(FORM_TARGET_CLS_NM).mf({ "name" : FORM_NAME , "method" : FORM_METHOD , "action" : FORM_ACTION , "useFile" : FORM_USE_FILE }) ;
// 페이징
$(".jPage").click2(function(){
jForm.ci() ;
jForm.mi("page",$(this).attr("page")) ;
jForm.submit() ;
}) ;
$(".jAutoSearch").change(function(){
jForm.ci() ;
jForm.submit() ;
});
$(".jSearch").click2(function(){
jForm.ci() ;
jForm.submit() ;
});
}) ;
</script>
<div id="Contents" class="notice">
<h1>마이포인트 통계</h1>
<div class="data" style="padding-top:30px;" >
<fieldset class="search">
<div class="jSearchArea" >
<label>
<span># 연도</span>
<select name="year">
<?for($i=2015; $i<=(date('Y', time())); $i++){ ?>
<option value="<?=$i ?>" <?= ($i == $year) ? "SELECTED" : "" ?> ><?=$i ?></option>
<?} ?>
</select>
</label>
<label>
<span># 월</span>
<select name="month">
<?for($i=1; $i<=12; $i++){ ?>
<option value="<?=$i ?>" <?= ($i == $month) ? "SELECTED" : "" ?> ><?=$i ?></option>
<?} ?>
</select>
</label>
<input type="button" class="button bigrounded blue jSearch" style="margin-left:30px;" value="검색" />
</div>
</fieldset>
<table class="datacList">
<thead>
<tr>
<th class="no" width="15%">No</th>
<th width="25%">지급내역</th>
<th width="25%">사용내역</th>
</tr>
</thead>
<tbody><!-- 10줄 리스트// 마지막 tr에 class="last" 넣어주세요 -->
<? for($i=0; $i<sizeof($list); $i++){ ?>
<tr class="<?=(sizeof($list)-1 == $i) ? "last" : "datacLists"?>">
<td class="no center">
<?=$list[$i]["date"]?>
</td>
<td class="center">
<?=number_format($list[$i]["input_point"])?>
</td>
<td class="center">
<?=number_format($list[$i]["output_point"])?>
</td>
</tr>
<? } ?>
<?if(sizeof($list) == 0){?>
<tr class="last">
<td class="no center" colspan="3">No Data</td>
</tr>
<?}?>
</tbody>
</table>
</div>
</div>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/footer.php" ?>
\ No newline at end of file
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminBase.php" ?>
<?
$obj = new AdminBase($req);
$list = Array();
if($_REQUEST["search_text"] != "")
{
$list = $obj->getListOfShopForEntity($_REQUEST["search_text"]);
}
?>
<? for($i=0; $i<sizeof($list); $i++){ ?>
<tr class="<?=(sizeof($list)-1 == $i) ? "last" : "datacLists"?>">
<td class="no center" style="width:10%">
<input type="checkbox" class="jTargetNo" value="<?=$list[$i]["no"] ?>" >
</td>
<td class="center jTargetName" data="<?=$list[$i]["name"] ?>">
<?=$list[$i]["name"] ?>
</td>
</tr>
<? } ?>
<?if(sizeof($list) == 0){?>
<tr class="last">
<td class="no center" colspan="2">No Data</td>
</tr>
<?}?>
\ No newline at end of file
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
No preview for this file type