| 1 |
lars |
1 |
<?
|
|
|
2 |
session_start();
|
|
|
3 |
require_once "../connect2.php";
|
|
|
4 |
require_once "system/loadSettings.php";
|
|
|
5 |
loadSettings( $webs[datenbank] );
|
|
|
6 |
|
|
|
7 |
define( "modul_name", "online_shop" );
|
|
|
8 |
define( "tool_name", "eBay" );
|
|
|
9 |
|
|
|
10 |
function shutdown()
|
|
|
11 |
{
|
|
|
12 |
?><script language="JavaScript">window.close();</script><?
|
|
|
13 |
exit;
|
|
|
14 |
}
|
|
|
15 |
|
|
|
16 |
if ( $_GET[edit] )
|
|
|
17 |
{
|
|
|
18 |
$query = "select * from eBay_Auktionen where ID = " . $_GET[edit];
|
|
|
19 |
$result = mysql_query( $query ) or die( mysql_errno() . ": " .
|
|
|
20 |
mysql_error() . "<hr>" . $query . "<hr>" );
|
|
|
21 |
$editCount = mysql_num_rows( $result );
|
|
|
22 |
$_SESSION[eBay][editor] = mysql_fetch_assoc( $result );
|
|
|
23 |
$_SESSION[eBay][editor][GalleryImg] = $_SESSION[eBay][editor][Gallery];
|
|
|
24 |
}
|
|
|
25 |
|
|
|
26 |
if ( $_GET[edit] )
|
|
|
27 |
{ // edit
|
|
|
28 |
if ( ( isset( $user_rechte[modul_name][tool_name][editWaitingAuction] ) ) and
|
|
|
29 |
( $editCount > 0 ) )
|
|
|
30 |
{
|
|
|
31 |
}
|
|
|
32 |
else
|
|
|
33 |
{
|
|
|
34 |
shutdown();
|
|
|
35 |
}
|
|
|
36 |
}
|
|
|
37 |
else
|
|
|
38 |
{
|
|
|
39 |
if ( !isset( $user_rechte[modul_name][tool_name][addAuction] ) )
|
|
|
40 |
{
|
|
|
41 |
shutdown();
|
|
|
42 |
}
|
|
|
43 |
}
|
|
|
44 |
|
|
|
45 |
|
|
|
46 |
$steps = array( "Was", "Was genau", "Wie", "Wann" );
|
|
|
47 |
|
|
|
48 |
foreach ( array_keys( $_POST ) as $key )
|
|
|
49 |
{
|
|
|
50 |
$_SESSION[eBay][editor][$key] = stripslashes( $_POST[$key] );
|
|
|
51 |
}
|
|
|
52 |
|
|
|
53 |
if ( $_REQUEST[template] )
|
|
|
54 |
{
|
|
|
55 |
$Artikel = $_SESSION[eBay][Artikel];
|
|
|
56 |
eval( "\$buffer=\"" . addslashes( $_SESSION[eBay][settings][Description][$_REQUEST[template_NR]] ) .
|
|
|
57 |
"\";" );
|
|
|
58 |
$_SESSION[eBay][editor][Description] = $buffer;
|
|
|
59 |
}
|
|
|
60 |
|
|
|
61 |
if ( $_GET[artikel_ID] )
|
|
|
62 |
{
|
|
|
63 |
unset( $_SESSION[eBay][editor] );
|
|
|
64 |
|
|
|
65 |
$_SESSION[eBay][editor] = array( "ListingStartTime" => $_SESSION[eBay][settings][ListingStartTime],
|
|
|
66 |
"Duration" => $_SESSION[eBay][settings][Duration] );
|
|
|
67 |
|
|
|
68 |
// Daten des Artikel aus der Tabelle "artikel" laden
|
|
|
69 |
$query = "SELECT
|
|
|
70 |
Father,
|
|
|
71 |
preis1,
|
|
|
72 |
preis1 as MinimumBid,
|
|
|
73 |
preis1+" . $_SESSION[eBay][settings][BuyItNowPriceAddon][0] .
|
|
|
74 |
" as BuyItNowPrice,
|
|
|
75 |
kurzbezeichnung as Title,
|
|
|
76 |
langbezeichnung as kurzbeschreibung,
|
|
|
77 |
beschreibung as Description,
|
|
|
78 |
'" . $_SESSION[eBay][settings][GalleryURLpfad][0] .
|
|
|
79 |
"' AS bild_pfad_1,
|
|
|
80 |
'" . $_SESSION[eBay][settings][GalleryURLpfad_big][0] .
|
|
|
81 |
"' AS bild_pfad_big_1,
|
|
|
82 |
" . $_SESSION[eBay][settings][GalleryURLfeld][0] .
|
|
|
83 |
" AS bild_url_1,
|
|
|
84 |
";
|
|
|
85 |
if ( $_SESSION[eBay][settings][GalleryURLfeld][1] )
|
|
|
86 |
{
|
|
|
87 |
$query .= "
|
|
|
88 |
'" . $_SESSION[eBay][settings][GalleryURLpfad][1] .
|
|
|
89 |
"' AS bild_pfad_2,
|
|
|
90 |
" . $_SESSION[eBay][settings][GalleryURLfeld][1] .
|
|
|
91 |
" AS bild_url_2,
|
|
|
92 |
'" . $_SESSION[eBay][settings][GalleryURLpfad_big][1] .
|
|
|
93 |
"' AS bild_pfad_big_2,
|
|
|
94 |
";
|
|
|
95 |
}
|
|
|
96 |
if ( $_SESSION[eBay][settings][GalleryURLfeld][2] )
|
|
|
97 |
{
|
|
|
98 |
$query .= "
|
|
|
99 |
'" . $_SESSION[eBay][settings][GalleryURLpfad][2] .
|
|
|
100 |
"' AS bild_pfad_3,
|
|
|
101 |
" . $_SESSION[eBay][settings][GalleryURLfeld][2] .
|
|
|
102 |
" AS bild_url_3,
|
|
|
103 |
'" . $_SESSION[eBay][settings][GalleryURLpfad][2] .
|
|
|
104 |
"' AS bild_pfad_big_3,
|
|
|
105 |
";
|
|
|
106 |
}
|
|
|
107 |
if ( $_SESSION[eBay][settings][GalleryURLfeld][3] )
|
|
|
108 |
{
|
|
|
109 |
$query .= "
|
|
|
110 |
'" . $_SESSION[eBay][settings][GalleryURLpfad][3] .
|
|
|
111 |
"' AS bild_pfad_4,
|
|
|
112 |
" . $_SESSION[eBay][settings][GalleryURLfeld][3] .
|
|
|
113 |
" AS bild_url_4,
|
|
|
114 |
'" . $_SESSION[eBay][settings][GalleryURLpfad_big][3] .
|
|
|
115 |
"' AS bild_pfad_big_4,
|
|
|
116 |
";
|
|
|
117 |
}
|
|
|
118 |
$query .= "
|
|
|
119 |
1 as Quantity
|
|
|
120 |
FROM
|
|
|
121 |
artikel
|
|
|
122 |
WHERE
|
|
|
123 |
ID = " . $_GET[artikel_ID] . "
|
|
|
124 |
AND
|
|
|
125 |
Language='DE'
|
|
|
126 |
";
|
|
|
127 |
$result = mysql_query( $query ) or die( mysql_errno() . ": " .
|
|
|
128 |
mysql_error() . "<hr>" . $query . "<hr>" );
|
|
|
129 |
if ( $zeile = mysql_fetch_assoc( $result ) )
|
|
|
130 |
{
|
|
|
131 |
$zeile["Description"] = nl2br( $zeile["Description"] );
|
|
|
132 |
for ( $i = 1; $i <= 4; $i++ )
|
|
|
133 |
{
|
|
|
134 |
if ( $zeile["bild_url_$i"] )
|
|
|
135 |
{
|
|
|
136 |
$key1 = "bild$i";
|
|
|
137 |
$key2 = "mouseover$i";
|
|
|
138 |
$img_kl = $zeile["bild_pfad_$i"] . $zeile["bild_url_$i"];
|
|
|
139 |
$img_gr = $zeile["bild_pfad_big_$i"] . $zeile["bild_url_$i"];
|
|
|
140 |
$img = '<img src=' . $img_gr . '>';
|
|
|
141 |
$img = htmlentities( $img );
|
|
|
142 |
$ol = "return overlib('" . $img . "',CAPTION,'" . $zeile["Title"] .
|
|
|
143 |
"');";
|
|
|
144 |
$_SESSION[eBay][editor][$key1] = $img_kl;
|
|
|
145 |
$_SESSION[eBay][editor][$key2] = $ol;
|
|
|
146 |
unset( $zeile["bild_url_$i"], $zeile["bild_pfad_$i"] );
|
|
|
147 |
}
|
|
|
148 |
}
|
|
|
149 |
foreach ( array_keys( $zeile ) as $key )
|
|
|
150 |
{
|
|
|
151 |
$_SESSION[eBay][editor][$key] = $zeile[$key];
|
|
|
152 |
}
|
|
|
153 |
$Artikel = $_SESSION[eBay][editor];
|
|
|
154 |
$_SESSION[eBay][Artikel] = $Artikel;
|
|
|
155 |
|
|
|
156 |
//var_dump($_SESSION[eBay][settings][Description]);
|
|
|
157 |
eval( "\$buffer=\"" . addslashes( $_SESSION[eBay][settings][Description][0] ) .
|
|
|
158 |
"\";" );
|
|
|
159 |
$_SESSION[eBay][editor][Description] = $buffer;
|
|
|
160 |
}
|
|
|
161 |
|
|
|
162 |
// Daten eines Schwesterartikel aus der vorherigen Auktionen
|
|
|
163 |
$query = "
|
|
|
164 |
SELECT DISTINCT
|
|
|
165 |
eBay_Auktionen.MinimumBid,
|
|
|
166 |
eBay_Auktionen.Category,
|
|
|
167 |
eBay_Auktionen.ListingStartTime,
|
|
|
168 |
eBay_Auktionen.Duration,
|
|
|
169 |
eBay_Auktionen.Private
|
|
|
170 |
FROM
|
|
|
171 |
artikel,
|
|
|
172 |
eBay_Auktionen
|
|
|
173 |
WHERE
|
|
|
174 |
artikel.Father = " . $_SESSION[eBay][editor][Father] . "
|
|
|
175 |
AND
|
|
|
176 |
eBay_Auktionen.artikel_ID = artikel.ID
|
|
|
177 |
ORDER BY
|
|
|
178 |
eBay_Auktionen.ID
|
|
|
179 |
LIMIT 1
|
|
|
180 |
";
|
|
|
181 |
$result = mysql_query( $query ) or die( mysql_errno() . ": " .
|
|
|
182 |
mysql_error() . "<hr>" . $query . "<hr>" );
|
|
|
183 |
if ( $sibling = mysql_fetch_assoc( $result ) )
|
|
|
184 |
{
|
|
|
185 |
foreach ( array_keys( $sibling ) as $key )
|
|
|
186 |
{
|
|
|
187 |
$_SESSION[eBay][editor][$key] = $sibling[$key];
|
|
|
188 |
}
|
|
|
189 |
}
|
|
|
190 |
|
|
|
191 |
// Daten des Artikel aus der vorherigen Auktionen laden
|
|
|
192 |
$query = "select * from eBay_Auktionen where artikel_ID = " . $_GET[artikel_ID] .
|
|
|
193 |
" order by ID desc";
|
|
|
194 |
$result = mysql_query( $query ) or die( mysql_errno() . ": " .
|
|
|
195 |
mysql_error() . "<hr>" . $query . "<hr>" );
|
|
|
196 |
if ( $previous = mysql_fetch_assoc( $result ) )
|
|
|
197 |
{
|
|
|
198 |
foreach ( array_keys( $previous ) as $key )
|
|
|
199 |
{
|
|
|
200 |
$_SESSION[eBay][editor][$key] = $previous[$key];
|
|
|
201 |
}
|
|
|
202 |
}
|
|
|
203 |
$_SESSION[eBay][editor][ListingStartDay] = date( "Y-m-d" );
|
|
|
204 |
unset( $_SESSION[eBay][editor][eBay_Id] );
|
|
|
205 |
unset( $_SESSION[eBay][editor][eBay_error] );
|
|
|
206 |
}
|
|
|
207 |
|
|
|
208 |
if ( $_POST[step] == $steps[count( $steps ) - 1] )
|
|
|
209 |
{
|
|
|
210 |
foreach ( array( "preis1", "step", "PHPSESSID", "Father",
|
|
|
211 |
"_Category", "_Category2", "ID", "edit", "bild", "GalleryImg",
|
|
|
212 |
"template_NR" ) as $elem )
|
|
|
213 |
{
|
|
|
214 |
unset( $_SESSION[eBay][editor][$elem] );
|
|
|
215 |
}
|
|
|
216 |
|
|
|
217 |
if ( $_POST[edit] )
|
|
|
218 |
{
|
|
|
219 |
$_SESSION[eBay][editor][ID] = $_POST[edit];
|
|
|
220 |
$_SESSION[eBay][editor][eBay_error] = '';
|
|
|
221 |
}
|
|
|
222 |
|
|
|
223 |
$_SESSION[eBay][editor][Description] = addslashes( $_SESSION[eBay][editor][Description] );
|
|
|
224 |
$dataKeys = implode( ", ", array_keys( $_SESSION[eBay][editor] ) );
|
|
|
225 |
$dataValues = "'" . implode( "', '", $_SESSION[eBay][editor] ) . "'";
|
|
|
226 |
$query = "replace into eBay_Auktionen ($dataKeys) values ($dataValues)";
|
|
|
227 |
|
|
|
228 |
$result = mysql_query( $query ) or die( mysql_errno() . ": " .
|
|
|
229 |
mysql_error() . "<hr>" . $query . "<hr>" );
|
|
|
230 |
unset( $_SESSION[eBay][editor] );
|
|
|
231 |
?>
|
|
|
232 |
<script language="JavaScript">opener.location.reload();</script>
|
|
|
233 |
<script language="JavaScript">window.close();</script>
|
|
|
234 |
<?
|
|
|
235 |
}
|
|
|
236 |
|
|
|
237 |
function getCatName( $ID )
|
|
|
238 |
{
|
|
|
239 |
if ( $ID )
|
|
|
240 |
{
|
|
|
241 |
$query =
|
|
|
242 |
"select CategoryName from eBay.Categories where CategoryId = $ID order by CategoryName";
|
|
|
243 |
$result = mysql_query( $query ) or die( mysql_errno() . ": " .
|
|
|
244 |
mysql_error() . "<hr>$query<hr>" );
|
|
|
245 |
$Category = mysql_fetch_assoc( $result );
|
|
|
246 |
return $Category[CategoryName];
|
|
|
247 |
}
|
|
|
248 |
else
|
|
|
249 |
{
|
|
|
250 |
return "Kategorie wählen";
|
|
|
251 |
}
|
|
|
252 |
}
|
|
|
253 |
?>
|
|
|
254 |
<html>
|
|
|
255 |
<head>
|
|
|
256 |
<title>Online-Shop Ebay-Interface</title>
|
|
|
257 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
258 |
<style type="text/css">
|
|
|
259 |
<!--
|
|
|
260 |
td { font-family: Arial, Helvetica, sans-serif; font-size: 14px}
|
|
|
261 |
.bold { font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: bold}
|
|
|
262 |
.small { font-family: Arial, Helvetica, sans-serif; font-size: 9px}
|
|
|
263 |
.catButton { width: 2in}
|
|
|
264 |
-->
|
|
|
265 |
</style>
|
|
|
266 |
<script type="text/javascript">
|
|
|
267 |
_editor_url = "../../htmlarea/";
|
|
|
268 |
_editor_lang = "de";
|
|
|
269 |
</script>
|
|
|
270 |
<script type="text/javascript" src="../../htmlarea/htmlarea.js"></script>
|
|
|
271 |
<script language="JavaScript" src="../../checkDate.js"></script>
|
|
|
272 |
<script language="JavaScript">
|
|
|
273 |
function AuktionOnly(form)
|
|
|
274 |
{
|
|
|
275 |
if ((form.MinimumBid.value > 0) && (form.Quantity.value > 1))
|
|
|
276 |
{
|
|
|
277 |
if (confirm('Bei einer Auktion kann immer nur EIN Artikel versteigert werden!\nSoll die Menge auf \"1\" zurĂ¼ckgesetzt gesetzt werden?'))
|
|
|
278 |
{
|
|
|
279 |
form.Quantity.value=1;
|
|
|
280 |
}
|
|
|
281 |
else
|
|
|
282 |
{
|
|
|
283 |
alert('Menge wird nicht zurĂ¼ckgesetzt!\nAuktion nicht möglich!');
|
|
|
284 |
form.MinimumBid.value='';
|
|
|
285 |
}
|
|
|
286 |
}
|
|
|
287 |
}
|
|
|
288 |
|
|
|
289 |
function SofortKaufOnly(form)
|
|
|
290 |
{
|
|
|
291 |
if ((form.MinimumBid.value > 0) && (form.Quantity.value > 1))
|
|
|
292 |
{
|
|
|
293 |
if (confirm('Bei einer Auktion kann immer nur EIN Artikel versteigert werden!\nSoll das Mindestgebot entfernt werden?'))
|
|
|
294 |
{
|
|
|
295 |
form.MinimumBid.value='';
|
|
|
296 |
}
|
|
|
297 |
else
|
|
|
298 |
{
|
|
|
299 |
alert('Mindestgebot wird nicht zurĂ¼ckgesetzt!\nMenge wird auf \"1\" zurĂ¼ckgesetzt!');
|
|
|
300 |
form.Quantity.value=1;
|
|
|
301 |
}
|
|
|
302 |
}
|
|
|
303 |
}
|
|
|
304 |
|
|
|
305 |
function browseCategories(source)
|
|
|
306 |
{
|
|
|
307 |
eval("addon=document.eBay."+source+".value;");
|
|
|
308 |
if (addon)
|
|
|
309 |
{
|
|
|
310 |
addon="?ID="+addon;
|
|
|
311 |
}
|
|
|
312 |
window.open("browseCategories.php"+addon,source,"width=850,height=350,scrollbars=yes,resizable=yes");
|
|
|
313 |
}
|
|
|
314 |
|
|
|
315 |
function triggerObject(obj, stat)
|
|
|
316 |
{
|
|
|
317 |
with (obj.style)
|
|
|
318 |
{
|
|
|
319 |
if (stat)
|
|
|
320 |
{
|
|
|
321 |
display="";
|
|
|
322 |
}
|
|
|
323 |
else
|
|
|
324 |
{
|
|
|
325 |
display="none";
|
|
|
326 |
}
|
|
|
327 |
}
|
|
|
328 |
}
|
|
|
329 |
|
|
|
330 |
function killkomma(w)
|
|
|
331 |
{
|
|
|
332 |
return w.replace(/,/,'.');
|
|
|
333 |
}
|
|
|
334 |
|
|
|
335 |
window.moveTo(0,0);
|
|
|
336 |
</script>
|
|
|
337 |
</head>
|
|
|
338 |
<body>
|
|
|
339 |
<form name="eBay" method="post" action="<?= $self ?>">
|
|
|
340 |
<?
|
|
|
341 |
if ( $_GET[artikel_ID] )
|
|
|
342 |
{
|
|
|
343 |
?>
|
|
|
344 |
<input type="hidden" name="artikel_ID" value="<?= $_GET[artikel_ID]; ?>">
|
|
|
345 |
<?
|
|
|
346 |
}
|
|
|
347 |
?>
|
|
|
348 |
<table width="100%" height="100%" border=0 cellspacing="0" cellpadding="0">
|
|
|
349 |
<tr>
|
|
|
350 |
<td>
|
|
|
351 |
<?
|
|
|
352 |
if ( !$_REQUEST[step] )
|
|
|
353 |
{
|
|
|
354 |
$step = $steps[0];
|
|
|
355 |
}
|
|
|
356 |
else
|
|
|
357 |
{
|
|
|
358 |
$step = $steps[array_search( $step, $steps ) + 1];
|
|
|
359 |
}
|
|
|
360 |
|
|
|
361 |
foreach ( $steps as $current_step )
|
|
|
362 |
{
|
|
|
363 |
if ( $step == $current_step )
|
|
|
364 |
{
|
|
|
365 |
$class = "bold";
|
|
|
366 |
}
|
|
|
367 |
else
|
|
|
368 |
{
|
|
|
369 |
$class = "";
|
|
|
370 |
}
|
|
|
371 |
echo "<span class=" . $class . ">" . $current_step . "</span> ";
|
|
|
372 |
}
|
|
|
373 |
?>
|
|
|
374 |
? </td>
|
|
|
375 |
<td align="right">
|
|
|
376 |
<?
|
|
|
377 |
if ( $step == $steps[1] )
|
|
|
378 |
{
|
|
|
379 |
?>
|
|
|
380 |
Template:
|
|
|
381 |
<select name="template_NR">
|
|
|
382 |
<?
|
|
|
383 |
for ( $i = 0; $i < count( $_SESSION[eBay][settings][Description] );
|
|
|
384 |
$i++ )
|
|
|
385 |
{
|
|
|
386 |
?>
|
|
|
387 |
<option value="<?= $i; ?>">
|
|
|
388 |
<?= $i + 1; ?>
|
|
|
389 |
</option>
|
|
|
390 |
<?
|
|
|
391 |
}
|
|
|
392 |
?>
|
|
|
393 |
</select>
|
|
|
394 |
<input
|
|
|
395 |
type="submit"
|
|
|
396 |
name="template"
|
|
|
397 |
value="anwenden"
|
|
|
398 |
onclick="this.form.step.value='<?= $steps[array_search( $step, $steps ) -
|
|
|
399 |
1]; ?>';"
|
|
|
400 |
>
|
|
|
401 |
<?
|
|
|
402 |
}
|
|
|
403 |
?>
|
|
|
404 |
</td>
|
|
|
405 |
</tr>
|
|
|
406 |
<tr>
|
|
|
407 |
<td colspan="2">
|
|
|
408 |
<hr noshade>
|
|
|
409 |
</td>
|
|
|
410 |
</tr>
|
|
|
411 |
<tr>
|
|
|
412 |
<td valign="top" width="100%" colspan="2" height="100%">
|
|
|
413 |
<table border=0 width="100%" cellpadding="0" cellspacing="0">
|
|
|
414 |
<?
|
|
|
415 |
switch ( $step )
|
|
|
416 |
{
|
|
|
417 |
case "Wie":
|
|
|
418 |
?>
|
|
|
419 |
<tr>
|
|
|
420 |
<td width="32%" valign="top" rowspan="2">Auktion:<br>
|
|
|
421 |
<span class="small">(Verkauf zum Höchstgebot)</span></td>
|
|
|
422 |
<td width="4%" nowrap>
|
|
|
423 |
<input name="MinimumBid" type="text" size="5" value="<?= $_SESSION[eBay][editor][MinimumBid]; ?>" onBlur="this.value=killkomma(this.value);AuktionOnly(this.form);">
|
|
|
424 |
€ </td>
|
|
|
425 |
<td colspan="2" nowrap>Mindestgebot</td>
|
|
|
426 |
</tr>
|
|
|
427 |
<tr>
|
|
|
428 |
<td width="4%"> </td>
|
|
|
429 |
<td colspan="2"><span class="small">Aktueller Shop-Preis:
|
|
|
430 |
<?= $_SESSION[eBay][editor][preis1]; ?>
|
|
|
431 |
</span></td>
|
|
|
432 |
</tr>
|
|
|
433 |
<tr>
|
|
|
434 |
<td width="32%">SofortKauf:<br>
|
|
|
435 |
<span class="small">(Verkauf zum Festpreis)</span></td>
|
|
|
436 |
<td colspan="3">
|
|
|
437 |
<input name="BuyItNowPrice" type="text" size="5" value="<?= $_SESSION[eBay][editor][BuyItNowPrice]; ?>" onChange="this.value=killkomma(this.value);">
|
|
|
438 |
€ </td>
|
|
|
439 |
</tr>
|
|
|
440 |
<tr>
|
|
|
441 |
<td width="32%">Menge:<br>
|
|
|
442 |
<span class="small">(bei Auktionen immer 1)</span> </td>
|
|
|
443 |
<td colspan="3">
|
|
|
444 |
<input name="Quantity" type="text" size="5" value="<?= $_SESSION[eBay][editor][Quantity]; ?>" onBlur="SofortKaufOnly(this.form)">
|
|
|
445 |
Stück</td>
|
|
|
446 |
</tr>
|
|
|
447 |
<tr>
|
|
|
448 |
<td colspan="4"> </td>
|
|
|
449 |
</tr>
|
|
|
450 |
<tr>
|
|
|
451 |
<td width="32%">Privatauktion:</td>
|
|
|
452 |
<td colspan="3">
|
|
|
453 |
<input type="hidden" name="Private" value="">
|
|
|
454 |
<input type="checkbox" name="Private" value="1" <? if ( $_SESSION[eBay][editor]['Private'] )
|
|
|
455 |
{
|
|
|
456 |
echo " checked";
|
|
|
457 |
} ?>>
|
|
|
458 |
</td>
|
|
|
459 |
</tr>
|
|
|
460 |
<tr>
|
|
|
461 |
<td colspan="4"> </td>
|
|
|
462 |
</tr>
|
|
|
463 |
<tr>
|
|
|
464 |
<td width="32%">Galeriebild:</td>
|
|
|
465 |
<td width="8%" colspan="2">
|
|
|
466 |
<input type="hidden" name="Gallery" value="">
|
|
|
467 |
<input type="checkbox" id="GallerySwitch" name="Gallery" value="<?= $_SESSION[eBay][editor][GalleryImg]; ?>" <? if ( $_SESSION[eBay][editor][Gallery] )
|
|
|
468 |
{ ?> checked="checked"<? } ?> onclick="triggerObject(document.getElementById('GalleryView'),this.checked)">
|
|
|
469 |
</td>
|
|
|
470 |
<td align="center" rowspan="7" width="60%"> <img id="GalleryView" src="<?= $_SESSION[eBay][editor][GalleryImg]; ?>">
|
|
|
471 |
<script language="Javascript">
|
|
|
472 |
triggerObject
|
|
|
473 |
(
|
|
|
474 |
document.getElementById('GalleryView'),
|
|
|
475 |
document.getElementById('GallerySwitch').checked
|
|
|
476 |
)
|
|
|
477 |
</script>
|
|
|
478 |
</td>
|
|
|
479 |
</tr>
|
|
|
480 |
<tr>
|
|
|
481 |
<td width="32%" nowrap>Top-Angebot in Kategorie und Suche:</td>
|
|
|
482 |
<td width="8%" colspan="2">
|
|
|
483 |
<input type="hidden" name="Featured" value="">
|
|
|
484 |
<input type="checkbox" name="Featured" value="1" <? if ( $_SESSION[eBay][editor][Featured] )
|
|
|
485 |
{
|
|
|
486 |
echo " checked";
|
|
|
487 |
} ?>>
|
|
|
488 |
</td>
|
|
|
489 |
</tr>
|
|
|
490 |
<tr>
|
|
|
491 |
<td width="32%">Fettschrift:</td>
|
|
|
492 |
<td width="8%" colspan="2">
|
|
|
493 |
<input type="hidden" name="BoldTitle" value="">
|
|
|
494 |
<input type="checkbox" name="BoldTitle" value="1" <? if ( $_SESSION[eBay][editor][BoldTitle] )
|
|
|
495 |
{
|
|
|
496 |
echo " checked";
|
|
|
497 |
} ?>>
|
|
|
498 |
</td>
|
|
|
499 |
</tr>
|
|
|
500 |
<tr>
|
|
|
501 |
<td width="32%">Highlight:</td>
|
|
|
502 |
<td width="8%" colspan="2">
|
|
|
503 |
<input type="hidden" name="HighLight" value="">
|
|
|
504 |
<input type="checkbox" name="HighLight" value="1" <? if ( $_SESSION[eBay][editor][HighLight] )
|
|
|
505 |
{
|
|
|
506 |
echo " checked";
|
|
|
507 |
} ?>>
|
|
|
508 |
</td>
|
|
|
509 |
</tr>
|
|
|
510 |
<tr>
|
|
|
511 |
<td width="32%"> </td>
|
|
|
512 |
<td width="8%" colspan="2"> </td>
|
|
|
513 |
</tr>
|
|
|
514 |
<tr>
|
|
|
515 |
<td width="32%">Versand:</td>
|
|
|
516 |
<td width="8%" colspan="2">
|
|
|
517 |
<select name="VersandCarrier" onChange="
|
|
|
518 |
document.eBay.VersandCost.value=this.options[this.selectedIndex].preis;
|
|
|
519 |
document.eBay.VersandID.value=this.options[this.selectedIndex].VersandID;
|
|
|
520 |
">
|
|
|
521 |
<option VersandID="" preis=""></option>
|
|
|
522 |
<?
|
|
|
523 |
$query = "
|
|
|
524 |
select
|
|
|
525 |
*
|
|
|
526 |
from
|
|
|
527 |
artikel
|
|
|
528 |
where
|
|
|
529 |
Father=-3
|
|
|
530 |
and
|
|
|
531 |
status = " . $_SESSION[eBay][editor][confDatei];
|
|
|
532 |
|
|
|
533 |
$result = mysql_query( $query ) or die( mysql_errno() . ": " .
|
|
|
534 |
mysql_error() . "<hr>$query<hr>" );
|
|
|
535 |
while ( $zeile = mysql_fetch_assoc( $result ) )
|
|
|
536 |
{
|
|
|
537 |
?>
|
|
|
538 |
<option value="<?= $zeile[kennung]; ?>" VersandID="<?= $zeile[ID]; ?>" preis="<?= $zeile[preis1]; ?>" <? if ( $zeile[kennung] ==
|
|
|
539 |
$_SESSION[eBay][editor][VersandCarrier] )
|
|
|
540 |
{
|
|
|
541 |
echo " selected";
|
|
|
542 |
} ?>>
|
|
|
543 |
<?= $zeile[kurzbezeichnung]; ?>
|
|
|
544 |
</option>
|
|
|
545 |
<?
|
|
|
546 |
}
|
|
|
547 |
?>
|
|
|
548 |
</select>
|
|
|
549 |
</td>
|
|
|
550 |
</tr>
|
|
|
551 |
<tr>
|
|
|
552 |
<td width="32%">Versandkosten:</td>
|
|
|
553 |
<td width="8%" colspan="2">
|
|
|
554 |
<input type="text" name="VersandCost" size="5" value="<?= $_SESSION[eBay][editor][VersandCost]; ?>" onChange="this.value=killkomma(this.value);">
|
|
|
555 |
<input type="hidden" name="VersandID" size="5" value="<?= $_SESSION[eBay][editor][VersandID]; ?>">
|
|
|
556 |
<script language="JavaScript">
|
|
|
557 |
document.eBay.VersandID.value=document.eBay.VersandCarrier.options[document.eBay.VersandCarrier.selectedIndex].VersandID;
|
|
|
558 |
//alert(document.eBay.VersandCarrier.options[document.eBay.VersandCarrier.selectedIndex].VersandID);
|
|
|
559 |
</script>
|
|
|
560 |
</td>
|
|
|
561 |
</tr>
|
|
|
562 |
<?
|
|
|
563 |
break;
|
|
|
564 |
case "Was":
|
|
|
565 |
?>
|
|
|
566 |
<tr>
|
|
|
567 |
<td width="32%">Artikel:</td>
|
|
|
568 |
<td colspan="3">
|
|
|
569 |
<input name="Title" type="text" value="<?= $_SESSION[eBay][editor][Title]; ?>" maxlength="55">
|
|
|
570 |
</td>
|
|
|
571 |
</tr>
|
|
|
572 |
<tr>
|
|
|
573 |
<td width="32%">Untertitel:<br>
|
|
|
574 |
<span class="small">(kostenpflichtig!)</span></td>
|
|
|
575 |
<td colspan="3">
|
|
|
576 |
<input name="SubtitleText" type="text" value="<?= $_SESSION[eBay][editor][SubtitleText]; ?>" maxlength="55">
|
|
|
577 |
</td>
|
|
|
578 |
</tr>
|
|
|
579 |
<tr>
|
|
|
580 |
<td width="32%">Kategorie:</td>
|
|
|
581 |
<td colspan="3">
|
|
|
582 |
<input type="text" name="Category" value="<?= $_SESSION[eBay][editor][Category]; ?>" size="4">
|
|
|
583 |
<input type="button" name="_Category" value="<?= getCatName( $_SESSION[eBay][editor][Category] ); ?>" onclick="browseCategories('Category')" class="catButton">
|
|
|
584 |
</td>
|
|
|
585 |
</tr>
|
|
|
586 |
<tr>
|
|
|
587 |
<td width="32%">Kategorie2:<br>
|
|
|
588 |
<span class="small"><span class="small">(kostenpflichtig!)</span></span></td>
|
|
|
589 |
<td colspan="3">
|
|
|
590 |
<input type="text" name="Category2" value="<?= $_SESSION[eBay][editor][Category2]; ?>" size="4">
|
|
|
591 |
<input type="button" name="_Category2" value="<?= getCatName( $_SESSION[eBay][editor][Category2] ); ?>" onclick="browseCategories('Category2')" class="catButton">
|
|
|
592 |
</td>
|
|
|
593 |
</tr>
|
|
|
594 |
<tr>
|
|
|
595 |
<td valign="top" class="border" colspan="4"> </td>
|
|
|
596 |
</tr>
|
|
|
597 |
<tr>
|
|
|
598 |
<td valign="top" class="border">User / conf-Datei:</td>
|
|
|
599 |
<td colspan="3" valign="top" class="border">
|
|
|
600 |
<select name="confDatei">
|
|
|
601 |
<?
|
|
|
602 |
$query = "
|
|
|
603 |
select
|
|
|
604 |
eBay_settings.Name,
|
|
|
605 |
eBay_settings.Inhalt,
|
|
|
606 |
shops.name as shop_name
|
|
|
607 |
from
|
|
|
608 |
eBay_settings,
|
|
|
609 |
shops
|
|
|
610 |
where
|
|
|
611 |
Typ = 'confDatei'
|
|
|
612 |
and
|
|
|
613 |
eBay_settings.Name=shops.ID
|
|
|
614 |
";
|
|
|
615 |
$result = mysql_query( $query ) or die( mysql_errno() . ": " .
|
|
|
616 |
mysql_error() . "<hr>$query<hr>" );
|
|
|
617 |
while ( $zeile = mysql_fetch_assoc( $result ) )
|
|
|
618 |
{
|
|
|
619 |
?>
|
|
|
620 |
<option value="<?= $zeile[Name]; ?>"<? if ( $zeile[Name] ==
|
|
|
621 |
$_SESSION[eBay][editor][confDatei] )
|
|
|
622 |
{
|
|
|
623 |
echo " selected";
|
|
|
624 |
} ?>>
|
|
|
625 |
<?= $zeile[shop_name]; ?>
|
|
|
626 |
</option>
|
|
|
627 |
<?
|
|
|
628 |
}
|
|
|
629 |
|
|
|
630 |
?>
|
|
|
631 |
</select>
|
|
|
632 |
</td>
|
|
|
633 |
</tr>
|
|
|
634 |
<?
|
|
|
635 |
break;
|
|
|
636 |
case "Was genau":
|
|
|
637 |
?>
|
|
|
638 |
<tr>
|
|
|
639 |
<td colspan="4" valign="top" class="border">
|
|
|
640 |
<textarea id="Description" name="Description" cols="110" rows="35"><?= $_SESSION[eBay][editor][Description]; ?></textarea>
|
|
|
641 |
<!-- Einbindung TinyMCE -->
|
| 2 |
lars |
642 |
<script type="text/javascript" src="/js/jquery-1.6.4.min.js"></script>
|
| 1 |
lars |
643 |
<script type="text/javascript" src="../../tiny_mce/tiny_mce.js"></script>
|
|
|
644 |
<script type="text/javascript">
|
|
|
645 |
tinyMCE.init({
|
|
|
646 |
// General options
|
|
|
647 |
mode : "exact",
|
|
|
648 |
elements: "Description",
|
|
|
649 |
theme : "advanced",
|
|
|
650 |
language: "de",
|
|
|
651 |
inline_styles : true,
|
|
|
652 |
cleanup : false,
|
|
|
653 |
plugins : "safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager,filemanager",
|
|
|
654 |
|
|
|
655 |
// Theme options
|
|
|
656 |
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull",
|
|
|
657 |
theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,preview,|,forecolor,backcolor",
|
|
|
658 |
theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,ltr,rtl,|,fullscreen",
|
|
|
659 |
theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage",
|
|
|
660 |
theme_advanced_toolbar_location : "top",
|
|
|
661 |
theme_advanced_toolbar_align : "left",
|
|
|
662 |
theme_advanced_statusbar_location : "bottom",
|
|
|
663 |
theme_advanced_resizing : true,
|
|
|
664 |
|
|
|
665 |
// Example content CSS (should be your site CSS)
|
|
|
666 |
content_css : "css/example.css",
|
|
|
667 |
|
|
|
668 |
// Drop lists for link/image/media/template dialogs
|
|
|
669 |
template_external_list_url : "js/template_list.js",
|
|
|
670 |
external_link_list_url : "js/link_list.js",
|
|
|
671 |
external_image_list_url : "js/image_list.js",
|
|
|
672 |
media_external_list_url : "js/media_list.js",
|
|
|
673 |
|
|
|
674 |
// Replace values for the template plugin
|
|
|
675 |
template_replace_values : {
|
|
|
676 |
username : "Some User",
|
|
|
677 |
staffid : "991234"
|
|
|
678 |
}
|
|
|
679 |
});
|
|
|
680 |
</script>
|
|
|
681 |
|
|
|
682 |
</td>
|
|
|
683 |
</tr>
|
|
|
684 |
<?
|
|
|
685 |
break;
|
|
|
686 |
case "Wann":
|
|
|
687 |
?>
|
|
|
688 |
<tr>
|
|
|
689 |
<td width="32%">Start:</td>
|
|
|
690 |
<td colspan="3">
|
|
|
691 |
<input name="ListingStartDay" type="text" size="10" value="<?= $_SESSION[eBay][editor][ListingStartDay]; ?>" onFocus="if (this.value=='') {this.value=now('')};this.select();">
|
|
|
692 |
<input name="ListingStartTime" type="text" size="5" value="<?= $_SESSION[eBay][editor][ListingStartTime]; ?>" onFocus="if (this.value=='') {this.value='19:00';};this.select();">
|
|
|
693 |
</td>
|
|
|
694 |
</tr>
|
|
|
695 |
<tr>
|
|
|
696 |
<td width="32%">Dauer:</td>
|
|
|
697 |
<td colspan=3>
|
|
|
698 |
<select name="Duration">
|
|
|
699 |
<option value="1"<? if ( $_SESSION[eBay][editor][Duration] ==
|
|
|
700 |
1 )
|
|
|
701 |
{ ?> selected<? } ?>>1 Tag</option>
|
|
|
702 |
<option value="3"<? if ( $_SESSION[eBay][editor][Duration] ==
|
|
|
703 |
3 )
|
|
|
704 |
{ ?> selected<? } ?>>3 Tage</option>
|
|
|
705 |
<option value="5"<? if ( $_SESSION[eBay][editor][Duration] ==
|
|
|
706 |
5 )
|
|
|
707 |
{ ?> selected<? } ?>>5 Tage</option>
|
|
|
708 |
<option value="7"<? if ( $_SESSION[eBay][editor][Duration] ==
|
|
|
709 |
7 )
|
|
|
710 |
{ ?> selected<? } ?>>7 Tage</option>
|
|
|
711 |
<option value="10"<? if ( $_SESSION[eBay][editor][Duration] ==
|
|
|
712 |
10 )
|
|
|
713 |
{ ?> selected<? } ?>>10 Tage</option>
|
|
|
714 |
</select>
|
|
|
715 |
</td>
|
|
|
716 |
</tr>
|
|
|
717 |
<?
|
|
|
718 |
break;
|
|
|
719 |
}
|
|
|
720 |
?>
|
|
|
721 |
</table>
|
|
|
722 |
</td>
|
|
|
723 |
</tr>
|
|
|
724 |
<tr>
|
|
|
725 |
<td colspan="2" align="center">
|
|
|
726 |
<hr noshade>
|
|
|
727 |
<input type="submit" value="< Zurück" onclick="this.form.step.value='<?= $steps[array_search( $step,
|
|
|
728 |
$steps ) - 2]; ?>';">
|
|
|
729 |
<input type="reset" value="Zurücksetzen">
|
|
|
730 |
<input type="submit" value="Weiter >">
|
|
|
731 |
<input type="hidden" name="step" value="<?= $step; ?>">
|
|
|
732 |
<?
|
|
|
733 |
if ( $_REQUEST[edit] )
|
|
|
734 |
{
|
|
|
735 |
?>
|
|
|
736 |
<input type="hidden" name="edit" value="<?= $_REQUEST[edit]; ?>">
|
|
|
737 |
<?
|
|
|
738 |
}
|
|
|
739 |
?>
|
|
|
740 |
</td>
|
|
|
741 |
</tr>
|
|
|
742 |
</table>
|
|
|
743 |
</form>
|
|
|
744 |
</body>
|
| 2 |
lars |
745 |
</html>
|