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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<table summary="Table" style="margin-top:3px;border:1px #666 solid;" width="100%">
<tr><td class="fixed" style="color:green;" align="center" colspan="{if $is_edit}{$ZUGE_NUM}{else}{$ZUGE_NUM}{/if}">{$ZUGE_N_TN}:</td></tr>
 
{if $is_edit}
<tr>
  <td class="fixed" align="center" colspan="4">&nbsp;</td>
  <td class="fixed" align="center" colspan="2">{$ZUGE_N_ADD[0]}</td>
  <td class="fixed" align="center" colspan="2">{$ZUGE_N_ADD[1]}</td>
  <td class="fixed" align="center" colspan="1">&nbsp;</td>
  <!--td class="fixed" align="center" colspan="2">{$ZUGE_N_ADD[1]} (<input type="checkbox" id="cascad" checked /> {$cascad})</td-->
</tr>
{/if}
 
<tr>
  {section name=sec loop=$ZUGE_N}
    {if $smarty.section.sec.rownum==$smarty.section.sec.total && $is_edit}
        <td class="fixed" align="center">{$ZUGE_N[4]}</td>
        <td class="fixed" align="center">{$ZUGE_N[5]}</td>
        <td class="fixed" align="center">{$ZUGE_N[sec]}</td>
    {else}<td class="fixed" align="center">{$ZUGE_N[sec]}</td>{/if}
  {/section}
</tr>
 
{section name=sec loop=$ZUGE}
<tr style="text-size:small;background-color:#{if $smarty.section.sec.rownum%2==1}AADDFF{else}BFF7FF{/if};" align="center">
 {section name=sec2 loop=$ZUGE[sec]}
 {if $smarty.section.sec2.rownum<=8}
     {if $smarty.section.sec2.rownum!=1}
      <td>
        {if $smarty.section.sec2.rownum==8 && $is_edit}
            <a href="#"id="fcalt{$ZUGE[sec][0]}"><img onclick='Calendar.setup({literal}{{/literal}"ifFormat":"%d.%m.%Y %H:%M:%S","daFormat":"%d.%m.%Y","firstDay":1,"showsTime":true,"showOthers":true,"timeFormat":24,"inputField":"date_{$ZUGE[sec][0]}","button":"fcalt{$ZUGE[sec][0]}"{literal}}{/literal});' src="scripts/jscalendar/img.gif" alt="" /></a>
            <input type="text" size="16" style="border:2px green solid;" onchange="GID('date_{$ZUGE[sec][0]}').style.border='2px solid red';" name="date_{$ZUGE[sec][0]}" maxlength="19" id="date_{$ZUGE[sec][0]}" value="{$ZUGE[sec][7]}" onkeypress="if (event.keyCode==13) {literal}{{/literal}xajax_EditDateKilo('date_{$ZUGE[sec][0]}', 'kilo_{$ZUGE[sec][0]}', {$ZUGE[sec][0]}, GID('date_{$ZUGE[sec][0]}').value, GID('kilo_{$ZUGE[sec][0]}').value, /*(GID('cascad').checked)?1:0*/0, {$FM_ID});{literal}}{/literal}" /></td><td>
            <input type="text" size="8" style="border:2px green solid;" onchange="GID('kilo_{$ZUGE[sec][0]}').style.border='2px solid red';" name="kilo_{$ZUGE[sec][0]}" maxlength="9" id="kilo_{$ZUGE[sec][0]}" value="{$ZUGE[sec][6]}" onkeypress="if (event.keyCode==13) {literal}{{/literal}xajax_EditDateKilo('date_{$ZUGE[sec][0]}', 'kilo_{$ZUGE[sec][0]}', {$ZUGE[sec][0]}, GID('date_{$ZUGE[sec][0]}').value, GID('kilo_{$ZUGE[sec][0]}').value, /*(GID('cascad').checked)?1:0*/0, {$FM_ID});{literal}}{/literal}" />
            <button class="btn btn-info" onclick="GID('kilo_{$ZUGE[sec][0]}').onkeypress({literal}{keyCode:13}{/literal});return false;" title="{$apply}"><span class="glyphicon glyphicon-edit"></span></button>
            </td><td>{$ZUGE[sec][12]}
        {elseif $smarty.section.sec2.rownum==$smarty.section.sec2.total}
        {else}{$ZUGE[sec][sec2]}{/if}
      </td>
     {/if}
 {/if}
 {/section}
</tr>
{/section}
 
</table>
 
 
<table summary="Table" style="margin-top:3px;border:1px #666 solid;" width="100%">
    <tr><td class="fixed" style="color:green;" align="center" colspan="{if $is_edit}{$WH_ZUGE_NUM}{else}{$WH_ZUGE_NUM}{/if}">{$WH_ZUGE_N_TN}:</td></tr>
 
    {if $is_edit}
        <tr>
            <td class="fixed" align="center" colspan="5">&nbsp;</td>
            <td class="fixed" align="center" colspan="2">{$WH_ZUGE_N_ADD[0]}</td>
            <td class="fixed" align="center" colspan="2">{$ZUGE_N_ADD[1]}</td>
            <td class="fixed" align="center" colspan="1">&nbsp;</td>
            <!--td class="fixed" align="center" colspan="2">{$WH_ZUGE_N_ADD[1]} (<input type="checkbox" id="cascad" checked /> {$cascad})</td-->
        </tr>
    {/if}
 
    <tr>
        {section name=sec loop=$WH_ZUGE_N}
            {if $smarty.section.sec.rownum==$smarty.section.sec.total && $is_edit}
                <td class="fixed" align="center">{$WH_ZUGE_N[5]}</td>
                <td class="fixed" align="center">{$WH_ZUGE_N[6]}</td>
                <td class="fixed" align="center">{$WH_ZUGE_N[sec]}</td>
            {else}<td class="fixed" align="center">{$WH_ZUGE_N[sec]}</td>{/if}
        {/section}
    </tr>
 
    {section name=sec loop=$WH_ZUGE}
        <tr style="text-size:small;background-color:#{if $smarty.section.sec.rownum%2==1}AADDFF{else}BFF7FF{/if};" align="center">
            {section name=sec2 loop=$WH_ZUGE[sec]}
                {if $smarty.section.sec2.rownum<=9}
                    {if $smarty.section.sec2.rownum!=1}
                        <td>
                        {if $smarty.section.sec2.rownum==9 && $is_edit}
                            <a href="#"id="fcalt{$WH_ZUGE[sec][0]}"><img onclick='Calendar.setup({literal}{{/literal}"ifFormat":"%d.%m.%Y %H:%M:%S","daFormat":"%d.%m.%Y","firstDay":1,"showsTime":true,"showOthers":true,"timeFormat":24,"inputField":"wh_date_{$WH_ZUGE[sec][0]}","button":"fcalt{$WH_ZUGE[sec][0]}"{literal}}{/literal});' src="scripts/jscalendar/img.gif" alt="" /></a>
                            <input type="text" size="16" style="border:2px green solid;" onchange="GID('wh_date_{$WH_ZUGE[sec][0]}').style.border='2px solid red';" name="wh_date_{$WH_ZUGE[sec][0]}" maxlength="19" id="wh_date_{$WH_ZUGE[sec][0]}" value="{$WH_ZUGE[sec][8]}" onkeypress="if (event.keyCode==13) {literal}{{/literal}xajax_EditWH('wh_date_{$WH_ZUGE[sec][0]}', 'wh_kilo_{$WH_ZUGE[sec][0]}', {$WH_ZUGE[sec][0]}, GID('wh_date_{$WH_ZUGE[sec][0]}').value, GID('wh_kilo_{$WH_ZUGE[sec][0]}').value, /*(GID('cascad').checked)?1:0*/0, {$FM_ID});{literal}}{/literal}" /></td><td>
                            <input type="text" size="8" style="border:2px green solid;" onchange="GID('wh_kilo_{$WH_ZUGE[sec][0]}').style.border='2px solid red';" name="wh_kilo_{$WH_ZUGE[sec][0]}" maxlength="9" id="wh_kilo_{$WH_ZUGE[sec][0]}" value="{$WH_ZUGE[sec][9]}" onkeypress="if (event.keyCode==13) {literal}{{/literal}xajax_EditWH('wh_date_{$WH_ZUGE[sec][0]}', 'wh_kilo_{$WH_ZUGE[sec][0]}', {$WH_ZUGE[sec][0]}, GID('wh_date_{$WH_ZUGE[sec][0]}').value, GID('wh_kilo_{$WH_ZUGE[sec][0]}').value, /*(GID('cascad').checked)?1:0*/0, {$FM_ID});{literal}}{/literal}" />
                            <button class="btn btn-info" onclick="GID('wh_kilo_{$WH_ZUGE[sec][0]}').onkeypress({literal}{keyCode:13}{/literal});return false;" title="{$apply}"><span class="glyphicon glyphicon-edit"></span></button>
                        </td><td>{$WH_ZUGE[sec][10]}
                        {elseif $smarty.section.sec2.rownum==$smarty.section.sec2.total}
                        {else}{$WH_ZUGE[sec][sec2]}{/if}
                        </td>
                    {/if}
                {/if}
            {/section}
        </tr>
    {/section}
 
</table>
 
 
{if $ZUGE_kilo}
<table summary="Table" style="margin-top:5px;border:1px #666 solid;" width="{$VAGS_NUM*10}%" cellpadding="0" cellspacing="0">
<tr style="border-bottom:1px #666 solid;">
    <td class="fixed" align="center" width="100%" colspan="{$VAGS_NUM}">{$VAGS_N_TN}:</td>
</tr>
 
<tr align="center">
 <td style="border-top:1px #666 solid;" width="40px">&nbsp;</td>
 {section name=sec loop=$ZUGE_ALL}
  <td style="border-left:1px #666 solid;border-top:1px #666 solid;">
    {if $ZUGE_ALL[sec][10]}<img src="{$HOST}/download/Materials/small/{$ZUGE_ALL[sec][10]}" alt="" height="30" />{else}&nbsp;{/if}
  </td>
 {/section}
</tr>
<tr align="center">
 <td style="border-top:1px #666 solid;" align="center">Fzg.Nr.:</td>
 {section name=sec loop=$ZUGE_n}
  <td style="border-left:1px #666 solid;border-top:1px #666 solid;">
  &nbsp;{$ZUGE_n[sec]}
  </td>
 {/section}
</tr>
<tr align="center">
 <td style="border-top:1px #666 solid;" align="center">km-Stand:</td>
 {section name=sec loop=$ZUGE_kilo}
  <td style="border-left:1px #666 solid;border-top:1px #666 solid;">
    {$ZUGE_kilo[sec]}
  </td>
 {/section}
</tr>
 
</table>
{else}Error view{/if}
 
<div id="div_grid_foot"></div>