noticeView.php 3.21 KB
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/header.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/left_etcManage.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/EtcAdmin.php" ?>
<?
	$obj = new EtcAdmin($_REQUEST, "");

	$noticeType = $_REQUEST["notice_type"];

	$noticeInfo	= $obj->getInfoOfNotice();

	if($noticeType == "1")
	{
		$title = "공지사항 관리";
	}
	else
	{
		$title = "FAQ 관리";
	}

	$rurl = pack("H*", $_REQUEST["rurl"]) ;
?>
<script type="text/javascript">
	var rurl = "<?=$rurl?>";
	
	$(document).ready(function(){
		//InitImageUpload('100');
	
		//=====프레입웤 변수들==================================================================================//
		var FORM_TARGET_CLS_NM		= "div.data"	;		// 폼을 동적 wrap 할 타겟 ID이름
		var FORM_NAME				= "nf"		;		// 폼이름
		var FORM_METHOD				= "POST"		;		// 폼 메쏘드
		var FORM_USE_FILE			= false		;		// 파일폼 사용 여부
		
		var FORM_ACTION				= "/action_front.php" ; 		

		var NEXT_CMD				= ""			;		// 다은 수행 할 cmd
		//=====================================================================================================//


		$(".jCancel").click2(function(){
			location.href = rurl;
		});



		$(".jSubmit").click2(function(){
			var jForm = $(FORM_TARGET_CLS_NM).mf({ "name" : FORM_NAME , "method" : FORM_METHOD , "action" : FORM_ACTION, "useFile" : FORM_USE_FILE }) ;
			var noticeNo = $("#notice_no").val();

			jForm.ci() ;
			jForm.mi("cmd", "EtcAdmin.insNotice") ;
			jForm.mi("flow", "ToS") ;
			jForm.mi("msg", "저장되었습니다.") ;
			jForm.mei("rurl", noticeNo == "" ? rurl : _documentUrl) ;
			jForm.submit() ;
		});
	});




</script>
<div id="Contents"  class="notice">

	<h1><?=$title?></h1>

	<!-- location area -->
	<h2>
		서비스 관리 > 게시판 관리 > <span><?=$title?></span>
	</h2>
	<!-- location area -->

	
	<div class="data">

		<input type="hidden" readonly="true" id="notice_no" name="notice_no" value="<?=$noticeInfo["notice_no"]?>" />
		<input type="hidden" readonly="true" id="notice_type" name="notice_type" value="<?=$_REQUEST["notice_type"]?>" />
		<table class="datav">
			<tr>
				<th>제목</th>
				<td class="l">
					<input type="text" autocomplete="on" class="wl" id="title" name="title" value="<?=$noticeInfo["title"]?>" />
				</td>
			</tr>
<!--
			<tr>
				<th>이미지</th>
				<td>
					<?/*  
						$imageIndex = 100 ;
						$imageUrl = "/upload_img/" . $noticeInfo["image_path"] ;
						$width = 480 ;
						$height = 260 ;
						include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/imgUpload/imgUpload.php" 
						*/
					?>
					<span class="org">*권장사항 - 가로 사이즈(픽셀) : 720  &nbsp;&nbsp;&nbsp; 포맷 : png</span>
				</td>
			</tr>
-->
			<tr>
				<th>내용</th>
				<td class="l">
					<textarea class="h1" autocomplete="on" id="content" name="content" style="width:90%; height:300px;"><?=$noticeInfo["content"]?></textarea>
				</td>
			</tr>

		</table>

		<div class="btngroupcenter">
			<input type="button" class="button bigrounded blue jSubmit" value="확인" />
			<input type="button" class="button bigrounded blue jCancel" value="취소" />
		</div>

	</div>

</div>

<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/footer.php" ?>