messageRegist.html 6.63 KB
Newer Older
Kim Gyeongeun committed
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
#set($title = "メッセージ設定")
#set($menukubun = "5")
#parse( "/WEB-INF/view/common/header_admin.vm" )

<script language="JavaScript" type="text/JavaScript">
     <!--
	$(function() {
		//開始日
		$('#startDate').datepick({showTrigger: '#calFromDate'});
		//終了日
		$('#endDate').datepick({showTrigger: '#calToDate'});

		messageChange();

	});

    function message_search()
    {
		document.forms[0].action="#q('/admin/setting/messageRegist/messageSearch/')";
		document.forms[0].submit();
	}

    function message_regist_confirm()
    {
		document.forms[0].action="#q('/admin/setting/messageRegist/messageRegistConfirm/')";
		document.forms[0].submit();
	}

    function OpenSrchWindow()
    {
		var url='#q("/admin/setting/messageRegist/mailResevedPopup/")';
		window.open(url, "userEditForm", "width=600px, height=512px,resizable=yes,scrollbars=yes ");
    }

	function messageChange(){

		 sel_type_index = document.forms[0].messageCd.selectedIndex;
38 39
		console.log(sel_type_index);
		 if(sel_type_index=="5" || sel_type_index=="6"){
Kim Gyeongeun committed
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
			 document.getElementById("expiredMessage").style.display ="";
			 document.getElementById("mailBody").style.display ="";
			document.getElementById("shinseiPeriod").style.display ="";
			document.getElementById("linkText").style.display ="";
		 }else{
			document.getElementById("expiredMessage").style.display ="none";
			document.getElementById("mailBody").style.display ="none";
			document.getElementById("shinseiPeriod").style.display ="none";
			document.getElementById("linkText").style.display ="none";
		}
	}

     // -->
</script>

<div id="contents">
<div id="contents_main">
<div id="breadcrumbsWrap">

</div><!--[ /breadcrumbsWrap ]-->
<div id="main" class="clearfix">

<h2 class="contents_title">メッセージ設定</h2>

<div id="right_contents">
#if($tools.getMsgs()!="")
<font color="red" size="2">入力エラーがあります。</font>
#end
#set($regist-url = $tools.getSecureUrl('/admin/setting/messageRegist/messageRegist/'))
<form name="mainForm" method="post" action="$!regist-url" >
<div id="search">
<table border="0" cellspacing="2" cellpadding="0" class="w790">
	<tr>
		<td class="w100">設定種別</td>
		<td>
			<select name="messageCd" id="messageCd" class="w58 mgl10" onChange="message_search();">
				<option value="1" #if($!messageRegistForm.messageCd == "1") selected #end>お知らせ</option>
				<option value="2" #if($!messageRegistForm.messageCd == "2") selected #end>会員登録完了メール</option>
				<option value="3" #if($!messageRegistForm.messageCd == "3") selected #end>現在回答可能なアンケート</option>
				<option value="4" #if($!messageRegistForm.messageCd == "4") selected #end>1%支援制度の状況</option>
				<option value="5" #if($!messageRegistForm.messageCd == "5") selected #end>パスワード確認</option>
Kim Gyeongeun committed
81
				<option value="6" #if($!messageRegistForm.messageCd == "6") selected #end>ポイント利用(満点エコボカード)</option>
82
				<option value="9" #if($!messageRegistForm.messageCd == "9") selected #end>ポイント利用(ICHICOポイント)</option>
83
				<option value="10" #if($!messageRegistForm.messageCd == "10") selected #end>カード郵送申請の完了メール</option>
Kim Gyeongeun committed
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
				<option value="7" #if($!messageRegistForm.messageCd == "7") selected #end>会員登録完了済みメール</option>
				<option value="8" #if($!messageRegistForm.messageCd == "8") selected #end>会員登録確認メール</option>
			</select>
		</td>
		<td class="w100">
		</td>
		<td>
			##<a href="#" onclick="message_search(); return false;"><img src="/em/images/enq_01_btn_03_off.jpg" width="100" height="35" alt="検索" /></a>
			<!-- <input type="button" class="button" value="読込" onclick="message_search();"/> -->
		</td>
	</tr>
</table>
</div><!--[ /search ]-->

<!--
<h3 class="table_title">メッセージ設定

<div class="btn_area1">
	<input type="button" class="button" onClick="OpenSrchWindow();" value="予約語挿入"/>
</div><br/>
</h3>
-->
<table border="0" cellspacing="0" cellpadding="0" class="stripe2 mgb10 w840">

	<tr>
109 110 111 112 113 114 115 116 117
		<td class="w130">メッセージ
		#if($!messageRegistForm.messageCd == "1"
		 || $!messageRegistForm.messageCd == "3"
		 || $!messageRegistForm.messageCd == "4"
		 || $!messageRegistForm.messageCd == "6"
		 || $!messageRegistForm.messageCd == "9")
		<img src="/em/images/html.jpg" width="12" height="12" alt="html" />
		#end
		</td>
Kim Gyeongeun committed
118 119
		<td>
			<textarea name="message" id="message" cols="45" rows="15" class="w610 mgt5">$!messageRegistForm.message</textarea>
120
			<BR>$!tools.getMsg("message")<BR>
Kim Gyeongeun committed
121 122 123 124 125 126 127 128 129 130 131 132 133
			<input type="button" class="button" onClick="OpenSrchWindow();" value="予約語挿入"/>
		</td>
	</tr>

	<tr id="expiredMessage">
		<td>期間外メッセージ<img src="/em/images/html.jpg" width="12" height="12" alt="html" /></td>
		<td>
			<textarea name="expiredMessage" cols="45" rows="15" class="w610">$!messageRegistForm.expiredMessage</textarea>
			<BR> $!tools.getMsg("expiredMessage")
		</td>
	</tr>

	<tr id="mailBody">
134
		<td>メール本文<img src="/em/images/html.jpg" width="12" height="12" alt="html" /></td>
Kim Gyeongeun committed
135 136
		<td>
			<textarea name="mailBody" cols="45" rows="15" class="w610">$!messageRegistForm.mailBody</textarea>
137
			<BR> $!tools.getMsg("mailBody")
Kim Gyeongeun committed
138 139 140 141 142 143
		</td>
	</tr>



	<tr id="shinseiPeriod">
144
		<td>申請受付期間</td>
Kim Gyeongeun committed
145 146 147 148 149 150 151 152 153 154 155 156
		<td>
			<input type="text" name="startDate" id="startDate" class="w150"  #if($messageRegistForm.startDate) value="$messageRegistForm.startDate" #else value="${tools.getToDay()}" #end/>
			<div style="display: none;"><img id="calFromDate" src="/em/images/icon_cal.gif" style="padding-left:5px;padding-right:5px; vertical-align: middle;"></div>
			<input type="text" name="endDate" id="endDate" class="w150" #if($messageRegistForm.endDate) value="$messageRegistForm.endDate" #else value="${tools.getToDay()}" #end />##$!{messageRegistForm.endDate}
			<div style="display: none;"><img id="calToDate" src="/em/images/icon_cal.gif" style="padding-left:5px;padding-right:5px; vertical-align: middle;"></div>
			<BR> $!tools.getMsg("dateError")
		</td>
	</tr>



	<tr id="linkText">
157
		<td>リンク表記<img src="/em/images/html.jpg" width="12" height="12" alt="html" /></td>
Kim Gyeongeun committed
158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180
		<td>
			<input type="text" name="linkText" class="w610" value="$!messageRegistForm.linkText"/>
			<BR> $tools.getMsg("linkText")
		</td>
	</tr>

</table>

<div class="btn_area2" style="width:840px;">
	<button class="button" onclick="message_regist_confirm(); return false;">入力内容確認</button>
</div>
</form>

</div><!--[ /right_contents ]-->
</div><!--[ /clearfix ]-->
<div id="contents_bottom">
<img src="/em/images/bg_contents_bottom.jpg" width="1036" height="15" /> </div> </div>
</div>

</div>
</div>

#parse( "/WEB-INF/view/common/footer_admin.vm" )