 <!-- include 'admin/header' -->
  <script src="<?= WEB_SITE_GLOBAL ?>js/charCount.js"></script>
 <script src="<?= WEB_SITE_GLOBAL ?>js/email.js"></script>
 <style>
form .counter{display:block;}
form .warning b{color:#600;font-size: 20px;}	
form .exceeded b{color:#e00;font-size: 20px;}
</style>
 
<body>
	<div class="mainLayout">
		<div class="mainMenu">
			<div class="menuItem">
				<a href="#" class="mLogo">CLD</a>
				<ul>
					<!-- include 'menu' -->
				</ul>
			</div>
		</div>
		<div class="warpContent">
			<div class="subMenu fL">
				<div class="menuItem">
					<ul>
						<li class="saeaTitle">邮件推广</li>
						<!-- include 'mailMenu' -->
					</ul>
				</div>
			</div>
			<div class="adminContent autoHeight">
				<legend>创建新短信</legend>
				<div class="mailSpread">
					<div class="mailCreate">
						<div class="viewForm  mailAutoHeigh">
						<!--短信-->
							<div class="smsBody">
								<div class="smsvcontent">
									<p class="colGreen">客户昵称您好！</p>
									<p class="smstext" name="contentHtml" ></p>
									<p class="colGreen">【纵横造价】</p>
								</div>
							</div>
						<!--短信-->
						</div>
						<div class="mailForm  mailAutoHeigh">
							<form action="/createSms" method="post">
							<div class="control-group">
		              <label class="control-label">短信类型</label>
		              <div class="controls">
								    <label class="radio inline" data-original-title="营销类短信创建并审批后，将由总部代发送" data-toggle="ctooltip" data-placement="right">
								    	<input type="radio" name=kind checked id="inlineradio2" value="1"> 营销
								    </label>
								    <label class="radio inline" data-original-title="通知类短信创建并审批后，将由本人确认发送" data-toggle="ctooltip" data-placement="right">
								    	<input type="radio" name="kind" id="inlineradio2" value="2"> 通知
								    </label>
		             	</div>
		            </div>
							<div class="control-group">
		              <label class="control-label">短信标题</label>
		              <div class="controls">
		                <input type="text" name="title" value="">
		             	</div>
		            </div>
								<div class="control-group">
		              <label class="control-label">短信正文</label>
		              <div class="controls">
		                <textarea name="content" id="content" style="width:90%;height:200px"></textarea>
		                <p><b class="colRed">短信每59个字（含客户昵称和签名）计费一条，客户昵称不确定，建议正文控制在60个字以内。</b></p>
		             	</div>
		            </div>
								<div class="control-group">
		              <label class="control-label">发送范围</label>
		              <div class="controls">
								    <label class="radio inline">
								    	<input type="radio" name="stype" checked  onclick="tabC(1,2)" value="1"> 个人标签
								    </label>
								    <label class="radio inline" >
								    <input type="radio" name="stype" onclick="tabC(2,1)"  value="2"> 地区
								    </label>
		             	</div>
		            </div>
		            <div class="control-group">
		              <div class="controls clearfix">
		              <ul class="cateList">
		              <li>
		              	<div id="tab1">
		              	<!-- loop tagList -->
			  			<label><span data-original-title="{{tagList' value.name}}" data-toggle="ctooltip" data-placement="right" class="contactsTag tagCol-0{{tagList' value.colorid}}">
			  			<input type="checkbox" name="tagId[]" value="{{tagList' value.tid}}"></span></label>
			  			<!-- endloop -->
			  			</div>
			  			<div id="tab2" style="display:none">
			  				
			  				<select name="did" >
			  				<!-- loop districtList -->
					    						    		<option value="{{districtList' value.id}}">{{districtList' value.name}}</option>
					    						    <!-- endloop -->
					    						    		
					    						    	</select>
			  				
			  			</div>
			  			
			  		</li>
			  		</ul>
		             	</div>
		            </div>
								
								<div class="control-group">
		              <div class="controls">
		              <input type="submit" class="button" value="创建短信">
		                
		             	</div>
		            </div>
							</form>
						</div>
					</div>
				</div>
			</div>
		</div>

<script type="text/javascript">autoFlashHeight();</script>	
</body>