<!--{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>自定义参数</cite></a>
      
      <div class="oe_searchbar layui-form item_forright">
        <div class="more_search_open"></div>
        <div class="layui-form-item">
          <div class="layui-inline">
            <div class="layui-form-label">参数名：</div>
            <div class="layui-input-inline">
              <input type="text" name="sname" id="sname" value="<!--{$sname}-->" class="layui-input">
            </div>
          </div>
          <div class="layui-inline">
            <div class="layui-form-label">关键词：</div>
            <div class="layui-input-inline">
              <input type="text" name="svalue" id="svalue" value="<!--{$svalue}-->" class="layui-input">
            </div>
          </div>
        </div>
      </div>
    </div>
    
    <div class="oe_tool_bar ft">
      <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>
  <!--//Top End -->
  
  
  <!--//search End -->
  </form>

  <div class="oe_table_wrap layui-form">
    
    <table class="layui-table">
      <thead>
        <tr>
          <th width="15%">参数名</th>
          <th width="18%">描述</th>
          <th>参数值</th>
          <th width="10%">操作</th>
        </tr> 
      </thead>
      
      <!--{if empty($item)}-->
      <tr>
        <td colspan="4" class="text_center">没有符合条件的信息</td>
      </tr>
      <!--{else}-->
      <!--{foreach $item as $volist}-->
      <tr>
        <td class="text_center"><!--{$volist.itemname}--></td>
        <td class="text_center"><!--{$volist.memo}--></td>
        <td><!--{$volist.itemvalue}--></td>
        <td class="text_center">
          <div class="btn_box">
            <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=edit&id=<!--{$volist.itemname}-->&<!--{$comeurl}-->" class="layui-btn layui-btn-xs layui-btn-normal">编辑</a>
          </div>
        </td>
      </tr>
      <!--{/foreach}-->
      <!--{/if}-->
    </table>
  </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>自定义参数</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">编辑参数</div>
    <div class="layui-card-body">
      <table class="oe_tbl_form layui-form">
        <tr>
          <th width="15%">参数名：</th>
          <td width="85%">
            <!--{$item.itemname}-->
          </td>
        </tr>
        <tr>
          <th>参数描述：</th>
          <td>
            <input type="text" name="memo" id="memo" class="layui-input input-300" value="<!--{$item.memo}-->" />
          </td>
        </tr>
        <tr>
          <th>参数值：</th>
          <td>
            <textarea name="itemvalue" id="itemvalue" class="layui-textarea" style="width:50%;height:120px;"><!--{$item.itemvalue}--></textarea>
            <span class="text_tip_inline">多个值用英文|隔开，格式为：数值#描述</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>