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
<form action="index.php?form=7&amp;act=43&searchResMat=1" method="post" enctype="multipart/form-data" >
    <!--span class="btn btn-warning" style="display:inline;margin:4px; min-width: 200px;min-height:40px;">{$time}</span-->
 
    <div class="image-upload">
        <label for="file-input" style="cursor: pointer;">
            <img src="images/camera-icon.png" width="50%" style="pointer-events: none;"/>
        </label>
        <input type="submit" class="btn btn-info" style="display:none;margin:4px; min-width: 200px;min-height:40px;" name="Upload" id="Upload" value="Upload">
        <!--span class="btn btn-warning" style="display:inline;margin:4px; min-width: 200px;min-height:40px;">{$time}</span-->
 
        <input id="file-input" type="file" style="visibility:hidden;width:0;height:0" name="fileResMat" accept="image/*" capture="camera" />
        <script type="text/javascript">
            GID("file-input").onchange  = function() {
                xajax.loadingFunction();
                GID("Upload").click();
            };
        </script>
    </div>
 
    <div class="panel panel-info">
 
        <div width="100%" align="center"><h4><b>Materialkategorien</b></h4></div>
        <div style="float:left;width:300px;">
            <div id="div_select-all-a" style="display:inline;float:left;" class="checkbox_checked">
                <input type="checkbox" checked id="select-all-a" title="Check All" onclick="CheckAll(this, 'ids')" />
            </div>
 
            <div style="display:inline;float:left;width:25px;"><h5>All</h5></div>
 
            {$model}
        </div>
        <div style="float:left;">
            {for $i=0 to sizeof($FiltersObozn1) step 1}
                {if $FiltersObozn1[$i]['text']}
                    <div style="margin:0px; padding:0px; float: left; width:250px;">
                        <div style="display:inline;float:left;" id="div_cb{$FiltersObozn1[$i]['id']}" class="checkbox_checked">
                            <input type="checkbox" checked name="ids[{$FiltersObozn1[$i]['id']}]" id="cb{$FiltersObozn1[$i]['id']}" onclick="CheckThis(this);">
                        </div><div style="display:inline;float:left;">{$FiltersObozn1[$i]['text']}</div>
                    </div>
                {/if}
            {/for}
        </div>
    </div>
 
    {if $RMresult}
        <table id="tResults" class="tableone" style="width:100%;margin-top:4px;" summary="T">
            <tbody>
            <tr><td>&nbsp;</td><td style="color:#000;text-align:left;padding-left:20px;"><h3><b>Erkennungszeit: {$time} sec.</b></h3></td></tr>
            <!--tr><td>&nbsp;</td><td style="color:#000;text-align:left;padding-left:20px;"><h3><b>Erkennungszeit: {$time} sec.</b></h3></td></tr-->
 
            {section name=sec loop=$RMresult}
                <tr><td style="width:260px;margin-top:4px;">
                        <a href="index.php?form=7&amp;act=15&amp;act_adm=1&id={$SUBID}&mat_id={$RMresult[sec][0]}&rmLager={$rmLager}&count={$RMresult[sec][4]}">
                            <img style="max-width:210px;" width="100%" src="{$HOST}{$RMresult[sec][1]}" title="{$RMresult[sec][2]}">
                        </a>
                    </td>
                    <td style="color:#000;text-align:left;padding-left:50px;" rowspan="2">
                        <a href="index.php?form=7&amp;act=15&amp;act_adm=1&id={$SUBID}&mat_id={$RMresult[sec][0]}&rmLager={$rmLager}&count={$RMresult[sec][4]}">
                            <!--img style="max-heght:100px;" src="{$HOST}{$RMresult[sec][1]}" title="{$RMresult[sec][2]}"-->
                            <!--button type="button" class="btn btn-success btn-warning" style="margin:4px;min-width: 200px;min-height:80px;height:100%;" onclick="location.href='{$GRID_LINK}&amp;id={$id}&amp;mark={$RMresult[sec][0]}'" title="GOOD"><span class="glyphicon glyphicon-thumbs-up"></span></button-->
                            <h4>Ergebnis {$smarty.section.sec.rownum}<br /><br />&bull;&nbsp;&nbsp;&nbsp;&nbsp;SAP Nummer: {$RMresult[sec][3]} {$RMresult[sec][4]} {$RMresult[sec][5]} {$RMresult[sec][6]} {$RMresult[sec][7]} {$RMresult[sec][8]}</h4>
                        </a>
                    </td></tr>
 
                <tr>
                    <td style="color:#000;">
                        <a href="index.php?form=7&amp;act=15&amp;act_adm=1&id={$SUBID}&mat_id={$RMresult[sec][0]}&rmLager={$rmLager}&count={$RMresult[sec][4]}">
                            {$RMresult[sec][3]} {$RMresult[sec][4]} {$RMresult[sec][5]} {$RMresult[sec][6]} {$RMresult[sec][7]} {$RMresult[sec][8]}
                        </a>
                    </td>
                </tr>
            {/section}
            </tbody>
        </table>
        <!--button type="button" class="btn btn-danger btn-warning" style="display:block;width:100%;height: 80px;" onclick="location.href='{$GRID_LINK}&amp;id={$id}&amp;mark=-1'" title="BAD"><span class="glyphicon glyphicon-thumbs-down"></span></button-->
    {/if}
</form>
 
<script type="text/javascript">
    var tResults = GID("tResults");
    if (tResults) tResults.scrollIntoView(true);
</script>