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
<table id="fails_potreb_view" summary="Table" style="border:1px #666 solid;" width="100%">
<tr>
    <td class="fixed" style="color:green; font-size: 14px;" 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" {if $smarty.section.sec.rownum==1}style="display: none;"{/if}>{$FAIL_POTREB_N[sec]}</td>
  {/section}
</tr>
 
{section name=sec loop=$GOOD_FAIL_POTREB}
<tr align="center" title="{$GOOD_FAIL_POTREB[sec][$FAIL_POTREB_COL_NUM]}">
 {section name=sec2 loop=$GOOD_FAIL_POTREB[sec]}
  <td style="text-size:small;font-weight: normal;background-color:#{if $smarty.section.sec2.rownum == $smarty.section.sec2.total}{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}display: none;{/if}">
        {if ($smarty.section.sec2.rownum == $FAIL_POTREB_COL_NUM)}
            <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>
<tr>
    <td align="left" colspan="{$FAIL_POTREB_COL_NUM}">
        <form action="{$GRID_LINK}&amp;act_adm={$ACT_ADM}&amp;id={$GOOD_FAIL_POTREB[sec][0]}" id="f{$GOOD_FAIL_POTREB[sec][0]}" method="post" target="rFrame" enctype="multipart/form-data">
            <input type="hidden" id="f{$GOOD_FAIL_POTREB[sec][0]}_lastID" name="f{$GOOD_FAIL_POTREB[sec][0]}_lastID" value="1">
            <div class="fieldfile">{$cgrid_insertfoto}:</div>
            <div style="white-space: nowrap;"><input class="fieldfile" type="file" id="f{$GOOD_FAIL_POTREB[sec][0]}_f1" name="f{$GOOD_FAIL_POTREB[sec][0]}_f1"><input id="f{$GOOD_FAIL_POTREB[sec][0]}_submit1" type="button" onclick="onFileChange('f{$GOOD_FAIL_POTREB[sec][0]}');" title="{if $cgrid_send}{$cgrid_send}{else}OK{/if}" value="{if $cgrid_send}{$cgrid_send}{else}OK{/if}" style="margin: 0 10px 15px 10px;"><span  class="fieldfile" id="f{$GOOD_FAIL_POTREB[sec][0]}_s1"></span>
            </div>
        </form>
    </td>
</tr>
{/section}
 
</table>
 
<table summary="Table" style="border:1px #666 solid;" width="100%">
<tr><td class="fixed" style="color:red; font-size: 14px;" 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>
 
{if $subid}
<table width="100%">
</tr><tr align="left"><td width="100%">
    <input type="button" onclick="try {literal}{{/literal} xajax_Sub_OK({$id}, {$subid});{literal}}{/literal} catch(e) {literal}{{/literal} alert('Nicht erfolgreich!');{literal}}{/literal}" title="{if $cgrid_ok}{$cgrid_ok}{else}OK{/if}" value="{if $cgrid_ok}{$cgrid_ok}{else}OK{/if}" />
    <input type="button" 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>
{else}
<table width="100%">
</tr><tr align="left"><td width="100%" nowrap>
        <input type="button" onclick="location.reload();" title="{$new_neispr}" value="{$new_neispr}" />
        <input type="button" onclick="xajax_Change_VAGS(GetCbids('check_vags', 'check_vags_'));" title="{$next_neispr}" value="{$next_neispr}" />
    </td></tr><tr align="left"><td width="100%" nowrap>
        <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}" />
</td></tr></table>
{/if}