{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}<a href="index.php?form=7&act=15&act_adm=1&id={$ID}" onclick="this.blur();" 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}<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:200px;" 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 class="btn btn-info" onclick="location.href='{$GRID_LINK}&act_adm=2&id={$ASU_CAB_RESULTS_ID[sec]}'" title="{$cgrid_edit}"><span class="glyphicon glyphicon-pencil"></span></button>{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!='[]'} {$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 class="btn btn-info" onclick="if (confirm('{$delall}')) xajax_DeleteAllMeasure({$ID});return false;" title="{$cgrid_del_all}"><span class="glyphicon glyphicon-trash"></span></button>{/if}
|
</td>
|
</tr>
|
|
{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]}
|
<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>
|
{/section}
|
|
<td width="6%" class="notfixed">
|
<div style="width:60px;">
|
{if $is_edit}<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_EditMeasure('{$ASU_CAB_RESULTS_ID[sec]}', result);{literal}}{/literal}); return false;"{/if}; return false;" title="{$cgrid_edit}"><span class="glyphicon glyphicon-pencil"></span></button>{/if}
|
{if $is_delete}<button class="btn btn-info" onclick="if (confirm('{$del}')) xajax_DeleteMeasure({$ASU_CAB_RESULTS_ID[sec]}, {$ID});return false;" title="{$cgrid_delete}"><span class="glyphicon glyphicon-minus"></span></button>{/if}
|
{if $GRID_RESULTS[sec][12]}<img src="images/serial.png" title="{$cgrid_serial}" />{/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}
|