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
76
77
78
79
80
81
<form action="{$GRID_LINK}&amp;act_adm=99" method="post">
<table summary="Table" style="border:0px #666;" width="100%">
<tr><td width="100%">
 
<table summary="T" style="border:1px #666 solid;" width="100%">
<tr>
    <td class="fixed" style="color:green;" align="center" colspan="{$FAIL_POTREB_COL_NUM}">{$GOOD_FAIL_POTREB_N_TN}:</td>
</tr>
 
<tr>
  {section name=sec loop=$FAIL_POTREB_N}
    <td class="fixed" align="center">
    {$FAIL_POTREB_N[sec]}
    {if $smarty.section.sec.rownum==1}<div id="div_select-all-c" class="checkbox_unchecked"><input type="checkbox" id="select-all-c" title="Check All" onclick="CheckAllEx(this, 'check_fp', '')" /></div>{/if}
    </td>
  {/section}
</tr>
 
{section name=sec loop=$GOOD_FAIL_POTREB}
<tr align="center">
 {section name=sec2 loop=$GOOD_FAIL_POTREB[sec]}
  <td style="text-size:small;font-weight: normal;background-color:#{if $smarty.section.sec2.rownum == $FAIL_POTREB_COL_NUM-5}{if $GOOD_FAIL_POTREB[sec][sec2][0]=='A'}FF7070{elseif $GOOD_FAIL_POTREB[sec][sec2][0]=='B'}FFAA5B{elseif $GOOD_FAIL_POTREB[sec][sec2][0]=='C'}FFF177{elseif $GOOD_FAIL_POTREB[sec][sec2][0]=='D'}89FF77{/if}{else}{if $smarty.section.sec.rownum%2==1}AADDFF{else}BFF7FF{/if}{/if};">
    {if $smarty.section.sec2.rownum == 1}
    <div id="div_check_fp_{$GOOD_FAIL_POTREB[sec][sec2]}" class="{if $checked}checkbox_checked{else}checkbox_unchecked{/if}"><input type="checkbox" name="check_fp" id="check_fp_{$GOOD_FAIL_POTREB[sec][sec2]}" onclick="CheckThis(this);" {if $checked}checked{/if}/></div>
    {elseif ($smarty.section.sec2.rownum == $FAIL_POTREB_COL_NUM-3)}
        <textarea rows="1" cols="10" style="border:1px #666 solid;" onfocus="this.rows=4;" onblur="this.rows=1;" onkeyup="xajax_FP_Comment({$GOOD_FAIL_POTREB[sec][0]}, document.getElementById('comm_fp_{$GOOD_FAIL_POTREB[sec][0]}').value);" name="comm_fp_{$GOOD_FAIL_POTREB[sec][0]}" id="comm_fp_{$GOOD_FAIL_POTREB[sec][0]}">{$GOOD_FAIL_POTREB[sec][sec2]}</textarea>
    {else}
        {$GOOD_FAIL_POTREB[sec][sec2]}
    {/if}
  </td>
 {/section}
</tr>
{/section}
 
</table>
 
</td></tr>
<tr align="left"><td width="100%">
    <input type="button" class="btn btn-info" onclick="xajax_Change_FPs({if $id}{$id},{/if}GetCbids('check_fp', 'check_fp_'));" title="{$add_neispr}" value="{$add_neispr}" />
    {if $can_create_rz && !$id}<input type="button" class="btn btn-info" onclick="xajax_Create_RZ(GetCbids('check_fp', 'check_fp_'));" title="{$new_rz}" value="{$new_rz}" />&nbsp;{/if}
    <input type="button" class="btn btn-info" onclick="{literal}try { xajax_Change_VAGS(GetCbids('check_vags', 'check_vags_')); } catch(B) { location.reload(); }{/literal}" title="{$cgrid_back}" value="{$cgrid_back}" />
</td></tr>
</table>
 
</form>
 
 
 
 
<table summary="Table" style="border:0px #666;" width="100%">
<tr><td width="100%">
 
<div id="div_fail_potreb">
 
<table summary="T" style="border:1px #666 solid;" width="100%">
<tr><td class="fixed" style="color:red;" align="center" colspan="{$FAIL_POTREB_COL_NUM}">{$BAD_FAIL_POTREB_N_TN}:</td></tr>
 
<tr>
  {section name=sec loop=$FAIL_POTREB_N}
    {if $smarty.section.sec.rownum > 1}<td class="fixed" align="center">{$FAIL_POTREB_N[sec]}</td>{/if}
  {/section}
</tr>
 
{section name=sec loop=$BAD_FAIL_POTREB}
<tr align="center" title="{$BAD_FAIL_POTREB[sec][$FAIL_POTREB_COL_NUM]}">
 {section name=sec2 loop=$BAD_FAIL_POTREB[sec]}
  {if $smarty.section.sec2.rownum > 1}
  <td style="text-size:small;font-weight: normal;background-color:#{if $smarty.section.sec.rownum%2==1}FFBAAA{else}FFB5B9{/if};">
        {$BAD_FAIL_POTREB[sec][sec2]}
  </td>
  {/if}
 {/section}
</tr>
{/section}
 
</table>
 
</div>
 
</td></tr>
</table>