<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>{$GLOBALS['cfg_webname']}-站内短消息</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="会员中心">
    <meta name="author" content="歪酷CMS">
    <link href="__PUBLIC__/User/css/bootstrap.min.css" rel="stylesheet">
    <style type="text/css">
      body {
        padding-top: 60px;
        padding-bottom: 40px;
      }
      .sidebar-nav {
        padding: 9px 0;
      }
    </style>
    <link href="__PUBLIC__/User/css/bootstrap-responsive.min.css" rel="stylesheet"/>
	<link href="__PUBLIC__/Editor/kindeditor/themes/default/default.css" type="text/css" rel="stylesheet">
  </head>
  <body>
    <include file="Public:head"/>
    <div class="container-fluid">
      <div class="row-fluid">
       <include file="Public:left"/>
		<div class="span9">
			<div class="navbar">
				<div class="navbar-inner">
					<a class="brand">短消息</a>
					<ul class="nav">
		<li><a href="{:U('Index/msg')}">收件箱</a></li>
		<li><a href="{:U('Index/msg_put')}">发件箱</a></li>
		<li class="active"><a href="{:U('Index/msg_send')}">发送短消息</a></li>
		</ul>
				</div>
			</div>
		</div>
         <div class="span9" style='border:1px solid #ccc;margin-bottom:10px;'>
		 <div style="padding:20px">
		<form class="form-horizontal" name="UserReg" action="{:U('Index/domsg_send')}" onsubmit="return CheckForm()" method="post">
		<div class="control-group">
			<label class="control-label" for="inputEmail">短消息标题</label>
			<div class="controls">
				<input type="text" name="title" id="title" placeholder="输入标题..."/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="inputEmail">收件人(用户名)</label>
			<div class="controls">
				<input type="text" name="username" id="username" placeholder="输入用户名..."/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="inputEmail">短消息内容</label>
			<div class="controls">
				<textarea  name="msg" id="msg" placeholder="输入内容..." style="width:300px;height:100px;"></textarea>
			</div>
		</div>
		<?php if(C('SOFT_VERIFY') <>1):?>
		<div class="control-group">
			<label class="control-label" for="inputEmail">验证码</label>
			<div class="controls">
				<input class="input-mini" type="text" name="verify" id="verify" style="text-transform:uppercase;"/><img src="{:U('Public/verify')}" alt="看不清楚请点击刷新验证码" style="cursor : pointer;border:1px solid #ccc;margin-left:2px;" onclick="show(this)"/>
			</div>
		</div>
		<?php endif;?>
		<div class="control-group">
			<div class="controls">
				<button type="submit" class="btn btn-primary btn-large">发送</button>
				<button type="reset" class="btn btn-inverse btn-large">重置</button>
			</div>
		</div>
		</form>
		</div></div>
	 </div>
      <hr/>
    <include file="Public:footer"/>
    </div>
	<script charset="utf-8" src="__PUBLIC__/Common/Jquery/Jquery.js"></script>
	<script charset="utf-8" src="__PUBLIC__/Common/artDialog/jquery.artDialog.js?skin=twitter"></script>
	<script charset="utf-8" src="__PUBLIC__/Common/artDialog/extend.js"></script>  
	<script charset="utf-8" src="__PUBLIC__/Editor/kindeditor/kindeditor-min.js"></script>
<script charset="utf-8" src="__PUBLIC__/Editor/kindeditor/lang/zh_CN.js"></script>
<script>
function show(obj){
obj.src="{:U('Public/verify?random=1')}"+ Math.random();
}
	function CheckForm()
	{ 
		if(EmptyCheckForm('title','标题不能为空!',''))return false;
		if(EmptyCheckForm('username','用户名不能为空!',''))return false;
		if(EmptyCheckForm('msg','短消息内容不能为空!',''))return false;
		<?php if(C('SOFT_VERIFY') <>1):?>
		if(EmptyCheckForm('verify','验证码不能为空!',''))return false;
		<?php endif;?>
	}
	function EmptyCheckForm(id,value,set)
	{
		if($('#'+id).val()==set)
		{
			$.dialog({icon:'warning',content:value,ok:function(){ $('#' + id).focus();}});return true;
		}
		return false;
	}
</script>
  </body>
</html>
