EIOS/tpl/tpl_portfolio_show.html

73 lines
2.0 KiB
HTML
Raw Normal View History

2023-12-28 15:39:22 +03:00
<div class="row-fluid">
<div class="span12">
<h3 class="page-title">Структура анкет</h3>
<ul class="breadcrumb">
<li><a href="/">Главная</a><span class="divider">/</span></li>
<li class="active"><a href="/trudo/stranket/">Структура анкет</a></li>
</ul>
</div>
</div>
<div class="row-fluid">
<div class="span12">
{if count($info.blocks)}
{foreach from=$info.blocks item=ib}
<div class="row-fluid block_row" id="{$ib.id}"><div class="span12">
<div class="row-fluid">
<div class="widget green">
<div class="widget-title">
<h4><i class="icon-reorder"></i> {$ib.name} </h4>
<span class="tools">
<a href="javascript:;" class="icon-chevron-down"></a>
</span>
</div>
<div class="widget-body">
{if $ib.type==0}
<table class="table table-hover">
<thead><tr>
<th style="width:270px;"></th>
<th style="width:255px;"></th>
<th></th>
<th></th>
</tr></thead>
<tbody>
{foreach from=$ib.items item=bi name=foo}
{foreach from=$info.portfo[$ib.id][$bi.id] item=sa}
<tr>
<td>{$sa.data}</td>
<td colspan="2">{$sa.znach}</td>
<td></td>
</tr>
{/foreach}
{/foreach}
</tbody></table>
{else}
{for $block=0 to (count($info.portfo[$ib.id])-1)}
<table class="table table-hover">
<thead><tr>
<th style="width:270px;"></th>
<th style="width:255px;"></th>
<th></th>
<th></th>
</tr></thead>
<tbody>
{foreach from=$ib.items item=bi name=foo}
{if $info.portfo[$ib.id][$bi.id][$block].znach neq ""}
<tr>
<td>{$bi.name}</td>
<td colspan="2">{$info.portfo[$ib.id][$bi.id][$block].znach}</td>
<td></td>
</tr>
{/if}
{/foreach}
</tbody></table>
{/for}
{/if}
</div>
</div>
</div>
</div></div>
{/foreach}
{/if}
</div>
</div>