<script defer>show_hide_columns('id_of_table{$cgrid_prefix}', {$DETAILS_COLS}, false, {$ASU_CAB_COL_NUM+1});</script>
|
|
{if $is_search || $is_checks}<form action="{$GRID_LINK}" method="post" onsubmit="return false;">{/if}
|
<input id="{$cgrid_prefix}SELECTED" type="hidden" value=""/>
|
<table summary="T" style="border:1px #666 solid;" width="100%" id="id_of_table{$cgrid_prefix}">
|
{if $TPL_PAGES}<tr><td valign="top" colspan="{if $is_back||$is_export||$is_import||$is_delete}{$ASU_CAB_COL_NUM+1}{else}{$ASU_CAB_COL_NUM}{/if}">{include file=$TPL_PAGES}</td></tr>{/if}
|
<tr><td class="td_title" style="width:60px;" align="center" colspan="{if $is_back||$is_export||$is_import||$is_delete}{$ASU_CAB_COL_NUM+1}{else}{$ASU_CAB_COL_NUM}{/if}"><span style="font-weight: bold;">{$NameTable}</span></td></tr>
|
<tr>
|
<td class="fixed" style="width:60px;" align="center">
|
{if $is_add}<button type="button" class="btn btn-info" onclick="location.href='{$GRID_LINK}&act_adm=1';" title="{$cgrid_add}"><span class="glyphicon glyphicon-plus"></span></button>{/if}
|
{if $is_refresh}<a href="{$GRID_LINK}&act_adm=7" title="{$cgrid_refresh}" ><img src="Icons/refresh.GIF" alt="{$cgrid_refresh}" /></a>{/if}
|
{if $is_print}<button type="button" class="btn btn-info" onclick="location.href='{$GRID_LINK}&act_adm=9&page_act=0&page={$PAGE}&page_set={$PAGE_SET}';" title="{$cgrid_print}"><span class="glyphicon glyphicon-print"></span></button>{/if}
|
</td>
|
<td class="fixed" width="98%" colspan="{if $is_back||$is_export||$is_import||$is_delete}{$ASU_CAB_COL_NUM}{else}{$ASU_CAB_COL_NUM-1}{/if}" align="left" valign="baseline">
|
<div style="float:left;display:inline;width:350px;" align="left">{if $is_search}{$cgrid_search}: <input type="text" {if $aj_search}onkeypress="if (event.keyCode==13){$aj_search}"{/if} id="{$search_name}" name="{$search_name}" value="{$search}" style="width:100px;">
|
{if $aj_search}<button type="button" class="btn btn-info" id="a_search" onclick="{$aj_search} return false;" title="{$cgrid_search}"><span class="glyphicon glyphicon-search"></span></button>{else}<input type="image" src="images/search.gif" style="border:0;background-color:transparent;margin:0;padding:0;" title="{$cgrid_search}">{/if}
|
{if $DETAILS_COLS!='[]'} {$cgrid_view_det}: <div id="div_{$cgrid_prefix}Details" class="checkbox_unchecked"><input id="{$cgrid_prefix}Details" type="checkbox" name="{$cgrid_prefix}Details" title="{$cgrid_view_det}" onclick="if (!this.checked) show_hide_columns('id_of_table', {$DETAILS_COLS}, false, {$ASU_CAB_COL_NUM+1}); else show_hide_columns('id_of_table', {$DETAILS_COLS}, true, {$ASU_CAB_COL_NUM+1}); CheckThis(this);" value='show'></div>{/if}{else} {/if}</div>
|
<!--<div style="margin-top:10px;" align="left"></div>-->
|
</td>
|
</tr>
|
|
<tr class="fixed" align="center">
|
{section name=sec loop=$ASU_CAB_NAMES}
|
{if !$ASU_CAB_IS_COMMON[$smarty.section.sec.index_prev]}
|
<td style="font-size:small;font-weight: normal;" {if $ASU_CAB_IS_COMMON[sec]}colspan="{$ASU_CAB_IS_COMMON[sec][0]}"{else}{if $ASU_CAB_IS_EXIST_COMMON && !$ASU_CAB_IS_COMMON[$smarty.section.sec.index_prev][0]} rowspan="2"{/if}{/if}>
|
{if $is_checks && $smarty.section.sec.rownum==1}
|
<div id="div_{$cgrid_prefix}select-all" class="checkbox_unchecked"><input type="checkbox" id="{$cgrid_prefix}select-all" title="Check All" onclick="CheckAll(this, 'ids')" /></div>
|
{elseif $ASU_CAB_IS_COMMON[sec]}
|
{$ASU_CAB_IS_COMMON[sec][1]}
|
{else}
|
<a href="#" class="cgrid_sort" onclick="var s='{$aj_sort}'.replace('#sort#', '[{$smarty.section.sec.rownum},\''+this.innerHTML+'\']'); s+='0);';/*alert(s);*/eval(s);return false;">{$ASU_CAB_NAMES[sec]}</a>
|
{/if}
|
</td>
|
{/if}
|
{/section}
|
{if $is_back||$is_export||$is_import||$is_delete}<td width="6%">
|
{if $is_back}<a href="{$BACK_LINK}"><img src="images/return.png" alt="{$cgrid_back}" /></a>{/if}
|
{if $is_export}<a href="{$GRID_LINK}&act_adm=4&page_act=0&page={$PAGE}&page_set={$PAGE_SET}" target="_blank" title="{$cgrid_export}"><img src="Icons/copyto2.GIF" alt="{$cgrid_export}" /></a>{/if}
|
{if $is_import}<a href="{$GRID_LINK}&act_adm=5" title="{$cgrid_import}"><img src="Icons/copyto3.GIF" alt="{$cgrid_import}" /></a>{/if}
|
{if $is_delete}<button type="button" class="btn btn-info" onclick="location.href='{$GRID_LINK}&act_adm=10'";return false;" title="{$cgrid_del_all}"><span class="glyphicon glyphicon-trash"></span></button>{/if}
|
</td>{/if}
|
</tr>
|
|
{if $FILTRES}
|
<tr class="fixed" align="center">
|
{foreach from=$FILTRES item=filtr}<td>{$filtr}</td>{/foreach}
|
{if $is_back||$is_export||$is_import||$is_delete}<td> </td>{/if}
|
</tr>
|
{/if}
|
|
{foreach from=$GRID_RESULTS item=col key=iter name=fiter0}
|
<tr id="{$cgrid_prefix}tr{$iter}_{$PAGE}">
|
{foreach from=$col item=row key=iter2 name=fiter}
|
<td id="{$cgrid_prefix}td{$iter}_{$PAGE}_{$iter2}" {if $ASU_CAB_RESULTS_NUMIRATION && $iter2==0}class="fixed"{else}class="notfixed"{/if} align="center" {if $COL_WIDTHS[$iter2]}width="{$COL_WIDTHS[$iter2]}"{/if}>
|
{if $is_checks && $iter2==0}
|
<div id="div_{$cgrid_prefix}cb{$row}" class="checkbox_unchecked"><input type="checkbox" name="ids" onclick="CheckCB(this);" id="{$cgrid_prefix}cb{$row}"></div>
|
{elseif $ASU_CAB_RESULTS_NUMIRATION && $iter2==0}
|
{$iter+1}
|
{elseif $GADGETS[$iter2]}
|
{$row}
|
{if $GADGETS[$iter2][0] == 'comment' && $is_comment && $col[$smarty.foreach.fiter.iteration]}
|
<img src="Icons/comment.png" align="right" title="{$cgrid_comment}" id='{$cgrid_prefix}p{$smarty.foreach.fiter0.iteration}' onmouseover="if (document.getElementById('vp{$ASU_CAB_RESULTS_ID[$iter]}').innerHTML == '') xajax_GetComment({$ASU_CAB_RESULTS_ID[$iter]}, {$smarty.foreach.fiter.iteration}, 'vp{$ASU_CAB_RESULTS_ID[$iter]}'); vis('p{$smarty.foreach.fiter0.iteration}', 'vp{$ASU_CAB_RESULTS_ID[$iter]}', false, 200, -1)" onmouseout="hide('vp{$ASU_CAB_RESULTS_ID[$iter]}')" />
|
<div id='{$cgrid_prefix}vp{$ASU_CAB_RESULTS_ID[$iter]}' style='display:none' class="i"></div>
|
{elseif $GADGETS[$iter2][0] == 'file' && $is_download}
|
<a href="{$GRID_LINK}&act_adm=11&id={$ASU_CAB_RESULTS_ID[$iter]}&colnum={$GADGETS[$iter2][1]}" title="{$cgrid_down}">
|
{if substr($row, strpos($row, '.')+1, 3) == 'doc'}
|
<img src="Icons/doc.png" align="right" alt="{$cgrid_down}"/>
|
{elseif substr($row, strpos($row, '.')+1, 3) == 'pdf'}
|
<img src="Icons/pdf.png" align="right" alt="{$cgrid_down}"/>
|
{elseif substr($row, strpos($row, '.')+1, 3)}
|
<img src="Icons/exe.png" align="right" alt="{$cgrid_down}"/>
|
{/if}
|
</a>
|
{/if}
|
{else}
|
{$row}
|
{/if}
|
</td>
|
{/foreach}
|
|
{if $is_view || $is_edit || $is_delete || $is_play}
|
<td class="notfixed" style="width:80px;">
|
{if $is_view}<a href="{$GRID_LINK}&act_adm=6&id={$ASU_CAB_RESULTS_ID[$iter]}" title="{$cgrid_view}"><img src="Icons/kart.GIF" alt="{$cgrid_view}" /></a>{/if}
|
{if $is_edit}<button type="button" class="btn btn-info" onclick="location.href='{$GRID_LINK}&act_adm=2&id={$ASU_CAB_RESULTS_ID[$iter]}'" return false;" title="{$cgrid_edit}"><span class="glyphicon glyphicon-pencil"></span></button>{/if}
|
{if $is_delete}<button type="button" class="btn btn-info" onclick="location.href='{$GRID_LINK}&act_adm=3&id={$ASU_CAB_RESULTS_ID[$iter]}'" return false;" title="{$cgrid_delete}"><span class="glyphicon glyphicon-minus"></span></button>{/if}
|
{if $is_play}<a href="{$GRID_LINK}&act_adm=8&id={$ASU_CAB_RESULTS_ID[$iter]}" title="play"><img src="Icons/play.GIF" alt="play" /></a>{/if}
|
</td>
|
{/if}
|
</tr>
|
{/foreach}
|
|
{if $TPL_PAGES}<tr><td valign="top" colspan="{if $is_back||$is_export||$is_import||$is_delete}{$ASU_CAB_COL_NUM+1}{else}{$ASU_CAB_COL_NUM}{/if}">{include file=$TPL_PAGES}</td></tr>{/if}
|
</table>
|
{if $is_search || $is_checks}</form>{/if}
|