<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<title>发送消息</title>
<LINK href="<?=base_url()?>csdj/admin/images/admin.css" type="text/css" rel="stylesheet">
<SCRIPT type="text/javascript" src="<?=base_url()?>csdj/admin/js/admin.js?5566"></script>
<script src="<?=base_url()?>csdj/editor/kindeditor.js"></script>
</head>
<body style="margin:2px">
<form method="post" Name="myForm" action="<?=site_url('admin/msg/add')?>">
<table align="center" border="1" cellspacing="0" cellpadding="5" bordercolor="#A2DAE7" width="100%" style="border-collapse:collapse;"><tr><td align="center" colspan="2" class="title">给会员发送消息</td></tr>

<tr><td width="120" align="right"><strong><font color=red>＊</font> 发送方式：</strong></td>
<td width="830">
            <input onClick="document.getElementById('zus').style.display='none';document.getElementById('ids').style.display='';" id="zt1" type="radio" name="type" value="id"<?php if(!empty($ids)) echo ' checked';?>/><label for="zt1">按会员ID</label>&nbsp;&nbsp;
			<input onClick="document.getElementById('zus').style.display='';document.getElementById('ids').style.display='none';" id="zt2" type="radio" name="type" value="zu"<?php if(empty($ids)) echo ' checked';?>/><label for="zt2">按会员组</label>
</td>
</tr>
<tr id="ids"<?php if(empty($ids)) echo ' style="display:none"';?>><td align="right"><strong><font color=red>＊</font> 会员ID：</strong></td>
<td><input type="text" name="ids" value="<?=$ids?>" style="width:380px;">  多个用逗号隔开</td>
</tr>
<tr id="zus"<?php if(!empty($ids)) echo ' style="display:none"';?>><td align="right"><strong><font color=red>＊</font> 会员组：</strong></td>
<td><label><input type="checkbox" name="zu[]" value="0">普通会员</label>&nbsp;&nbsp;
<?php
			foreach ($userzu as $row) {
                    echo '<label><input type="checkbox" name="zu[]" value="'.$row->CS_ID.'">'.$row->CS_Name.'</label>&nbsp;&nbsp;';
			}	
?>
</td>
</tr>
<tr><td align="right"><strong><font color=red>＊</font> 消息标题：</strong></td>
<td><input type="text" name="name" value="" style="width:380px;">  消息标题</td>
</tr>
<tr><td align="right"><strong><font color=red>＊</font> 消息内容：</strong></td>
<td>
<textarea style="width:806px;height:250px" rows="5" name="neir" id="neir"></textarea>
<script type="text/javascript">FormEditor('neir');</script>
</td>
</tr>
<tr align="center"><td height="36" colspan="2">
<input type="submit" name="Submit" class="italk-bt" value=" 确定发送 "> <INPUT TYPE=BUTTON class="italk-bt" value=" 返 回 " onclick="history.back();"></td></tr>
</table>
</body>
</html>
