{#include file="sys/admin_header.htm"#}
<div class="admin_main_nr_dbox">
 <div class="pagetit">
	<div class="ptit"> {#$pageheader#}</div>
	{#include file="sms/admin_sms_nav.htm"#}
  <div class="clear"></div>
</div>
<div class="toptip">
	<h2>提示：</h2>
				<p>短信模板请勿添加HTML。<br />
短信内容不能超过60个字符，超过将会自动删除多余字符。
</p>
		</div>
	<div class="toptit">编辑短信模板 <span style="color:#0033CC">{#$info.thisname#}</span></div>
  <form action="?act=templates_save" method="post"   name="form1" id="form1">
  {#$inputtoken#}
		<table width="500" border="0" cellspacing="0" cellpadding="5" style=" margin-top:6px; margin-left:15px;">
	 
	
		  <tr>
            <td> 
			{#foreach from=$label item=li#}			
			<div id="{#$li.0#}" class="sellabel">{#$li.1#}</div>
			{#/foreach#}			
			<div class="clear"></div></td>
          </tr>
		  <tr>
            <td><textarea name="templates_value" class="input_textarea_400" id="templates_value">{#$info.value#}</textarea></td>
          </tr>
			
          <tr>
            <td height="50">
			  <input name="templates_name" type="hidden" value="{#$info.name#}" />
              <input name="save" type="submit" class="admin_submit"    value="保存修改"/>
            
			 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <input name="submit22" type="button" class="admin_submit"    value="返 回" onclick="Javascript:window.history.go(-1)"/></td>
          </tr>
        </table>
  </form>
</div>
<script type="text/javascript" src="js/jquery.caretInsert.js"></script>
<script language="JavaScript" type="text/javascript"> 
(function($)
{
	$(".sellabel").hover(function(){$(this).css("background-color","#ffffff");},function()	{$(this).css("background-color","#F4FAFF");});

		
		 $('.sellabel').unbind("click").click(function(){ 
		 $('#templates_value').setCaret();
			 $('#templates_value').insertAtCaret($(this).attr("id"));
		 });

	 
})($);   
</script>  
{#include file="sys/admin_footer.htm"#}
</body>
</html>