gdidc/backoffice/module/admin/admin_set.php
2021-10-26 18:19:06 +09:00

204 lines
8.7 KiB
PHP

<?
include $_SERVER[DOCUMENT_ROOT] . "/backoffice/header.php";
if(!in_array("admin_manage",$_SESSION[$_SITE["DOMAIN"]]["ADMIN"]["AUTH"]) && $_SESSION[$_SITE["DOMAIN"]]["ADMIN"]["GRADE"]!="ROOT"):
jsMsg("권한이 없습니다.");
jsHistory("-1");
endif;
$chkPayment=array();
$arrPayment = explode(",",$arrSetInfo["list"][0][shop_payment]);
for ($i=0;$i<count($arrPayment);$i++)
{
array_push($chkPayment, $arrPayment[$i]);
}
if(in_array("shop_good_manage", $arrayMyMenu) && (in_array("shop_good_manage",$_SESSION[$_SITE["DOMAIN"]]["ADMIN"]["AUTH"]) || $_SESSION[$_SITE["DOMAIN"]]["ADMIN"]["GRADE"]=="ROOT")){
$shop_display = true;
}else{
$shop_display = false;
}
?>
<script type="text/javascript">
function setShopURL(name){
document.frmInfo.shop_url.value = name+".website.ne.kr";
}
function copyHome(text){
window.clipboardData.setData("Text", text);
}
</script>
<div id="admin-container">
<? include "menu.php"; ?>
<div id="admin-content">
<h2 class="admin-title">기본정보설정</h2>
<form name="frmInfo" method="post" action="admin_evn.php">
<input type="hidden" name="evnMode" value="setAdmin">
<!-- 기본정보 -->
<h3 class="admin-title-middle">관리자정보</h3>
<table class="admin-table-type1">
<colgroup>
<col width="120" />
<col width="*" />
</colgroup>
<tbody>
<tr>
<th>홈페이지 이름</th>
<td class="space-left"><input type="text" name="shop_name" value="<?=$arrSetInfo["list"][0][shop_name]?>" class="input" size="50"></td>
</tr>
<tr style="display:<?=$siteip_chk==true?"":"none"?>">
<th>계정명</th>
<td class="space-left">
<input type="text" name="shop_url1" value="<?=$arrSetInfo["list"][0][shop_url1]?>" class="input" size="44" onPropertyChange="javascript:setShopURL(this.value);" onkeyup="setShopURL(this.value);">
</td>
</tr>
<tr style="display:<?=$siteip_chk==true?"":"none"?>">
<th>실도메인</th>
<td class="space-left">http://<input type="text" name="shop_url2" value="<?=$arrSetInfo["list"][0][shop_url2]?>" class="input" size="44"> (http://제외) </td>
</tr>
<tr style="display:<?=$siteip_chk==true?"":"none"?>">
<th>홈페이지 URL</th>
<td class="space-left">http://<input type="text" name="shop_url" value="<?=$arrSetInfo["list"][0][shop_url]?>" class="input" size="44"> (http://제외) </td>
</tr>
<tr>
<th>관리자 이메일</th>
<td class="space-left"><input type="text" name="admin_email" value="<?=$arrSetInfo["list"][0][admin_email]?>" class="input" size="50"></td>
</tr>
</tbody>
</table>
<br />
<!-- 홈페이지정보 -->
<h3 class="admin-title-middle">홈페이지 Title</h3>
<table class="admin-table-type1">
<colgroup>
<col width="120" />
<col width="*" />
</colgroup>
<tbody>
<tr>
<th>홈페이지 Title</th>
<td class="space-left"><input type="text" name="shop_title" value="<?=$arrSetInfo["list"][0][shop_title]?>" class="input" size="50"></td>
</tr>
<tr>
<th>검색키워드</th>
<td class="space-left"><input type="text" name="shop_keyword" value="<?=$arrSetInfo["list"][0][shop_keyword]?>" class="input" size="140"></td>
</tr>
<tr>
<th>소개글</th>
<td class="space-left"><input type="text" name="shop_content" value="<?=$arrSetInfo["list"][0][shop_content]?>" class="input" size="140"></td>
</tr>
<!-- <tr>
<th>네이버관련</th>
<td class="space-left">
<input type="text" name="shop_navermeta" id="shop_navermeta" class="input" value="<?=$arrSetInfo["list"][0][shop_navermeta]?>" size="50"> content 안에 있는부분만 기재
<div style="margin-top:5px;">
<a href="create_sitemap.php" target="_blank" class="btn-pack medium">사이트맵 생성</a> <br>
※ <a href="https://feedity.com/" target="_blank" class="btn-pack medium">RSS URL</a>&nbsp; 링크이동후 http://<?=$_SERVER['HTTP_HOST']?> 주소 입력후 PREVIEW 버튼 클릭한 후 클릭가능한 텍스트 클릭후 SAVE 버튼 클릭하면됩니다.
</div>
</td>
</tr> -->
<!-- <tr style="display:<?=$siteip_chk==true?"":"none"?>">
<th>Robots.txt</th>
<td class="space-left">
User-agent: * <br />Allow:/
</td>
</tr> -->
</tbody>
</table>
<br />
<!-- 결제정보 -->
<h3 class="admin-title-middle" style="display:<?=$shop_display==true?"":"none"?>">결제정보</h3>
<table class="admin-table-type1" style="display:<?=$shop_display==true?"":"none"?>">
<colgroup>
<col width="120" />
<col width="*" />
</colgroup>
<tbody>
<tr>
<th>결제방법</th>
<td class="space-left"><input type="checkbox" name="payment[]" value="cash|무통장"<?=in_array("cash|무통장", $chkPayment)?" checked":""?>>무통장&nbsp;&nbsp;&nbsp;
<input type="checkbox" name="payment[]" value="card|신용카드"<?=in_array("card|신용카드", $chkPayment)?" checked":""?>>신용카드&nbsp;&nbsp;&nbsp;
<input type="checkbox" name="payment[]" value="escrow|에스크로"<?=in_array("escrow|에스크로", $chkPayment)?" checked":""?>>에스크로&nbsp;&nbsp;&nbsp;
<input type="checkbox" name="payment[]" value="online|계좌이체"<?=in_array("online|계좌이체", $chkPayment)?" checked":""?>>계좌이체&nbsp;&nbsp;&nbsp;
<input type="checkbox" name="payment[]" value="hp|휴대폰"<?=in_array("hp|휴대폰", $chkPayment)?" checked":""?>>휴대폰</td>
</tr>
<tr>
<th>상점 ID</th>
<td class="space-left"><input type="text" name="shop_pg_id" value="<?=$arrSetInfo["list"][0][shop_pg_id]?>" class="input"> 테스트아이디 : aegis</td>
</tr>
<tr>
<th>은행계좌번호</th>
<td class="space-left"><textarea name="shop_bankinfo" cols="80" rows="5"><?=$arrSetInfo["list"][0][shop_bankinfo]?></textarea> 줄바꿈(엔터)으로 구분됩니다.</td>
</tr>
</tbody>
</table>
<br />
<!-- 기본배송정책 -->
<h3 class="admin-title-middle" style="display:<?=$shop_display==true?"":"none"?>">기본배송정책</h3>
<table class="admin-table-type1" style="display:<?=$shop_display==true?"":"none"?>">
<colgroup>
<col width="120" />
<col width="*" />
</colgroup>
<tbody>
<tr>
<th>배송무료</th>
<td class="space-left"><input type="radio" name="delivery_gb" value="1"<?=$arrSetInfo["list"][0][shop_delivery_gb]=="1"?" checked":""?>> 배송비 전액무료</td>
</tr>
<tr>
<th>수신자부담</th>
<td class="space-left"><input type="radio" name="delivery_gb" value="2"<?=$arrSetInfo["list"][0][shop_delivery_gb]=="2"?" checked":""?>> 수신자부담 (착불)</td>
</tr>
<tr>
<th>고정값</th>
<td class="space-left"><input type="radio" name="delivery_gb" value="3"<?=$arrSetInfo["list"][0][shop_delivery_gb]=="3"?" checked":""?>> <input type="text" name="shop_delivery_default" value="<?=$arrSetInfo["list"][0][shop_delivery_default]?>" class="input">원</td>
</tr>
<tr>
<th>구매가격별</th>
<td class="space-left"><input type="radio" name="delivery_gb" value="4"<?=$arrSetInfo["list"][0][shop_delivery_gb]=="4"?" checked":""?>> <input type="text" name="shop_delivery_price" value="<?=$arrSetInfo["list"][0][shop_delivery_price]?>" class="input">원 이상 구매시 <input type="text" name="shop_delivery_high" value="<?=$arrSetInfo["list"][0][shop_delivery_high]?>" class="input">원<br /><span style="padding-left:160px;">이하 구매시 <input type="text" name="shop_delivery_low" value="<?=$arrSetInfo["list"][0][shop_delivery_low]?>" class="input">원</span></td>
</tr>
</tbody>
</table>
<br />
<!-- 기본배송정책 -->
<h3 class="admin-title-middle" style="display:<?=$shop_display==true?"none":"none"?>">적립금 설정</h3>
<table class="admin-table-type1" style="display:<?=$shop_display==true?"none":"none"?>">
<colgroup>
<col width="120" />
<col width="*" />
</colgroup>
<tbody>
<tr>
<th>회원가입 적립금</th>
<td class="space-left"><input type="text" name="shop_point_member" value="<?=$arrSetInfo["list"][0][shop_point_member]?>" class="input"></td>
</tr>
<tr>
<th>최소사용 적립금</th>
<td class="space-left"><input type="text" name="shop_point_min" value="<?=$arrSetInfo["list"][0][shop_point_min]?>" class="input"> </td>
</tr>
<tr>
<th>구매 총액 이상시<br />적립금 사용가능</th>
<td class="space-left"><input type="text" name="shop_point_max" value="<?=$arrSetInfo["list"][0][shop_point_max]?>" class="input"> </td>
</tr>
</tbody>
</table>
<div class="admin-buttons">
<div class="cen">
<span class="btn_pack xlarge icon"><span class="refresh"></span><input type="submit" value="확인" style="font-weight:bold" /></span>
</div>
</div>
</form>
</div>
</div>
<?
include $_SERVER[DOCUMENT_ROOT] . "/backoffice/footer.php";
?>