{if $is_search || $is_checks}<form action="{$GRID_LINK}" method="post">{/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="fixed" style="width:60px;" align="center">
|
{if $is_add}<button type="button" class="btn btn-info" onclick="location.href='index.php?form=7&act=15&act_adm=1&id={$ID}';" 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="{$ASU_CAB_COL_NUM}" align="left" valign="baseline">
|
<div style="float:left;display:inline;width:250px;" align="left">
|
<button type="button" class="btn btn-info" onclick="location.href='{$GRID_LINK}&act_adm=9&type=1&id={$ID}';" title="{$cgrid_print}"><span class="glyphicon glyphicon-print"></span></button>
|
{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" onclick="{$aj_search} return false;" title="{$cgrid_search}"><span class="glyphicon glyphicon-search"></span></button>{/if}
|
{if $DETAILS_COLS!='[]'} {$cgrid_view_det}: <div id="div_Details" class="checkbox_unchecked"><input type="checkbox" id="Details" name="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"><b>{$NameTable}</b></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 $is_checks && $smarty.section.sec.rownum==1}
|
<div id="div_select-all" class="checkbox_unchecked"><input type="checkbox" id="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}
|
<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="myPrompt('{$delall}', '{$cgrid_comment}', function(result){literal}{{/literal} if (result!=false) xajax_DeleteAllMat1({$ID}, result);{literal}}{/literal}); return false;" title="{$cgrid_del_all}"><span class="glyphicon glyphicon-trash"></span></button>{/if}
|
</td>
|
</tr>
|
|
{if $FILTRES}
|
<tr class="fixed" align="center">
|
{foreach from=$FILTRES item=filtr key=iter}<td>{if $iter==0 && $is_checks}<button type="button" class="btn btn-info" onclick="myPrompt('{$del}', '{$cgrid_comment}', function(result){literal}{{/literal} if (result!=false) xajax_DeleteSelMat1(GetCbids('ids', 'cb'), result);{literal}}{/literal}); return false;" title="{$cgrid_delete}"><span class="glyphicon glyphicon-trash"></span></button>{else}{$filtr}{/if}</td>{/foreach}
|
<td> </td>
|
</tr>
|
{/if}
|
|
{section name=sec loop=$GRID_RESULTS}
|
<tr id="rem_tr{$smarty.section.sec.rownum}" onmouseover="Sel(this);" onmouseout="UnSel(this);" onclick="SelectElemREM(this, 'rem_', 'rem_cnt_', 'inp_cnt');">
|
{section name=sec2 loop=$GRID_RESULTS[sec]}
|
{if $smarty.section.sec2.rownum<10 || $smarty.section.sec2.rownum>15}
|
<td id="rem_td{$smarty.section.sec.rownum}_{$smarty.section.sec2.rownum}" {if $ASU_CAB_RESULTS_NUMIRATION && $smarty.section.sec2.rownum==1}class="fixed"{else}{if $ASU_CAB_EMPTY_COLOR[sec2] && !$GRID_RESULTS[sec][sec2]}style="background-color:red;" class="notfixed"{else} class="notfixed"{/if}{/if}align="center">
|
{if $is_checks && $smarty.section.sec2.rownum==1}
|
<div id="div_cb{$GRID_RESULTS[sec][sec2]}" class="checkbox_unchecked"><input type="checkbox" name="ids" onclick="CheckCB(this);" id="cb{$GRID_RESULTS[sec][sec2]}"></div>
|
{elseif $ASU_CAB_RESULTS_NUMIRATION && $smarty.section.sec2.rownum==1}
|
{$smarty.section.sec.rownum}<input type="hidden" id="id_rem_cnt_{$smarty.section.sec.rownum}" value="{$GRID_RESULTS[sec][sec2]}">
|
{elseif $smarty.section.sec2.rownum==7}
|
<div id="rem_cnt_{$smarty.section.sec.rownum}">{$GRID_RESULTS[sec][sec2]}</div>
|
{else}
|
{$GRID_RESULTS[sec][sec2]}
|
{/if}
|
</td>
|
{/if}
|
{/section}
|
|
<td width="9%" class="notfixed">
|
<div style="width:90px;">
|
{if $is_edit}<button type="button" class="btn btn-info" {if !$edit_all_rezmat}onclick="location.href='{$link_edit}&act_adm=2{if $ID}&id={$ID}{/if}&id_per={$ASU_CAB_RESULTS_ID[sec]}'; {else}onclick="myPrompt('{$edit}', '{$GRID_RESULTS[sec][6]}', function(result){literal}{{/literal} if (result!=false) xajax_EditMat1('{$ASU_CAB_RESULTS_ID[sec]}', result);{literal}}{/literal}); return false;"{/if} return false;" title="{$cgrid_edit}"><span class="glyphicon glyphicon-pencil"></span></button>
|
{if $GRID_RESULTS[sec][14]}<button type="button" class="btn btn-info" onclick="xajax_ReorderBestellen('{$ASU_CAB_RESULTS_ID[sec]}', '{$ID}'); return false;" title="{$cgrid_edit}"><span class="glyphicon glyphicon-refresh"></span></button>{/if}{/if}
|
{if $is_delete}<button type="button" class="btn btn-info" onclick="myPrompt('{$del}', '{$cgrid_comment}', function(result){literal}{{/literal} if (result!=false) xajax_DeleteMat1('{$ASU_CAB_RESULTS_ID[sec]}', '{$ID}', result);{literal}}{/literal}); return false;" title="{$cgrid_delete}"><span class="glyphicon glyphicon-minus"></span></button>{/if}
|
{if $GRID_RESULTS[sec][13]}<button type="button" class="btn btn-info" title="{$cgrid_serial}"><span class="glyphicon glyphicon-ifno-sign"></span></button>{/if}
|
</div>
|
</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_search || $is_checks}</form>{/if}
|