| 1 |
lars |
1 |
<?
|
|
|
2 |
require_once "connect.php";
|
|
|
3 |
session_start();
|
|
|
4 |
if (!$language) {$language="DE";}
|
|
|
5 |
?>
|
|
|
6 |
<html>
|
|
|
7 |
<head>
|
|
|
8 |
<title><? echo $webs[kunde_bezeichnung] ?>: Redaktionssystem</title>
|
|
|
9 |
<meta http-equiv="Content-Type" content="text/html; charset=<? echo $charset ?>">
|
|
|
10 |
<link rel=stylesheet type="text/css" href="redaktion.css">
|
|
|
11 |
<style type="text/css">
|
|
|
12 |
A:link {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #000000}
|
|
|
13 |
A:visited {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #333333}
|
|
|
14 |
A:active {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #CC0000}
|
|
|
15 |
A:hover {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #669933}
|
|
|
16 |
p {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #000096}
|
|
|
17 |
p.error {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #000000; font-weight: bold}
|
|
|
18 |
span {font-family: Arial, Helvetica, sans-serif; font-size: 10pt}
|
|
|
19 |
span.blue {font-family: Arial, Helvetica, sans-serif; color: #FFFFFF; background-color:#0000A0; font-size: 10pt}
|
|
|
20 |
span.small {font-family: Arial, Helvetica, sans-serif; font-size: 8pt; text-decoration: none}
|
|
|
21 |
td {font-family: Arial, Helvetica, sans-serif; font-size: 10pt}
|
|
|
22 |
td.timeout {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #FF0000;}
|
|
|
23 |
td.small {font-family: Arial, Helvetica, sans-serif; font-size: 8pt}
|
|
|
24 |
td.headline {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #FFFFFF; font-weight: bold}
|
|
|
25 |
td.haupt {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; font-weight: bold}
|
|
|
26 |
td.selectet_language {border: 1px outset; border-color: #CCCCCC #999999 #999999 #CCCCCC}
|
|
|
27 |
input {font-family: Arial, Helvetica, sans-serif; font-size: 8pt}
|
|
|
28 |
select {font-family: Arial, Helvetica, sans-serif; font-size: 8pt}
|
|
|
29 |
textarea {font-family: Arial, Helvetica, sans-serif; font-size: 8pt}.button { width: 100%; border-style: outset; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; cursor: auto}
|
|
|
30 |
</style>
|
|
|
31 |
<style type="text/css">
|
|
|
32 |
<!--
|
|
|
33 |
table.input
|
|
|
34 |
{
|
|
|
35 |
border-width: 2px 1px 1px 2px;
|
|
|
36 |
border-top-color : #CCCCCC;
|
|
|
37 |
border-left-color : #CCCCCC;
|
|
|
38 |
border-bottom-color : #AAAAAA;
|
|
|
39 |
border-right-color : #AAAAAA;
|
|
|
40 |
border-style :inset;
|
|
|
41 |
background-color : #FFFFFF;
|
|
|
42 |
}
|
|
|
43 |
-->
|
|
|
44 |
</style>
|
|
|
45 |
<script language="JavaScript">
|
|
|
46 |
<!--
|
|
|
47 |
function MM_swapImgRestore() { //v3.0
|
|
|
48 |
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
|
|
|
49 |
}
|
|
|
50 |
|
|
|
51 |
function MM_preloadImages() { //v3.0
|
|
|
52 |
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
|
|
|
53 |
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
|
|
|
54 |
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
|
|
|
55 |
}
|
|
|
56 |
|
|
|
57 |
function MM_swapImage() { //v3.0
|
|
|
58 |
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
|
|
|
59 |
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
|
|
|
60 |
}
|
|
|
61 |
|
|
|
62 |
function MM_validateForm() { //v4.0
|
|
|
63 |
var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
|
|
|
64 |
for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
|
|
|
65 |
if (val) { nm=val.name; if ((val=val.value)!="") {
|
|
|
66 |
if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
|
|
|
67 |
if (p<1 || p==(val.length-1)) errors+='- '+nm+' muss eine E-Mail Adresse sein.\n';
|
|
|
68 |
} else if (test!='R') {
|
|
|
69 |
if (isNaN(val)) errors+='- '+nm+' muss eine Zahl sein.\n';
|
|
|
70 |
if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
|
|
|
71 |
min=test.substring(8,p); max=test.substring(p+1);
|
|
|
72 |
if (val<min || max<val) errors+='- '+nm+' muss eine Zahl zwischen '+min+' und '+max+' sein.\n';
|
|
|
73 |
} } } else if (test.charAt(0) == 'R') errors += '- '+nm+' wird benötigt.\n'; }
|
|
|
74 |
} if (errors) alert('Folgende Fehler sind aufgetreten:\n'+errors);
|
|
|
75 |
document.MM_returnValue = (errors == '');
|
|
|
76 |
}
|
|
|
77 |
|
|
|
78 |
function MM_findObj(n, d) { //v4.01
|
|
|
79 |
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
|
|
|
80 |
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
|
|
|
81 |
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
|
|
|
82 |
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
|
|
|
83 |
if(!x && d.getElementById) x=d.getElementById(n); return x;
|
|
|
84 |
}
|
|
|
85 |
|
|
|
86 |
function call_editor(Feldname,properties)
|
|
|
87 |
{
|
|
|
88 |
editor=window.open("../editor/editor.php?properties="+properties,Feldname,"height=400,width=750,location=no,menubar=no,resizable=yes,scrollbars=no,status=no,toolbar=no");;
|
|
|
89 |
}
|
|
|
90 |
|
|
|
91 |
parent.tree.location.href=parent.tree.location.href+parent.tree.location.hash;
|
|
|
92 |
//-->
|
|
|
93 |
</script>
|
|
|
94 |
<meta name="description" content="Redaktionssystem">
|
|
|
95 |
<meta name="author" content="Webagentur Niewerth">
|
|
|
96 |
<meta name="robots" content="noindex">
|
|
|
97 |
</head>
|
|
|
98 |
|
|
|
99 |
<body bgcolor="#ffffff" leftmargin="20" topmargin="10" marginwidth="20" marginheight="10" text="#000000">
|
|
|
100 |
<table width="500" border="1" cellspacing="0" cellpadding="2">
|
|
|
101 |
<tr bgcolor="#<? echo $webs[bgcolor_links] ?>">
|
|
|
102 |
<td colspan=2><font color="#<? echo $webs[font_color_links] ?>"><b> </b></font>
|
|
|
103 |
</td></tr>
|
|
|
104 |
<?
|
|
|
105 |
if($_GET['delete'])
|
|
|
106 |
{
|
|
|
107 |
$query="delete from shop_link_table where Father = '".$delete[Father]."' and ID = '".$delete[ID]."' and Verwendung = 'a2d'";
|
|
|
108 |
$result = mysql_query ($query) or die (mysql_errno().": ".mysql_error()."<hr>$query<hr>");
|
|
|
109 |
}
|
|
|
110 |
|
|
|
111 |
if($_GET['child']['ID'])
|
|
|
112 |
{
|
|
|
113 |
$sql2="
|
|
|
114 |
INSERT INTO
|
|
|
115 |
shop_link_table
|
|
|
116 |
(
|
|
|
117 |
ID,
|
|
|
118 |
Father,
|
|
|
119 |
Verwendung
|
|
|
120 |
)
|
|
|
121 |
values
|
|
|
122 |
(
|
|
|
123 |
'".$_GET['child']['ID']."',
|
|
|
124 |
'".$_GET['Father']['ID']."',
|
|
|
125 |
'".$_GET['child']['typ']."2".$_GET['Father']['typ']."'
|
|
|
126 |
)
|
|
|
127 |
";
|
|
|
128 |
$result2 = mysql_query ($sql2);// or die (mysql_errno().": ".mysql_error());
|
|
|
129 |
}
|
|
|
130 |
|
|
|
131 |
$sql3="
|
|
|
132 |
SELECT
|
|
|
133 |
shop_link_table.*, ELT(FIELD(left(shop_link_table.Verwendung,1),'d','a'), directory.Name, ifnull(artikel.kurzbezeichnung,artikel.Kennung)) as Name
|
|
|
134 |
FROM
|
|
|
135 |
shop_link_table
|
|
|
136 |
LEFT JOIN
|
|
|
137 |
artikel ON artikel.ID = shop_link_table.ID and artikel.Language = '".$language."'
|
|
|
138 |
LEFT JOIN
|
|
|
139 |
directory ON directory.ID = shop_link_table.ID and directory.Language = '".$language."'
|
|
|
140 |
WHERE
|
|
|
141 |
shop_link_table.Father='".$_GET['Father']['ID']."'";
|
|
|
142 |
|
|
|
143 |
$result3 = mysql_query ($sql3) or die (mysql_errno().": ".mysql_error());
|
|
|
144 |
while($zeile3=mysql_fetch_array($result3))
|
|
|
145 |
{
|
|
|
146 |
?>
|
|
|
147 |
<tr>
|
|
|
148 |
<td bgcolor="#<?=$webs[bgcolor_rechts];?>" width="100%"><font color="#<?=$webs[font_color_rechts];?>"><b>
|
|
|
149 |
<img src="../images/Online-Shop/directory/file.gif" border="0">
|
|
|
150 |
<?=$zeile3[Name];?></b></font>
|
|
|
151 |
</td>
|
|
|
152 |
<td><a href="verlinken_ansicht.php?Father[ID]=<?=$_GET['Father']['ID'];?>&delete[Father]=<?=$_GET['Father']['ID'];?>&delete[ID]=<?=$zeile3['ID'];?>" target="verlinken_tool"><img src="../images/Icons/delete.gif" width="12" height="12" border="0" alt="Diesen Artikel aus der Aktion löschen"></a></td>
|
|
|
153 |
</tr>
|
|
|
154 |
<?
|
|
|
155 |
}
|
|
|
156 |
?>
|
|
|
157 |
<tr>
|
|
|
158 |
<td colspan="2" bgcolor="#<? echo $webs[bgcolor_links] ?>"> </td>
|
|
|
159 |
</tr>
|
|
|
160 |
</table>
|
|
|
161 |
</body>
|