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
{if $zugs}
    <div class="btn-group btn-group-justified" role="toolbar" aria-label="">
        <div class="btn-group" role="group" style="width:25%;" aria-label="">
            <label for="date_{$selection}">{$actual_date}</label>
 
            <div class="input-group">
                <div class="input-group-btn" id="ig_{$selection}">
                    <a href="#" id="fcalt{$selection}">
                        <button type="button" class="btn btn-default"
                                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_{$selection}","button":"fcalt{$selection}"{literal}}{/literal});return false;'>
                            <span class="glyphicon glyphicon-calendar"></span></button>
                    </a>
                </div>
                <input type="text" class="form-control" aria-describedby="ig_{$selection}" size="16"
                       style="border:2px green solid;z-index:0;"
                       onchange="GID('date_{$selection}').style.border='2px solid red';" name="date_{$selection}"
                       maxlength="19" id="date_{$selection}" value="">
            </div>
        </div>
        <div class="btn-group" role="group" style="width:20%;" aria-label="">
            <label for="kilo_{$selection}">{$actual_kilo}</label>
            <input type="text" class="form-control" size="16" style="border:2px green solid;"
                   onchange="GID('kilo_{$selection}').style.border='2px solid red';" name="kilo_{$selection}"
                   maxlength="9" id="kilo_{$selection}" value="">
        </div>
        <div class="btn-group" role="group" style="width:20%;" aria-label="">
            <label for="basic-url">{$actual_cascad}</label>
 
            <div id="div_cascad_{$selection}" class="checkbox_unchecked">
                <input type="checkbox" class="form-control" onchange="CheckThis(this);" name="cascad_{$selection}"
                       id="cascad_{$selection}"/>
            </div>
        </div>
        <div class="btn-group" role="group" style="width:20%;" aria-label="">
            <label for="basic-url">&nbsp;</label>
            <button class="btn btn-lg btn-info btn-block"
                    onclick="xajax_EditDateKilo('date_{$selection}', 'kilo_{$selection}', GID('numz{$selection}').value, GID('date_{$selection}').value, GID('kilo_{$selection}').value, {$selection}, GID('change_poezd').value, GID('change_poezd2').value, (GID('cascad_{$selection}').checked)?1:0);return false;"
                    alt="{$cgrid_change}"><span class="glyphicon glyphicon-edit"></span>{$cgrid_change}</button>
        </div>
    </div>
    {section name=sec2 loop=$zugs}
        <table summary="T" style="width:100%;margin-top:5px;border:1px #666 solid;" cellpadding="0" cellspacing="0">
            <tr>
                <td width="8%">
                    <table summary="T" style="width:100%;border:1px #666 solid;" cellpadding="0" cellspacing="0">
                        <tr>
                            <td class="td_name2">&nbsp;</td>
                        </tr>
                        <tr>
                            <td class="td_d21" style="width:60px;height:15px;">&nbsp;</td>
                        </tr>
                        <tr>
                            <td class="td_d21">
                                <table width="100%" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td align="right">{$NEISP}:</td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td class="td_d21">Fzg.Nr.:</td>
                        </tr>
                        <tr>
                            <td class="td_d21">km-Stand:</td>
                        </tr>
                    </table>
                </td>
                {section name=sec loop=$zugs[sec2]}
                    <td width="8%">
                        <table id="t{$selection}{$smarty.section.sec.rownum}"
                               onclick="EditConf_ChangeVag(this, GID('num{$selection}'), GID('numz{$selection}'), {$VAGONS_COUNT}, {$selection}, {$smarty.section.sec.rownum}, {if $zugs[sec2][sec][2]}'{$zugs[sec2][sec][2]}'{else}''{/if}, '1px #666 solid', '3px #F55 solid');"
                               summary="T" style="heigth:100%;width:100%;border:1px #666 solid;" cellpadding="0"
                               cellspacing="0">
                            <tr>
                                <td class="td_name2">{$Z_N_TN[sec]}</td>
                            </tr>
                            <tr>
                                <td class="td_d2"><img width="60" height="15"
                                   {if $zugs[sec2][sec][9]}src="{$zugs[sec2][sec][9]}"
                                   {/if}  /></td>
                            </tr>
                            <tr>
                                <td class="td_d2">
                                    <table cellpadding="0" cellspacing="0" width="100%">
                                        <tr>
                                            <td {if $zugs[sec2][sec][3]}class="red">{$zugs[sec2][sec][3]}{else}
                                                >&nbsp;{/if}</td>
                                            <td {if $zugs[sec2][sec][4]}class="ora">{$zugs[sec2][sec][4]}{else}
                                                >&nbsp;{/if}</td>
                                            <td {if $zugs[sec2][sec][5]}class="yel">{$zugs[sec2][sec][5]}{else}
                                                >&nbsp;{/if}</td>
                                            <td {if $zugs[sec2][sec][6]}class="gre">{$zugs[sec2][sec][6]}{else}
                                                >&nbsp;{/if}</td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td class="td_d2">{if $zugs[sec2][sec][1]}{$zugs[sec2][sec][2]}{else}&nbsp;{/if}</td>
                            </tr>
                            <tr>
                                <td class="td_d2">{if $zugs[sec2][sec][7]}{$zugs[sec2][sec][7]}
                                        <input type="hidden"
                                               name="kilo{$selection}{$smarty.section.sec.rownum}"
                                               id="kilo{$selection}{$smarty.section.sec.rownum}"
                                               value="{$zugs[sec2][sec][7]}" />{else}&nbsp;{/if}
                                </td>
                            </tr>
                        </table>
                        <input type="hidden" name="date{$selection}{$smarty.section.sec.rownum}"
                               id="date{$selection}{$smarty.section.sec.rownum}" value="{$zugs[sec2][sec][8]}"/>
                    </td>
                {/section}
            </tr>
        </table>
    {/section}
{else}Nothing{/if}