taron133
2020-10-26 aa8d874c8a3287d41d26566ae32b6ed8d4557ff9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<form action="{$GRID_LINK}" method="post">
<table summary="T" style="border:1px #666 solid;" width="100%" cellpadding="0" cellspacing="0">
{if $TPL_PAGES}<tr><td valign="top" colspan="{$ASU_CAB_COL_NUM+1}">{include file=$TPL_PAGES}</td></tr>{/if}
 
    <tr>
        <td class="fixed" align="center" width="2%">
            {if $is_add}<a href="index.php?form=7&amp;act=12&amp;id={$ID}"  onclick="this.blur();" title="{$cgrid_add}" ><img src="Icons/copyto.GIF" alt="{$cgrid_add}" /></a>{/if}
            {if $is_print}<button type="button" class="btn btn-info" onclick="location.href='{$GRID_LINK}&amp;act_adm=9&amp;page_act=0&amp;page={$PAGE}&amp;page_set={$PAGE_SET}';" title="{$cgrid_print}"><span class="glyphicon glyphicon-print"></span></button>{/if}
        </td>
        <td class="fixed" width="95%" colspan="{$ASU_CAB_COL_NUM}">
            <table summary="T" width="100%">
                <tr>
                {if $is_checks}<td style="width:280px;">{$statuses} {$what_do}{else}&nbsp;</td>{/if}
                {if $is_search}<td style="width:170px;display:inline;">{$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:0px;background-color:transparent;margin:0px;padding:0px;" title="{$cgrid_search}">{/if}</td>{/if}
                    <td style="width:70px;" align="left"><b>{$NameTable}</b></td>
                    <td align="right">
                        {if $is_back}<a href="{$BACK_LINK}"><img src="images/return.png" alt="{$cgrid_back}" /></a>{/if}
                        {if $is_delete}<a href="#" onclick="if (confirm('{$delall}?')) xajax_SubTAllDelete({$ID});return false;"  title="{$cgrid_delete}"><img src="Icons/deleted.GIF" alt="{$cgrid_delete}" /></a>{/if}
                    </td>
                </tr>
            </table>
 
        </td>
    </tr>
 
<tr class="fixed" align="center">
{section name=sec loop=$ASU_CAB_NAMES}
    {if !$ASU_CAB_IS_COMMON[$smarty.section.sec.index_prev]}<!--width:{$COL_WIDTHS[sec]};-->
        <td  style="text-size:small;FONT-WEIGHT: normal;">
            {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}
                {$ASU_CAB_NAMES[sec]}
            {/if}
        </td>   
    {/if}
{/section}
<td>&nbsp;</td>
</tr>
 
{section name=sec loop=$GRID_RESULTS}
<tr id="st_tr{$smarty.section.sec.rownum}" onmouseover="Sel(this);" onmouseout="UnSel(this);" onclick="xajax_SelectTask({$GRID_RESULTS[sec][0]}, '{$tskPageAct}', '{$tskPage}', '{$tskPageSet}');SelectElem(this, 'st_');">
{section name=sec2 loop=$GRID_RESULTS[sec]}
{if $smarty.section.sec2.rownum<14}
<td id="st_td{$smarty.section.sec.rownum}_{$smarty.section.sec2.rownum}" class="notfixed" align="center">
    {if $ASU_CAB_RESULTS_NUMIRATION && $smarty.section.sec2.rownum==1}
        {if $is_checks}<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>{else}{$smarty.section.sec.rownum}{/if}
    {elseif $GADGETS[sec2]}
        {$GRID_RESULTS[sec][sec2]}
        {if $GADGETS[sec2][0] == 'comment' && $is_comment}
            <button type="button" class="btn btn-info" style="display:inline;float:right;" title="{$cgrid_comment}" id='p{$smarty.section.sec.rownum}' onclick="if (GID('vp_p{$smarty.section.sec.rownum}').innerHTML == '') {literal}{{/literal} vis_load('p{$smarty.section.sec.rownum}', 'vp_p{$smarty.section.sec.rownum}'); xajax_subTasksGetComment({$ASU_CAB_RESULTS_ID[sec]}, {$smarty.section.sec2.rownum}, 'vp_p{$smarty.section.sec.rownum}', 'vis2(\'p{$smarty.section.sec.rownum}\', \'vp_p{$smarty.section.sec.rownum}\', false, false, false);'); {literal}}{/literal} else vis2('p{$smarty.section.sec.rownum}', 'vp_p{$smarty.section.sec.rownum}', true, false, false);"><span class="glyphicon glyphicon-comment"></span></button>
            <div id='vp_p{$smarty.section.sec.rownum}' style="display:none;" class="i" onclick="hide('vp_p{$smarty.section.sec.rownum}')"></div>
        {/if}
    {else}
        {$GRID_RESULTS[sec][sec2]}
    {/if}
</td>
{/if}
{/section}
 
<td width="6%" class="notfixed">
<button type="button" class="btn btn-info" onclick="location.href='{$GRID_LINK}&amp;act_adm=2&amp;id={$WTID}&amp;subid={$ASU_CAB_RESULTS_ID[sec]}&updoc=3'" title="{$cgrid_file}"><span class="glyphicon glyphicon-floppy-disk"></span></button>
{if $GRID_RESULTS[sec][14]>0}<button type="button" class="btn btn-info" disabled title="{$cgrid_hasresmat} ({$GRID_RESULTS[sec][14]})"><span class="glyphicon glyphicon-th"></span></button>{/if}
{if $GRID_RESULTS[sec][15]>0}<button type="button" class="btn btn-info" disabled title="{$needSers}"><span class="glyphicon glyphicon-barcode"></span></button>{/if}
</td>
 
</tr>
{/section}
 
{if $TPL_PAGES}<tr><td valign="top" colspan="{$ASU_CAB_COL_NUM+1}">{include file=$TPL_PAGES}</td></tr>{/if}
</table>
</form>