83 lines
3.1 KiB
PHP
83 lines
3.1 KiB
PHP
<?
|
|
include $_SERVER[DOCUMENT_ROOT] . "/backoffice/header.php";
|
|
include $_SERVER[DOCUMENT_ROOT] . "/module/category/category.lib.php";
|
|
include $_SERVER[DOCUMENT_ROOT] . "/common/fckeditor/fckeditor.php";
|
|
if(!in_array("product_manage",$_SESSION[$_SITE["DOMAIN"]]["ADMIN"]["AUTH"]) && $_SESSION[$_SITE["DOMAIN"]]["ADMIN"]["GRADE"]!="ROOT"):
|
|
jsMsg("권한이 없습니다.");
|
|
jsHistory("-1");
|
|
endif;
|
|
|
|
//DB연결
|
|
$dblink = SetConn($_conf_db["main_db"]);
|
|
|
|
$arrInfo = getCategoryInfo(mysql_real_escape_string($_REQUEST[cat_no]));
|
|
|
|
//DB해제
|
|
SetDisConn($dblink);
|
|
?>
|
|
<script language="javascript">
|
|
function photoView(b_idx, idx) {
|
|
var window_left = (screen.width-640)/2;
|
|
var window_top = (screen.height-480)/2;
|
|
obj = window.open('/module/category/photo_view.php?cat_no='+b_idx+'&idx='+idx,"photo_view_win",'width=620,height=400,status=no,scrollbars=no,top=' + window_top + ',left=' + window_left + '');
|
|
}
|
|
</script>
|
|
|
|
<div id="admin-container">
|
|
<?
|
|
if(in_array("product_manage", $arrayMyMenu) && (in_array("product_manage",$_SESSION[$_SITE["DOMAIN"]]["ADMIN"]["AUTH"]) || $_SESSION[$_SITE["DOMAIN"]]["ADMIN"]["GRADE"]=="ROOT")){
|
|
include "../product/menu.php";
|
|
}else{
|
|
include "../shop/menu_good.php";
|
|
}
|
|
?>
|
|
<div id="admin-content">
|
|
<h2 class="admin-title">분류 관리 수정</h2>
|
|
|
|
<form name="frmInfo" method="post" action="category_evn.php" ENCTYPE="multipart/form-data" >
|
|
<input type="hidden" name="evnMode" value="editCategory">
|
|
<input type="hidden" name="cat_no" value="<?=$arrInfo["list"][0][cat_no]?>">
|
|
|
|
<div class="clfix mgb5">
|
|
<div class="fl"> <strong><font color="red"><?=$arrInfo["list"][0][cat_name]?> 수정</font></strong></div>
|
|
<div class="fr"><a href="category.php"><img src="/backoffice/images/k_list.gif" alt="목록" /></a></div>
|
|
</div>
|
|
<table class="admin-table-type1">
|
|
<colgroup>
|
|
<col width="140" />
|
|
<col width="*" />
|
|
</colgroup>
|
|
<tbody>
|
|
<tr>
|
|
<th>카테고리명</th>
|
|
<td class="space-left"><input type="text" name="cat_name" value="<?=$arrInfo["list"][0][cat_name]?>" style="width:200px;" class="input" /></td>
|
|
</tr>
|
|
<tr style="display:none">
|
|
<th>카테고리 이미지</th>
|
|
<td class="space-left">
|
|
<?
|
|
if($arrInfo["total_catalog_files"]>0){
|
|
?>
|
|
<input type="checkbox" name="delCatalog[]" id="delCatalog" value="<?=$arrInfo["catalog_files"][0][idx]?>"><label for="delCatalog">삭제</label> <span style="color:#ccc">|</span> <a href="javascript:photoView('<?=$arrInfo["list"][0][cat_no]?>','<?=$arrInfo["catalog_files"][0][idx]?>');"><?=$arrInfo["catalog_files"][0][ori_name]?></a>
|
|
<?
|
|
}else{
|
|
?>
|
|
<input type="file" name="catalog_file[]" style="width:50%" class="input" /> (최적사이즈: 가로 1000px )
|
|
<?}?>
|
|
</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>
|
|
<span class="btn_pack xlarge"><input type="reset" value="수정취소" style="font-weight:bold" /></span>
|
|
</div>
|
|
</div>
|
|
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<?
|
|
include $_SERVER[DOCUMENT_ROOT] . "/backoffice/footer.php" ;
|
|
?>
|