Subversion-Projekte lars-tiefland.content-management

Revision

Zur aktuellen Revision | Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
3
 
4
<head>
5
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
6
	<meta name="author" content="Webagentur Niewerth" />
7
 
8
	<title>Rechnungsbuch</title>
9
 
10
	<link rel="stylesheet" type="text/css" href="../styles/styles.php" />
11
	<link rel="stylesheet" type="text/css" href="../styles/print.css" media="print" />
12
    {if file_exists("/css/$site/jquery-ui.custom.css")}
13
    <link rel="stylesheet" type="text/css" href="/css/{$site}/jquery-ui.custom.css">
14
    {else}
15
    <link rel="stylesheet" type="text/css" href="/css/ui-darkness/jquery-ui.custom.css">
16
    {/if}
17
 
18
 
19
    <script type="text/javascript" src="/js/overlib.js"></script>
20
 
21
    <script type="text/javascript" src="jscript/rechnungsbuch-zebra.js"></script>
22
 
23
    <script src="/js/jquery-1.4.4.min.js"></script>
24
    <script src="/js/jquery-ui-1.8.9.custom.min.js"></script>
25
    <script src="/js/i18n/jquery.ui.datepicker-de.js"></script>
26
    <script>
27
        $(function(){
28
            $('#txtFaellig').datepicker();
29
        });
30
    </script>
31
    <script language="JavaScript" src="/checkDate.js"></script>
32
 
33
    <script type="text/javascript">
34
        function buildSelectBox(rid,currStatus) {
35
            var str;
36
            str = "<select onchange=\"closeSelection(this,'"+rid+"','"+currStatus+"');\" name=\"status["+rid+"]\">\n";
37
            str += "<option value=\"none\">keine Auswahl</option>\n";
38
            str += "<option value=\"bezahlt\" selected=\"selected\">bezahlt</option>\n";
39
            str += "<option value=\"storniert\">storniert</option>\n";
40
            str += "</select>\n";
41
 
42
            document.getElementById("bezahlstatus_"+rid).innerHTML = str;
43
        }
44
 
45
        function closeSelection(id,rid,currStatus) {
46
            if(id.value=="none") {
47
                document.getElementById('bezahlstatus_'+rid).innerHTML = currStatus;
48
            }
49
        }
50
    </script>
51
</head>
52
 
53
<body class="rechnungsbuch">
54
 
55
    <form action="{$SCRIPT_NAME}" method="post" name="form_step1" id="form_step1">
56
        <div class="optionsleiste">
57
            <table width="100%" border="1" cellspacing="0" cellpadding="3">
58
                <tr>
59
                    <td class="rechts" align="right">Rechnungsdatum:
60
                        {html_options name="zeitraum" options=$zeitraum selected=$smarty.post.zeitraum id="zeitraum"}
61
                        {html_options name="shops_id" values=$shops.id output=$shops.name selected=$smarty.post.shops_id id="shops_id"}
62
                        F&auml;llig bis: <input onfocus="current_value=this.value;if (this.value=='') { this.value=today() };this.select();" onchange="this.value=check_Date(this.value)" type="text" name="txtFaellig" value="{$txtFaellig|date_format:"d.m.Y"}" id="txtFaellig">
63
 
64
                        {if $zahlungsarten}
65
                        {html_options multiple="true" name="msZahlart[]"
66
                        values=$zahlungsarten.id
67
                        output=$zahlungsarten.name
68
                        selected=$smarty.post.msZahlart id="msZahlart"}
69
                        {/if}
70
 
71
 
72
                        Ersteller:<input type="checkbox" name="cbErsteller" {if $cbErsteller == 'on'}checked="checked"{/if} /> |
73
                        Shop:<input type="checkbox" name="cbShop" {if $cbShop == 'on'}checked="checked"{/if} /> |
74
                        Bezahlstatus:<input type="checkbox" name="cbBezahlstatus" {if $cbBezahlstatus == 'on'}checked="checked"{/if} /> |
75
                        Kd-Nr.:<input type="checkbox" name="cbKdNr" {if $cbKdNr == 'on'}checked="checked"{/if} /> |
76
                        Kunde:<input type="checkbox" name="cbKunde" {if $cbKunde == 'on'}checked="checked"{/if} /> |
77
                        Firma:<input type="checkbox" name="cbFirma" {if $cbFirma == 'on'}checked="checked"{/if} /> |
78
                        MwSt.7%:<input type="checkbox" name="cbMwSt7" {if $cbMwSt7 == 'on'}checked="checked"{/if} /> |
79
                        MwSt.19%:<input type="checkbox" name="cbMwSt19" {if $cbMwSt19 == 'on'}checked="checked"{/if} /> |
80
                        Nettobetrag:<input type="checkbox" name="cbNettobetrag" {if $cbNettobetrag == 'on'}checked="checked"{/if} />
81
                        MwSt-Befreiung:<input type="checkbox" name="cbMwStBefreiung" {if $cbMwStBefreiung == 'on'}checked="checked"{/if} />
82
                        USt-IdNr.:<input type="checkbox" name="cbUStIdNr" {if $cbUStIdNr == 'on'}checked="checked"{/if} />
83
                        Bestellnummer:<input type="checkbox" name="cbBestellnummer" {if $cbBestellnummer == 'on'}checked="checked"{/if} />
84
                        <br /><br />
85
                        {if isset($datev_user_recht)}
86
                        <input type="button" name="datev_export" value="Datev CSV-Export" onclick="document.location.href='datev_csv_export.php?zeitraum='+document.getElementById('zeitraum').value+'&shop='+document.getElementById('shops_id').value;" />
87
                        {/if}
88
                        <input type="submit" name="submit" value="OK" />
89
                    </td>
90
                </tr>
91
            </table>
92
        </div>
93
 
94
        <br />
95
 
96
        <table border="0" cellspacing="0" cellpadding="3" id="rechnungstabelle">
97
            <tr class="rechts">
98
                <td width="100" id="rechnungsnummer">Rechnungsnr.</a></td>
99
                <td width="150" id="erstelldatum">Erstelldatum</a></td>
100
                <td width="100" id="shop">Bruttobetrag</td>
101
                {if $cbErsteller}<td width="100" id="ersteller">Ersteller</a></td>{/if}
102
                {if $cbShop}<td width="100">Shop</td>{/if}
103
                {if $cbBezahlstatus}<td width="100">Bezahlstatus</td>{/if}
104
                {if $txtFaellig}<td width="100">F&auml;llig bis</td>{/if}
105
                <td width="100">Zahlart</td>
106
                {if $cbKdNr}<td width="100">Kd-Nr.</td>{/if}
107
                {if $cbKunde}<td width="100">Kunde</td>{/if}
108
                {if $cbFirma}<td width="100">Firma</td>{/if}
109
                {if $cbMwSt7}<td width="100">MwSt.7%</td>{/if}
110
                {if $cbMwSt19}<td width="100">MwSt.19%</td>{/if}
111
                {if $cbNettobetrag}<td width="100">Nettobetrag</td>{/if}
112
                {if $cbMwStBefreiung}<td width="100"> MwSt-Befreiung</td>{/if}
113
                {if $cbUStIdNr}<td width="100">USt-IdNr.</td>{/if}
114
                {if $cbBestellnummer}<td width="100">Bestellnummer</td>{/if}
115
 
116
            </tr>
117
            {section name=k loop=$rec}
118
 
119
            {if $rec[k]}
120
            <tr class="rechts">
121
                <td><a href="{$rec[k]['rechnungsnummerLink']}" target="tool">{$rec[k]['rechnungsnummer']}</a>{if $smarty.section.k.index < sizeof($rec)-1}&nbsp;<a href="{$rec[k]['rechnungsnummerLupe']}" class="lupe" target="_blank"><img align="middle" src="/dokumente/gfx/fileicons/pdf.gif" /></a>{/if}</td>
122
                <td>{if $rec[k]['erstellt_am'] > 0}{$rec[k]['erstellt_am']|date_format:"%d.%m.%Y %H:%M Uhr"}{/if}</td>
123
                <td align="right">{$rec[k]['bruttobetrag']}</td>
124
                {if $cbErsteller}<td>{$rec[k]['erstellt_von']}</td>{/if}
125
                {if $cbShop}<td>{$rec[k]['shop']}</td>{/if}
126
 
127
 
128
 
129
                {if $cbBezahlstatus}
130
                <td id="bezahlstatus_{$rec[k]['rechnungsnummer']}" style="text-align:center;cursor:{if $rec[k]['bezahlstatus']=="offen"}pointer{elseif $rec[k]['bezahlstatus']!=""}help{/if};"
131
                {if $rec[k]['bezahlstatus']=="offen"}
132
                ondblclick = "buildSelectBox('{$rec[k]['rechnungsnummer']}','{$rec[k]['bezahlstatus']}');"
133
                {/if}
134
                {if $rec[k]['bezahlstatus']!=""}
135
                onmouseover="return overlib('{if $rec[k]['bezahlstatus']=="offen"}<b>Doppelklicken zum Bearbeiten</b><br />{/if}{$rec[k]['bezahlstatus_history']}', CAPTION, '', HAUTO, VAUTO);" onmouseout="return nd();"{/if}>
136
 
137
                {if $rec[k]['bezahlstatus']!=""}
138
                    {$rec[k]['bezahlstatus']}
139
                {else}
140
                    <input type="submit" value="Status speichern" />
141
                {/if}
142
                </td>
143
                {/if}
144
 
145
 
146
                {if $txtFaellig}<td>{$rec[k]['zahlungsziel']|date_format:"d.m.Y"}</td>{/if}
147
                {if $rec[k]['zahlungsart']}<td>{$rec[k]['zahlungsart']}</td>{/if}
148
                {if $cbKdNr}<td>{$rec[k]['kundennr']}</td>{/if}
149
                {if $cbKunde}<td>{$rec[k]['kunde']}</td>{/if}
150
                {if $cbFirma}<td>{$rec[k]['firma']}</td>{/if}
151
                {if $cbMwSt7}<td align="right">{$rec[k]['mwst_7']}</td>{/if}
152
                {if $cbMwSt19}<td align="right">{$rec[k]['mwst_19']}</td>{/if}
153
                {if $cbNettobetrag}<td align="right">{$rec[k]['nettobetrag']}</td>{/if}
154
                {if $cbMwStBefreiung}<td align="right">{if $rec[k]['mwst_befreiung'] == "on"}befreit{/if}</td>{/if}
155
                {if $cbUStIdNr}<td align="right">{$rec[k]['ustid_nr']}</td>{/if}
156
                {if $cbBestellnummer}<td align="right">{$rec[k]['bestellung']}</td>{/if}
157
            </tr>
158
            {/if}
159
            {/section}
160
        </table>
161
        {if $cbBezahlstatus}
162
        <input type="hidden" name="action" value="save_bezahlstatus" />
163
        {/if}
164
    </form>
165
</body>
166
</html>