<?php if(!defined('IN_SDCMS')) exit;?>{include file="top.php"}
<title>{if strlen($seotitle)>0}{$seotitle}_{/if}{$title}_{sdcms[web_name]}</title>
<meta name="keywords" content="{if strlen($seokey)>0}{$seokey}{else}{$title}{/if}">
<meta name="description" content="{if strlen($seodesc)>0}{$seodesc}{else}{$title}{/if}">
</head>

<body>
	
    {include file="head.php"}
    <div class="banner_inner" style="background:url({WEB_ROOT}theme/20170104/images/b00.jpg) no-repeat center;"></div>
    <div class="width container">
    	<div class="lefter">
        	<div class="left_title mts">
            	<h3>{get_catename(3)}</h3>
                <p>{get_cate_self($mycateename,3,'mycateename','')}</p>
            </div>
            
            <div class="left_border">
                <ul>
                    {sdcms:rp top="0" table="sd_category" where="followid=3" order="catenum,cateid"}
                    {php $sub_sonid=$rp[cateid]}
                    <li{is_active($rp[cateid],$parentid)}><a href="{cateurl($rp[cateid])}" title="{$rp[catename]}"><span class="am-icon-angle-right"></span>{$rp[catename]}</a></li>
                    {sdcms:rs top="0" table="sd_category" where="followid=$sub_sonid" order="catenum,cateid"}
                    <li class="small{is_active($rs[cateid],$parentid,' active')}"><a href="{cateurl($rs[cateid])}" title="{$rs[catename]}"{if $rs[isblank]==1} target="_blank"{/if}><span class="am-icon-angle-right"></span>{$rs[catename]}</a></li>
                    {/sdcms:rs}
                    {/sdcms:rp}
                </ul>
            </div>
            
        </div>
        <div class="righter">
        	<div class="subject">
            	<div class="fl">在线提交<span></span></div>
                <div class="fr">您的当前位置：<a href="{$webroot}">首页</a> > <a href="{U('home/form/index/','fid='.$fid.'')}" title="{$title}">{$title}</a> > 在线提交</div>
            </div>
        	<div class="page_show">
            	<!---->
                {if count($filter)>0}
                <div class="ui-filter ui-mb-15">
                    {foreach $filter as $rs}
                    <div class="ui-row">
                        <div class="ui-col-1 ui-filter-left">{$rs['field_title']}：</div>
                        <div class="ui-col-11 ui-filter-right">
                            <a href="{U('index','fid='.$fid.''.deal_filter($filter_data,$rs['field_key'],0).'')}"{if getint(F('get.'.$rs['field_key'].''),0)==0} class="active"{/if}>全部</a>
                            {if $rs['field_type']==14}
                            {php $table_=$rs['field_table']}{php $join_=$rs['field_join']}{php $where_=$rs['field_where']}{php $order_=$rs['field_order']}{php $value=$rs['field_value']}{php $label=$rs['field_label']}
                            {if $where_==''}{php $where_='1=1'}{/if}
                            {if $order_==''}{php $order_="$value desc"}{/if}
                            {sdcms:ra top="0" table="$table_" join="$join_" where="$where_" order="$order_"}
                            <a href="{U('index','fid='.$fid.''.deal_filter($filter_data,$rs['field_key'],$ra['.$value.']).'')}"{if getint(F('get.'.$rs['field_key'].''),0)==$ra['.$value.']} class="active"{/if}>{$ra['.$label.']}</a>
                            {/sdcms:ra}
                            {else}
                            {php $arr=explode(",",$rs['field_list'])}
                            {foreach $arr as $j=>$key}
                            {php $data=explode("|",$key)}
                            <a href="{U('index','fid='.$fid.''.deal_filter($filter_data,$rs['field_key'],$data[1]).'')}"{if getint(F('get.'.$rs['field_key'].''),0)==$data[1]} class="active"{/if}>{$data[0]}</a>
                            {/foreach}
                            {/if}
                        </div>
                    </div>
                    {/foreach}
                </div>
                {/if}
                <table class="ui-table ui-table-border ui-table-hover ui-table-striped ui-mb ui-mt">
                    <thead class="ui-thead-gray">
                        <tr>
                            {foreach $field as $key}
                            <th>{$key['field_title']}</th>
                            {/foreach}
                            <th width="120">发布日期</th>
                            <th width="100">操作</th>
                        </tr>
                    </thead>
                    <tbody>
                    {sdcms:rs pagesize="20" table="$tablename" where="$where" order="ordnum desc,id desc"}
                    {rs:eof}
                    <tr>
                        <td colspan="{php echo count($field)+3}">暂无数据</td>
                    </tr>
                    {/rs:eof}
                    <tr>
                        {foreach $field as $key}
                        {php $name=$key['field_key']}
                        <td>{$rs['.$name.']}</td>
                        {/foreach}
                        <td>{date('Y-m-d',$rs[createdate])}</td>
                        <td><a href="{U('form/show/','fid='.$fid.'&id='.$rs[id].'')}">查看明细</a></td>
                    </tr>
                    {/sdcms:rs}
                    </tbody>
                </table>
                <div class="ui-page ui-page-center ui-page-green ui-page-mid"><ul>{$showpage}</ul></div>
                <!---->
            </div>
        </div>
        <div class="clear"></div>
    </div>
     
    {include file="foot.php"}
    
</body>
</html>