#set($title = "配信グループ編集")
#set($menukubun = "1")
#parse( "/WEB-INF/view/common/header_admin.vm" )
<SCRIPT language="JavaScript">
 <!--
 sent = false;
 function send_check(flg){
 	document.mainForm.checkFlg.value = flg;
	if (flg == '1') {
		document.forms[0].action="#q('/admin/member/deliveryGroupSearch/deliveryGroupRemake/')";
		document.forms[0].submit();
	} else {
		document.mainForm.submit();
	}
	return false;
 }

 function report(){
	location.href="#q('/admin/member/deliveryGroupSearch/memberGroupDownload/')";
 }
 // -->
</SCRIPT>
<script language="javascript" type="text/javascript" charset="utf-8">
<!--
	//開始日
	$(function() {
	  $('#fromDateStr').datepick({showTrigger: '#calFromDate'});
	});
// -->
</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">

<h3 class="table_title">配信グループ編集</h3>
#set($member-url = $tools.getSecureUrl('/admin/member/deliveryGroupSearch/deliveryGroupMemberEdit/'))
<form name="mainForm" action="$!member-url" method="post">
##<div id="search">
#if($!deliveryGroupSearchForm.checkFlg == "0")
#if($tools.getMsgs()!="")
<font color="red" size="2">入力エラーがあります。</font>
#end
#end
##<div class="clearfix">
<table border="0" cellspacing="4" cellpadding="0" class="stripe2 mgb10 w790">
	<tr>
		<td class="w110">グループ名</td>##30byte
		<td><input name="editGroupName" type="text" / class="w200" value="$!escape.html($!deliveryGroupSearchForm.editGroupName)">
		<BR>$tools.getMsg("editGroupName")
		</td>
	</tr>
	<tr>
		<td style="vertical-align:top" >メモ</td>
		<td>
	 		<textarea name="editMemo" cols="50"  rows="5" class="w250">$!deliveryGroupSearchForm.editMemo</textarea>
	 		<BR>$tools.getMsg("editMemo")
		</td>
	</tr>

</table>
<div class="btn_area2" style="width:840px;">
		<button class="button"  onclick="send_check('0'); return false;">更新</button>&nbsp;&nbsp;&nbsp;
		<a href="#" onclick="report(); return false;"><button class="button">会員リスト出力</button></a>
</div>
##</div>
##</div>
<br>
<h3 class="table_title">配信グループリスト再抽出</h3>
##<div id="search">
#if($!deliveryGroupSearchForm.checkFlg == "1")
#if($tools.getMsgs()!="")
<font color="red" size="2">入力エラーがあります。</font>
#end
#if($!tools.getMsg("Nomember")) <BR>$tools.getMsg("Nomember")
#end
#end
##<div class="clearfix">
<table border="0" cellspacing="4" cellpadding="0" class="stripe2 mgb10 w790">
	<tr>
		<td class="w110">対象リスト名</td>
		<td>
			<select name="targetList" id="targetList"  class="w410">
				<option value=""></option>
					#foreach($genreItem in $deliveryGroupList)
						#if($deliveryGroupSearchForm.targetList && $genreItem.deliveryGroupId == $deliveryGroupSearchForm.targetList)
							<option value="$!genreItem.deliveryGroupId" selected>#he($!genreItem.deliveryGroupName)</option>
						#else
							<option value="$!genreItem.deliveryGroupId">#he($!genreItem.deliveryGroupName)</option>
						#end

					#end
			</select>
		<BR>$tools.getMsg("targetList")
		</td>
	</tr>
	<tr>
		<td style="vertical-align:top" >新規リスト名</td>
		<td><input name="targetNewName" type="text" / class="w200" value="$!escape.html($!deliveryGroupSearchForm.targetNewName)">
		<BR>$tools.getMsg("targetNewName")
		</td>
	</tr>

</table>
<div class="btn_area2" style="width:840px;">
	<button class="button1" onclick="send_check('1'); return false;">上リストから下リストを引いた差を抽出</button>
</div>
##</div>
##</div>
<input type="hidden" name="checkFlg">
#makeToken()
</form>
</div>
</div>
<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" )