Subversion-Projekte lars-tiefland.content-management

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?
2
	require_once "connect.php";
3
 
4
	if ($action)
5
	{
6
		if ($Son)
7
		{
8
			$query="insert into shop_link_table (Father,ID,Verwendung) values ($Father[ID],$Son[ID],'$Son[typ]2$Father[typ]')";
9
			$result = mysql_query ($query);
10
?>
11
<script language=javascript>
12
	parent.tree.location.href=parent.tree.location.href+parent.tree.location.hash;
13
</script>
14
<?
15
		}
16
	}
17
?>
18
<html>
19
<head>
20
<title><? echo $webs[kunde_bezeichnung] ?>: Redaktionssystem</title>
21
<meta http-equiv="Content-Type" content="text/html; charset=<? echo $charset ?>">
22
<link rel=stylesheet type="text/css" href="redaktion.css">
23
<style type="text/css"><MM:BeginLock translatorClass="MM_SSI" type="ssi" orig="%3C? require_once %22redaktion.css%22; ?%3E" fileRef="redaktion.css" depFiles="file:///L|/content-management/Online-Shop/redaktion.css">A:link {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #000000}
24
A:visited {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #333333}
25
A:active {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #CC0000}
26
A:hover {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #669933}
27
p {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #000096}
28
p.error {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #000000; font-weight: bold}
29
span {font-family: Arial, Helvetica, sans-serif; font-size: 10pt}
30
span.blue {font-family: Arial, Helvetica, sans-serif; color: #FFFFFF; background-color:#0000A0; font-size: 10pt}
31
span.small {font-family: Arial, Helvetica, sans-serif; font-size: 8pt; text-decoration: none}
32
td {font-family: Arial, Helvetica, sans-serif; font-size: 10pt}
33
td.timeout {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #FF0000;}
34
td.small {font-family: Arial, Helvetica, sans-serif; font-size: 8pt}
35
td.headline {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #FFFFFF; font-weight: bold}
36
td.haupt {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; font-weight: bold}
37
td.selectet_language {border: 1px outset; border-color: #CCCCCC #999999 #999999 #CCCCCC}
38
input {font-family: Arial, Helvetica, sans-serif; font-size: 8pt}
39
select {font-family: Arial, Helvetica, sans-serif; font-size: 8pt}
40
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}
41
<MM:EndLock></style>
42
<style type="text/css">
43
<!--
44
table.input
45
{
46
	border-width: 2px 1px 1px 2px;
47
	border-top-color    : #CCCCCC;
48
	border-left-color   : #CCCCCC;
49
	border-bottom-color : #AAAAAA;
50
	border-right-color  : #AAAAAA;
51
	border-style		:inset;
52
	background-color	: #FFFFFF;
53
}
54
-->
55
</style>
56
<script language="JavaScript">
57
<!--
58
function MM_swapImgRestore() { //v3.0
59
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
60
}
61
 
62
function MM_preloadImages() { //v3.0
63
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
64
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
65
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
66
}
67
 
68
function MM_swapImage() { //v3.0
69
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
70
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
71
}
72
 
73
function MM_validateForm() { //v4.0
74
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
75
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
76
    if (val) { nm=val.name; if ((val=val.value)!="") {
77
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
78
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' muss eine E-Mail Adresse sein.\n';
79
      } else if (test!='R') {
80
        if (isNaN(val)) errors+='- '+nm+' muss eine Zahl sein.\n';
81
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
82
          min=test.substring(8,p); max=test.substring(p+1);
83
          if (val<min || max<val) errors+='- '+nm+' muss eine Zahl zwischen '+min+' und '+max+' sein.\n';
84
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' wird benötigt.\n'; }
85
  } if (errors) alert('Folgende Fehler sind aufgetreten:\n'+errors);
86
  document.MM_returnValue = (errors == '');
87
}
88
 
89
function MM_findObj(n, d) { //v4.01
90
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
91
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
92
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
93
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
94
  if(!x && d.getElementById) x=d.getElementById(n); return x;
95
}
96
 
97
function call_editor(Feldname,properties)
98
{
99
	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");;
100
}
101
//-->
102
</script>
103
<meta name="description" content="Redaktionssystem">
104
<meta name="author" content="Webagentur Niewerth">
105
<meta name="robots" content="noindex">
106
</head>
107
 
108
<body bgcolor="#<? echo $webs[bgcolor_seite]; ?>" leftmargin="20" topmargin="10" marginwidth="20" marginheight="10" text="#000000">
109
<form method="post" action="<? echo $self ?>?Father[typ]=<? echo $Father[typ] ?>&Father[ID]=<? echo $Father[ID] ?>&Target[typ]=<? echo $Target[typ] ?>" name="formname">
110
  <table width="558" border="0" cellspacing="0" cellpadding="0" height="100%">
111
    <tr valign="top">
112
      <td width="488">
113
        <table width="100%" height="100%" border="1" cellspacing="0" cellpadding="3" bordercolorlight="#FFFFFF" bordercolordark="#999999">
114
          <tr bgcolor="#<? echo $webs[bgcolor_links] ?>">
115
            <td><font color="#<? echo $webs[font_color_links] ?>"><b><? if ($Target[typ] == 'a') { ?>Artikel<? } else { ?>Ordner<? } ?> verlinken</b></font></td>
116
          </tr>
117
          <tr>
118
            <td bgcolor="#<? echo $webs[bgcolor_links] ?>" valign="top" height="100%">
119
			<iframe name="position" frameborder="1" height="100%" width="100%" src="tree_link.php?<? echo $QUERY_STRING ?>"></iframe>
120
            </td>
121
          </tr>
122
          <tr bgcolor="#<? echo $webs[bgcolor_links] ?>">
123
            <td align="right">
124
              <input type="text" name="Father[typ]" value="<? echo $Father[typ] ?>" size="3" readonly>
125
              <input type="text" name="Father[ID]" value="<? echo $Father[ID] ?>" size="3" readonly>
126
              <input type="text" name="Son[typ]" value="" size="3" readonly>
127
              <input type="text" name="Son[ID]" value="" size="3" readonly>
128
              <input type="submit" value="OK" name="action">
129
              <input type="button" value="Abbrechen" onClick="document.location='<? if ($Father[typ] == "d") { echo "directory"; } else { echo "artikel"; } ?>.php?action=edit&ID=<? echo $Father[ID] ?>'">
130
            </td>
131
          </tr>
132
        </table>
133
      </td>
134
</tr>
135
</table>
136
<table>
137
<?
138
		$sql3="SELECT * FROM shop_link_table WHERE Father='".$Father['ID']."'";
139
		$result3 = mysql_query ($sql3) or die (mysql_errno().": ".mysql_error());
140
 
141
		while($zeile3=mysql_fetch_array($result3))
142
		{
143
?>
144
  <tr>
145
	<td valign="top"><? echo $zeile3['ID'] ?></td>
146
	<td nowrap valign="top"><? echo $zeile3['Verwendung'] ?></td>
147
  </tr>
148
  <?
149
		}
150
  ?>
151
 </table>
152
</form>
153
</body>