91cbd259 by sayhoChun

working on html form

1 parent 76c6e88a
<? 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" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/leftBoardManage.php" ?>
<?
$obj = new AdminUser($_REQUEST, "") ;
$obj = new AdminUser($_REQUEST) ;
$list = $obj->getListOfUserForBoard("M", null) ;
//$list = $obj->getListOfUser() ;
$boardType=$_REQUEST["boardType"];
$vnum = $obj->virtualNum ;
?>
<script>
......@@ -42,15 +43,16 @@
jForm.submit() ;
});
$(".jViewUser").click2(function(){
$(".jView").click2(function(){
var no = $(this).attr("no");
location.href = "/admin/userManage/userView.php?isMS=1&no=" + no + "&rurl=" + jQuery.rich.bin2hex(document.URL);
var type='<?=$boardType?>';
location.href = "/admin/boardManage/boardView.php?no=" + no + "&boardType=" + type +"&rurl=" + jQuery.rich.bin2hex(document.URL);
});
$(".jAddUserExcel").click2(function(){
var s=$("#search_text").val();
location.href = "/admin/excel/groupUserExcelList.php?search_text="+s;
location.href = "/admin/excel/userListExcel.php?search_text="+s;
});
......@@ -65,7 +67,7 @@
if(confirm("정말 삭제하시겠습니까?"))
{
deleteAdmin(noArr);
deleteUser(noArr);
}
}) ;
......@@ -91,7 +93,7 @@
noArr[i] = $(".jUserNo:checked:eq(" + i + ")").val();
}
deleteAdmin(noArr);
deleteUser(noArr);
}
});
......@@ -128,7 +130,7 @@
function deleteAdmin(noArr)
function deleteUser(noArr)
{
$.ajax({
url : "/action_front.php?cmd=AdminUser.deleteUser",
......@@ -152,45 +154,50 @@
<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>
<h1>
<?
switch($boardType){
case "NO":
echo "공지사항";
break;
case "EV":
echo "이벤트";
break;
}
?>
</h1>
<h2>
게시물 관리 >
<span>
<?
switch($boardType){
case "NO":
echo "공지사항";
break;
case "EV":
echo "이벤트";
break;
}
?>
</span>
</fieldset>
</h2>
<div class="data" >
<?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="삭제" />
<input type="button" class="button smallrounded blue jView" no="" value="등록" />
<input type="button" class="button smallrounded blue jDelMulti" 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>
<th width="2%"><input type="checkbox" id="jCheckAll"></th>
<th width="50%">제목</th>
<th width="10%">등록일</th>
<th width="10%">-</th>
</tr>
</thead>
<tbody><!-- 10줄 리스트// 마지막 tr에 class="last" 넣어주세요 -->
......@@ -199,55 +206,19 @@
<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"]?>
<input type="button" class="button searchsmall white jView" value="상세보기" no="<?=$list[$i]["no"]?>" />
</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){?>
......
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminOperate.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/header.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/leftBoardManage.php" ?>
<?
$obj = new AdminOperate($_REQUEST, "");
//$info = $obj->getInfoOfShop();
//$cateCodeList = $obj->getShopCategoryCodeList();
//$shopImgList = $obj->getShopImgList($info["no"]);
$admin_type = $obj->admUser["admin_type"];
$rurl = pack("H*", $_REQUEST["rurl"]) ;
?>
<script src="/admin/inc/fileUpload/fileUploadJS.js"></script>
<script type="text/javascript">
var _rurl = "<?=$rurl?>";
var _no = "<?=$_REQUEST[no]?>";
$(document).ready(function(){
initFileUpload(101);
initFileUpload(102);
initFileUpload(103);
initFileUpload(104);
initFileUpload(105);
<?if($admin_type == 3) { ?>
setReadOnly();
<?} ?>
//=====프레입웤 변수들==================================================================================//
var FORM_TARGET_CLS_NM = ".data" ; // 폼을 동적 wrap 할 타겟 ID이름
var FORM_NAME = "alf" ; // 폼이름
var FORM_METHOD = "POST" ; // 폼 메쏘드
var FORM_USE_FILE = false ; // 파일폼 사용 여부
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 }) ;
$(".jCancel").click2(function(){
location.href = _rurl;
});
$(".jSave").click2(function(){
$("#jData").ajaxSubmit({
url:"/action_front.php?cmd=AdminOperate.saveShop",
type : "post",
forceSync : true,
dataType : "json",
success : function(data){
alert(data.returnMessage);
location.href = _rurl;
}
});
});
$("#jCategorCd").change(function(){
setPromotion();
});
setPromotion();
}) ;
function setPromotion()
{
if($("#jCategorCd").val() == "1")
{
$("#jPromotionSelect").val("1");
$("#jPromotionSelect").prop("disabled", true);
$("#jPromotionHidden").prop("disabled", false);
}
else
{
$("#jPromotionSelect").prop("disabled", false);
$("#jPromotionHidden").prop("disabled", true);
}
}
function setReadOnly(){
$("[name=name]").attr("readonly", true);
$("[name=tel]").attr("readonly", true);
$("[name=addr_old]").attr("readonly", true);
$("[name=addr_new]").attr("readonly", true);
$("[name=discount_rate]").attr("readonly", true);
$("[name=discount_desc]").attr("readonly", true);
}
</script>
<div id="Contents" class="notice">
<h1>게시판 관리 -등록</h1>
<!-- location area -->
<h2>
업체 관리 >
<?
if($_REQUEST["boardType"] == "NO")
echo "공지사항";
else
echo "이벤트"
?>
>
<span><?
if($_REQUEST["no"]=="")
echo "등록";
else
echo "상세보기";
?></span>
</h2>
<!-- location area -->
<div class="data" style="width:80%;">
<form id="jData" method="post" enctype="multipart/form-data">
<input type="hidden" name="no" value="<?=$_REQUEST[no]?>" />
<table class="datav" style="width:100%;">
<colgroup>
<col width="10%" />
<col width="90%" />
</colgroup>
<tr>
<th style="height:25px;">제목</th>
<td class="l">
<input type="text" name="discount_rate" class="wl" style="width:70%;" value="" />
</td>
</tr>
<tr>
<th style="height:25px;">내용</th>
<td class="l">
<textarea name="special_contract" rows="7" style="width:90%;resize:vertical;"><?=$info["special_contract"]?></textarea>
</td>
</tr>
<tr>
<th style="height:25px;">이미지 1</th>
<td class="l">
<?
$fileIndex = "101";
$fileName = "img1";
$filePath = ($shopImgList[0]["file_vir_name"] == "" ? "" : $shopImgList[0]["file_vir_name"]);
$fileNumber = ($shopImgList[0]["no"] == "" ? "0" : $shopImgList[0]["no"]);
include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php";
?>
</td>
</tr>
<tr>
<th style="height:25px;">이미지 2</th>
<td class="l">
<?
$fileIndex = "102";
$fileName = "img2";
$filePath = ($shopImgList[1]["file_vir_name"] == "" ? "" : $shopImgList[1]["file_vir_name"]);
$fileNumber = ($shopImgList[1]["no"] == "" ? "0" : $shopImgList[1]["no"]);
include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php";
?>
</td>
</tr>
<tr>
<th style="height:25px;">이미지 3</th>
<td class="l">
<?
$fileIndex = "103";
$fileName = "img3";
$filePath = ($shopImgList[2]["file_vir_name"] == "" ? "" : $shopImgList[2]["file_vir_name"]);
$fileNumber = ($shopImgList[2]["no"] == "" ? "0" : $shopImgList[2]["no"]);
include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php";
?>
</td>
</tr>
<tr>
<th style="height:25px;">이미지 4</th>
<td class="l">
<?
$fileIndex = "104";
$fileName = "img4";
$filePath = ($shopImgList[3]["file_vir_name"] == "" ? "" : $shopImgList[3]["file_vir_name"]);
$fileNumber = ($shopImgList[3]["no"] == "" ? "0" : $shopImgList[3]["no"]);
include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php";
?>
</td>
</tr>
<tr>
<th style="height:25px;">이미지 5</th>
<td class="l">
<?
$fileIndex = "105";
$fileName = "img5";
$filePath = ($shopImgList[4]["file_vir_name"] == "" ? "" : $shopImgList[4]["file_vir_name"]);
$fileNumber = ($shopImgList[4]["no"] == "" ? "0" : $shopImgList[4]["no"]);
include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php";
?>
</td>
</tr>
</table>
</form>
<div class="btngroupcenter">
<span class="button bigrounded blue jCancel">취소 </span>
<span class="button bigrounded blue jSave" >저장</span>
</div>
</div>
</div>
\ 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/leftBoardManage.php" ?>
<?
$obj = new AdminOperate($_REQUEST, "") ;
//$list = $obj->getListOfPopup("2") ;
$vnum = $obj->virtualNum ;
?>
<script src="/admin/inc/fileUpload/fileUploadJS.js"></script>
<script>
var _popup_type = "2";
$(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() ;
});
$(".jView").click2(function(){
var no = $(this).attr("no");
location.href = "/admin/boardManage/certificateView.php?no=" + no + "&rurl=" + jQuery.rich.bin2hex(document.URL);
});
$(".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>
<h2>게시물 관리 > <span>기관인정서</span></h2>
<div class="data" style="width:100%;">
<div class="btngroupright">
<input type="button" class="button smallrounded blue jView" no="" value="등록" />
<input type="button" class="button smallrounded 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="40%">제목</th>
<th width="40%">이미지</th>
<th width="10%">-</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]["regist_dt"]?>
</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
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminOperate.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/header.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/leftBoardManage.php" ?>
<?
$obj = new AdminOperate($_REQUEST, "");
//$info = $obj->getInfoOfShop();
//$cateCodeList = $obj->getShopCategoryCodeList();
//$shopImgList = $obj->getShopImgList($info["no"]);
$admin_type = $obj->admUser["admin_type"];
$rurl = pack("H*", $_REQUEST["rurl"]) ;
?>
<script src="/admin/inc/fileUpload/fileUploadJS.js"></script>
<script type="text/javascript">
var _rurl = "<?=$rurl?>";
var _no = "<?=$_REQUEST[no]?>";
$(document).ready(function(){
initFileUpload(101);
initFileUpload(102);
initFileUpload(103);
initFileUpload(104);
initFileUpload(105);
<?if($admin_type == 3) { ?>
setReadOnly();
<?} ?>
//=====프레입웤 변수들==================================================================================//
var FORM_TARGET_CLS_NM = ".data" ; // 폼을 동적 wrap 할 타겟 ID이름
var FORM_NAME = "alf" ; // 폼이름
var FORM_METHOD = "POST" ; // 폼 메쏘드
var FORM_USE_FILE = false ; // 파일폼 사용 여부
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 }) ;
$(".jCancel").click2(function(){
location.href = _rurl;
});
$(".jSave").click2(function(){
$("#jData").ajaxSubmit({
url:"/action_front.php?cmd=AdminOperate.saveShop",
type : "post",
forceSync : true,
dataType : "json",
success : function(data){
alert(data.returnMessage);
location.href = _rurl;
}
});
});
$("#jCategorCd").change(function(){
setPromotion();
});
setPromotion();
}) ;
function setPromotion()
{
if($("#jCategorCd").val() == "1")
{
$("#jPromotionSelect").val("1");
$("#jPromotionSelect").prop("disabled", true);
$("#jPromotionHidden").prop("disabled", false);
}
else
{
$("#jPromotionSelect").prop("disabled", false);
$("#jPromotionHidden").prop("disabled", true);
}
}
function setReadOnly(){
$("[name=name]").attr("readonly", true);
$("[name=tel]").attr("readonly", true);
$("[name=addr_old]").attr("readonly", true);
$("[name=addr_new]").attr("readonly", true);
$("[name=discount_rate]").attr("readonly", true);
$("[name=discount_desc]").attr("readonly", true);
}
</script>
<div id="Contents" class="notice">
<h1>게시물 관리 -등록</h1>
<!-- location area -->
<h2>
게시물 관리 > 기관인정서 >
<span><?
if($_REQUEST["no"]=="")
echo "등록";
else
echo "상세보기";
?></span>
</h2>
<!-- location area -->
<div class="data" style="width:80%;">
<form id="jData" method="post" enctype="multipart/form-data">
<input type="hidden" name="no" value="<?=$_REQUEST[no]?>" />
<table class="datav" style="width:100%;">
<colgroup>
<col width="10%" />
<col width="90%" />
</colgroup>
<tr>
<th style="height:25px;">제목</th>
<td class="l">
<input type="text" name="discount_rate" class="wl" style="width:70%;" value="" />
</td>
</tr>
<tr>
<th style="height:25px;">이미지</th>
<td class="l">
<?
$fileIndex = "101";
$fileName = "img1";
$filePath = ($shopImgList[0]["file_vir_name"] == "" ? "" : $shopImgList[0]["file_vir_name"]);
$fileNumber = ($shopImgList[0]["no"] == "" ? "0" : $shopImgList[0]["no"]);
include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php";
?>
</td>
</tr>
</table>
</form>
<div class="btngroupcenter">
<span class="button bigrounded blue jCancel">취소 </span>
<span class="button bigrounded blue jSave" >저장</span>
</div>
</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/leftCompanyManage.php" ?>
<?
$obj = new AdminUser($_REQUEST) ;
//$list = $obj->getListOfUser() ;
$productCode=$_REQUEST["productCode"];
$productType=$_REQUEST["productCode"];
$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() ;
});
$(".jView").click2(function(){
var no = $(this).attr("no");
var type='<?=$productType?>';
location.href = "/admin/companyManage/companyView.php?no=" + no + "&productType=" + type +"&rurl=" + jQuery.rich.bin2hex(document.URL);
});
$(".jAddUserExcel").click2(function(){
var s=$("#search_text").val();
location.href = "/admin/excel/userListExcel.php?search_text="+s;
});
// 회원 탈퇴
$(".jDelUser").click2(function(){
var no = $(this).attr("no");
var noArr = new Array(no);
if(confirm("정말 삭제하시겠습니까?"))
{
deleteUser(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();
}
deleteUser(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 deleteUser(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>
<?
switch($productCode){
case "WB":
echo "윙바디";
break;
case "AX":
echo "가변축";
break;
}
?>
</h1>
<h2>
업체 관리 >
<?
switch($productCode){
case "WB":
$productCode="윙바디";
break;
case "AX":
$productCode="가변축";
break;
}
?>
<span><?echo $productCode;?></span>
</h2>
<div class="data" >
<div class="btngroupright">
<input type="button" class="button smallrounded blue jView" no="" value="등록" />
<input type="button" class="button smallrounded blue jDelMulti" value="삭제" />
</div>
<table class="datacList">
<thead>
<tr>
<th class="no" width="5%">No</th>
<th width="2%"><input type="checkbox" id="jCheckAll"></th>
<th width="20%">업체명</th>
<th width="10%">지역</th>
<th width="20%">상세 주소</th>
<th width="10%">전화번호</th>
<th width="10%">-</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="jUserNo" value="<?=$list[$i]["no"] ?>" >
</td>
<td class="center">
</td>
<td class="center">
<input type="button" class="button searchsmall white jView" 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
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminOperate.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/header.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/leftCompanyManage.php" ?>
<?
$obj = new AdminOperate($_REQUEST, "");
//$info = $obj->getInfoOfShop();
//$cateCodeList = $obj->getShopCategoryCodeList();
//$shopImgList = $obj->getShopImgList($info["no"]);
$admin_type = $obj->admUser["admin_type"];
$rurl = pack("H*", $_REQUEST["rurl"]) ;
?>
<script src="/admin/inc/fileUpload/fileUploadJS.js"></script>
<script type="text/javascript">
var _rurl = "<?=$rurl?>";
var _no = "<?=$_REQUEST[no]?>";
$(document).ready(function(){
initFileUpload(101);
initFileUpload(102);
initFileUpload(103);
initFileUpload(104);
initFileUpload(105);
<?if($admin_type == 3) { ?>
setReadOnly();
<?} ?>
//=====프레입웤 변수들==================================================================================//
var FORM_TARGET_CLS_NM = ".data" ; // 폼을 동적 wrap 할 타겟 ID이름
var FORM_NAME = "alf" ; // 폼이름
var FORM_METHOD = "POST" ; // 폼 메쏘드
var FORM_USE_FILE = false ; // 파일폼 사용 여부
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 }) ;
$(".jCancel").click2(function(){
location.href = _rurl;
});
$(".jSave").click2(function(){
$("#jData").ajaxSubmit({
url:"/action_front.php?cmd=AdminOperate.saveShop",
type : "post",
forceSync : true,
dataType : "json",
success : function(data){
alert(data.returnMessage);
location.href = _rurl;
}
});
});
$("#jCategorCd").change(function(){
setPromotion();
});
setPromotion();
}) ;
function setPromotion()
{
if($("#jCategorCd").val() == "1")
{
$("#jPromotionSelect").val("1");
$("#jPromotionSelect").prop("disabled", true);
$("#jPromotionHidden").prop("disabled", false);
}
else
{
$("#jPromotionSelect").prop("disabled", false);
$("#jPromotionHidden").prop("disabled", true);
}
}
function setReadOnly(){
$("[name=name]").attr("readonly", true);
$("[name=tel]").attr("readonly", true);
$("[name=addr_old]").attr("readonly", true);
$("[name=addr_new]").attr("readonly", true);
$("[name=discount_rate]").attr("readonly", true);
$("[name=discount_desc]").attr("readonly", true);
}
</script>
<div id="Contents" class="notice">
<h1>업체 관리 -등록</h1>
<!-- location area -->
<h2>
업체 관리 >
<?
if($_REQUEST["productType"] == "WB")
echo "윙바디";
else
echo "가변축"
?>
>
<span><?
if($_REQUEST["no"]=="")
echo "등록";
else
echo "상세보기";
?></span>
</h2>
<!-- location area -->
<div class="data" style="width:80%;">
<form id="jData" method="post" enctype="multipart/form-data">
<input type="hidden" name="no" value="<?=$_REQUEST[no]?>" />
<table class="datav" style="width:100%;">
<colgroup>
<col width="10%" />
<col width="90%" />
</colgroup>
<tr>
<th style="height:25px;">업체명</th>
<td class="l">
<input type="text" name="discount_rate" class="wl" style="width:70%;" value="" />
</td>
</tr>
<tr>
<th style="height:25px;">지역</th>
<td class="l">
<input type="text" name="discount_rate" class="wl" style="width:70%;" value="" />
</td>
</tr>
<tr>
<th style="height:25px;">상세주소</th>
<td class="l">
<input type="text" name="discount_rate" class="wl" style="width:70%;" value="<?=$info["discount_rate"] ?>" />
</td>
</tr>
<tr>
<th style="height:25px;">전화번호</th>
<td class="l">
<input type="text" style="width:50px"/>&nbsp; - &nbsp;<input type="text" style="width:50px"/>&nbsp; - &nbsp;<input type="text" style="width:50px"/>
</td>
</tr>
<tr>
<th style="height:25px;">FAX</th>
<td class="l">
<input type="text" style="width:50px"/>&nbsp; - &nbsp;<input type="text" style="width:50px"/>&nbsp; - &nbsp;<input type="text" style="width:50px"/>
</td>
</tr>
<tr>
<th style="height:25px;">E-mail</th>
<td class="l">
<input type="text" name="discount_rate" class="wl" style="width:70%;" value="<?=$info["discount_rate"] ?>" />
</td>
</tr>
<tr>
<th style="height:25px;">주요 담당제품</th>
<td class="l">
<input type="text" name="discount_rate" class="wl" style="width:70%;" value="<?=$info["discount_rate"] ?>" />
</td>
</tr>
<tr>
<th style="height:25px;">이미지 1</th>
<td class="l">
<?
$fileIndex = "101";
$fileName = "img1";
$filePath = ($shopImgList[0]["file_vir_name"] == "" ? "" : $shopImgList[0]["file_vir_name"]);
$fileNumber = ($shopImgList[0]["no"] == "" ? "0" : $shopImgList[0]["no"]);
include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php";
?>
</td>
</tr>
<tr>
<th style="height:25px;">이미지 2</th>
<td class="l">
<?
$fileIndex = "102";
$fileName = "img2";
$filePath = ($shopImgList[1]["file_vir_name"] == "" ? "" : $shopImgList[1]["file_vir_name"]);
$fileNumber = ($shopImgList[1]["no"] == "" ? "0" : $shopImgList[1]["no"]);
include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php";
?>
</td>
</tr>
<tr>
<th style="height:25px;">이미지 3</th>
<td class="l">
<?
$fileIndex = "103";
$fileName = "img3";
$filePath = ($shopImgList[2]["file_vir_name"] == "" ? "" : $shopImgList[2]["file_vir_name"]);
$fileNumber = ($shopImgList[2]["no"] == "" ? "0" : $shopImgList[2]["no"]);
include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php";
?>
</td>
</tr>
<tr>
<th style="height:25px;">이미지 4</th>
<td class="l">
<?
$fileIndex = "104";
$fileName = "img4";
$filePath = ($shopImgList[3]["file_vir_name"] == "" ? "" : $shopImgList[3]["file_vir_name"]);
$fileNumber = ($shopImgList[3]["no"] == "" ? "0" : $shopImgList[3]["no"]);
include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php";
?>
</td>
</tr>
<tr>
<th style="height:25px;">이미지 5</th>
<td class="l">
<?
$fileIndex = "105";
$fileName = "img5";
$filePath = ($shopImgList[4]["file_vir_name"] == "" ? "" : $shopImgList[4]["file_vir_name"]);
$fileNumber = ($shopImgList[4]["no"] == "" ? "0" : $shopImgList[4]["no"]);
include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php";
?>
</td>
</tr>
</table>
</form>
<div class="btngroupcenter">
<span class="button bigrounded blue jCancel">취소 </span>
<span class="button bigrounded blue jSave" >저장</span>
</div>
</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" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/leftCustomerService.php" ?>
<?
$obj = new AdminUser($_REQUEST, "") ;
$obj = new AdminUser($_REQUEST) ;
$list = $obj->getListOfUserForBoard("V", null) ;
//$list = $obj->getListOfUser() ;
$boardType=$_REQUEST["boardType"];
$vnum = $obj->virtualNum ;
?>
<script>
......@@ -42,15 +43,16 @@
jForm.submit() ;
});
$(".jViewUser").click2(function(){
$(".jView").click2(function(){
var no = $(this).attr("no");
location.href = "/admin/userManage/userView.php?isMS=2&no=" + no + "&rurl=" + jQuery.rich.bin2hex(document.URL);
var type='<?=$boardType?>';
location.href = "/admin/customerService/csView.php?no=" + no + "&rurl=" + jQuery.rich.bin2hex(document.URL);
});
$(".jAddUserExcel").click2(function(){
var s=$("#search_text").val();
location.href = "/admin/excel/vipUserExcelList.php?search_text="+s;
location.href = "/admin/excel/userListExcel.php?search_text="+s;
});
......@@ -96,7 +98,7 @@
});
$(".jBtnV").click2(function(){
$(".jBtnMS").click2(function(){
var no = $(this).attr("no");
var member_type = $(this).attr("member_type");
......@@ -106,8 +108,8 @@
cache : false,
dataType : "json",
data : {
"no" : no,
"member_type" : member_type
"no" : no
, "member_type" : member_type
},
success : function(data){
alert(data.returnMessage);
......@@ -152,51 +154,31 @@
<div id="Contents" class="notice">
<h1>VIP 회원 리스트</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>
<h1>고객센터</h1>
<h2>
<span>고객센터</span>
<input type="button" class="button bigrounded blue jSearch" value="검색" />
</div>
</h2>
<div class="data" >
</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="삭제" />
<input type="button" class="button smallrounded blue jDelMulti" value="삭제" />
</div>
<?} ?>
<table class="datacList">
<thead>
<tr>
<th class="no" width="5%">No</th>
<th width="3%"><input type="checkbox" id="jCheckAll"></th>
<th width="13%">이메일</th>
<th width="6%">이름</th>
<th width="8%">전화번호</th>
<th width="10%">소속그룹</th>
<th width="5%">VIP<br>회원여부</th>
<th width="10%">승인 상태</th>
<th width="10%">가입 날짜</th>
<th width="15%">-</th>
<th width="2%"><input type="checkbox" id="jCheckAll"></th>
<th width="10%">작성자</th>
<th width="40%">제목</th>
<th width="10%">등록일</th>
<th width="10%">-</th>
</tr>
</thead>
<tbody><!-- 10줄 리스트// 마지막 tr에 class="last" 넣어주세요 -->
<?
$recounter = 0;
for($i=0; $i<sizeof($list); $i++){
?>
<? for($i=0; $i<sizeof($list); $i++){ ?>
<tr class="<?=(sizeof($list)-1 == $i) ? "last" : "datacLists"?>">
<td class="no center">
<?=$vnum--?>
......@@ -205,58 +187,22 @@
<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"] == "V") ? "O" : "X"?>
</td>
<td class="center">
<?if($list[$i]["group_fk"] > 0 && $list[$i]["member_type"] == "VH"){ ?>
<input type="button" class="button searchsmall white jBtnV" value="승인" no="<?=$list[$i]["no"]?>" member_type="V"/>
<input type="button" class="button searchsmall white jBtnV" value="거절" no="<?=$list[$i]["no"]?>" member_type="N" />
<?} elseif ($list[$i]["group_fk"] > 0 && $list[$i]["member_type"] == "V"){ ?>
승인
<?} 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"]?>" />
<?} ?>
<input type="button" class="button searchsmall white jView" value="상세보기" no="<?=$list[$i]["no"]?>" />
</td>
</tr>
<? } ?>
<?if(sizeof($list) == 0){?>
<tr class="last">
<td class="no center" colspan="11">No Data</td>
</tr>
<?}
//$obj->endBlock = $recounter/20 + 1;
?>
<?}?>
</tbody>
</table>
......
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminPush.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/header.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/leftCustomerService.php" ?>
<?
$obj = new AdminPush($_REQUEST, "") ;
//$list = $obj->getListOfAdminPush() ;
$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() ;
});
$(".jSearchGroup").click2(function(){
var title = "그룹 검색";
$('#jDialogArea').dialog({
modal : true,
title : title,
open : function(event, ui) { $(".ui-dialog-titlebar-close").hide(); },
width : 400,
height : 500,
resizable : false,
buttons: [
{
text: "확인",
click: function() {
var group_no = $(".jTargetNo:checked").val();
var group_name = $(".jTargetNo:checked").parents("tr").find(".jTargetName").attr("data");
if(group_no == undefined)
{
alert("대상을 선택해주세요.");
return false;
}
else
{
$("#group_no").val(group_no);
$("#group_name").val(group_name);
$( this ).dialog( "close" );
$("#jTargetSearchText").val("");
$("#jSearchResultArea").empty();
}
}
},
{
text: "닫기",
click: function() {
$("#jTargetSearchText").val("");
$("#jSearchResultArea").empty();
$( this ).dialog( "close" );
}
}
],
closeOnEscape: false
});
});
$(".jSearchPrivate").click2(function(){
var title = "회원 검색";
$('#jDialogAreaP').dialog({
modal : true,
title : title,
open : function(event, ui) { $(".ui-dialog-titlebar-close").hide(); },
width : 400,
height : 500,
resizable : false,
buttons: [
{
text: "확인",
click: function() {
var group_no = $(".jTargetNo:checked").val();
var group_name = $(".jTargetNo:checked").parents("tr").find(".jTargetName").attr("data");
if(group_no == undefined)
{
alert("대상을 선택해주세요.");
return false;
}
else
{
$("#group_no").val(group_no);
$("#group_name").val(group_name);
$( this ).dialog( "close" );
$("#jTargetSearchText").val("");
$("#jSearchResultArea").empty();
}
}
},
{
text: "닫기",
click: function() {
$("#jTargetSearchText").val("");
$("#jSearchResultArea").empty();
$( 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();
}
});
});
$(".jTargetSearchPBtn").click2(function(){
var search_text = $("#jTargetSearchTextP").val();
var ajax_url = "/admin/entity/entityPrivateSearch.php";
if(search_text == "")
{
alert("검색어를 입력해주세요.");
return false;
}
$.ajax({
url : ajax_url,
data : {
"search_text" : search_text
},
dataType:"html",
success : function(data)
{
$("#jSearchResultAreaP").html(data);
setSearchAreaEventHandler();
}
});
});
$("#push_target_type").change(function(){
resetTargetData();
if($(this).val() == "1")
{
$("#jGroupArea").hide();
$("#jPrivateArea").hide();
}
else if($(this).val() == "2")
{
$("#jGroupArea").show();
$("#jPrivateArea").hide();
}else{
$("#jGroupArea").hide();
$("#jPrivateArea").show();
}
});
$(".jSave").click2(function(){
var push_msg = $("#push_msg").val();
var push_target_type = $("#push_target_type").val();
var group_no = $("#group_no").val();
if(push_target_type == "2" && group_no == "")
{
alert("그룹을 선택해주세요.");
return false;
}
if(push_msg == "")
{
alert("푸시 내용을 입력해주세요.");
return false;
}
$.ajax({
url : "/action_front.php?cmd=AdminPush.sendAdminPush",
async : true,
cache : false,
dataType : "json",
data : {
"push_msg" : push_msg,
"push_target_type" : push_target_type,
"group_no" : group_no
}, success : function(data) {
alert(data.returnMessage) ;
if(data.returnCode == 1) {
location.reload();
}
}
});
});
}) ;
function setSearchAreaEventHandler()
{
$(".jTargetNo").unbind("change");
$(".jTargetNo").change(function(){
$(".jTargetNo").prop("checked", false);
$(this).prop("checked", true);
});
}
function resetTargetData()
{
$("#group_no").val("");
$("#group_name").val("");
}
</script>
<div id="Contents" class="notice">
<h1>고객센터</h1>
<h2>
고객센터 > <span>상세</span>
</h2>
<div class="data">
<table class="datav" style="width:100%;">
<colgroup>
<col width="30%" />
<col width="70%" />
</colgroup>
<tr>
<th style="height:25px;">내용</th>
<td class="l">
<textarea rows="5" style="width:95%;" id="push_msg"></textarea>
</td>
</tr>
</table>
<div class="btngroupright" style="width:100%;">
<span class="button bigrounded blue jSave" >등록</span>
</div>
<h3>히스토리</h3>
<table class="datacList">
<thead>
<tr>
<th width="10%">작성자</th>
<th width="65%">내용</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="center">
</td>
<td class="center">
<?=$list[$i]["push_msg"]?>
</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="datacList" style="width:100%;">
<thead>
<tr>
<td class="no" colspan="2" style="text-align:center; height:35px;">
<input type="text" id="jTargetSearchText" style="width:50%;" placeholder="검색어를 입력해야 결과가 노출 됩니다.">
<input type="button" class="button searchsmall white jTargetSearchBtn" value="검색" />
</td>
</tr>
</thead>
<thead>
<tr>
<th class="no" colspan="2">검색결과</th>
</tr>
</thead>
<tbody id="jSearchResultArea"><!-- 10줄 리스트// 마지막 tr에 class="last" 넣어주세요 -->
</tbody>
</table>
</div>
<div id="jDialogAreaP" style="display:none;">
<table class="datacList" style="width:100%;">
<thead>
<tr>
<td class="no" colspan="2" style="text-align:center; height:35px;">
<input type="text" id="jTargetSearchTextP" style="width:50%;" placeholder="검색어를 입력해야 결과가 노출 됩니다.">
<input type="button" class="button searchsmall white jTargetSearchPBtn" value="검색" />
</td>
</tr>
</thead>
<thead>
<tr>
<th class="no" colspan="2">검색결과</th>
</tr>
</thead>
<tbody id="jSearchResultAreaP"><!-- 10줄 리스트// 마지막 tr에 class="last" 넣어주세요 -->
</tbody>
</table>
</div>
</div>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/footer.php" ?>
\ No newline at end of file
......@@ -94,7 +94,7 @@
<tr>
<th style="height:25px;">ID</th>
<td class="l">
<?= $loginInfo["admin_id"] ?>
<?= $loginInfo["adminID"] ?>
</td>
</tr>
<tr>
......
<?
header("Content-Type: text/html; charset=UTF-8");
?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/Admin.php" ;?>
<?
$obj = new Admin($_REQUEST);
//$count = $obj->req["count"];
$cnt = $obj->req["cnt"];
$type = $obj->req["type"];
$count = $obj->getMinShopNo();
$list = $obj->getShopLocation($count);
//$result = $obj->reverseGeocode("서울시 강남구 논현동 57-18");
// echo json_encode($list);
if(sizeof($list) == 0 || $cnt >= 40){
exit;
}
if($type == 2){
for($i = 0; $i < sizeof($list); $i++){
$result = $obj->reverseGeocode2($list[$i]["addr_old"]);
if($result["latitude"] == 0 && $result["longitude"] == 0){
$result2 = $obj->reverseGeocode2($list[$i]["addr_new"]);
if($result2["latitude"] == 0 && $result2["longitude"] == 0){
$obj->updateShopLocation(-99, -99, $list[$i]["no"]);
}
else{
$obj->updateShopLocation($result2["latitude"], $result2["longitude"], $list[$i]["no"]);
}
//echo json_encode($result2);
}
else{
$obj->updateShopLocation($result["latitude"], $result["longitude"], $list[$i]["no"]);
//echo json_encode($result);
}
}
}
else{
for($i = 0; $i < sizeof($list); $i++){
$result = $obj->reverseGeocode($list[$i]["addr_old"]);
if($result["latitude"] == 0 && $result["longitude"] == 0){
$result2 = $obj->reverseGeocode($list[$i]["addr_new"]);
if($result2["latitude"] == 0 && $result2["longitude"] == 0){
$obj->updateShopLocation(-99, -99, $list[$i]["no"]);
}
else{
$obj->updateShopLocation($result2["latitude"], $result2["longitude"], $list[$i]["no"]);
}
//echo json_encode($result2);
}
else{
$obj->updateShopLocation($result["latitude"], $result["longitude"], $list[$i]["no"]);
//echo json_encode($result);
}
}
}
$cnt++;
echo "<script>location.replace('./renewShopLocation.php?cnt={$cnt}&type={$type}');</script>";
?>
\ No newline at end of file
......@@ -58,22 +58,22 @@ if($loginInfo == null)
<a matchUrl="/admin/userManage" href="/admin/userManage/userList.php">회원 관리</a>
</li>
<li>
<a matchUrl="" href="">제품 관리</a>
<a matchUrl="/admin/vehicleManage" href="/admin/vehicleManage/vehicleList.php?vehicleType=WB">제품 관리</a>
</li>
<li>
<a matchUrl="" href="">업체 관리</a>
<a matchUrl="/admin/companyManage" href="/admin/companyManage/companyList.php?productCode=WB">업체 관리</a>
</li>
<li>
<a matchUrl="" href="">게시물 관리</a>
<a matchUrl="/admin/boardManage" href="/admin/boardManage/boardList.php?boardType=NO">게시물 관리</a>
</li>
<li>
<a matchUrl="" href="">고객센터</a>
<a matchUrl="/admin/customerService" href="/admin/customerService/csList.php">고객센터</a>
</li>
<li>
<a matchUrl="/admin/pushManage" href="/admin/pushManage/pushView.php">푸시 관리</a>
</li>
<li>
<a matchUrl="" href="">사양서 관리</a>
<a matchUrl="/admin/productionSpecManage" href="/admin/productionSpecManage/psList.php">사양서 관리</a>
</li>
<li>
<a matchUrl="/admin/etcManage" href="/admin/etcManage/changePWD.php">계정 관리</a>
......
......@@ -8,7 +8,7 @@ $(document).ready(function(){
<!--<ul class="selected" >-->
<ul class="sidemenu">
<a href="/admin/userManage/userList.php">
<a href="/admin/boardManage/boardList.php?boardType=NO">
<h1>게시물 관리</h1>
</a>
......@@ -17,16 +17,16 @@ $(document).ready(function(){
<!--<li matchUrl="/admin/userManage/adminUserList.php">
<a href="/admin/userManage/adminUserList.php">관리자 리스트</a>
</li>-->
<li matchUrl="/admin/userManage/userList.php">
<a href="/admin/userManage/userList.php">공지사항</a>
<li matchUrl="/admin/boardManage/boardList.php">
<a href="/admin/boardManage/boardList.php?boardType=NO">공지사항</a>
</li>
<li matchUrl="/admin/userManage/userManagerList.php">
<a href="/admin/userManage/userManagerList.php">이벤트</a>
<li matchUrl="/admin/boardManage/boardList.php">
<a href="/admin/boardManage/boardList.php?boardType=EV">이벤트</a>
</li>
<li matchUrl="/admin/userManage/userManagerList.php">
<a href="/admin/userManage/userManagerList.php">기관인정서</a>
<li matchUrl="/admin/boardManage/certificateList.php">
<a href="/admin/boardManage/certificateList.php">기관인정서</a>
</li>
</ul>
......
......@@ -8,7 +8,7 @@ $(document).ready(function(){
<!--<ul class="selected" >-->
<ul class="sidemenu">
<a href="/admin/userManage/userList.php">
<a href="/admin/companyManage/companyList.php?productCode=WB">
<h1>업체 관리</h1>
</a>
......@@ -17,12 +17,12 @@ $(document).ready(function(){
<!--<li matchUrl="/admin/userManage/adminUserList.php">
<a href="/admin/userManage/adminUserList.php">관리자 리스트</a>
</li>-->
<li matchUrl="/admin/userManage/userList.php">
<a href="/admin/userManage/userList.php">윙바디</a>
<li matchUrl="/admin/companyManage/companyList.php?=productCode=WB">
<a href="/admin/companyManage/companyList.php?productCode=WB">윙바디</a>
</li>
<li matchUrl="/admin/userManage/userManagerList.php">
<a href="/admin/userManage/userManagerList.php">가변축</a>
<li matchUrl="/admin/companyManage/companyList.php">
<a href="/admin/companyManage/companyList.php?productCode=AX">가변축</a>
</li>
</ul>
......
......@@ -8,7 +8,7 @@ $(document).ready(function(){
<!--<ul class="selected" >-->
<ul class="sidemenu">
<a href="/admin/userManage/userList.php">
<a href="/admin/customerService/csList.php">
<h1>고객센터</h1>
</a>
......@@ -17,12 +17,11 @@ $(document).ready(function(){
<!--<li matchUrl="/admin/userManage/adminUserList.php">
<a href="/admin/userManage/adminUserList.php">관리자 리스트</a>
</li>-->
<li matchUrl="/admin/userManage/userList.php">
<a href="/admin/userManage/userList.php">고객센터</a>
<li matchUrl="/admin/customerService/csList.php">
<a href="/admin/customerService/csList.php">고객센터</a>
</li>
</ul>
......
......@@ -8,12 +8,12 @@ $(document).ready(function(){
<!--<ul class="selected" >-->
<ul class="sidemenu">
<a href="/admin/pushManage/pushView.php">
<a href="/admin/productionSpecManage/psList.php">
<h1>사양서관리</h1>
</a>
<li matchUrl="/admin/pushManage/pushView.php">
<a href="/admin/pushManage/pushView.php">사양서관리</a>
<li matchUrl="/admin/productionSpecManage/psList.php">
<a href="/admin/productionSpecManage/psList.php">사양서관리</a>
</li>
</ul>
......
......@@ -16,8 +16,8 @@ $(document).ready(function(){
<a href="/admin/pushManage/pushView.php">푸시관리</a>
</li>
<li matchUrl="/admin/pushManage/pushView.php">
<a href="/admin/pushManage/pushView.php">약관 관리</a>
<li matchUrl="/admin/pushManage/agreementView.php">
<a href="/admin/pushManage/agreementView.php">약관 관리</a>
</li>
</ul>
......
......@@ -8,7 +8,7 @@ $(document).ready(function(){
<!--<ul class="selected" >-->
<ul class="sidemenu">
<a href="/admin/userManage/userList.php">
<a href="/admin/vehicleManage/vehicleList.php?vehicleType=WB">
<h1>제품 관리</h1>
</a>
......@@ -17,32 +17,32 @@ $(document).ready(function(){
<!--<li matchUrl="/admin/userManage/adminUserList.php">
<a href="/admin/userManage/adminUserList.php">관리자 리스트</a>
</li>-->
<li matchUrl="/admin/userManage/userList.php">
<a href="/admin/userManage/userList.php">윙바디</a>
<li matchUrl="/admin/vehicleManage/vehicleList.php">
<a href="/admin/vehicleManage/vehicleList.php?vehicleType=WB">윙바디</a>
</li>
<li matchUrl="/admin/userManage/userManagerList.php">
<a href="/admin/userManage/userManagerList.php">가변축</a>
<li matchUrl="/admin/vehicleManage/vehicleList.php">
<a href="/admin/vehicleManage/vehicleList.php?vehicleType=AX">가변축</a>
</li>
<li matchUrl="/admin/userManage/userManagerList.php">
<a href="/admin/userManage/userManagerList.php">내장탑차</a>
<li matchUrl="/admin/vehicleManage/vehicleList.php">
<a href="/admin/vehicleManage/vehicleList.php?vehicleType=BI">내장탑차</a>
</li>
<li matchUrl="/admin/userManage/userManagerList.php">
<a href="/admin/userManage/userManagerList.php">냉동탑차</a>
<li matchUrl="/admin/vehicleManage/vehicleList.php">
<a href="/admin/vehicleManage/vehicleList.php?vehicleType=FR">냉동탑차</a>
</li>
<li matchUrl="/admin/userManage/userManagerList.php">
<a href="/admin/userManage/userManagerList.php">냉동컨테이너</a>
<li matchUrl="/admin/vehicleManage/vehicleList.php">
<a href="/admin/vehicleManage/vehicleList.php?vehicleType=FC">냉동컨테이너</a>
</li>
<li matchUrl="/admin/userManage/userManagerList.php">
<a href="/admin/userManage/userManagerList.php">파워게이트</a>
<li matchUrl="/admin/vehicleManage/vehicleList.php">
<a href="/admin/vehicleManage/vehicleList.php?vehicleType=PG">파워게이트</a>
</li>
<li matchUrl="/admin/userManage/userManagerList.php">
<a href="/admin/userManage/userManagerList.php">특수차량</a>
<li matchUrl="/admin/vehicleManage/vehicleList.php">
<a href="/admin/vehicleManage/vehicleList.php?vehicleType=SP">특수차량</a>
</li>
</ul>
......
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminOperate.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/header.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/leftProductionSpecManage.php" ?>
<?
$obj = new AdminOperate($_REQUEST, "") ;
//$list = $obj->getListOfRoomForPayment();
$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/productionSpecManage/psView.php?no=" + no + "&rurl=" + jQuery.rich.bin2hex(document.URL);
});
$(".jAdd").click2(function(){
location.href = "/admin/rentManage/buildingView.php?rurl=" + jQuery.rich.bin2hex(document.URL);
});
$(".jDel").click2(function(){
var no = $(this).attr("no");
var noArr = new Array(no);
if(confirm("정말 삭제하시겠습니까?"))
{
deleteAction(noArr);
}
}) ;
$(".jExcel").click2(function(){
var b=$("#search_building").val();
var r=$("#search_room").val();
var rf=$("#rent_date_former").val();
var rl=$("#rent_date_latter").val();
var bf=$("#bill_date_former").val();
var bl=$("#bill_date_latter").val();
var lf=$("#leaving_due_date_former").val();
var ll=$("#leaving_due_date_latter").val();
location.href = "/admin/rentManage/excelDownBillList.php?search_building="+b+"&search_room="+r+"&rent_date_former="+rf+"&rent_date_latter="+rl+"&bill_date_former="+bf+"&bill_date_latter="+bl+"&leaving_due_date_former="+lf+"&leaving_due_date_latter"+ll;
});
// 단체 삭제
$(".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){
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>
<select value="asda" style="margin-right:20px;">
<option>asdasd</option>
</select>
</label>
<label>
<input type="text" id="search_room" name="search_room" class="wm" value="<?=$_REQUEST['search_room']?>" />
</label>
<style>
.dateRangeWrap { background-color:white; display:inline-block; border: 1px solid #ddd; padding:2px; margin:3px 0 3px; }
.dateRangeWrap > .dateRange, .dateRangeWrap > .dateRangeSeparator { display:inline-block; }
</style>
<label>
<span>기간 설정</span>
<input type="text" value="<?=$_REQUEST['rent_date_former']?>" id="rent_date_former" name="rent_date_former" class="jRsvDate" />
&nbsp;~&nbsp;
<input type="text" value="<?=$_REQUEST['rent_date_latter']?>" id="rent_date_latter" name="rent_date_latter" class="jRsvDate" />
</label>
<input type="button" class="button smallrounded blue jSearch btnright_y" style="margin-left:30px;" value="검색" />
</div>
</fieldset>
<div class="btngroupright">
<input type="button" class="button smallrounded 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="15%">작성 날짜</th>
<th width="20%">상호명</th>
<th width="20%">제품명</th>
<th width="10%">담당자</th>
<th width="10%">-</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]["Bname"]?>
</td>
<!--//호실 -->
<td class="center">
<?=$list[$i]["Rname"]?>
</td>
<!--//지난달 월세 -->
<td class="center">
<?
if($list[$i]["rent_paid"]==NULL) echo "";
else if($list[$i]["rent_paid"]==0) echo "연체";
else if($list[$i]["rent_paid"]==1) echo "납입";
else echo "청구중";
?>
</td>
<!--//월 납입일 -->
<td class="center">
<?=$list[$i]["monthly_rent_date"]?>
</td>
<!--//지난달 공과금 -->
<td class="center">
<?
if($list[$i]["bill_paid"]==NULL) echo "";
else if($list[$i]["bill_paid"]==0) echo "연체";
else if($list[$i]["bill_paid"]==1) echo "납입";
else echo "청구중";
?>
</td>
<!--//공과금 납입일 -->
<td class="center">
<?=$list[$i]["billing_date"]?>
</td>
<!--//퇴실예정일 -->
<td class="center">
<?=$list[$i]["leaving_due_date"]?>
</td>
<td class="center">
<input type="button" class="button searchsmall white jView" 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/AdminRent.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/header.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/leftProductionSpecManage.php" ?>
<?
$obj = new AdminRent($_REQUEST, "");
//$info = $obj->getInfoOfRoom();
//$user_list = $obj->getListOfUserForRoom();
//$bill_info = $obj->getInfoOfBill();
$rurl = pack("H*", $_REQUEST["rurl"]) ;
?>
<script type="text/javascript">
var _rurl = "<?=$rurl?>";
var _no = "<?=$_REQUEST[no]?>";
$(document).ready(function(){
//=====프레입웤 변수들==================================================================================//
var FORM_TARGET_CLS_NM = ".data" ; // 폼을 동적 wrap 할 타겟 ID이름
var FORM_NAME = "alf" ; // 폼이름
var FORM_METHOD = "POST" ; // 폼 메쏘드
var FORM_USE_FILE = false ; // 파일폼 사용 여부
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 }) ;
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) {
}
});
$(".jCancel").click2(function(){
location.href = _rurl;
});
$(".jClose").click2(function(){
window.close();
});
$(".jMod").click2(function(){
var data = $("#jData").serialize();
$.ajax({
url : "/action_front.php?cmd=AdminRent.saveRoom",
async : false,
cache : false,
dataType : "json",
data : data,
success : function(data){
alert(data.returnMessage);
location.href=_rurl;
/*
if(_no != "")
location.reload();
else
location.href = _rurl;
*/
}
});
});
}) ;
</script>
<div id="Contents" class="notice">
<h1>사양서 관리</h1>
<h2>사양서 관리 > <span>상세</span></h2>
<div class="data" style="width:100%;">
<form id="jData">
<input type="hidden" name="no" value="<?=$_REQUEST[no]?>" />
<input type="hidden" name="building_fk" value="<?=$_GET["Bno"]?>" />
<input type="hidden" name="current_contractor" value="<?=$info["user_fk"]?>" />
<table class="datav" style="width:100%;">
<colgroup>
<col width="10%" />
<col width="15%" />
<col width="10%" />
<col width="15%" />
<col width="10%" />
<col width="15%" />
<col width="10%" />
<col width="15%" />
</colgroup>
<tr>
<!-- 호실 -->
<th style="height:25px;">작성 날짜</th>
<td class="center">
<?php
$formattedDate = date('Y-m-d', strtotime($info["move_in_date"]));
if($formattedDate == "1970-01-01") $formattedDate = "";
?>
<input type="text" name="move_in_date" value="<?=$formattedDate?>" class="jRsvDate" />
</td>
<!-- 관리유형 -->
<th style="height:25px;">담당자</th>
<td class="center" colspan='3'>
<select name="manage_type" class="wm">
<option value="">선택</option>
<option value="<?=$obj->BUILDING_MANAGE_TYPE_LONG_CONS?>" <?=$info["manage_type"] == $obj->BUILDING_MANAGE_TYPE_LONG_CONS ? "SELECTED" : ""?>>장기위탁</option>
<option value="<?=$obj->BUILDING_MANAGE_TYPE_SHORT_CONS?>" <?=$info["manage_type"] == $obj->BUILDING_MANAGE_TYPE_SHORT_CONS ? "SELECTED" : ""?>>단기위탁</option>
<option value="<?=$obj->BUILDING_MANAGE_TYPE_LONG_SELF?>" <?=$info["manage_type"] == $obj->BUILDING_MANAGE_TYPE_LONG_SELF ? "SELECTED" : ""?>>장기자기</option>
<option value="<?=$obj->BUILDING_MANAGE_TYPE_SHORT_SELF?>" <?=$info["manage_type"] == $obj->BUILDING_MANAGE_TYPE_SHORT_SELF ? "SELECTED" : ""?>>단기자기</option>
</select>
</td>
</tr>
</table>
<br>
<table class="datav" style="width:100%;">
<colgroup>
<col width="10%" />
<col width="15%" />
<col width="10%" />
<col width="15%" />
<col width="10%" />
<col width="15%" />
<col width="10%" />
<col width="15%" />
</colgroup>
<tr>
<!-- 입주자 -->
<th style="height:25px;">성명</th>
<td class="center">
<input type="text" name="contractor_tel" class="wm" value="<?=$info["contractor_tel"]?>" />
</td>
<!-- 연락처 -->
<th style="height:25px;">상호</th>
<td class="center">
<input type="text" name="contractor_tel" class="wm" value="<?=$info["contractor_tel"]?>" />
</td>
<!-- 반환계좌 / 입금주 -->
<th style="height:25px;">연락처</th>
<td class="center" colspan='3'>
<input type="text" style="width:50px"/>&nbsp; - &nbsp;<input type="text" style="width:50px"/>&nbsp; - &nbsp;<input type="text" style="width:50px"/>
</td>
</tr>
<tr>
<!-- 계약일 -->
<th style="height:25px;">차종</th>
<td class="center" colspan='7'>
<input type="text" style="width:5%;" />TON
<input type="text" />
</td>
</tr>
</table>
<h3>기타정보</h3>
<table class="datav" style="width:100%;">
<colgroup>
<col width="10%" />
<col width="15%" />
<col width="10%" />
<col width="15%" />
<col width="10%" />
<col width="15%" />
<col width="10%" />
<col width="15%" />
</colgroup>
<tr>
<!-- 보증금 -->
<th style="height:25px;">보증금</th>
<td class="center">
<input type="text" name="deposit" class="wm" value="<?=$info["deposit"]?>" />
</td>
<!-- 예치금 -->
<th style="height:25px;">예치금</th>
<td class="center">
<input type="text" name="balance" class="wm" value="<?=$info["balance"]?>" />
</td>
<!-- 건물주 입금액-->
<th style="height:25px;">건물주 입금액</th>
<td class="center">
<input type="text" name="payment_owner" class="wm" value="<?=$info["payment_owner"]?>" />
</td>
<!-- 월세-->
<th style="height:25px;">월세</th>
<td class="center">
<input type="text" name="monthly_rent" class="wm" value="<?=$info["monthly_rent"]?>" />
</td>
</tr>
<tr>
<!-- 기본관리비 -->
<th style="height:25px;">기본관리비</th>
<td class="center">
<input type="text" name="maintenance_fee" class="wm" value="<?=$info["maintenance_fee"]?>" />
</td>
<!-- 케이블 -->
<th style="height:25px;">케이블</th>
<td class="center">
<input type="text" name="cable" class="wm" value="<?=$info["cable"]?>" />
</td>
<!-- 인터넷-->
<th style="height:25px;">인터넷</th>
<td class="center">
<input type="text" name="internet" class="wm" value="<?=$info["internet"]?>" />
</td>
<!-- 렌트1-->
<th style="height:25px;">렌트1</th>
<td class="center">
<input type="text" name="rent_1" class="wm" value="<?=$info["rent_1"]?>" />
</td>
</tr>
<tr>
<!-- 렌트2 -->
<th style="height:25px;">렌트2</th>
<td class="center">
<input type="text" name="rent_2" class="wm" value="<?=$info["rent_2"]?>" />
</td>
<!-- 기타 -->
<th style="height:25px;">기타</th>
<td class="center">
<input type="text" name="etc" class="wm" value="<?=$info["etc"]?>" />
</td>
<!-- 월세입금일-->
<th style="height:25px;">월세입금일</th>
<td class="center">
<select name="monthly_rent_date" class="wm">
<? for($i=1; $i<=31; $i++){ ?>
<option value='<?=$i?>' <?=$info["monthly_rent_date"] == $i ? "SELECTED" : ""?>><?=$i?></option>
<? } ?>
</select>
</td>
<!-- 건물주송금일-->
<th style="height:25px;">건물주송금일</th>
<td class="center">
<select name="payment_owner_date" class="wm">
<? for($i=1; $i<=31; $i++){ ?>
<option value='<?=$i?>' <?=$info["payment_owner_date"] == $i ? "SELECTED" : ""?>><?=$i?></option>
<? } ?>
</select>
</td>
</tr>
<tr>
<!-- 전기 검침일-->
<th style="height:25px;">전기 검침일</th>
<td class="center">
<select name="electricity_check_date" class="wm">
<? for($i=1; $i<=31; $i++){ ?>
<option value='<?=$i?>' <?=$info["electricity_check_date"] == $i ? "SELECTED" : ""?>><?=$i?></option>
<? } ?>
</select>
</td>
<!-- 가스 검침일-->
<th style="height:25px;">가스 검침일</th>
<td class="center">
<select name="gas_check_date" class="wm">
<? for($i=1; $i<=31; $i++){ ?>
<option value='<?=$i?>' <?=$info["gas_check_date"] == $i ? "SELECTED" : ""?>><?=$i?></option>
<? } ?>
</select>
</td>
<!-- 수도 검침일-->
<th style="height:25px;">수도 검침일</th>
<td class="center">
<select name="water_check_date" class="wm">
<? for($i=1; $i<=31; $i++){ ?>
<option value='<?=$i?>' <?=$info["water_check_date"] == $i ? "SELECTED" : ""?>><?=$i?></option>
<? } ?>
</select>
</td>
<!-- 공과금 납입일-->
<th style="height:25px;">공과금 납입일</th>
<td class="center">
<select name="billing_date" class="wm">
<? for($i=1; $i<=31; $i++){ ?>
<option value='<?=$i?>' <?=$info["billing_date"] == $i ? "SELECTED" : ""?>><?=$i?></option>
<? } ?>
</select>
</td>
</tr>
</table>
<h3>공과금</h3>
<table class="datav" style="width:100%;">
<colgroup>
<col width="10%" />
<col width="15%" />
<col width="10%" />
<col width="15%" />
<col width="10%" />
<col width="15%" />
<col width="10%" />
<col width="15%" />
</colgroup>
<tr>
<!-- 가스(검침/금액) -->
<th style="height:25px;">가스(검침/금액)</th>
<td class="center">
<input type="text" name="gas_charge" class="wm" value="<?=$bill_info["gas_check_date"]."/".$bill_info["gas_charge"]?>" readonly/>
</td>
<!-- 전기(검침/금액) -->
<th style="height:25px;">전기(검침/금액)</th>
<td class="center">
<input type="text" name="electricity_charge" class="wm" value="<?=$bill_info["electricity_check_date"]."/".$bill_info["electricity_charge"]?>" readonly/>
</td>
<!-- 수도(검침/금액)-->
<th style="height:25px;">수도(검침/금액)</th>
<td class="center">
<input type="text" name="water_charge" class="wm" value="<?=$bill_info["water_check_date"]."/".$bill_info["water_charge"]?>" readonly/>
</td>
<!-- 공용전기료(검침/금액)-->
<th style="height:25px;">공용전기료(검침/금액)</th>
<td class="center">
<input type="text" name="community_electricity_charge" class="wm" value="<?=$bill_info["community_electricity_check_date"]."/".$bill_info["community_electricity_charge"]?>" readonly/>
</td>
</tr>
<tr>
<!-- 공용수도료(검침/금액) -->
<th style="height:25px;">공용수도료(검침/금액)</th>
<td class="center">
<input type="text" name="community_water_charge" class="wm" value="<?=$bill_info["community_water_check_date"]."/".$bill_info["community_water_charge"]?>" readonly/>
</td>
</tr>
</table>
<h3>입실/퇴실예정</h3>
<table class="datav" style="width:50%; empty-cells: hide;border-collapse: separate;">
<colgroup>
<col width="20%" />
<col width="30%" />
<col width="20%" />
<col width="30%" />
</colgroup>
<tr>
<!-- 입실예정일 -->
<th style="height:25px;">입실예정일</th>
<td class="center">
<?php
$formattedDate = date('Y-m-d', strtotime($info["entering_due_date"]));
if($formattedDate == "1970-01-01") $formattedDate = "";
?>
<input type="text" name="entering_due_date" value="<?=$formattedDate?>" class="jRsvDate" />
</td>
<!-- 퇴실예정일 -->
<th style="height:25px;">퇴실예정일</th>
<td class="center">
<?php
$formattedDate = date('Y-m-d', strtotime($info["leaving_due_date"]));
if($formattedDate == "1970-01-01") $formattedDate = "";
?>
<input type="text" name="leaving_due_date" value="<?=$formattedDate?>" class="jRsvDate" />
</td>
</tr>
</table>
<h3>특약</h3>
<table class="datav" style="width:100%; empty-cells: hide;border-collapse: separate;">
<colgroup>
<col width="10%" />
<col width="90%" />
</colgroup>
<tr>
<!-- 입실예정일 -->
<th style="height:25px;">특약</th>
<td class="center">
<textarea name="special_contract" rows="5" style="width:100%;resize:vertical;"><?=$info["special_contract"]?></textarea>
</td>
</tr>
</table>
</form>
<div class="btngroupcenter">
<span class="button bigrounded blue jCancel btnleft_y">목록으로 </span>
<span class="button bigrounded blue jClose btnleft_y">닫기 </span>
<span class="button bigrounded blue jMod btnright_y" >저장</span>
</div>
</div>
</div>
\ No newline at end of file
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminPush.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/header.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/leftPushManage.php" ?>
<?
$obj = new AdminPush($_REQUEST, "") ;
//$list = $obj->getListOfAdminPush() ;
$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() ;
});
$(".jSearchGroup").click2(function(){
var title = "그룹 검색";
$('#jDialogArea').dialog({
modal : true,
title : title,
open : function(event, ui) { $(".ui-dialog-titlebar-close").hide(); },
width : 400,
height : 500,
resizable : false,
buttons: [
{
text: "확인",
click: function() {
var group_no = $(".jTargetNo:checked").val();
var group_name = $(".jTargetNo:checked").parents("tr").find(".jTargetName").attr("data");
if(group_no == undefined)
{
alert("대상을 선택해주세요.");
return false;
}
else
{
$("#group_no").val(group_no);
$("#group_name").val(group_name);
$( this ).dialog( "close" );
$("#jTargetSearchText").val("");
$("#jSearchResultArea").empty();
}
}
},
{
text: "닫기",
click: function() {
$("#jTargetSearchText").val("");
$("#jSearchResultArea").empty();
$( this ).dialog( "close" );
}
}
],
closeOnEscape: false
});
});
$(".jSearchPrivate").click2(function(){
var title = "회원 검색";
$('#jDialogAreaP').dialog({
modal : true,
title : title,
open : function(event, ui) { $(".ui-dialog-titlebar-close").hide(); },
width : 400,
height : 500,
resizable : false,
buttons: [
{
text: "확인",
click: function() {
var group_no = $(".jTargetNo:checked").val();
var group_name = $(".jTargetNo:checked").parents("tr").find(".jTargetName").attr("data");
if(group_no == undefined)
{
alert("대상을 선택해주세요.");
return false;
}
else
{
$("#group_no").val(group_no);
$("#group_name").val(group_name);
$( this ).dialog( "close" );
$("#jTargetSearchText").val("");
$("#jSearchResultArea").empty();
}
}
},
{
text: "닫기",
click: function() {
$("#jTargetSearchText").val("");
$("#jSearchResultArea").empty();
$( 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();
}
});
});
$(".jTargetSearchPBtn").click2(function(){
var search_text = $("#jTargetSearchTextP").val();
var ajax_url = "/admin/entity/entityPrivateSearch.php";
if(search_text == "")
{
alert("검색어를 입력해주세요.");
return false;
}
$.ajax({
url : ajax_url,
data : {
"search_text" : search_text
},
dataType:"html",
success : function(data)
{
$("#jSearchResultAreaP").html(data);
setSearchAreaEventHandler();
}
});
});
$("#push_target_type").change(function(){
resetTargetData();
if($(this).val() == "1")
{
$("#jGroupArea").hide();
$("#jPrivateArea").hide();
}
else if($(this).val() == "2")
{
$("#jGroupArea").show();
$("#jPrivateArea").hide();
}else{
$("#jGroupArea").hide();
$("#jPrivateArea").show();
}
});
$(".jSave").click2(function(){
var push_msg = $("#push_msg").val();
var push_target_type = $("#push_target_type").val();
var group_no = $("#group_no").val();
if(push_target_type == "2" && group_no == "")
{
alert("그룹을 선택해주세요.");
return false;
}
if(push_msg == "")
{
alert("푸시 내용을 입력해주세요.");
return false;
}
$.ajax({
url : "/action_front.php?cmd=AdminPush.sendAdminPush",
async : true,
cache : false,
dataType : "json",
data : {
"push_msg" : push_msg,
"push_target_type" : push_target_type,
"group_no" : group_no
}, success : function(data) {
alert(data.returnMessage) ;
if(data.returnCode == 1) {
location.reload();
}
}
});
});
}) ;
function setSearchAreaEventHandler()
{
$(".jTargetNo").unbind("change");
$(".jTargetNo").change(function(){
$(".jTargetNo").prop("checked", false);
$(this).prop("checked", true);
});
}
function resetTargetData()
{
$("#group_no").val("");
$("#group_name").val("");
}
</script>
<div id="Contents" class="notice">
<h1>약관 관리</h1>
<h2>푸시관리 > <span>약관관리</span></h2>
<div class="data">
<table class="datav" style="width:100%;">
<colgroup>
<col width="20%" />
<col width="80%" />
</colgroup>
<tr>
<th style="height:25px;">제목</th>
<td class="l">
<input type="text" style="width:95%"/>
</td>
</tr>
<tr>
<th style="height:25px;">내용</th>
<td class="l">
<textarea rows="25" style="width:95%;" id="push_msg"></textarea>
</td>
</tr>
</table>
<div class="btngroupcenter" style="width:100%;">
<span class="button bigrounded blue jSave" >전송</span>
</div>
</div>
</div>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/footer.php" ?>
\ No newline at end of file
......@@ -4,7 +4,7 @@
<?
$obj = new AdminPush($_REQUEST, "") ;
$list = $obj->getListOfAdminPush() ;
//$list = $obj->getListOfAdminPush() ;
$vnum = $obj->virtualNum ;
?>
<script>
......@@ -268,23 +268,20 @@
<div id="Contents" class="notice">
<h1>푸시 전송</h1>
<h1>푸시 관리</h1>
<h2><span>푸시관리</span></h2>
<div class="data">
<h3>푸시 전송</h3>
<table class="datav" style="width:50%;">
<table class="datav" style="width:100%;">
<colgroup>
<col width="30%" />
<col width="70%" />
<col width="20%" />
<col width="80%" />
</colgroup>
<tr>
<th style="height:25px;">대상</th>
<th style="height:25px;">제목</th>
<td class="l">
<select id="push_target_type">
<option value="1">전체</option>
<option value="2">그룹</option>
</select>
<input type="text" style="width:95%"/>
</td>
</tr>
......@@ -309,12 +306,12 @@
<tr>
<th style="height:25px;">내용</th>
<td class="l">
<textarea rows="2" style="width:95%;" id="push_msg"></textarea>
<textarea rows="3" style="width:95%;" id="push_msg"></textarea>
</td>
</tr>
</table>
<div class="btngroupcenter" style="width:50%;">
<div class="btngroupcenter" style="width:100%;">
<span class="button bigrounded blue jSave" >전송</span>
</div>
......@@ -323,9 +320,7 @@
<thead>
<tr>
<th class="no" width="5%">No</th>
<th width="10%">구분</th>
<th width="65%">메세지</th>
<th width="10%">전송대상</th>
<th width="10%">전송시간</th>
</tr>
</thead>
......@@ -370,47 +365,6 @@
</div>
<div id="jDialogArea" style="display:none;">
<table class="datacList" style="width:100%;">
<thead>
<tr>
<td class="no" colspan="2" style="text-align:center; height:35px;">
<input type="text" id="jTargetSearchText" style="width:50%;" placeholder="검색어를 입력해야 결과가 노출 됩니다.">
<input type="button" class="button searchsmall white jTargetSearchBtn" value="검색" />
</td>
</tr>
</thead>
<thead>
<tr>
<th class="no" colspan="2">검색결과</th>
</tr>
</thead>
<tbody id="jSearchResultArea"><!-- 10줄 리스트// 마지막 tr에 class="last" 넣어주세요 -->
</tbody>
</table>
</div>
<div id="jDialogAreaP" style="display:none;">
<table class="datacList" style="width:100%;">
<thead>
<tr>
<td class="no" colspan="2" style="text-align:center; height:35px;">
<input type="text" id="jTargetSearchTextP" style="width:50%;" placeholder="검색어를 입력해야 결과가 노출 됩니다.">
<input type="button" class="button searchsmall white jTargetSearchPBtn" value="검색" />
</td>
</tr>
</thead>
<thead>
<tr>
<th class="no" colspan="2">검색결과</th>
</tr>
</thead>
<tbody id="jSearchResultAreaP"><!-- 10줄 리스트// 마지막 tr에 class="last" 넣어주세요 -->
</tbody>
</table>
</div>
</div>
......
......@@ -164,7 +164,7 @@
<input type="text" id="search_text" name="search_text" class="wm" value="<?=$_REQUEST['search_text']?>" />
</label>
<input type="button" class="button smallgrounded blue jSearch" value="검색" />
<input type="button" class="button smallgrounded blue jSearch btnright_y" value="검색" />
</div>
</fieldset>
......
......@@ -156,7 +156,7 @@
<h1>직원</h1>
<div class="data">
<fieldset class="search" style="margin-top:30px;">
<fieldset class="search">
<div class="jSearchArea" >
......@@ -165,7 +165,7 @@
<input type="text" id="search_text" name="search_text" class="wm" value="<?=$_REQUEST['search_text']?>" />
</label>
<input type="button" class="button smallgrounded blue jSearch" value="검색" />
<input type="button" class="button smallgrounded blue jSearch btnright_y" value="검색" />
</div>
</fieldset>
......
......@@ -98,38 +98,40 @@
<tr>
<th style="height:25px;">아이디</th>
<td >
<input type="text" />
<input type="text" style="width:200px"/>
<span class="button bigrounded blue" style="color:white; width:70px">&nbsp;중복확인&nbsp;</span>
</td>
</tr>
<tr>
<th style="height:25px;">비밀번호</th>
<td >
<input type="text" />
<input type="text" style="width:200px"/>
</td>
</tr>
<tr>
<th style="height:25px;">직원명</th>
<td class="l">
<input type="text" />
<input type="text" style="width:200px" />
</td>
</tr>
<tr>
<th style="height:25px;">닉네임</th>
<td class="l">
<input type="text" />
<input type="text" style="width:200px" />
<span class="button bigrounded blue" style="color:white; width:70px">&nbsp;중복확인&nbsp;</span>
</td>
</tr>
<tr>
<th style="height:25px;">전화번호</th>
<td class="l">
<input type="text" />
<input type="text" style="width:50px"/>&nbsp; - &nbsp;<input type="text" style="width:50px"/>&nbsp; - &nbsp;<input type="text" style="width:50px"/>
</td>
</tr>
</table>
<div class="btngroupcenter">
<span class="button bigrounded blue jCancel">목록으로 </span>
<span class="button bigrounded blue jCancel">등록</span>
<?if($loginInfo["admin_type"] == "1"){ ?>
<span class="button bigrounded blue jDelUser" >삭제</span>
<?} ?>
......
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminUser.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/header.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/leftVehicleManage.php" ?>
<?
$obj = new AdminUser($_REQUEST) ;
//$list = $obj->getListOfUser() ;
$vehicleType=$_REQUEST["vehicleType"];
$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() ;
});
$(".jViewVehicle").click2(function(){
var no = $(this).attr("no");
var type='<?=$vehicleType?>';
location.href = "/admin/vehicleManage/vehicleView.php?no=" + no + "&vehicleType=" + type +"&rurl=" + jQuery.rich.bin2hex(document.URL);
});
$(".jAddUserExcel").click2(function(){
var s=$("#search_text").val();
location.href = "/admin/excel/userListExcel.php?search_text="+s;
});
// 회원 탈퇴
$(".jDelUser").click2(function(){
var no = $(this).attr("no");
var noArr = new Array(no);
if(confirm("정말 삭제하시겠습니까?"))
{
deleteUser(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();
}
deleteUser(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 deleteUser(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>
<?
switch($vehicleType){
case "WB":
echo "윙바디";
break;
case "BI":
echo "내장탑차";
break;
case "AX":
echo "가변축";
break;
case "FR":
echo "냉동탑차";
break;
case "FC":
echo "냉동컨테이너";
break;
case "AX":
echo "가변축";
break;
case "SP":
echo "특수차량";
break;
case "PG":
echo "파워게이트";
break;
}
?>
</h1>
<h2>
제품 관리 >
<span>
<?
switch($vehicleType){
case "WB":
echo "윙바디";
break;
case "BI":
echo "내장탑차";
break;
case "AX":
echo "가변축";
break;
case "FR":
echo "냉동탑차";
break;
case "FC":
echo "냉동컨테이너";
break;
case "AX":
echo "가변축";
break;
case "SP":
echo "특수차량";
break;
case "PG":
echo "파워게이트";
break;
}
?>
</span>
</h2>
<div class="data">
<div class="btngroupright">
<input type="button" class="button smallrounded blue jViewVehicle" no="" value="등록" />
<input type="button" class="button smallrounded blue jDelMulti" value="삭제" />
</div>
<table class="datacList">
<thead>
<tr>
<th class="no" width="5%">No</th>
<th width="2%"><input type="checkbox" id="jCheckAll"></th>
<th width="50%">제품명</th>
<th width="10%">-</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="jUserNo" value="<?=$list[$i]["no"] ?>" >
</td>
<td class="center">
</td>
<td class="center">
<input type="button" class="button searchsmall white jViewVehicle" 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
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminOperate.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/header.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/leftVehicleManage.php" ?>
<?
$obj = new AdminOperate($_REQUEST, "");
//$info = $obj->getInfoOfShop();
//$cateCodeList = $obj->getShopCategoryCodeList();
//$shopImgList = $obj->getShopImgList($info["no"]);
$admin_type = $obj->admUser["admin_type"];
$rurl = pack("H*", $_REQUEST["rurl"]) ;
?>
<script src="/admin/inc/fileUpload/fileUploadJS.js"></script>
<script type="text/javascript">
var _rurl = "<?=$rurl?>";
var _no = "<?=$_REQUEST[no]?>";
$(document).ready(function(){
initFileUpload(101);
initFileUpload(102);
initFileUpload(103);
initFileUpload(104);
initFileUpload(105);
<?if($admin_type == 3) { ?>
setReadOnly();
<?} ?>
//=====프레입웤 변수들==================================================================================//
var FORM_TARGET_CLS_NM = ".data" ; // 폼을 동적 wrap 할 타겟 ID이름
var FORM_NAME = "alf" ; // 폼이름
var FORM_METHOD = "POST" ; // 폼 메쏘드
var FORM_USE_FILE = false ; // 파일폼 사용 여부
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 }) ;
$(".jCancel").click2(function(){
location.href = _rurl;
});
$(".jSave").click2(function(){
$("#jData").ajaxSubmit({
url:"/action_front.php?cmd=AdminOperate.saveShop",
type : "post",
forceSync : true,
dataType : "json",
success : function(data){
alert(data.returnMessage);
location.href = _rurl;
}
});
});
$("#jCategorCd").change(function(){
setPromotion();
});
setPromotion();
}) ;
function setPromotion()
{
if($("#jCategorCd").val() == "1")
{
$("#jPromotionSelect").val("1");
$("#jPromotionSelect").prop("disabled", true);
$("#jPromotionHidden").prop("disabled", false);
}
else
{
$("#jPromotionSelect").prop("disabled", false);
$("#jPromotionHidden").prop("disabled", true);
}
}
function setReadOnly(){
$("[name=name]").attr("readonly", true);
$("[name=tel]").attr("readonly", true);
$("[name=addr_old]").attr("readonly", true);
$("[name=addr_new]").attr("readonly", true);
$("[name=discount_rate]").attr("readonly", true);
$("[name=discount_desc]").attr("readonly", true);
}
</script>
<div id="Contents" class="notice">
<h1>제품 관리 - 등록</h1>
<!-- location area -->
<h2>
재품 관리 > <span><?=$_REQUEST["vehicleType"]?></span>
</h2>
<!-- location area -->
<div class="data" style="width:80%;">
<form id="jData" method="post" enctype="multipart/form-data">
<input type="hidden" name="no" value="<?=$_REQUEST[no]?>" />
<table class="datav" style="width:100%;">
<colgroup>
<col width="10%" />
<col width="90%" />
</colgroup>
<tr>
<th style="height:25px;">제품명</th>
<td class="l">
<input type="text" name="discount_rate" class="wl" style="width:90%;" value="" />
</td>
</tr>
<tr>
<th style="height:25px;">제품소개</th>
<td class="l">
<textarea name="special_contract" rows="7" style="width:90%;resize:vertical;"><?=$info["special_contract"]?></textarea>
</td>
</tr>
<tr>
<th style="height:25px;">이동 URL</th>
<td class="l">
<input type="text" name="discount_rate" class="wl" style="width:90%;" value="<?=$info["discount_rate"] ?>" />
</td>
</tr>
<tr>
<th style="height:25px;">이미지 1</th>
<td class="l">
<?
$fileIndex = "101";
$fileName = "img1";
$filePath = ($shopImgList[0]["file_vir_name"] == "" ? "" : $shopImgList[0]["file_vir_name"]);
$fileNumber = ($shopImgList[0]["no"] == "" ? "0" : $shopImgList[0]["no"]);
include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php";
?>
</td>
</tr>
<tr>
<th style="height:25px;">이미지 2</th>
<td class="l">
<?
$fileIndex = "102";
$fileName = "img2";
$filePath = ($shopImgList[1]["file_vir_name"] == "" ? "" : $shopImgList[1]["file_vir_name"]);
$fileNumber = ($shopImgList[1]["no"] == "" ? "0" : $shopImgList[1]["no"]);
include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php";
?>
</td>
</tr>
<tr>
<th style="height:25px;">이미지 3</th>
<td class="l">
<?
$fileIndex = "103";
$fileName = "img3";
$filePath = ($shopImgList[2]["file_vir_name"] == "" ? "" : $shopImgList[2]["file_vir_name"]);
$fileNumber = ($shopImgList[2]["no"] == "" ? "0" : $shopImgList[2]["no"]);
include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php";
?>
</td>
</tr>
<tr>
<th style="height:25px;">이미지 4</th>
<td class="l">
<?
$fileIndex = "104";
$fileName = "img4";
$filePath = ($shopImgList[3]["file_vir_name"] == "" ? "" : $shopImgList[3]["file_vir_name"]);
$fileNumber = ($shopImgList[3]["no"] == "" ? "0" : $shopImgList[3]["no"]);
include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php";
?>
</td>
</tr>
<tr>
<th style="height:25px;">이미지 5</th>
<td class="l">
<?
$fileIndex = "105";
$fileName = "img5";
$filePath = ($shopImgList[4]["file_vir_name"] == "" ? "" : $shopImgList[4]["file_vir_name"]);
$fileNumber = ($shopImgList[4]["no"] == "" ? "0" : $shopImgList[4]["no"]);
include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php";
?>
</td>
</tr>
</table>
</form>
<div class="btngroupcenter">
<span class="button bigrounded blue jCancel">취소 </span>
<span class="button bigrounded blue jSave" >저장</span>
</div>
</div>
</div>
\ No newline at end of file
......@@ -65,7 +65,7 @@ if(!class_exists("Admin")){
LIMIT 0, 1
";
$result = $this->getRow($sql);
return $result;
}
......