<!--{include file="<!--{$oetplpath}-->block_head.tpl"}-->

<!--{if $a == "run"}-->
<div class="layui-fluid oe_fluid">

  <form class="layui-form" id="mysearch" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
  <div class="oe_breadcrumb_box clearfix">
    <div class="layui-breadcrumb fl" lay-filter="breadcrumb" style="visibility: visible;">
      <a href="javascript:;">站点管理</a><span lay-separator="">/</span>
      <a><cite>SEO设置</cite></a>
    </div>
    
  </div>
  <!--//Top End -->
  
  <div class="oe_searchbar layui-form">
    <div class="more_search_open"></div>
    <div class="layui-form-item">
      <div class="layui-inline">
        <div class="layui-form-label">SEO标识：</div>
        <div class="layui-input-inline">
          <input type="text" name="smark" id="smark" value="<!--{$smark}-->" class="layui-input">
        </div>
      </div>
      <div class="layui-inline">
        <div class="layui-form-label">SEO名称：</div>
        <div class="layui-input-inline">
          <input type="text" name="sname" id="sname" value="<!--{$sname}-->" class="layui-input">
        </div>
      </div>
      <div class="layui-inline">
        <button class="layui-btn layui-btn-sm search" id="but_submit_search" lay-submit lay-filter="searchform2">
          <i class="layui-icon layui-icon-search"></i>
          搜索
          <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
        </button>
      </div>
    </div>
  </div>
  <!--//search End -->
  </form>

  <div class="oe_table_wrap layui-form">
    <div class="oe_tbl_tool clearfix">
      <div class="oe_gnbar clearfix">
        <div class="select btn fl">
          <input type="checkbox" name="allid[]" lay-skin="primary" title="全选/反选" lay-filter="selectAll">
        </div>
        <div class="btn fl" f="handle-array" data-form="myform">
        <i class="layui-icon layui-icon-edit"></i>
        <span>批量修改</span>
      </div>
      </div>
    </div>
    
    
    <form class="layui-form" id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
    <input type="hidden" name="a" id="a" value="update" />
    <table class="layui-table">
      <thead>
        <tr>
          <th width="7%">选择</th>
          <th width="15%">标识</th>
          <th width="13%">名称</th>
          <th width="19%">Meta标题</th>
          <th width="19%">Meta描述</th>
          <th width="19%">Meta关键词</th>
          <th>操作</th>
        </tr> 
      </thead>
      
      <!--{if empty($seo)}-->
      <tr>
        <td colspan="7" class="text_center">没有符合条件的信息</td>
      </tr>
      <!--{else}-->
      <!--{foreach $seo as $volist}-->
      <tr>
        <td class="check"><input type="checkbox" name="id[]" lay-skin="primary" value="<!--{$volist.id}-->" checked /></td>
        <td><!--{$volist.idmark}--></td>
        <td><!--{$volist.chname}--></td>
        <td>
          <input type="text" name="title_<!--{$volist.id}-->" id="title_<!--{$volist.id}-->" class="layui-input input-180" value="<!--{$volist.title}-->" />
        </td>
        <td>
          <input type="text" name="description_<!--{$volist.id}-->" id="description_<!--{$volist.id}-->" class="layui-input input-180" value="<!--{$volist.description}-->" />
        </td>
        <td>
          <input type="text" name="keyword_<!--{$volist.id}-->" id="keyword_<!--{$volist.id}-->" class="layui-input input-180" value="<!--{$volist.keyword}-->" />
        </td>
        <td class="text_center">
          <div class="btn_box">
            <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=edit&id=<!--{$volist.id}-->&<!--{$comeurl}-->" class="layui-btn layui-btn-xs layui-btn-normal">编辑</a>
          </div>
        </td>
      </tr>
      <!--{/foreach}-->
      <!--{/if}-->
    </table>
    </form>
    
    
  </div>
</div>
<!--{/if}-->

<!--{if $a == "edit"}-->
<div class="layui-fluid oe_fluid">

  <div class="oe_breadcrumb_box clearfix">
    <div class="layui-breadcrumb fl" lay-filter="breadcrumb" style="visibility: visible;">
      <a href="javascript:;">站点管理</a><span lay-separator="">/</span>
      <a><cite>SEO设置</cite></a>
    </div>
    <div class="oe_tool_bar ft">
      <button class="layui-btn layui-btn-sm layui-btn-radius" id="but_submit_post2" lay-submit lay-filter="editform2">
        编辑保存
        <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
      </button>
      <span class="layui-btn layui-btn-sm layui-btn-primary layui-btn-radius"><a href="<!--{$oefile}-->&c=<!--{$c}-->&<!--{$comeurl}-->">返回列表</a></span>
    </div>
  </div>
  
  <form class="layui-form" id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->&<!--{$comeurl}-->" method="post">
  <input type="hidden" name="a" id="a" value="saveedit" />
	<input type="hidden" name="id" id="id" value="<!--{$id}-->" />
  <div class="layui-card">
    <div class="layui-card-header">编辑SEO</div>
    <div class="layui-card-body">
      <table class="oe_tbl_form layui-form">
        <tr>
          <th width="15%">SEO标识：</th>
          <td width="85%">
            <!--{$seo.idmark}--> (<!--{$seo.chname}-->)
          </td>
        </tr>
        <tr>
          <th>Meta标题：</th>
          <td>
            <input type="text" name="title" id="title" class="layui-input input-300" value="<!--{$seo.title}-->" />
          </td>
        </tr>
        <tr>
          <th>Meta描述：</th>
          <td>
            <textarea name="description" id="description" class="layui-textarea" style="width:50%;height:90px;"><!--{$seo.description}--></textarea>
            <span class="text_tip_inline">（Meta描述尽量不要超过200个字）</span>
          </td>
        </tr>
        <tr>
          <th>Meta关键词：</th>
          <td>
            <textarea name="keyword" id="keyword" class="layui-textarea" style="width:50%;height:90px;"><!--{$seo.keyword}--></textarea>
            <span class="text_tip_inline">（Meta关键词，多个关键词请用英文逗号隔开）</span>
          </td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td>
            <span class="text_tip_inline">可用全局变量：{sitename}，{siteurl}标签</span>
          </td>
        </tr>
      </table>
    </div>
  </div>
  </form>
  
  <div class="oe_tbl_form_btn">
    <button class="layui-btn" id="but_submit_post" lay-submit lay-filter="editform2">
      编辑保存
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
  </div>
  
</div>
<!--{/if}-->
</body>
</html>