<!-- {include file="header.html"} -->
{fetch file="../static/scripts/date.js"}
<div id="currentPosition">
	<p>{lang your_current_position} {lang ads} &raquo; {lang keyword_adwords}</p>
</div>
<div id="rightTop"> 
    <h3>{lang keyword_adwords}</h3> 
    <ul class="subnav">
		<li><a href="spread.php"><span>{lang management}</span></a></li>
		<li><a class="btn1" href="spread.php?do=edit"><span>{lang add}</span></a></li>
    </ul>
</div>
<div class="info">
  <form action="" method="post" id="EditFrm" name="edit_frm">
  <input type="hidden" name="id" value="{$item.id}" />
  <input type="hidden" name="page" value="{$smarty.get.page}" />
  <input type="hidden" name="do" value="spread" />
    <table class="infoTable">
      <tr>
        <th class="paddingT15"> {lang words}{lang colon}</th>
        <td class="paddingT15 wordSpacing5">          
		<input class="infoTableInput2" name="data[spread][keyword_name]" value="{$item.keyword_name}" /><label class="field_notice">{lang show_name_n}</label>        </td>
      </tr>
      <tr>
        <th class="paddingT15"> {lang title}{lang colon}</th>
        <td class="paddingT15 wordSpacing5">          
		<input class="infoTableInput2" name="data[spread][title]" value="{$item.title}" /><label class="field_notice">{lang show_name_n}</label>        </td>
      </tr>
      <tr>
        <th class="paddingT15"> {lang show_status}{lang colon}</th>
        <td class="paddingT15 wordSpacing5">          
		<select class="querySelect" name="data[spread][status]" id="Status">
					{html_options options=$CheckStatus selected=$item.status}
				</select></td>
      </tr>
      <tr>
        <th class="paddingT15"> {lang link_url}</th>
        <td class="paddingT15 wordSpacing5">          
		<input class="infoTableInput2" name="data[spread][target_url]" value="{$item.target_url}" /></td>
      </tr>
      <tr>
        <th class="paddingT15">  {lang expire_date}{lang colon}</th>
        <td class="paddingT15 wordSpacing5"><input name="exp_date" id="date1" value="{$item.exp_date}" readonly/><span class="btn_calendar" id="calendar-date1"></span></td>
      </tr>
      <tr>
        <th class="paddingT15"> {lang content}</th>
        <td class="paddingT15 wordSpacing5">
        <textarea style="width:550px;height:50px;" name="data[spread][content]" class="mceEditor">{$item.content}</textarea>
        </td>
      </tr>
      <tr>
        <th></th>
        <td class="ptb20">
			<input class="formbtn" type="submit" name="save" value="{lang save}" />
		</td>
      </tr>
    </table>
  </form>
</div>
<!--{literal}-->
<script>
Calendar.setup({
	trigger    : "calendar-date1",
	animation  : false,
	inputField : "date1",
	onSelect   : function() { this.hide() }
});
</script>
<!--{/literal}-->
<!-- {include file="footer.html"} -->