<!--{include file="admin/header.tpl"}-->
<form id="editForm" name="editForm" method="post" action="index.php?action=save" onsubmit="return validator(this)">
    <table class="table_form" cellpadding="2" cellspacing="1">
    	<caption>群发站内信</caption>
    	<tr>
        	<th width="17%">选择发送人：</th>
        	<td><input name="msg_to" type="text" id="msg_to" readonly="readonly" size="25" /> <input type="button" name="addBroker" value="所有经纪人" onclick="addReciever('[所有经纪人]')"><input type="button" name="addOwner" value="所有业主" onclick="addReciever('[所有业主]')"></td>
        </tr>
    	<tr>
        	<th width="17%">标题：</th>
        	<td><input name="msg_title" type="text" id="msg_title" size="50" class="inputtitle" /></td>
        </tr>
        <tr>
        	<th width="17%">内容：</th>
        	<td><textarea name="msg_content" rows="10" style="padding:6px; width:98%; line-height:17px;"/></textarea></td>
        </tr>
        <th></th>
        <td><input name="Submit" type="button" value=" 发送短信 " onclick="javascript:editForm.submit();" ></td>
    </table>
</form>
<script language="javascript" >
function addReciever(str){
	var msg_reciever = document.getElementById('msg_to');
	if(msg_reciever.value.indexOf(str)==-1){
		msg_reciever.value += ','+str;
	}
}

</script>
<!--{include file="admin/footer.tpl"}-->