| 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=iso-8859-1" />
|
|
|
6 |
<meta name="author" content="Webagentur Niewerth" />
|
|
|
7 |
|
|
|
8 |
<title>Lieferschein drucken: Lieferanschrift auswählen</title>
|
|
|
9 |
|
|
|
10 |
<link rel="stylesheet" type="text/css" href="../styles/styles.php" />
|
|
|
11 |
<script type="text/javascript" src="jscript/best_manu.js"></script>
|
|
|
12 |
|
|
|
13 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
14 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
|
|
|
15 |
|
|
|
16 |
<head>
|
|
|
17 |
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
|
|
18 |
<meta name="author" content="Webagentur Niewerth" />
|
|
|
19 |
|
|
|
20 |
<title>Rechnungsdruck: weitere Optionen</title>
|
|
|
21 |
|
|
|
22 |
<link rel="stylesheet" type="text/css" href="../styles/styles.php" />
|
|
|
23 |
<script type="text/javascript" src="../js/overlib.js"></script>
|
|
|
24 |
|
|
|
25 |
|
|
|
26 |
{if file_exists("../css/$site/jquery-ui.custom.css")}
|
|
|
27 |
<link rel="stylesheet" type="text/css" href="../css/{$site}/jquery-ui.custom.css">
|
|
|
28 |
{else}
|
|
|
29 |
<link rel="stylesheet" type="text/css" href="../css/ui-darkness/jquery-ui.custom.css">
|
|
|
30 |
{/if}
|
|
|
31 |
<link rel="stylesheet" type="text/css" href="../styles/bestellung.css" />
|
|
|
32 |
<script type="text/JavaScript" src="../systemtermine/systemtermine.js.php"></script>
|
|
|
33 |
<script type="text/javascript" src="../Online-Shop/ajax.js"></script>
|
|
|
34 |
<script type="text/JavaScript" src="../checkDate.js"></script>
|
|
|
35 |
|
|
|
36 |
<script src="/js/jquery-1.4.4.min.js"></script>
|
|
|
37 |
<script src="/js/jquery-ui-1.8.9.custom.min.js"></script>
|
|
|
38 |
<script src="/js/i18n/jquery.ui.datepicker-de.js"></script>
|
|
|
39 |
<script>
|
|
|
40 |
$(function(){
|
|
|
41 |
$('#datum').datepicker();
|
|
|
42 |
|
|
|
43 |
$('#vorlage_row').hide();
|
|
|
44 |
$('#art_1').click(function(){
|
|
|
45 |
$('#vorlage_row').show();
|
|
|
46 |
});
|
|
|
47 |
$('#art_2').click(function(){
|
|
|
48 |
$('#vorlage_row').hide();
|
|
|
49 |
});
|
|
|
50 |
$('#add_btn').css("cursor","pointer").button().click(check_form);
|
|
|
51 |
});
|
|
|
52 |
|
|
|
53 |
function check_form()
|
|
|
54 |
{
|
|
|
55 |
vorlage=$('#vorlage').val();
|
|
|
56 |
if(vorlage==-1)
|
|
|
57 |
{
|
|
|
58 |
alert("Bitte wählen Sie eine Vorlage aus!");
|
|
|
59 |
}
|
|
|
60 |
else
|
|
|
61 |
{
|
|
|
62 |
$('#gs_select').submit();
|
|
|
63 |
}
|
|
|
64 |
}
|
|
|
65 |
</script>
|
|
|
66 |
|
|
|
67 |
</head>
|
|
|
68 |
</head>
|
|
|
69 |
|
|
|
70 |
<body>
|
|
|
71 |
<form action="{$SCRIPT_NAME}" method="post" name="form_step2">
|
|
|
72 |
<fieldset class="links" style="width:650px;">
|
|
|
73 |
<legend>Adresse für Lieferschein</legend>
|
|
|
74 |
{if $liefer_adresse}
|
|
|
75 |
<input type="radio" name="suchen" value="false" onclick="javascript:getElementById('suchen_form').style.display='none';getElementById('liefer_id').value='-1';getElementById('search_result').style.display='none';" {if $suchen=="false"&&($liefer_id==-1||$liefer_adresse)} checked="checked"{/if}>Lieferanschrift aus Bestellung übernehmen<br>
|
|
|
76 |
{/if}
|
|
|
77 |
<input type="radio" name="suchen" value="false" onclick="javascript:getElementById('suchen_form').style.display='none';getElementById('liefer_id').value='-2';getElementById('search_result').style.display='none';" {if $suchen=="false"&&($liefer_id==-2||!$liefer_adresse)} checked="checked"{/if}>Rechnungsadresse aus Bestellung übernehmen<br>
|
|
|
78 |
<input type="radio" name="suchen" value="true" onclick="javascript:getElementById('suchen_form').style.display='block';getElementById('liefer_id').value='0'" {if $suchen=="true"} checked="checked"{/if}>Lieferanschrift auswählen
|
|
|
79 |
</fieldset>
|
|
|
80 |
|
|
|
81 |
{if $datum_aendern==1}
|
|
|
82 |
{include file="lieferschein_datum_aendern.tpl"}
|
|
|
83 |
{/if}
|
|
|
84 |
|
|
|
85 |
<div id="suchen_form" style="{if $suchen=="true"}display:block;{else} display:none;{/if}">
|
|
|
86 |
<table width="650" border="1" cellspacing="0" cellpadding="3">
|
|
|
87 |
<tr>
|
|
|
88 |
<td colspan="2" class="links">Lieferschein drucken: Lieferanschrift auswählen</td>
|
|
|
89 |
</tr>
|
|
|
90 |
{section name=f_ind loop=$suchfelder}
|
|
|
91 |
<tr>
|
|
|
92 |
<td class="links">{$suchfelder[f_ind].name}</td>
|
|
|
93 |
<td class="rechts">
|
|
|
94 |
{if $suchfelder[f_ind].f_name=="PLZ_Ort"}
|
|
|
95 |
<input type="text" name="PLZ" value="{$formular.PLZ}" id="PLZ" />
|
|
|
96 |
/
|
|
|
97 |
<input type="text" name="Ort" value="{$formular.Ort}" id="Ort" />
|
|
|
98 |
{else}
|
|
|
99 |
{assign var=feld value=$suchfelder[f_ind].f_name}
|
|
|
100 |
<input type="text" name="{$suchfelder[f_ind].f_name}" id="{$suchfelder[f_ind].f_name}" value="{$formular[$feld]}" />
|
|
|
101 |
{/if}
|
|
|
102 |
</td>
|
|
|
103 |
</tr>
|
|
|
104 |
{/section}
|
|
|
105 |
</table>
|
|
|
106 |
<input type="hidden" name="b_id" value="{$b_id}">
|
|
|
107 |
</div>
|
|
|
108 |
<table width="650" border="1" cellspacing="0" cellpadding="3">
|
|
|
109 |
<tr>
|
|
|
110 |
<td colspan="2" class="links">
|
|
|
111 |
<input type="hidden" id="liefer_id" name="liefer_id" value="{if $liefer_adresse}-1{else}-2{/if}">
|
|
|
112 |
<input type="submit" value="senden" />
|
|
|
113 |
</td>
|
|
|
114 |
</tr>
|
|
|
115 |
</table>
|
|
|
116 |
</form>
|
|
|
117 |
|
|
|
118 |
{if $suchen!="false"}
|
|
|
119 |
{if $limit_erreicht != 'true' && $keine_eintraege != 'true'}
|
|
|
120 |
<div style="display:block" id="search_result">
|
|
|
121 |
<table width="650" border="1" cellspacing="0" cellpadding="3">
|
|
|
122 |
<tr>
|
|
|
123 |
<td colspan="5" class="links">Lieferschein drucken: Lieferanschrift auswählen : Suchergebnisse</td>
|
|
|
124 |
</tr>
|
|
|
125 |
<tr>
|
|
|
126 |
<td class="links links_theader">Kundennummer</td>
|
|
|
127 |
<td class="links links_theader">Vorname</td>
|
|
|
128 |
<td class="links links_theader">Nachname</td>
|
|
|
129 |
<td class="links links_theader">Ort</td>
|
|
|
130 |
<td class="links links_theader"></td>
|
|
|
131 |
</tr>
|
|
|
132 |
<tr>
|
|
|
133 |
<td colspan="4"></td>
|
|
|
134 |
</tr>
|
|
|
135 |
{section name=row loop=$loop}
|
|
|
136 |
<tr>
|
|
|
137 |
{strip}
|
|
|
138 |
<td class="rechts">{$loop[row].ID}</td>
|
|
|
139 |
<td class="rechts">{$loop[row].Vorname}</td>
|
|
|
140 |
<td class="rechts">{$loop[row].Name1}</td>
|
|
|
141 |
<td class="rechts">{$loop[row].Ort}</td>
|
|
|
142 |
<td class="rechts">
|
|
|
143 |
<a href="{$SCRIPT_NAME}?liefer_id={$loop[row].ID}&b_id={$b_id}">Kunde übernehmen</a>
|
|
|
144 |
</td>
|
|
|
145 |
{/strip}
|
|
|
146 |
</tr>
|
|
|
147 |
{/section}
|
|
|
148 |
<tr>
|
|
|
149 |
<td colspan="5" class="links"> </td>
|
|
|
150 |
</tr>
|
|
|
151 |
</table>
|
|
|
152 |
{elseif $limit_erreicht == 'true'}
|
|
|
153 |
<p class="error_upd" style="text-align: left;">
|
|
|
154 |
Zu viele Einträge gefunen!
|
|
|
155 |
Bitte speziefizieren Sie Ihre Suche.
|
|
|
156 |
</p>
|
|
|
157 |
{elseif $keine_eintraege == 'true'}
|
|
|
158 |
<p class="error_upd" style="text-align: left;">
|
|
|
159 |
Keine Einträge gefunen!
|
|
|
160 |
Bitte überprüfen Sie Ihre Suche.
|
|
|
161 |
</p>
|
|
|
162 |
</div>
|
|
|
163 |
{/if}
|
|
|
164 |
{/if}
|
|
|
165 |
|
|
|
166 |
<script>
|
|
|
167 |
var jetzt = new Date();
|
|
|
168 |
var tag = jetzt.getDay();
|
|
|
169 |
var monat = jetzt.getMonth();
|
|
|
170 |
var jahr = jetzt.getFullYear();
|
|
|
171 |
if(tag < 10) {
|
|
|
172 |
tag = "0" + tag;
|
|
|
173 |
}
|
|
|
174 |
if(monat < 10) {
|
|
|
175 |
monat = "0" + monat;
|
|
|
176 |
}
|
|
|
177 |
datum = tag + "." + monat + "." + jahr;
|
|
|
178 |
if(document.getElementById('datum')) {
|
|
|
179 |
document.getElementById('datum').value = datum;
|
|
|
180 |
}
|
|
|
181 |
</script>
|
|
|
182 |
|
|
|
183 |
</body>
|
|
|
184 |
</html>
|