<form action="{$GRID_LINK}" method="post">
|
{if $Zuge}<input type="hidden" name="Zuge" value="{$Zuge}" />{/if}
|
{if $Vag}<input type="hidden" name="Vag" value="{$Vag}" />{/if}
|
{if $is_checks}
|
<input type="button" onclick="xajax_Create_RZ(GetCbids('ids', 'cb'));" title="{$new_rz}" value="{$new_rz}"/>
|
<input type="button" onclick="location.href = 'index.php';" title="{$start_page}" value="{$start_page}" />
|
<input type="button" onclick="location.href = 'index.php?state=2';" title="{$exit}" value="_{$exit}" />
|
{/if}
|
|
<table summary="T" style="border:1px #666 solid;" width="100%" id="id_of_table{$cgrid_prefix}">
|
{if $TPL_PAGES}<tr><td valign="top" colspan="{$ASU_CAB_COL_NUM+1}">{include file=$TPL_PAGES}</td></tr>{/if}
|
|
<tr><td class="td_title" style="width:60px;" align="center" colspan="{$ASU_CAB_COL_NUM+1}"><b>{$NameTable}</b></td></tr>
|
<tr>
|
<td class="fixed" style="width:60px;" align="center">
|
{if $is_add}<a href="{$GRID_LINK}&act_adm=1" title="{$cgrid_add}"><img src="Icons/copyto.GIF" alt="{$cgrid_add}" /></a>{/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}<a href="{$GRID_LINK}&act_adm=9&page_act=0&page={$PAGE}&page_set={$PAGE_SET}{if $Zuge}&Zuge={$Zuge}{/if}{if $Vag}&Vag={$Vag}{/if}" target="_blank" title="{$cgrid_print}" ><img src="images/printer.png" alt="{$cgrid_print}" /></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}
|
</td>
|
<td class="fixed" width="98%" colspan="{$ASU_CAB_COL_NUM}" 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}<a href="#" id="a_search" onclick="{$aj_search} return false;" title="{$cgrid_search}"><img src="images/search.gif" alt="{$cgrid_search}" /></a>{else}<input type="image" src="images/search.gif" style="border:0px;background-color:transparent;margin:0px;padding:0px;" title="{$cgrid_search}">{/if}
|
{if $DETAILS_COLS!='[]'}<div id="div_Details{$cgrid_prefix}" style="float: right;"><input type="checkbox" id="Details{$cgrid_prefix}" title="{$cgrid_view_det}" onclick="show_hide_columns('id_of_table{$cgrid_prefix}', {$DETAILS_COLS}, 'Details{$cgrid_prefix}', {$ASU_CAB_COL_NUM+1}, 'Details{$cgrid_prefix}');" value='show'></div><div style="float: right;"> {$cgrid_view_det}:</div>{/if}{else} {/if}</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="text-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 $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}
|
<td> </td>
|
</tr>
|
|
{if $FILTRES}
|
<tr class="fixed" align="center">
|
{foreach from=$FILTRES item=filtr name=filters}<td>{$filtr}</td>{/foreach}
|
<td> </td>
|
</tr>
|
{/if}
|
|
{section name=sec loop=$GRID_RESULTS}
|
<tr>
|
{section name=sec2 loop=$GRID_RESULTS[sec]}
|
{if $smarty.section.sec2.rownum>1 && $smarty.section.sec2.rownum<11}
|
<td {if $ASU_CAB_EMPTY_COLOR[sec2] && !$GRID_RESULTS[sec][sec2]}style="background-color:red;" class="notfixed"{else}class="notfixed"{/if}align="center"
|
style="background-color:#{if $GRID_RESULTS[sec][10]==1}{$STC[0]}{elseif $GRID_RESULTS[sec][10]==2}{$STC[1]}{elseif $GRID_RESULTS[sec][10]==3}{$STC[2]}{elseif $GRID_RESULTS[sec][10]==4}{$STC[3]}{/if};">
|
{$GRID_RESULTS[sec][sec2]}
|
</td>
|
{/if}
|
{/section}
|
|
<td class="notfixed">{if !$GRID_RESULTS[sec][9]}<input type="button" style="-webkit-box-shadow: inset 0 0px 0 0 #aec3e5;padding: 0px;border-radius: 0px;width: 90px;height: 25px; border:0px green solid;" onclick="myPrompt('{$cgrid_toHistory}', '', function(result){literal}{{/literal} if (result!=false) xajax_toHistory(GID('change_poezd').value, GID('opred_vag').value, {$GRID_RESULTS[sec][0]}, result);{literal}}{/literal});" title="{$cgrid_toHistory}" value="Beenden EVU" />{else} {/if}</td>
|
<td class="fixed" style="background-color:#{if $GRID_RESULTS[sec][99]==1}{$STC[0]}{elseif $GRID_RESULTS[sec][99]==2}{$STC[1]}{elseif $GRID_RESULTS[sec][99]==3}{$STC[2]}{elseif $GRID_RESULTS[sec][99]==4}{$STC[3]}{/if};"><button type="button" class="btn btn-info" onclick="location.href='{$GRID_LINK}&act_adm=2&id={$GRID_RESULTS[sec][0]}&updoc=4'" title="{$cgrid_file}"><img src="Icons/exe{if $GRID_RESULTS[sec][11]}R{/if}.png" align="right" alt="{$cgrid_down}"/></button></td>
|
|
|
</tr>
|
{/section}
|
|
{if $TPL_PAGES}<tr><td valign="top" colspan="{$ASU_CAB_COL_NUM+1}">{include file=$TPL_PAGES}</td></tr>{/if}
|
</table>
|
|
{if $is_checks}
|
<input type="button" onclick="xajax_Create_RZ(GetCbids('ids', 'cb'));" title="{$new_rz}" value="{$new_rz}"/>
|
<input type="button" onclick="location.href = 'index.php';" title="{$start_page}" value="{$start_page}" />
|
<input type="button" onclick="location.href = 'index.php?state=2';" title="{$exit}" value="{$exit}" />
|
{/if}
|
|
</form>
|
|
<script type="text/javascript">SHCClear(); show_hide_columns('id_of_table{$cgrid_prefix}', {$DETAILS_COLS}, 'Details{$cgrid_prefix}', {$ASU_CAB_COL_NUM+1} {if $is_history==2}, true{/if});</script>
|