 <!-- include 'admin/header' -->
 <script src="<?= WEB_SITE_GLOBAL ?>js/email.js"></script>
<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" >{{smsInfo.content}}</p>
									<p class="colGreen">【纵横造价】</p>
								</div>
							</div>
						<!--短信-->
						</div>
						<div class="mailForm  mailAutoHeigh">
							<form action="/editSms" method="post">
							<input type="hidden" name="sid" value="{{smsInfo.sid}}" >
							<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 <!-- if {{smsInfo.kind}}==1 --> checked <!-- endif --> id="inlineradio2" value="1"> 营销
								    </label>
								    <label class="radio inline" data-original-title="通知类短信创建并审批后，将由本人确认发送" data-toggle="ctooltip" data-placement="right">
								    	<input type="radio" name="kind" <!-- if {{smsInfo.kind}}==2 --> checked <!-- endif --> 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="{{smsInfo.title}}">
		             	</div>
		            </div>
								<div class="control-group">
		              <label class="control-label">短信正文</label>
		              <div class="controls">
		                <textarea name="content" id="content" style="width:90%;height:200px">{{smsInfo.content}}</textarea>
		                <p>长度为<b>2</b>个字（不含客户昵称和签名）</p>
		                <p><b class="colRed">短信每67个字计费一条，建议不超过200字，正文应精简为佳。</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" <!-- if !empty({{smsInfo.tag}}) --> checked <!-- endif --> onclick="tabC(1,2)" value="1"> 个人标签
								    </label>
								    <label class="radio inline" >
								    <input type="radio" name="stype" <!-- if !empty({{smsInfo.districtId}}) --> checked <!-- endif --> onclick="tabC(2,1)"  value="2"> 地区
								    </label>
		             	</div>
		            </div>
		            <div class="control-group">
		              <div class="controls clearfix">
		              <ul class="cateList">
		              <li>
		              	<div id="tab1" <!-- if empty({{smsInfo.tag}}) --> style="display:none" <!-- endif -->>
		              	{{tagHtml}}
			  			</div>
			  			<div id="tab2" <!-- if empty({{smsInfo.districtId}}) --> style="display:none" <!-- endif --> >
			  				
			  				<select name="did" >
			  				{{districtHtml}}				    		
					    	</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>