Revision 249dc4d7
Von Holger Lindemann vor mehr als 12 Jahren hinzugefügt
peppershop/confedit.php | ||
---|---|---|
7 | 7 |
exit; |
8 | 8 |
} else { |
9 | 9 |
if (!$_POST) { |
10 |
//Je Shop ein Conf-File == Multishop
|
|
11 |
$Shop=$_GET["Shop"];
|
|
12 |
if ($Shop != "" and file_exists ("conf$Shop.php")) {
|
|
13 |
require "conf$Shop.php";
|
|
14 |
$out = "Konfiguration für Shop $Shop gelesen";
|
|
15 |
} else {
|
|
16 |
//Singleshop oder noch kein Shop definiert
|
|
17 |
require "conf.php";
|
|
18 |
$out = "Standard-Konfiguration gelesen";
|
|
19 |
}
|
|
20 |
if ($_SERVER['PHP_AUTH_USER']<>$ERPftpuser || $_SERVER['PHP_AUTH_PW']<>$ERPftppwd) {
|
|
21 |
Header("WWW-Authenticate: Basic realm='My Realm'");
|
|
22 |
Header("HTTP/1.0 401 Unauthorized");
|
|
23 |
echo "Sie müssen sich autentifizieren\n";
|
|
24 |
exit;
|
|
25 |
}
|
|
26 |
echo $out;
|
|
27 |
}
|
|
10 |
//Je Shop ein Conf-File == Multishop
|
|
11 |
$Shop=$_GET["Shop"];
|
|
12 |
if ($Shop != "" and file_exists ("conf$Shop.php")) {
|
|
13 |
require "conf$Shop.php";
|
|
14 |
$out = "Konfiguration für Shop $Shop gelesen"; |
|
15 |
} else {
|
|
16 |
//Singleshop oder noch kein Shop definiert |
|
17 |
require "conf.php";
|
|
18 |
$out = "Standard-Konfiguration gelesen"; |
|
19 |
}
|
|
20 |
if ($_SERVER['PHP_AUTH_USER']<>$ERPftpuser || $_SERVER['PHP_AUTH_PW']<>$ERPftppwd) {
|
|
21 |
Header("WWW-Authenticate: Basic realm='My Realm'");
|
|
22 |
Header("HTTP/1.0 401 Unauthorized");
|
|
23 |
echo "Sie müssen sich autentifizieren\n";
|
|
24 |
exit;
|
|
25 |
}
|
|
26 |
echo $out; |
|
27 |
}
|
|
28 | 28 |
} |
29 | 29 |
|
30 | 30 |
include_once("error.php"); |
... | ... | |
42 | 42 |
$sql = "select w.description as lager,b.description as platz,b.id from "; |
43 | 43 |
$sql .= "bin b left join warehouse w on w.id=b.warehouse_id "; |
44 | 44 |
$sql .= "order by b.warehouse_id,b.id"; |
45 |
$bin=$db->getall($sql);
|
|
45 |
$bin=$db->getall($sql);
|
|
46 | 46 |
echo "\t<option value=-1 ".(($sel==-1)?'selected':'').">kein Lagerbestand\n"; |
47 | 47 |
echo "\t<option value=1 ".(($sel==1)?'selected':'').">Gesamtbestand\n"; |
48 | 48 |
if ($bin) foreach ($bin as $row) { |
49 |
echo "\t<option value=".$row['id'];
|
|
50 |
if ($sel==$row['id']) echo " selected";
|
|
51 |
echo ">".$row['lager']." ".$row['platz']."\n";
|
|
49 |
echo "\t<option value=".$row['id'];
|
|
50 |
if ($sel==$row['id']) echo " selected";
|
|
51 |
echo ">".$row['lager']." ".$row['platz']."\n";
|
|
52 | 52 |
} |
53 | 53 |
} |
54 | 54 |
function unit($sel,$db) { |
55 | 55 |
if (!$db) return ''; |
56 |
$sql="select name from units order by sortkey";
|
|
57 |
$pgs=$db->getall($sql);
|
|
58 |
if ($sel=='') $sel=$pgs[0]['name'];
|
|
59 |
if ($pgs) foreach ($pgs as $row) {
|
|
60 |
echo "\t<option value=".$row['name'];
|
|
61 |
if ($sel==$row['name']) echo " selected";
|
|
62 |
echo ">".$row['name']."\n";
|
|
63 |
}
|
|
56 |
$sql="select name from units order by sortkey";
|
|
57 |
$pgs=$db->getall($sql);
|
|
58 |
if ($sel=='') $sel=$pgs[0]['name'];
|
|
59 |
if ($pgs) foreach ($pgs as $row) {
|
|
60 |
echo "\t<option value=".$row['name'];
|
|
61 |
if ($sel==$row['name']) echo " selected";
|
|
62 |
echo ">".$row['name']."\n";
|
|
63 |
}
|
|
64 | 64 |
} |
65 | 65 |
function pg($sel,$db) { |
66 |
if (!$db) return '';
|
|
67 |
$sql="select id,pricegroup from pricegroup";
|
|
68 |
$pgs=$db->getall($sql);
|
|
69 |
echo "\t<option value=0";
|
|
70 |
if ($sel==0) echo " selected";
|
|
71 |
echo ">Standard VK\n";
|
|
72 |
if ($pgs) foreach ($pgs as $row) {
|
|
73 |
echo "\t<option value=".$row['id'];
|
|
74 |
if ($sel==$row['id']) echo " selected";
|
|
75 |
echo ">".$row['pricegroup']."\n";
|
|
76 |
}
|
|
66 |
if (!$db) return ''; |
|
67 |
$sql="select id,pricegroup from pricegroup";
|
|
68 |
$pgs=$db->getall($sql);
|
|
69 |
echo "\t<option value=0";
|
|
70 |
if ($sel==0) echo " selected";
|
|
71 |
echo ">Standard VK\n";
|
|
72 |
if ($pgs) foreach ($pgs as $row) {
|
|
73 |
echo "\t<option value=".$row['id'];
|
|
74 |
if ($sel==$row['id']) echo " selected";
|
|
75 |
echo ">".$row['pricegroup']."\n";
|
|
76 |
}
|
|
77 | 77 |
} |
78 | 78 |
function getTax($db) { |
79 | 79 |
$sql = "SELECT BG.id AS bugru,T.rate,TK.startdate,C.taxkey_id, "; |
... | ... | |
88 | 88 |
if (!$TAX[$nr]) { |
89 | 89 |
$data = array(); |
90 | 90 |
$data['startdate'] = $row['startdate']; |
91 |
$data['rate'] = $row['rate']*100.0;
|
|
91 |
$data['rate'] = $row['rate']*100.0;
|
|
92 | 92 |
$TAX[$nr] = $data; |
93 | 93 |
} else if ($TAX[$nr]['startdate'] < $row['startdate']) { |
94 |
$TAX[$nr]["startdate"] = $row['startdate'];
|
|
95 |
$TAX[$nr]["rate"] = $row['rate']*100.0;
|
|
94 |
$TAX[$nr]["startdate"] = $row['startdate'];
|
|
95 |
$TAX[$nr]["rate"] = $row['rate']*100.0;
|
|
96 | 96 |
} |
97 | 97 |
} |
98 | 98 |
return $TAX; |
... | ... | |
106 | 106 |
if ($bg) fputs($f,'$'.$key.'["BUGRU"]=\''. $var['BUGRU'].'\';'.$lf); |
107 | 107 |
if ($bg) fputs($f,'$'.$key.'["TAX"]=\''. $var['TAX'].'\';'.$lf); |
108 | 108 |
} |
109 |
|
|
109 | 110 |
if ($_POST["ok"]=="sichern") { |
110 |
foreach ($_POST as $key=>$val) {
|
|
111 |
${$key} = $val;
|
|
112 |
}
|
|
111 |
foreach ($_POST as $key=>$val) {
|
|
112 |
${$key} = $val;
|
|
113 |
}
|
|
113 | 114 |
}; |
114 |
$ok=true; |
|
115 |
$dbP = new mydb($ERPhost,$ERPdbname,$ERPuser,$ERPpass,$ERPport,'pgsql',$err); |
|
116 |
if (!$dbP->db) { |
|
117 |
$ok=false; |
|
118 |
echo "Keine Verbindung zur ERP<br>"; |
|
119 |
$dbP=false; |
|
120 |
unset($divStd['ID']); |
|
121 |
unset($divVerm['ID']); |
|
122 |
unset($minder['ID']); |
|
123 |
unset($versand['ID']); |
|
124 |
unset($nachn['ID']); |
|
125 |
unset($paypal['ID']); |
|
126 |
unset($treuh['ID']); |
|
127 |
unset($ERPusr['ID']); |
|
128 |
} else { |
|
129 |
$tax = getTax($dbP); |
|
130 |
$sql="SELECT id,description,unit,buchungsgruppen_id FROM parts where partnumber = '%s'"; |
|
131 |
$rs=$dbP->getOne(sprintf($sql,$divStd['NR'])); |
|
132 |
$divStd['ID']=$rs['id']; |
|
133 |
$divStd['Unit']=$rs['unit']; |
|
134 |
$divStd['BUGRU']=$rs['buchungsgruppen_id']; |
|
135 |
$divStd['TAX']=$tax[$rs['buchungsgruppen_id']]['rate']; |
|
136 |
$divStd['TXT']=addslashes($rs['description']); |
|
137 |
$rs=$dbP->getOne(sprintf($sql,$divVerm['NR'])); |
|
138 |
$divVerm['ID']=$rs['id']; |
|
139 |
$divVerm['Unit']=$rs['unit']; |
|
140 |
$divVerm['BUGRU']=$rs['buchungsgruppen_id']; |
|
141 |
$divVerm['TAX']=$tax[$rs['buchungsgruppen_id']]['rate']; |
|
142 |
$divVerm['TXT']=addslashes($rs['description']); |
|
143 |
$rs=$dbP->getOne(sprintf($sql,$versandS['NR'])); |
|
144 |
$versandS['ID']=$rs['id']; |
|
145 |
$versandS['Unit']=$rs['unit']; |
|
146 |
$versandS['BUGRU']=$rs['buchungsgruppen_id']; |
|
147 |
$versandS['TAX']=$tax[$rs['buchungsgruppen_id']]['rate']; |
|
148 |
if ($versandS['TXT'] == '') $versandS['TXT']=addslashes($rs['description']); |
|
149 |
$rs=$dbP->getOne(sprintf($sql,$versandV['NR'])); |
|
150 |
$versandV['ID']=$rs['id']; |
|
151 |
$versandV['Unit']=$rs['unit']; |
|
152 |
$versandV['BUGRU']=$rs['buchungsgruppen_id']; |
|
153 |
$versandV['TAX']=$tax[$rs['buchungsgruppen_id']]['rate']; |
|
154 |
if ($versandV['TXT'] == '') $versandV['TXT']=addslashes($rs['description']); |
|
155 |
$rs=$dbP->getOne(sprintf($sql,$nachn['NR'])); |
|
156 |
$nachn['ID']=$rs['id']; |
|
157 |
$nachn['Unit']=$rs['unit']; |
|
158 |
$nachn['BUGRU']=$rs['buchungsgruppen_id']; |
|
159 |
$nachn['TAX']=$tax[$rs['buchungsgruppen_id']]['rate']; |
|
160 |
if ($nachn['TXT'] == '') $nachn['TXT']=addslashes($rs['description']); |
|
161 |
$rs=$dbP->getOne(sprintf($sql,$minder['NR'])); |
|
162 |
$minder['ID']=$rs['id']; |
|
163 |
$minder['Unit']=$rs['unit']; |
|
164 |
$minder['BUGRU']=$rs['buchungsgruppen_id']; |
|
165 |
$minder['TAX']=$tax[$rs['buchungsgruppen_id']]['rate']; |
|
166 |
if ($minder['TXT'] == '') $minder['TXT']=addslashes($rs['description']); |
|
167 |
$rs=$dbP->getOne(sprintf($sql,$paypal['NR'])); |
|
168 |
$paypal['ID']=$rs['id']; |
|
169 |
$paypal['Unit']=$rs['unit']; |
|
170 |
$paypal['BUGRU']=$rs['buchungsgruppen_id']; |
|
171 |
$paypal['TAX']=$tax[$rs['buchungsgruppen_id']]['rate']; |
|
172 |
if ($paypal['TXT'] == '') $paypal['TXT']=addslashes($rs['description']); |
|
173 |
$rs=$dbP->getOne(sprintf($sql,$treuh['NR'])); |
|
174 |
$treuh['ID']=$rs['id']; |
|
175 |
$treuh['Unit']=$rs['unit']; |
|
176 |
$treuh['BUGRU']=$rs['buchungsgruppen_id']; |
|
177 |
$treuh['TAX']=$tax[$rs['buchungsgruppen_id']]['rate']; |
|
178 |
if ($treuh['TXT'] == '') $treuh['TXT']=addslashes($rs['description']); |
|
179 |
$rs=$dbP->getOne("select id from employee where login = '".$ERPusrName."'"); |
|
180 |
$ERPusrID=$rs['id']; |
|
181 |
} |
|
182 |
$dbM = new mydb($SHOPhost,$SHOPdbname,$SHOPuser,$SHOPpass,$SHOPport,'mysql',$err); |
|
183 |
if (!$dbM->db) { |
|
184 |
$ok=false; |
|
185 |
echo "Keine Verbindung zum Shop<br>"; |
|
186 |
$dbM=false; |
|
187 |
}; |
|
115 |
if ( empty($ERPport) ) $ERPport = '5432'; |
|
116 |
if ( empty($SHOPport) ) $SHOPport = '3306'; |
|
117 |
|
|
118 |
$ok=true; |
|
119 |
$dbP = new mydb($ERPhost,$ERPdbname,$ERPuser,$ERPpass,$ERPport,'pgsql',$err,$debug); |
|
120 |
if (!$dbP->db) { |
|
121 |
$ok=false; |
|
122 |
echo "Keine Verbindung zur ERP<br>"; |
|
123 |
$dbP=false; |
|
124 |
unset($divStd['ID']); |
|
125 |
unset($divVerm['ID']); |
|
126 |
unset($minder['ID']); |
|
127 |
unset($versand['ID']); |
|
128 |
unset($nachn['ID']); |
|
129 |
unset($paypal['ID']); |
|
130 |
unset($treuhand['ID']); |
|
131 |
unset($ERPusr['ID']); |
|
132 |
} else { |
|
133 |
$tax = getTax($dbP); |
|
134 |
$sql="SELECT id,description,unit,buchungsgruppen_id FROM parts where partnumber = '%s'"; |
|
135 |
$rs=$dbP->getOne(sprintf($sql,$divStd['NR'])); |
|
136 |
$divStd['ID']=$rs['id']; |
|
137 |
$divStd['Unit']=$rs['unit']; |
|
138 |
$divStd['BUGRU']=$rs['buchungsgruppen_id']; |
|
139 |
$divStd['TAX']=$tax[$rs['buchungsgruppen_id']]['rate']; |
|
140 |
$divStd['TXT']=addslashes($rs['description']); |
|
141 |
$rs=$dbP->getOne(sprintf($sql,$divVerm['NR'])); |
|
142 |
$divVerm['ID']=$rs['id']; |
|
143 |
$divVerm['Unit']=$rs['unit']; |
|
144 |
$divVerm['BUGRU']=$rs['buchungsgruppen_id']; |
|
145 |
$divVerm['TAX']=$tax[$rs['buchungsgruppen_id']]['rate']; |
|
146 |
$divVerm['TXT']=addslashes($rs['description']); |
|
147 |
$rs=$dbP->getOne(sprintf($sql,$versandS['NR'])); |
|
148 |
$versandS['ID']=$rs['id']; |
|
149 |
$versandS['Unit']=$rs['unit']; |
|
150 |
$versandS['BUGRU']=$rs['buchungsgruppen_id']; |
|
151 |
$versandS['TAX']=$tax[$rs['buchungsgruppen_id']]['rate']; |
|
152 |
if ($versandS['TXT'] == '') $versandS['TXT']=addslashes($rs['description']); |
|
153 |
$rs=$dbP->getOne(sprintf($sql,$versandV['NR'])); |
|
154 |
$versandV['ID']=$rs['id']; |
|
155 |
$versandV['Unit']=$rs['unit']; |
|
156 |
$versandV['BUGRU']=$rs['buchungsgruppen_id']; |
|
157 |
$versandV['TAX']=$tax[$rs['buchungsgruppen_id']]['rate']; |
|
158 |
if ($versandV['TXT'] == '') $versandV['TXT']=addslashes($rs['description']); |
|
159 |
$rs=$dbP->getOne(sprintf($sql,$nachn['NR'])); |
|
160 |
$nachn['ID']=$rs['id']; |
|
161 |
$nachn['Unit']=$rs['unit']; |
|
162 |
$nachn['BUGRU']=$rs['buchungsgruppen_id']; |
|
163 |
$nachn['TAX']=$tax[$rs['buchungsgruppen_id']]['rate']; |
|
164 |
if ($nachn['TXT'] == '') $nachn['TXT']=addslashes($rs['description']); |
|
165 |
$rs=$dbP->getOne(sprintf($sql,$minder['NR'])); |
|
166 |
$minder['ID']=$rs['id']; |
|
167 |
$minder['Unit']=$rs['unit']; |
|
168 |
$minder['BUGRU']=$rs['buchungsgruppen_id']; |
|
169 |
$minder['TAX']=$tax[$rs['buchungsgruppen_id']]['rate']; |
|
170 |
if ($minder['TXT'] == '') $minder['TXT']=addslashes($rs['description']); |
|
171 |
$rs=$dbP->getOne(sprintf($sql,$paypal['NR'])); |
|
172 |
$paypal['ID']=$rs['id']; |
|
173 |
$paypal['Unit']=$rs['unit']; |
|
174 |
$paypal['BUGRU']=$rs['buchungsgruppen_id']; |
|
175 |
$paypal['TAX']=$tax[$rs['buchungsgruppen_id']]['rate']; |
|
176 |
if ($paypal['TXT'] == '') $paypal['TXT']=addslashes($rs['description']); |
|
177 |
$rs=$dbP->getOne(sprintf($sql,$treuhand['NR'])); |
|
178 |
$treuhand['ID']=$rs['id']; |
|
179 |
$treuhand['Unit']=$rs['unit']; |
|
180 |
$treuhand['BUGRU']=$rs['buchungsgruppen_id']; |
|
181 |
$treuhand['TAX']=$tax[$rs['buchungsgruppen_id']]['rate']; |
|
182 |
if ($treuhand['TXT'] == '') $treuhand['TXT']=addslashes($rs['description']); |
|
183 |
$rs=$dbP->getOne("select id from employee where login = '".$ERPusrName."'"); |
|
184 |
$ERPusrID=$rs['id']; |
|
185 |
} |
|
186 |
$dbM = new mydb($SHOPhost,$SHOPdbname,$SHOPuser,$SHOPpass,$SHOPport,'mysql',$err,$debug); |
|
187 |
if (!$dbM->db) { |
|
188 |
$ok=false; |
|
189 |
echo "Keine Verbindung zum Shop<br>"; |
|
190 |
$dbM=false; |
|
191 |
}; |
|
188 | 192 |
if ($_POST["ok"]=="sichern") { |
189 |
$lf="\n"; |
|
190 |
$f=@fopen("conf$Shop.php","w"); |
|
191 |
if ($f) { |
|
192 |
$v="1.5"; |
|
193 |
$d=date("Y/m/d H:i:s"); |
|
194 |
fputs($f,"<?php$lf// Verbindung zur ERP-db$lf"); |
|
195 |
fputs($f,'$ERPuser=\''.$ERPuser.'\';'.$lf); |
|
196 |
fputs($f,'$ERPpass=\''.$ERPpass.'\';'.$lf); |
|
197 |
fputs($f,'$ERPhost=\''.$ERPhost.'\';'.$lf); |
|
198 |
fputs($f,'$ERPdbname=\''.$ERPdbname.'\';'.$lf); |
|
199 |
fputs($f,'$codeLX=\''.$codeLX.'\';'.$lf); |
|
200 |
fputs($f,'$mwstLX=\''.$mwstLX.'\';'.$lf); |
|
201 |
fputs($f,'$ERPusrName=\''.$ERPusrName.'\';'.$lf); |
|
202 |
fputs($f,'$ERPusrID=\''.$ERPusrID.'\';'.$lf); |
|
203 |
fputs($f,'$ERPimgdir=\''.$ERPimgdir.'\';'.$lf); |
|
204 |
fputs($f,'$maxSize=\''.$maxSize.'\';'.$lf); |
|
205 |
fputs($f,'$ERPftphost=\''.$ERPftphost.'\';'.$lf); |
|
206 |
fputs($f,'$ERPftpuser=\''.$ERPftpuser.'\';'.$lf); |
|
207 |
fputs($f,'$ERPftppwd=\''.$ERPftppwd.'\';'.$lf); |
|
208 |
fputs($f,'//Verbindung zur osCommerce-db'.$lf); |
|
209 |
fputs($f,'$SHOPuser=\''.$SHOPuser.'\';'.$lf); |
|
210 |
fputs($f,'$SHOPpass=\''.$SHOPpass.'\';'.$lf); |
|
211 |
fputs($f,'$SHOPhost=\''.$SHOPhost.'\';'.$lf); |
|
212 |
fputs($f,'$SHOPdbname=\''.$SHOPdbname.'\';'.$lf); |
|
213 |
fputs($f,'$codeS=\''.$codeS.'\';'.$lf); |
|
214 |
fputs($f,'$mwstS=\''.$mwstS.'\';'.$lf); |
|
215 |
fputs($f,'$SHOPimgdir=\''.$SHOPimgdir.'\';'.$lf); |
|
216 |
fputs($f,'$SHOPftphost=\''.$SHOPftphost.'\';'.$lf); |
|
217 |
fputs($f,'$SHOPftpuser=\''.$SHOPftpuser.'\';'.$lf); |
|
218 |
fputs($f,'$SHOPftppwd=\''.$SHOPftppwd.'\';'.$lf); |
|
219 |
fputs($f,'$nopic=\''.$nopic.'\';'.$lf); |
|
220 |
fputs($f,'$nopicerr=\''.$nopicerr.'\';'.$lf); |
|
193 |
$lf = "\n"; |
|
194 |
$f = @fopen("conf$Shop.php","w"); |
|
195 |
if ($f) { |
|
196 |
$v="1.5"; |
|
197 |
$d=date("Y/m/d H:i:s"); |
|
198 |
fputs($f,"<?php$lf// Verbindung zur ERP-db$lf"); |
|
199 |
fputs($f,'$debug=\''.$debug.'\';'.$lf); |
|
200 |
fputs($f,'$ERPuser=\''.$ERPuser.'\';'.$lf); |
|
201 |
fputs($f,'$ERPpass=\''.$ERPpass.'\';'.$lf); |
|
202 |
fputs($f,'$ERPhost=\''.$ERPhost.'\';'.$lf); |
|
203 |
fputs($f,'$ERPport=\''.$ERPport.'\';'.$lf); |
|
204 |
fputs($f,'$ERPdbname=\''.$ERPdbname.'\';'.$lf); |
|
205 |
fputs($f,'$codeLX=\''.$codeLX.'\';'.$lf); |
|
206 |
fputs($f,'$mwstLX=\''.$mwstLX.'\';'.$lf); |
|
207 |
fputs($f,'$ERPusrName=\''.$ERPusrName.'\';'.$lf); |
|
208 |
fputs($f,'$ERPusrID=\''.$ERPusrID.'\';'.$lf); |
|
209 |
fputs($f,'$ERPimgdir=\''.$ERPimgdir.'\';'.$lf); |
|
210 |
fputs($f,'$maxSize=\''.$maxSize.'\';'.$lf); |
|
211 |
fputs($f,'$ERPftphost=\''.$ERPftphost.'\';'.$lf); |
|
212 |
fputs($f,'$ERPftpuser=\''.$ERPftpuser.'\';'.$lf); |
|
213 |
fputs($f,'$ERPftppwd=\''.$ERPftppwd.'\';'.$lf); |
|
214 |
fputs($f,'//Verbindung zur osCommerce-db'.$lf); |
|
215 |
fputs($f,'$SHOPuser=\''.$SHOPuser.'\';'.$lf); |
|
216 |
fputs($f,'$SHOPpass=\''.$SHOPpass.'\';'.$lf); |
|
217 |
fputs($f,'$SHOPhost=\''.$SHOPhost.'\';'.$lf); |
|
218 |
fputs($f,'$SHOPport=\''.$SHOPport.'\';'.$lf); |
|
219 |
fputs($f,'$SHOPdbname=\''.$SHOPdbname.'\';'.$lf); |
|
220 |
fputs($f,'$codeS=\''.$codeS.'\';'.$lf); |
|
221 |
fputs($f,'$mwstS=\''.$mwstS.'\';'.$lf); |
|
222 |
fputs($f,'$SHOPimgdir=\''.$SHOPimgdir.'\';'.$lf); |
|
223 |
fputs($f,'$SHOPftphost=\''.$SHOPftphost.'\';'.$lf); |
|
224 |
fputs($f,'$SHOPftpuser=\''.$SHOPftpuser.'\';'.$lf); |
|
225 |
fputs($f,'$SHOPftppwd=\''.$SHOPftppwd.'\';'.$lf); |
|
226 |
fputs($f,'$nopic=\''.$nopic.'\';'.$lf); |
|
227 |
fputs($f,'$nopicerr=\''.$nopicerr.'\';'.$lf); |
|
221 | 228 |
fputsA($f,'divStd',$divStd,true); |
222 | 229 |
fputsA($f,'divVerm',$divVerm,true); |
223 | 230 |
fputsA($f,'versandS',$versandS,true); |
224 | 231 |
fputsA($f,'versandV',$versandV,true); |
225 | 232 |
fputsA($f,'minder',$minder,true); |
226 | 233 |
fputsA($f,'nachn',$nachn,true); |
227 |
fputsA($f,'treuh',$treuh,true);
|
|
234 |
fputsA($f,'treuhand',$treuhand,true);
|
|
228 | 235 |
fputsA($f,'paypal',$paypal,true); |
229 |
fputs($f,'$bgcol[1]=\'#ddddff\';'.$lf);
|
|
230 |
fputs($f,'$bgcol[2]=\'#ddffdd\';'.$lf);
|
|
231 |
fputs($f,'$preA=\''.$preA.'\';'.$lf);
|
|
232 |
fputs($f,'$preK=\''.$preK.'\';'.$lf);
|
|
233 |
fputs($f,'$auftrnr=\''.$auftrnr.'\';'.$lf);
|
|
234 |
//fputs($f,'$utftrans=\''.$utftrans.'\';'.$lf);
|
|
235 |
fputs($f,'$kdnum=\''.$kdnum.'\';'.$lf);
|
|
236 |
fputs($f,'$pricegroup=\''.$pricegroup.'\';'.$lf);
|
|
237 |
fputs($f,'$unit=\''.$unit.'\';'.$lf);
|
|
238 |
fputs($f,'$longtxt=\''.$longtxt.'\';'.$lf);
|
|
239 |
fputs($f,'$invbrne=\''.$invbrne.'\';'.$lf);
|
|
240 |
fputs($f,'$variantnr=\''.$variantnr.'\';'.$lf);
|
|
241 |
fputs($f,'$OEinsPart=\''.$OEinsPart.'\';'.$lf);
|
|
242 |
fputs($f,'$lager=\''.$lager.'\';'.$lf);
|
|
243 |
//fputs($f,'$showErr=true;'.$lf);
|
|
244 |
fputs($f,"?>");
|
|
245 |
fclose($f);
|
|
236 |
fputs($f,'$bgcol[1]=\'#ddddff\';'.$lf);
|
|
237 |
fputs($f,'$bgcol[2]=\'#ddffdd\';'.$lf);
|
|
238 |
fputs($f,'$preA=\''.$preA.'\';'.$lf);
|
|
239 |
fputs($f,'$preK=\''.$preK.'\';'.$lf);
|
|
240 |
fputs($f,'$auftrnr=\''.$auftrnr.'\';'.$lf);
|
|
241 |
//fputs($f,'$utftrans=\''.$utftrans.'\';'.$lf);
|
|
242 |
fputs($f,'$kdnum=\''.$kdnum.'\';'.$lf);
|
|
243 |
fputs($f,'$pricegroup=\''.$pricegroup.'\';'.$lf);
|
|
244 |
fputs($f,'$unit=\''.$unit.'\';'.$lf);
|
|
245 |
fputs($f,'$longtxt=\''.$longtxt.'\';'.$lf);
|
|
246 |
fputs($f,'$invbrne=\''.$invbrne.'\';'.$lf);
|
|
247 |
fputs($f,'$variantnr=\''.$variantnr.'\';'.$lf);
|
|
248 |
fputs($f,'$OEinsPart=\''.$OEinsPart.'\';'.$lf);
|
|
249 |
fputs($f,'$lager=\''.$lager.'\';'.$lf);
|
|
250 |
//fputs($f,'$showErr=true;'.$lf);
|
|
251 |
fputs($f,"?>");
|
|
252 |
fclose($f);
|
|
246 | 253 |
echo "Konfiguration conf$Shop.php gesichert."; |
247 |
} else {
|
|
248 |
echo "Konfigurationsdatei (conf$Shop.php) konnte nicht geschrieben werden";
|
|
249 |
}
|
|
254 |
} else { |
|
255 |
echo "Konfigurationsdatei (conf$Shop.php) konnte nicht geschrieben werden"; |
|
256 |
} |
|
250 | 257 |
} |
251 | 258 |
?> |
252 | 259 |
<html> |
... | ... | |
262 | 269 |
<input type="hidden" name="versandV[ID]" value="<?= $versandV['ID'] ?>"> |
263 | 270 |
<input type="hidden" name="nachn[ID]" value="<?= $nachn['ID'] ?>"> |
264 | 271 |
<input type="hidden" name="paypal[ID]" value="<?= $paypal['ID'] ?>"> |
265 |
<input type="hidden" name="treuh[ID]" value="<?= $treuh['ID'] ?>">
|
|
272 |
<input type="hidden" name="treuhand[ID]" value="<?= $treuhand['ID'] ?>">
|
|
266 | 273 |
<input type="hidden" name="ERPusr[ID]" value="<?= $ERPusr['ID'] ?>"> |
267 | 274 |
|
268 | 275 |
<tr><th>Daten</th><th>Lx-ERP</th><th><?php echo $Shop ?></th><th>Shop</th></tr> |
269 | 276 |
<tr> |
270 |
<td>db-Host</td>
|
|
271 |
<td colspan="2"><input type="text" name="ERPhost" size="25" value="<?= $ERPhost ?>"></td>
|
|
272 |
<td><input type="text" name="SHOPhost" size="25" value="<?= $SHOPhost ?>"></td>
|
|
277 |
<td>db-Host</td>
|
|
278 |
<td colspan="2"><input type="text" name="ERPhost" size="25" value="<?= $ERPhost ?>"></td>
|
|
279 |
<td><input type="text" name="SHOPhost" size="25" value="<?= $SHOPhost ?>"></td>
|
|
273 | 280 |
</tr> |
274 | 281 |
<tr> |
275 |
<td>Database</td>
|
|
276 |
<td colspan="2"><input type="text" name="ERPdbname" size="20" value="<?= $ERPdbname ?>"></td>
|
|
277 |
<td><input type="text" name="SHOPdbname" size="20" value="<?= $SHOPdbname ?>"></td>
|
|
282 |
<td>db-Port</td>
|
|
283 |
<td colspan="2"><input type="text" name="ERPport" size="25" value="<?= $ERPport ?>"></td>
|
|
284 |
<td><input type="text" name="SHOPport" size="25" value="<?= $SHOPport ?>"></td>
|
|
278 | 285 |
</tr> |
279 | 286 |
<tr> |
280 |
<td>db-User Name</td>
|
|
281 |
<td colspan="2"><input type="text" name="ERPuser" size="15" value="<?= $ERPuser ?>"></td>
|
|
282 |
<td><input type="text" name="SHOPuser" size="15" value="<?= $SHOPuser ?>"></td>
|
|
287 |
<td>Database</td>
|
|
288 |
<td colspan="2"><input type="text" name="ERPdbname" size="20" value="<?= $ERPdbname ?>"></td>
|
|
289 |
<td><input type="text" name="SHOPdbname" size="20" value="<?= $SHOPdbname ?>"></td>
|
|
283 | 290 |
</tr> |
284 | 291 |
<tr> |
285 |
<td>db-User PWD</td> |
|
286 |
<td colspan="2"><input type="text" name="ERPpass" size="15" value="<?= $ERPpass ?>"></td> |
|
287 |
<td><input type="text" name="SHOPpass" size="15" value="<?= $SHOPpass ?>"></td> |
|
292 |
<td>db-User Name</td> |
|
293 |
<td colspan="2"><input type="text" name="ERPuser" size="15" value="<?= $ERPuser ?>"></td> |
|
294 |
<td><input type="text" name="SHOPuser" size="15" value="<?= $SHOPuser ?>"></td> |
|
295 |
</tr> |
|
296 |
<tr> |
|
297 |
<td>db-User PWD</td> |
|
298 |
<td colspan="2"><input type="text" name="ERPpass" size="15" value="<?= $ERPpass ?>"></td> |
|
299 |
<td><input type="text" name="SHOPpass" size="15" value="<?= $SHOPpass ?>"></td> |
|
288 | 300 |
</tr> |
289 | 301 |
</tr> |
290 |
<td>Zeichensatz</td>
|
|
291 |
<td colspan="2"><select name="codeLX">
|
|
302 |
<td>Zeichensatz</td>
|
|
303 |
<td colspan="2"><select name="codeLX">
|
|
292 | 304 |
<?php foreach($zeichen as $code) { |
293 | 305 |
echo "<option value='".$code."'"; |
294 | 306 |
if ($code == $codeLX) echo " selected"; |
295 | 307 |
echo ">".$code."\n"; }; |
296 | 308 |
?> |
297 |
</select></td>
|
|
298 |
<td ><select name="codeS">
|
|
309 |
</select></td>
|
|
310 |
<td ><select name="codeS">
|
|
299 | 311 |
<?php foreach($zeichen as $code) { |
300 | 312 |
echo "<option value='".$code."'"; |
301 | 313 |
if ($code == $codeS) echo " selected"; |
302 | 314 |
echo ">".$code."\n"; }; |
303 | 315 |
?> |
304 |
</select></td>
|
|
316 |
</select></td>
|
|
305 | 317 |
</tr> |
306 | 318 |
<tr> |
307 |
<td>Preise </td>
|
|
319 |
<td>Preise </td>
|
|
308 | 320 |
<td colspan="2"> <input type="radio" name="mwstLX" value="1" <?= ($mwstLX==1)?"checked":'' ?>> incl. |
309 |
<input type="radio" name="mwstLX" value="0" <?= ($mwstLX<>1)?"checked":'' ?>> excl. MwSt</td>
|
|
310 |
<td><input type="radio" name="mwstS" value="1" <?= ($mwstS==1)?"checked":'' ?>> incl.
|
|
311 |
<input type="radio" name="mwstS" value="0" <?= ($mwstS<>1)?"checked":'' ?>> excl. MwSt</td>
|
|
321 |
<input type="radio" name="mwstLX" value="0" <?= ($mwstLX<>1)?"checked":'' ?>> excl. MwSt</td>
|
|
322 |
<td><input type="radio" name="mwstS" value="1" <?= ($mwstS==1)?"checked":'' ?>> incl.
|
|
323 |
<input type="radio" name="mwstS" value="0" <?= ($mwstS<>1)?"checked":'' ?>> excl. MwSt</td>
|
|
312 | 324 |
</tr> |
313 | 325 |
<tr> |
314 |
<td>User-ID</td>
|
|
315 |
<td colspan="2"><input type="text" name="ERPusrName" size="10" value="<?= $ERPusrName ?>">
|
|
316 |
<input type="checkbox" name="a1" <?= (empty($ERPusrID)?'':"checked") ?>></td>
|
|
317 |
<td></td>
|
|
326 |
<td>User-ID</td>
|
|
327 |
<td colspan="2"><input type="text" name="ERPusrName" size="10" value="<?= $ERPusrName ?>">
|
|
328 |
<input type="checkbox" name="a1" <?= (empty($ERPusrID)?'':"checked") ?>></td>
|
|
329 |
<td></td>
|
|
318 | 330 |
</tr> |
319 | 331 |
<tr> |
320 |
<td>Image-Dir</td>
|
|
321 |
<td colspan="2"><input type="text" name="ERPimgdir" size="30" value="<?= $ERPimgdir ?>"></td>
|
|
322 |
<td><input type="text" name="SHOPimgdir" size="30" value="<?= $SHOPimgdir ?>"></td>
|
|
332 |
<td>Image-Dir</td>
|
|
333 |
<td colspan="2"><input type="text" name="ERPimgdir" size="30" value="<?= $ERPimgdir ?>"></td>
|
|
334 |
<td><input type="text" name="SHOPimgdir" size="30" value="<?= $SHOPimgdir ?>"></td>
|
|
323 | 335 |
</tr> |
324 | 336 |
<tr> |
325 |
<td>Platzhalterbild</td>
|
|
326 |
<td colspan="2"><input type="text" name="nopic" size="20" value="<?php echo $nopic; ?>">ohne Endung</td>
|
|
327 |
<td colspan="2"><input type="checkbox" value="1" name="nopicerr" <?= (empty($nopicerr)?'':"checked") ?>>nur bei fehlerhaftem Upload verwenden</td>
|
|
337 |
<td>Platzhalterbild</td>
|
|
338 |
<td colspan="2"><input type="text" name="nopic" size="20" value="<?php echo $nopic; ?>">ohne Endung</td>
|
|
339 |
<td colspan="2"><input type="checkbox" value="1" name="nopicerr" <?= (empty($nopicerr)?'':"checked") ?>>nur bei fehlerhaftem Upload verwenden</td>
|
|
328 | 340 |
</tr> |
329 | 341 |
<tr> |
330 |
<td>FTP-Host</td>
|
|
331 |
<td colspan="2"><input type="text" name="ERPftphost" size="20" value="<?= $ERPftphost ?>"></td>
|
|
332 |
<td><input type="text" name="SHOPftphost" size="20" value="<?= $SHOPftphost ?>"></td>
|
|
342 |
<td>FTP-Host</td>
|
|
343 |
<td colspan="2"><input type="text" name="ERPftphost" size="20" value="<?= $ERPftphost ?>"></td>
|
|
344 |
<td><input type="text" name="SHOPftphost" size="20" value="<?= $SHOPftphost ?>"></td>
|
|
333 | 345 |
</tr> |
334 | 346 |
<tr> |
335 |
<td>FTP-User</td>
|
|
336 |
<td colspan="2"><input type="text" name="ERPftpuser" size="15" value="<?= $ERPftpuser ?>"></td>
|
|
337 |
<td><input type="text" name="SHOPftpuser" size="15" value="<?= $SHOPftpuser ?>"></td>
|
|
347 |
<td>FTP-User</td>
|
|
348 |
<td colspan="2"><input type="text" name="ERPftpuser" size="15" value="<?= $ERPftpuser ?>"></td>
|
|
349 |
<td><input type="text" name="SHOPftpuser" size="15" value="<?= $SHOPftpuser ?>"></td>
|
|
338 | 350 |
</tr> |
339 | 351 |
<tr> |
340 |
<td>FTP-User PWD</td>
|
|
341 |
<td colspan="2"><input type="text" name="ERPftppwd" size="15" value="<?= $ERPftppwd ?>"></td>
|
|
342 |
<td><input type="text" name="SHOPftppwd" size="15" value="<?= $SHOPftppwd ?>"></td>
|
|
352 |
<td>FTP-User PWD</td>
|
|
353 |
<td colspan="2"><input type="text" name="ERPftppwd" size="15" value="<?= $ERPftppwd ?>"></td>
|
|
354 |
<td><input type="text" name="SHOPftppwd" size="15" value="<?= $SHOPftppwd ?>"></td>
|
|
343 | 355 |
</tr> |
344 | 356 |
<tr> |
345 |
<td>Nr Diverse Std-MwSt</td>
|
|
346 |
<td><input type="text" name="divStd[NR]" size="10" value="<?= $divStd['NR'] ?>">
|
|
347 |
<input type="checkbox" name="a1" <?= (empty($divStd['ID'])?'':"checked") ?>></td>
|
|
348 |
<td>Nr Diverse Verm-MwSt</td>
|
|
349 |
<td><input type="text" name="divVerm[NR]" size="10" value="<?= $divVerm['NR'] ?>">
|
|
350 |
<input type="checkbox" name="a1" <?= (empty($divVerm['ID'])?'':"checked") ?>></td>
|
|
357 |
<td>Nr Diverse Std-MwSt</td>
|
|
358 |
<td><input type="text" name="divStd[NR]" size="10" value="<?= $divStd['NR'] ?>">
|
|
359 |
<input type="checkbox" name="a1" <?= (empty($divStd['ID'])?'':"checked") ?>></td>
|
|
360 |
<td>Nr Diverse Verm-MwSt</td>
|
|
361 |
<td><input type="text" name="divVerm[NR]" size="10" value="<?= $divVerm['NR'] ?>">
|
|
362 |
<input type="checkbox" name="a1" <?= (empty($divVerm['ID'])?'':"checked") ?>></td>
|
|
351 | 363 |
</tr> |
352 | 364 |
<tr> |
353 |
<td>Nr Versand Std-MwSt</td>
|
|
354 |
<td><input type="text" name="versandS[NR]" size="10" value="<?= $versandS['NR'] ?>">
|
|
355 |
<input type="checkbox" name="a1" <?= (empty($versandS['ID'])?'':"checked") ?>></td>
|
|
356 |
<td>Text:</td>
|
|
357 |
<td><input type="text" name="versandS[TXT]" size="20" value="<?= $versandS['TXT'] ?>"><?= $versandS['TAX'] ?></td>
|
|
365 |
<td>Nr Versand Std-MwSt</td>
|
|
366 |
<td><input type="text" name="versandS[NR]" size="10" value="<?= $versandS['NR'] ?>">
|
|
367 |
<input type="checkbox" name="a1" <?= (empty($versandS['ID'])?'':"checked") ?>></td>
|
|
368 |
<td>Text:</td>
|
|
369 |
<td><input type="text" name="versandS[TXT]" size="20" value="<?= $versandS['TXT'] ?>"><?= $versandS['TAX'] ?></td>
|
|
358 | 370 |
<tr> |
359 |
<td>Nr Versand Verm-MwSt</td>
|
|
360 |
<td><input type="text" name="versandV[NR]" size="10" value="<?= $versandV['NR'] ?>">
|
|
361 |
<input type="checkbox" name="a1" <?= (empty($versandV['ID'])?'':"checked") ?>></td>
|
|
362 |
<td>Text:</td>
|
|
363 |
<td><input type="text" name="versandV[TXT]" size="20" value="<?= $versandV['TXT'] ?>"><?= $versandV['TAX'] ?></td>
|
|
371 |
<td>Nr Versand Verm-MwSt</td>
|
|
372 |
<td><input type="text" name="versandV[NR]" size="10" value="<?= $versandV['NR'] ?>">
|
|
373 |
<input type="checkbox" name="a1" <?= (empty($versandV['ID'])?'':"checked") ?>></td>
|
|
374 |
<td>Text:</td>
|
|
375 |
<td><input type="text" name="versandV[TXT]" size="20" value="<?= $versandV['TXT'] ?>"><?= $versandV['TAX'] ?></td>
|
|
364 | 376 |
</tr> |
365 | 377 |
<tr> |
366 |
<td>Nr Paypal</td>
|
|
367 |
<td><input type="text" name="paypal[NR]" size="10" value="<?= $paypal['NR'] ?>">
|
|
368 |
<input type="checkbox" name="a1" <?= (empty($paypal['ID'])?'':"checked") ?>></td>
|
|
369 |
<td>Text:</td>
|
|
370 |
<td><input type="text" name="paypal[TXT]" size="20" value="<?= $paypal['TXT'] ?>"></td>
|
|
378 |
<td>Nr Paypal</td>
|
|
379 |
<td><input type="text" name="paypal[NR]" size="10" value="<?= $paypal['NR'] ?>">
|
|
380 |
<input type="checkbox" name="a1" <?= (empty($paypal['ID'])?'':"checked") ?>></td>
|
|
381 |
<td>Text:</td>
|
|
382 |
<td><input type="text" name="paypal[TXT]" size="20" value="<?= $paypal['TXT'] ?>"></td>
|
|
371 | 383 |
</tr> |
372 | 384 |
<tr> |
373 |
<td>Nr Treuhand</td>
|
|
374 |
<td><input type="text" name="treuh[NR]" size="10" value="<?= $treuh['NR'] ?>">
|
|
375 |
<input type="checkbox" name="a1" <?= (empty($treuh['ID'])?'':"checked") ?>></td>
|
|
376 |
<td>Text:</td>
|
|
377 |
<td><input type="text" name="treuh[TXT]" size="20" value="<?= $treuh['TXT'] ?>"></td>
|
|
385 |
<td>Nr Treuhand</td>
|
|
386 |
<td><input type="text" name="treuhand[NR]" size="10" value="<?= $treuhand['NR'] ?>">
|
|
387 |
<input type="checkbox" name="a1" <?= (empty($treuhand['ID'])?'':"checked") ?>></td>
|
|
388 |
<td>Text:</td>
|
|
389 |
<td><input type="text" name="treuhand[TXT]" size="20" value="<?= $treuhand['TXT'] ?>"></td>
|
|
378 | 390 |
</tr> |
379 | 391 |
<tr> |
380 |
<td>Nr Mindermenge</td>
|
|
381 |
<td><input type="text" name="minder[NR]" size="10" value="<?= $minder['NR'] ?>">
|
|
382 |
<input type="checkbox" name="a1" <?= (empty($minder['ID'])?'':"checked") ?>></td>
|
|
383 |
<td>Text:</td>
|
|
384 |
<td><input type="text" name="minder[TXT]" size="20" value="<?= $minder['TXT'] ?>"></td>
|
|
392 |
<td>Nr Mindermenge</td>
|
|
393 |
<td><input type="text" name="minder[NR]" size="10" value="<?= $minder['NR'] ?>">
|
|
394 |
<input type="checkbox" name="a1" <?= (empty($minder['ID'])?'':"checked") ?>></td>
|
|
395 |
<td>Text:</td>
|
|
396 |
<td><input type="text" name="minder[TXT]" size="20" value="<?= $minder['TXT'] ?>"></td>
|
|
385 | 397 |
</tr> |
386 | 398 |
<tr> |
387 |
<td>Nr Nachname</td>
|
|
388 |
<td><input type="text" name="nachn[NR]" size="10" value="<?= $nachn['NR'] ?>">
|
|
389 |
<input type="checkbox" name="a1" <?= (empty($nachn['ID'])?'':"checked") ?>></td>
|
|
390 |
<td>Text:</td>
|
|
391 |
<td><input type="text" name="nachn[TXT]" size="20" value="<?= $nachn['TXT'] ?>"></td>
|
|
399 |
<td>Nr Nachname</td>
|
|
400 |
<td><input type="text" name="nachn[NR]" size="10" value="<?= $nachn['NR'] ?>">
|
|
401 |
<input type="checkbox" name="a1" <?= (empty($nachn['ID'])?'':"checked") ?>></td>
|
|
402 |
<td>Text:</td>
|
|
403 |
<td><input type="text" name="nachn[TXT]" size="20" value="<?= $nachn['TXT'] ?>"></td>
|
|
392 | 404 |
</tr> |
393 | 405 |
<tr> |
394 |
<td>Std-Einheit</td>
|
|
395 |
<td><select name="unit">
|
|
406 |
<td>Std-Einheit</td>
|
|
407 |
<td><select name="unit">
|
|
396 | 408 |
<? unit($unit,$dbP); ?> |
397 |
</select></td>
|
|
398 |
<td>Preisgruppe</td>
|
|
399 |
<td><select name="pricegroup">
|
|
409 |
</select></td>
|
|
410 |
<td>Preisgruppe</td>
|
|
411 |
<td><select name="pricegroup">
|
|
400 | 412 |
<? pg($pricegroup,$dbP); ?> |
401 |
</select></td>
|
|
413 |
</select></td>
|
|
402 | 414 |
<tr> |
403 |
<td colspan="2">Auftragsnummern durch</td>
|
|
404 |
<td><input type="radio" name="auftrnr" value="1" <?= ($auftrnr==1)?"checked":'' ?>> LxO</td>
|
|
405 |
<td><input type="radio" name="auftrnr" value="0" <?= ($auftrnr<>1)?"checked":'' ?>> Shop</td>
|
|
415 |
<td colspan="2">Auftragsnummern durch</td>
|
|
416 |
<td><input type="radio" name="auftrnr" value="1" <?= ($auftrnr==1)?"checked":'' ?>> LxO</td>
|
|
417 |
<td><input type="radio" name="auftrnr" value="0" <?= ($auftrnr<>1)?"checked":'' ?>> Shop</td>
|
|
406 | 418 |
</tr> |
407 | 419 |
<tr> |
408 |
<td colspan="2">Kundennummern durch</td>
|
|
409 |
<td><input type="radio" name="kdnum" value="1" <?= ($kdnum==1)?"checked":'' ?>> LxO</td>
|
|
410 |
<td><input type="radio" name="kdnum" value="0" <?= ($kdnum<>1)?"checked":'' ?>> Shop</td>
|
|
420 |
<td colspan="2">Kundennummern durch</td>
|
|
421 |
<td><input type="radio" name="kdnum" value="1" <?= ($kdnum==1)?"checked":'' ?>> LxO</td>
|
|
422 |
<td><input type="radio" name="kdnum" value="0" <?= ($kdnum<>1)?"checked":'' ?>> Shop</td>
|
|
411 | 423 |
</tr> |
412 | 424 |
<tr> |
413 |
<td colspan="2">Nummernerweiterung</td>
|
|
414 |
<td>Auftrag<input type="text" name="preA" size="5" value="<?= $preA ?>"></td>
|
|
415 |
<td>Kunde<input type="text" name="preK" size="5" value="<?= $preK ?>"></td>
|
|
425 |
<td colspan="2">Nummernerweiterung</td>
|
|
426 |
<td>Auftrag<input type="text" name="preA" size="5" value="<?= $preA ?>"></td>
|
|
427 |
<td>Kunde<input type="text" name="preK" size="5" value="<?= $preK ?>"></td>
|
|
416 | 428 |
</tr> |
417 | 429 |
<tr> |
418 |
<td>Lagerbestand aus</td>
|
|
419 |
<td><select name="lager">
|
|
430 |
<td>Lagerbestand aus</td>
|
|
431 |
<td><select name="lager">
|
|
420 | 432 |
<? lager($lager,$dbP); ?> |
421 |
</select></td>
|
|
422 |
<td></td>
|
|
423 |
<td></td>
|
|
433 |
</select></td>
|
|
434 |
<td></td>
|
|
435 |
<td></td>
|
|
424 | 436 |
<tr> |
425 | 437 |
<tr> |
426 |
<td colspan="3">Langbeschreibung aus Shop übernehmen</td>
|
|
427 |
<td><input type="radio" name="longtxt" value="1" <?= ($longtxt<>2)?"checked":'' ?>>Ja
|
|
428 |
<input type="radio" name="longtxt" value="2" <?= ($longtxt==2)?"checked":'' ?>>Nein</td>
|
|
438 |
<td colspan="3">Langbeschreibung aus Shop übernehmen</td>
|
|
439 |
<td><input type="radio" name="longtxt" value="1" <?= ($longtxt<>2)?"checked":'' ?>>Ja
|
|
440 |
<input type="radio" name="longtxt" value="2" <?= ($longtxt==2)?"checked":'' ?>>Nein</td>
|
|
429 | 441 |
|
430 | 442 |
</tr> |
431 | 443 |
<tr> |
432 |
<td colspan="3">LxO-Rechnungen sind Netto</td> |
|
433 |
<td><input type="radio" name="invbrne" value="1" <?= ($invbrne<>2)?"checked":'' ?>>Ja |
|
434 |
<input type="radio" name="invbrne" value="2" <?= ($invbrne==2)?"checked":'' ?>>Nein</td> |
|
444 |
<td colspan="3">LxO-Rechnungen sind Netto</td> |
|
445 |
<td><input type="radio" name="invbrne" value="1" <?= ($invbrne<>2)?"checked":'' ?>>Ja |
|
446 |
<input type="radio" name="invbrne" value="2" <?= ($invbrne==2)?"checked":'' ?>>Nein</td> |
|
447 |
</tr> |
|
448 |
<tr> |
|
449 |
<td colspan="3">Varianten sind eigene Nummern in Lx (-n)</td> |
|
450 |
<td><input type="radio" name="variantnr" value="1" <?= ($variantnr<>2)?"checked":'' ?>>Ja |
|
451 |
<input type="radio" name="variantnr" value="2" <?= ($variantnr==2)?"checked":'' ?>>Nein</td> |
|
435 | 452 |
</tr> |
436 | 453 |
<tr> |
437 |
<td colspan="3">Varianten sind eigene Nummern in Lx (-n)</td>
|
|
438 |
<td><input type="radio" name="variantnr" value="1" <?= ($variantnr<>2)?"checked":'' ?>>Ja
|
|
439 |
<input type="radio" name="variantnr" value="2" <?= ($variantnr==2)?"checked":'' ?>>Nein</td>
|
|
454 |
<td colspan="3">Unbekannte Artikel beim Bestellimport anlegen</td>
|
|
455 |
<td><input type="radio" name="OEinsPart" value="1" <?= ($OEinsPart<>2)?"checked":'' ?>>Ja
|
|
456 |
<input type="radio" name="OEinsPart" value="2" <?= ($OEinsPart==2)?"checked":'' ?>>Nein</td>
|
|
440 | 457 |
</tr> |
441 | 458 |
<tr> |
442 |
<td colspan="3">Unbekannte Artikel beim Bestellimport anlegen</td> |
|
443 |
<td><input type="radio" name="OEinsPart" value="1" <?= ($OEinsPart<>2)?"checked":'' ?>>Ja |
|
444 |
<input type="radio" name="OEinsPart" value="2" <?= ($OEinsPart==2)?"checked":'' ?>>Nein</td> |
|
459 |
<td>Logging</td> |
|
460 |
<td>ein<input type="radio" name="debug" value="true" <?= ($debug=="true")?"checked":"" ?>> |
|
461 |
aus<input type="radio" name="debug" value="false" <?= ($debug!="true")?"checked":"" ?>></td> |
|
462 |
<td></td><td></td> |
|
445 | 463 |
</tr> |
446 | 464 |
|
447 | 465 |
<!--tr> |
448 |
<td>Bildergrösse (byte)</td>
|
|
449 |
<td><input type="text" name="maxSize" size="10" value="<?= $maxSize ?>"></td>
|
|
450 |
<td></td>
|
|
466 |
<td>Bildergrösse (byte)</td>
|
|
467 |
<td><input type="text" name="maxSize" size="10" value="<?= $maxSize ?>"></td>
|
|
468 |
<td></td>
|
|
451 | 469 |
</tr--> |
452 | 470 |
|
453 | 471 |
|
Auch abrufbar als: Unified diff
Variablen vorbelegen