Statistics
| Branch: | Revision:

m2u-upass-admin / WebContent / jsp / ss105_content / ibssEditNotice.jsp @ 40:e570ae77ee76

History | View | Annotate | Download (7.05 KB)

1
<%@ taglib uri="/WEB-INF/tld/struts-html-el" prefix="htmlEL" %>
2
<%@ taglib uri="/WEB-INF/tld/struts-bean" prefix="bean" %>
3
<%@ taglib uri="/WEB-INF/tld/c" prefix="c" %>
4
<%@ taglib uri="/WEB-INF/tld/struts-html" prefix="html"%>
5

    
6
<%@page import="java.util.HashMap"%>
7
<script type="text/javascript" src="../js/tiny_mce/tiny_mce.js"></script>
8
<script type="text/javascript" src="../js/tiny_mce/tiny_mce.js"></script>
9
<script language="javascript" type="text/javascript">
10
tinyMCE.init({
11
	mode : "textareas",
12
	theme : "advanced",
13
	editor_selector :"mceEditor",
14
	theme_advanced_buttons1 :"bold, italic, underline",
15
	theme_advanced_buttons2 :"",
16
	theme_advanced_buttons3 :"",
17
	theme_advanced_buttons4 :"",
18
	theme_advanced_toolbar_align : "left",
19
	theme_advanced_toolbar_location : "top"
20
});
21
</script>
22

    
23

    
24
<h3 class="title"><STRONG><bean:message key="title_sub_edit_notice"/></STRONG></h3><br/>
25
<table id="errorTable">
26
<tr>
27
	<td>
28
		<span id="serverSideError" class="error"><jsp:include flush="true" page="/jsp/errorHandler.jsp"></jsp:include></span>
29
	</td>
30
</tr>
31
</table>
32
<htmlEL:form action="/ss105/updateNotice.do">
33
<table class="stepTable">
34
<tr>
35
<td>&nbsp;</td>
36
<td><div id="steps"><span><bean:message key="general.title.steps" arg0="1" arg1="2"/></span></div></td>
37

    
38
</tr>
39
</table>
40
<table class="tabularForm">
41
	<tr><td colspan="3">&nbsp;</td></tr>
42
	<tr>	
43
		<td width="10%">&nbsp;</td>
44
		<td><bean:message key="content_account_status_category"></bean:message>:</td>
45
		<td><strong><c:out value="${contentForm.map.categoryName}"/></strong></td>
46
	</tr>
47
	<tr>
48
		<td width="10%">&nbsp;</td>
49
		<td><bean:message key="content_notice_title"></bean:message>:</td>
50
		<td>
51
			<strong><c:out value="${contentForm.map.noticeTitle}"/></strong>
52
			<htmlEL:hidden name="contentForm" property="noticeTitleOri" value="${contentForm.map.noticeTitleOri}" />
53
		</td>
54
	</tr>
55
	<tr>
56
		<td width="10%">&nbsp;</td>
57
		<td style="vertical-align:top;"><bean:message key="content_notice_abstract"></bean:message>:</td>
58
		<td><htmlEL:textarea property="noticeAbstract" name="contentForm" /></td>
59
	</tr>
60
	<c:if test="${secondLanguageSupportViewBean.map.secondLanguageSupportView eq true}"> 
61
	<tr>
62
		<td width="10%">&nbsp;</td>
63
		<td style="vertical-align:top;"><bean:message key="content_notice_abstract_ML"></bean:message>:</td>
64
		<td><htmlEL:textarea property="noticeAbstractML" name="contentForm"/></td>
65
	</tr>
66
	</c:if>
67
	<tr>
68
		<td width="10%">&nbsp;</td>
69
		<td><bean:message key="content_notice_description"/>:</td>
70
		<td><htmlEL:textarea property="noticeDescription" name="contentForm" styleClass="mceEditor"/></td>
71
	</tr>
72
	<c:if test="${secondLanguageSupportViewBean.map.secondLanguageSupportView eq true}"> 
73
	<tr>
74
		<td width="10%">&nbsp;</td>
75
		<td><bean:message key="content_notice_description_ML"/>:</td>
76
		<td><htmlEL:textarea property="noticeDescriptionML" name="contentForm" styleClass="mceEditor"/></td>
77
	</tr>
78
	</c:if>
79
	<tr>
80
		<td width="10%">&nbsp;</td>
81
		<td><bean:message key="content_notice_external_url"/>:</td>
82
		<td><htmlEL:text property="noticeExtUrl" name="contentForm" autocomplete="off" maxlength="255" size="47"/></td>
83
	</tr>
84
	<tr>
85
		<td width="10%">&nbsp;</td>
86
		<td><bean:message key="content_notice_start_date"/>:</td>
87
		<td><htmlEL:text property="noticeStartDate" name="contentForm" autocomplete="off" maxlength="10" styleId="datepicker1"/>&nbsp;&nbsp;<strong><bean:message key="general.format.date.sample" /></strong></td>
88
	</tr>
89
	<tr>
90
		<td width="10%">&nbsp;</td>
91
		<td><bean:message key="content_notice_end_date"/>:</td>
92
		<td><htmlEL:text property="noticeEndDate" name="contentForm" autocomplete="off" maxlength="10" styleId="datepicker2"/>&nbsp;&nbsp;<strong><bean:message key="general.format.date.sample" /></strong></td>
93
	</tr>
94
	<tr>
95
		<td width="10%">&nbsp;</td>
96
		<td><bean:message key="content_notice_type"/>:</td>
97
		<td>
98
			<htmlEL:select property="noticeType" name="contentForm">
99
				<htmlEL:option value="A"><bean:message key="content_notice_announcement"/></htmlEL:option>
100
				<htmlEL:option value="P"><bean:message key="content_notice_promotion"/></htmlEL:option>
101
			</htmlEL:select>
102
		</td>
103
	</tr>
104
	<tr>
105
		<td width="10%">&nbsp;</td>
106
		<td><bean:message key="content_status"/>:</td>
107
		<td>
108
			<htmlEL:select property="status" name="contentForm">
109
				<htmlEL:option value="0"><bean:message key="content_online_selection"/></htmlEL:option>
110
				<htmlEL:option value="1"><bean:message key="content_offline_selection"/></htmlEL:option>
111
			</htmlEL:select>
112
		</td>
113
	</tr>
114
	<tr>
115
		<td width="10%">&nbsp;</td>
116
		<td>Flag:</td>
117
		<td>
118
			<htmlEL:select property="announPromoFlag" name="contentForm">
119
				<htmlEL:option value="E">-</htmlEL:option>
120
				<htmlEL:option value="H">HOT</htmlEL:option>
121
				<htmlEL:option value="N">NEW</htmlEL:option>
122
			</htmlEL:select>
123
		</td>
124
	</tr>
125
	<tr>
126
		<td width="10%">&nbsp;</td>
127
		<td><bean:message key="content_notice_application"/>:</td>
128
		<td>
129
			 <htmlEL:checkbox styleId="checkRib" property="noticeApplicationRibId" value="2" onclick="checkBoxRib();" >RIB</htmlEL:checkbox>
130
			 <html:hidden styleId="checkRibVal" name="contentForm" property="noticeApplicationRibId" /> &nbsp;
131
			<htmlEL:checkbox styleId="checkBib" property="noticeApplicationBibId" value="3" onclick="checkBoxBib();" >BIB</htmlEL:checkbox>
132
			 <html:hidden styleId="checkBibVal" name="contentForm" property="noticeApplicationBibId" />
133
		</td>
134
	</tr>
135
	<tr><td colspan="3">&nbsp;</td></tr>
136
</table>
137
<div class="floatRight" style="direction: rtl;text-align: right;">
138
	<htmlEL:submit property="action" onclick="overlay();">
139
		<bean:message key="general.button.update"/>						
140
	</htmlEL:submit>
141
	<htmlEL:cancel property="action" onclick="overlay();">
142
		<bean:message key="general.button.back"/>						
143
	</htmlEL:cancel>
144
</div>
145
</htmlEL:form>
146
<script type="text/javascript">
147
$(function() {
148
	$("#datepicker1").datepicker({
149
		showOn: 'button',
150
		dateFormat: 'dd/mm/yy',
151
		buttonImage: '../images/calendar.gif',
152
		buttonImageOnly: true,
153
		minDate: '-2Y', maxDate: '+2Y',
154
		onSelect : function(selectedDate) {
155
			var today = new Date();
156
			today = today.getDate() + "/" + today.getMonth() + "/" + today.getFullYear();
157
			if (selectedDate > today)
158
			{
159
				$("#datepicker2").datepicker("option", "minDate", selectedDate);
160
			}
161
		}
162
		});
163
	$("#datepicker2").datepicker({
164
		showOn: 'button',
165
		dateFormat: 'dd/mm/yy',
166
		buttonImage: '../images/calendar.gif',
167
		buttonImageOnly: true,
168
		minDate: '-0D', maxDate: '+2Y',
169
		onSelect : function(selectedDate) {
170
			$("#datepicker1").datepicker("option", "maxDate", selectedDate);
171
		}
172
	});
173
});
174

    
175
function checkBoxRib() {
176
	var checkRib = document.getElementById("checkRib");
177
	var checkRibVal = document.getElementById("checkRibVal");
178
	if (checkRib.checked == false) {
179
		checkRibVal.value = '';
180
	
181
	} else {
182
		checkRibVal.value = '2';
183
	}
184
}
185

    
186
function checkBoxBib() {
187
	var checkBib = document.getElementById("checkBib");
188
	var checkBibVal = document.getElementById("checkBibVal");
189
	if (checkBib.checked == false) {
190
		checkBibVal.value = '';
191
		
192
	} else {
193
		checkBibVal.value = '3';
194
	}
195
}
196
</script>