49c60c5eab1bfbc8c902730d6bf39d54318f8378.svn-base
3.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<? 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 포맷 : 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" ?>