<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="{$BASE_V}layout.css" rel="stylesheet" type="text/css" />
<title>酒店分销联盟管理系统</title>
<script type="text/javascript" src="{$BASE}js/tools.js"></script>
<script type="text/javascript" src="{$BASE_V}keywords.js"></script>
</head>
<body>

<div style="z-index: 1; right: 20px; top: 30px; color: rgb(255, 255, 255); position: absolute; display: none;" id="loading"><img src="{$BASE_V}images/loader.gif"></div>

<div id="main">
  <div class="main_box">    
<!--{if $action == 'add' }-->    
<h2>修改页面关键字</h2>
<form name="modform" id="forms" action="{PHP_SELF}?m=keywords.save" method="post"  onSubmit="return chkForm();">
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="t_list">
       <tbody><tr>
        <td width="100" class="td_right">页面名：</td>
        <td class="td_left"><input type="text" size="40" value="$editinfo[k_pagename]" id="pagename" name="pagename">
         </td>
      </tr>
      <tr>
        <td width="100" class="td_right">文件名：</td>
        <td class="td_left">{if $editinfo[k_id] > 0}$editinfo[k_page]{else}<input type="text" size="40" value="$editinfo[k_page]" id="page" name="page">{/if}
         </td>
      </tr>
      <tr>
        <td class="td_right">页面标题：</td>
        <td class="td_left"><textarea id="title" rows="5" cols="60" name="title">$editinfo[k_title]</textarea></td>
      </tr>
  <tr>
        <td class="td_right">页面关键字：</td>
        <td class="td_left"><textarea id="keywords" rows="5" cols="60" name="keywords">$editinfo[k_keywords]</textarea></td>
      </tr>
  <tr>
        <td class="td_right">页面描述：</td>
        <td class="td_left"><textarea id="description" rows="5" cols="60" name="description">$editinfo[k_description]</textarea></td>
      </tr>
  <tr>
        <td class="td_right">规则：</td>
        <td class="td_left">{if $editinfo[k_id] > 0}$editinfo[k_rule]{else}<input type="text" size="78" value="$editinfo[k_rule]" id="rule" name="rule">{/if}
         </td>        
      </tr>
      <tr>
        <td class="td_right">&nbsp;</td>
        <td class="td_left">
        <input type="hidden" value="$editinfo[k_id]" name="k_id">
        <input type="submit" value="提交" id="submit" onmouseout="this.className='btn05'" onmouseover="this.className='btn06'" class="btn05" name="submit">
        <input type="reset" class="btn05" value="清除" name="reset_button" onmouseout="this.className='btn05'" onmouseover="this.className='btn06'">
        <input type="button" value="返回" onclick="history.back(1);" class="btn05" id="backbutton" name="backbutton" onmouseout="this.className='btn05'" onmouseover="this.className='btn06'">
        </td>
      </tr>
    
    </tbody>
</table> 
</form>
<!--{/if}-->
    
<!--{if $action == 'index' }-->
    <h2>页面关键字管理</h2>
    <table width="100%" cellspacing="0" cellpadding="0" border="0" class="t_list">
      <tbody>
      <tr>
        <th width="5%">编号</th>
        <th width="32%">页面名称</th>
        <th width="38%">页面地址</th>
        <th width="18%">修改日期</th>
        <th width="10%">管理</th>
      </tr>
	  <!--{if $ErrorMsg}-->
	  <tr>
	    <td height=23 colspan=8 class=forumRowHigh align=center>$ErrorMsg</td>
	  </tr>
	  <!--{/if}-->      
      <!--{loop $rs $k $v}-->
      <tr onmouseout="this.style.background='#fff'" onmouseover="this.style.background='#f6f9fd'" style="background: none repeat scroll 0% 0% rgb(255, 255, 255);">
      
      <td>$v[k_id]</td>
      <td class="td_left">$v[k_pagename]</td>
      <td class="td_left"><a href="{PHP_SELF}?m=keywords.add&amp;k_id=$v[k_id]">$v[k_page]</a></td>
      <td>$v[time]</td>      
      <td><a href="{PHP_SELF}?m=keywords.add&amp;k_id=$v[k_id]">管理</a></td>
      </tr>
      <!--{/loop}-->      
      
      </tbody></table>
      {$page}
<!--{/if}-->     
	</div>
</div>
</body>
</html>