10e833b5 by sayhoChun

web flow/form comleted, productionPortrait API added

1 parent 91cbd259
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminUser.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/header.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/leftBoardManage.php" ?>
<?
$obj = new AdminUser($_REQUEST) ;
//$list = $obj->getListOfUser() ;
$boardType=$_REQUEST["boardType"];
$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='<?=$boardType?>';
location.href = "/admin/boardManage/productionPortraitView.php?no=" + no + "&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>제작사진</h1>
<h2>
게시물 관리 ><span>제작사진</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="50%">제목</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">
</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/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]?>";
function MultiArticle(sTitle, sC, sCt, sImg){
this.title = sTitle;
this.categoryNumber = sC;
this.contents = sCt;
this.imgContainer = sImg;
}
$(document).ready(function(){
var multiArray = new Array();
for(var i = 1; i <= 10; i++){
multiArray[i] = new MultiArticle("", i, "", 0);
}
init();
<?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;
});
var prev;
function init(){
initFileUpload(101);
initFileUpload(102);
initFileUpload(103);
initFileUpload(104);
initFileUpload(105);
initFileUpload(106);
initFileUpload(107);
initFileUpload(108);
initFileUpload(109);
initFileUpload(110);
toggleHide(1);
}
$("#category").click(function(){
var currentNum = $(this).val();
multiArray[currentNum].title = $("#mTitle").val();
multiArray[currentNum].contents = $("#mContent").val();
});
$("#category").change(function(){
var currentNum = $(this).val();
$("#mTitle").val(multiArray[currentNum].title);
$("#mContent").val(multiArray[currentNum].contents);
toggleHide(currentNum);
});
function toggleHide(number){
for(var q = 1; q <= 10; q++){
if(q != number) $(".imgFiles[no="+q+"]").hide();
else $(".imgFiles[no="+q+"]").show();
}
}
$(".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" id="mTitle" class="wl" style="width:70%;" value="" />
</td>
</tr>
<tr>
<th style="height:25px;">카테고리</th>
<td>
<select id="category">
<option value=1>컨텐츠1</option>
<option value=2>컨텐츠2</option>
<option value=3>컨텐츠3</option>
<option value=4>컨텐츠4</option>
<option value=5>컨텐츠5</option>
<option value=6>컨텐츠6</option>
<option value=7>컨텐츠7</option>
<option value=8>컨텐츠8</option>
<option value=9>컨텐츠9</option>
<option value=10>컨텐츠10</option>
</select>
</td>
</tr>
<tr>
<th style="height:25px;">내용</th>
<td class="l">
<textarea name="special_contract" rows="7" id="mContent" style="width:90%;resize:vertical;"><?=$info["special_contract"]?></textarea>
</td>
</tr>
<tr>
<th style="height:25px;">이미지</th>
<td class="imgFiles" no=1>
<?
$fileIndex = "101";
$fileName = "img01";
$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>
<td class="imgFiles" no=2>
<?
$fileIndex = "102";
$fileName = "img02";
$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>
<td class="imgFiles" no=3>
<?
$fileIndex = "103";
$fileName = "img03";
$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>
<td class="imgFiles" no=4>
<?
$fileIndex = "104";
$fileName = "img04";
$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>
<td class="imgFiles" no=5>
<?
$fileIndex = "105";
$fileName = "img05";
$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>
<td class="imgFiles" no=6>
<?
$fileIndex = "106";
$fileName = "img06";
$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>
<td class="imgFiles" no=7>
<?
$fileIndex = "107";
$fileName = "img07";
$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>
<td class="imgFiles" no=8>
<?
$fileIndex = "108";
$fileName = "img08";
$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>
<td class="imgFiles" no=9>
<?
$fileIndex = "109";
$fileName = "img09";
$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>
<td class="imgFiles" no=10>
<?
$fileIndex = "110";
$fileName = "img10";
$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
......@@ -29,6 +29,10 @@ $(document).ready(function(){
<a href="/admin/boardManage/certificateList.php">기관인정서</a>
</li>
<li matchUrl="/admin/boardManage/productionPortrait.php">
<a href="/admin/boardManage/productionPortrait.php">제작사진</a>
</li>
</ul>
......
......@@ -14,7 +14,8 @@
<script type="text/javascript">
var _rurl = "<?=$rurl?>";
var _no = "<?=$_REQUEST[no]?>";
var addCounter = 0;
var THRESHOLD = 5;
$(document).ready(function(){
......@@ -50,6 +51,44 @@
location.href = _rurl;
});
$(".jAdd").click(function(){
if($("#addContent").val()=="") return;
if(addCounter == THRESHOLD) {
alert("특수사항은 최대 " + THRESHOLD + "개까지 추가할 있습니다.");
return;
}
$(".addtable")
.append("<tr no="
+ addCounter + " class='dynamicRow'><td></td><td><input type='text' class='added' readonly value='"
+ $("#addContent").val() + "' /><span class='button bigrounded gray adddel' no="
+ addCounter +" style='color:white; width:70px'>&nbsp;X&nbsp;</span></td></tr>");
addCounter++;
$("#addContent").val('');
});
function pickupRows(){
var noArr = new Array();
var noCount = $(".added").length;
for(var i = 0; i < noCount; i++ ){
noArr[i] = $(".added:eq(" + i + ")").val();
}
alert(noArr);
}
$(".test").click(function(){
pickupRows();
});
$(document).on("click", ".adddel", function(){
$(".dynamicRow[no="+$(this).attr("no")+"]").remove();
addCounter--;
});
$(".jClose").click2(function(){
window.close();
});
......@@ -129,6 +168,7 @@
</tr>
</table>
<br>
<h3>고객 정보</h3>
<table class="datav" style="width:100%;">
<colgroup>
<col width="10%" />
......@@ -163,14 +203,22 @@
<!-- 계약일 -->
<th style="height:25px;">차종</th>
<td class="center" colspan='7'>
<input type="text" style="width:5%;" />TON
<input type="text" />
<input type="text" style="width:5%;" /> TON
<input type="text" style="margin-right:50px;"/>
<input type="radio" name="chk_info" value="HTML">현대
<input type="radio" name="chk_info" value="CSS">대우
<input type="radio" name="chk_info" value="웹디자인">볼보
<input type="radio" name="chk_info" value="웹디자인">스카니아
<input type="radio" name="chk_info" value="웹디자인">벤츠
<input type="radio" name="chk_info" value="웹디자인">볼보
<input type="radio" name="chk_info" value="웹디자인">
</td>
</tr>
</table>
<h3>기타정보</h3>
<h3>제품 정보</h3>
<table class="datav" style="width:100%;">
<colgroup>
<col width="10%" />
......@@ -184,70 +232,39 @@
</colgroup>
<tr>
<!-- 보증금 -->
<th style="height:25px;">보증금</th>
<td class="center">
<th style="height:25px;">제품명</th>
<td class="center" colspan='7'>
<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"]?>" />
<th style="height:25px;">TYPE</th>
<td class="center" colspan='7'>
<input type="radio" name="chk_info" value="HTML">R
<input type="radio" name="chk_info" value="CSS">
<input type="radio" name="chk_info" value="웹디자인">판넬
<input type="text" style="margin-left:50px;"/>
</td>
</tr>
<tr>
<!-- 렌트2 -->
<th style="height:25px;">렌트2</th>
<th style="height:25px;">내장</th>
<td class="center">
<input type="text" name="rent_2" class="wm" value="<?=$info["rent_2"]?>" />
</td>
<!-- 기타 -->
<th style="height:25px;">기타</th>
<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">
<th style="height:25px;">내폭</th>
<td class="center" colspan='2'>
<select name="monthly_rent_date" class="wm">
<? for($i=1; $i<=31; $i++){ ?>
<option value='<?=$i?>' <?=$info["monthly_rent_date"] == $i ? "SELECTED" : ""?>><?=$i?></option>
......@@ -255,156 +272,165 @@
</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>
<th style="height:25px;">AL코일</th>
<td class="center" colspan='7'>
<input type="radio" name="chk_info" value="HTML">GRP
<input type="radio" name="chk_info" value="CSS">AL
<input type="text" style='margin-left:50px;'/>
</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>
</tr>
<tr>
<th style="height:25px;">내부바닥</th>
<td class="center" colspan='7'>
<input type="radio" name="chk_info" value="HTML">체크
<input type="radio" name="chk_info" value="CSS">민판
<input type="text" style='width:5%;'/> T
<input type="text" style='margin-left:45px;'/>
</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>
</tr>
<tr>
<th style="height:25px;">누름천막</th>
<td class="center" colspan='7'>
<input type="radio" name="chk_info" value="HTML">없음
<input type="radio" name="chk_info" value="CSS">고정식
<input type="radio" name="chk_info" value="CSS">이동식
</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>
</tr>
<tr>
<th style="height:25px;">내부옆판</th>
<td class="center" colspan='7'>
<input type="radio" name="chk_info" value="HTML">있음
<input type="radio" name="chk_info" value="CSS">없음
<input type="text" style='margin-left:45px;'/>
</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/>
<th style="height:25px;">바람막이</th>
<td class="center" colspan='7'>
<input type="radio" name="chk_info" value="HTML">있음
<input type="radio" name="chk_info" value="CSS">없음
<input type="text" style='margin-left:45px;'/>
</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/>
</tr>
<tr>
<th style="height:25px;">냉동기</th>
<td class="center" colspan='7'>
<input type="radio" name="chk_info" value="HTML">있음
<input type="radio" name="chk_info" value="CSS">없음
<input type="text" style='margin-left:45px;'/>
</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/>
</tr>
<!-- 게이트 -->
<tr>
<th style="height:25px;" rowspan='2'>게이트</th>
<td class="center" colspan='7'>
-형태
<input type="radio" name="chk_info" value="HTML" style='margin-left:50px;'>구형
<input type="radio" name="chk_info" value="CSS">신형
<input type="text" style='margin-left:45px;'/>
</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/>
</tr>
<tr>
<td class="center" colspan='7'>
-사이즈
<input type="radio" name="chk_info" value="HTML" style='margin-left:50px;'>600
<input type="radio" name="chk_info" value="CSS">700
<input type="radio" name="chk_info" value="CSS">800
</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/>
<th style="height:25px;">L&LOAD</th>
<td class="center" colspan='3'>
<input type="radio" name="chk_info" value="HTML" style='margin-left:50px;'>SUS
<input type="radio" name="chk_info" value="CSS">일반
</td>
<th style="height:25px;">앞/뒤틀 형식</th>
<td class="center" colspan='3'>
<input type="radio" name="chk_info" value="HTML" style='margin-left:50px;'>SUS
<input type="radio" name="chk_info" value="CSS">일반
</td>
</tr>
<tr>
<th style="height:25px;" rowspan='2'>E트랙</th>
<td class="center" colspan='7'>
-게이트
<input type="radio" name="chk_info" value="HTML" style='margin-left:50px;'>있음
<input type="radio" name="chk_info" value="CSS">없음
<input type="text" style='margin-left:45px;'/>
</td>
</tr>
<tr>
<td class="center" colspan='7'>
-날개
<input type="radio" name="chk_info" value="HTML" style='margin-left:50px;'>있을
<input type="radio" name="chk_info" value="CSS">없음
</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">
<th style="height:25px;">공구통</th>
<td class="center" colspan='7'>
<input type="radio" name="chk_info" value="HTML">
<input type="radio" name="chk_info" value="CSS">
<input type="radio" name="chk_info" value="CSS">없음
<input type="text" style='margin-left:45px;'/>
</td>
</tr>
<?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" />
<tr>
<th style="height:25px;">범퍼발판</th>
<td class="center" colspan='3'>
<input type="radio" name="chk_info" value="HTML" style='margin-left:50px;'>1개
<input type="radio" name="chk_info" value="CSS">2개
</td>
<th style="height:25px;">윙보호장치</th>
<td class="center" colspan='3'>
<input type="radio" name="chk_info" value="HTML" style='margin-left:50px;'>1개
<input type="radio" name="chk_info" value="CSS">2개
</td>
</tr>
<!-- 퇴실예정일 -->
<th style="height:25px;">퇴실예정일</th>
<td class="center">
<tr>
<th style="height:25px;">축(장착여부)</th>
<td class="center" colspan='7'>
<input type="radio" name="chk_info" value="HTML">있음
<input type="radio" name="chk_info" value="CSS">없음
<input type="text" style='margin-left:45px;'/>
</td>
</tr>
<?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" />
<tr>
<th style="height:25px;">견적금액</th>
<td class="center" colspan='7'>
<input type="text" />
</td>
</tr>
</table>
<h3></h3>
<table class="datav" style="width:100%; empty-cells: hide;border-collapse: separate;">
<h3>수 사항</h3>
<table class="datav addtable" style="width:100%; empty-cells: hide;border-collapse: separate;">
<colgroup>
<col width="10%" />
<col width="90%" />
</colgroup>
<tr>
<!-- 입실예정일 -->
<th style="height:25px;"></th>
<th style="height:25px;">수 사항</th>
<td class="center">
<textarea name="special_contract" rows="5" style="width:100%;resize:vertical;"><?=$info["special_contract"]?></textarea>
<input type="text" id="addContent" />
<span class="button bigrounded gray jAdd" style="color:white; width:70px">&nbsp;추가&nbsp;</span>
</td>
</tr>
</table>
</form>
<div class="btngroupcenter">
<span class="button bigrounded blue test btnleft_y"></span>
<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>
......
......@@ -907,9 +907,37 @@ if (! class_exists("ApiBoard"))
return $this->makeResultJson("1","", $result);
}
function getListOfProductionPortrait(){
$sql="
SELECT COUNT(*)
FROM tblProductionPortrait
WHERE status=1
ORDER BY regDate DESC
";
$this->rownum=$this->getValue($sql, "rn");
$this->initPage();
$this->setPageForDevice($this->rownum);
$sql="
SELECT ppNo, title, regDate
FROM tblProductionPortrait
WHERE status=1
ORDER BY regDate DESC
";
$result=$this->getArray($sql);
return $this->makeResultJson("1", "", $result);
}
function getInfoOfProductionPortrait(){
$ppNo=$this->req["ppNo"];
$sql="
SELECT *
FROM tblProductionPortrait
WHERE ppNo='{$ppNo}'
LIMIT 0, 1
";
}
......