Subversion-Projekte lars-tiefland.content-management

Revision

Blame | Letzte Änderung | Log anzeigen | RSS feed

<?
        require_once "connect.php";
        
        if ($action)
        {
                if ($Son)
                {
                        $query="insert into shop_link_table (Father,ID,Verwendung) values ($Father[ID],$Son[ID],'$Son[typ]2$Father[typ]')";
                        $result = mysql_query ($query);
?>
<script language=javascript>
        parent.tree.location.href=parent.tree.location.href+parent.tree.location.hash;
</script>
<?
                }
        }
?>
<html>
<head>
<title><? echo $webs[kunde_bezeichnung] ?>: Redaktionssystem</title>
<meta http-equiv="Content-Type" content="text/html; charset=<? echo $charset ?>">
<link rel=stylesheet type="text/css" href="redaktion.css">
<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}
A:visited {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #333333}
A:active {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #CC0000}
A:hover {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #669933}
p {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #000096}
p.error {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #000000; font-weight: bold}
span {font-family: Arial, Helvetica, sans-serif; font-size: 10pt}
span.blue {font-family: Arial, Helvetica, sans-serif; color: #FFFFFF; background-color:#0000A0; font-size: 10pt}
span.small {font-family: Arial, Helvetica, sans-serif; font-size: 8pt; text-decoration: none}
td {font-family: Arial, Helvetica, sans-serif; font-size: 10pt}
td.timeout {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #FF0000;}
td.small {font-family: Arial, Helvetica, sans-serif; font-size: 8pt}
td.headline {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #FFFFFF; font-weight: bold}
td.haupt {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; font-weight: bold}
td.selectet_language {border: 1px outset; border-color: #CCCCCC #999999 #999999 #CCCCCC}
input {font-family: Arial, Helvetica, sans-serif; font-size: 8pt}
select {font-family: Arial, Helvetica, sans-serif; font-size: 8pt}
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}
<MM:EndLock></style>
<style type="text/css">
<!--
table.input
{
        border-width: 2px 1px 1px 2px;
        border-top-color    : #CCCCCC;
        border-left-color   : #CCCCCC;
        border-bottom-color : #AAAAAA;
        border-right-color  : #AAAAAA;
        border-style            :inset;
        background-color        : #FFFFFF;
}       
-->
</style>
<script language="JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' muss eine E-Mail Adresse sein.\n';
      } else if (test!='R') {
        if (isNaN(val)) errors+='- '+nm+' muss eine Zahl sein.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (val<min || max<val) errors+='- '+nm+' muss eine Zahl zwischen '+min+' und '+max+' sein.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' wird benötigt.\n'; }
  } if (errors) alert('Folgende Fehler sind aufgetreten:\n'+errors);
  document.MM_returnValue = (errors == '');
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function call_editor(Feldname,properties)
{
        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");;
}
//-->
</script>
<meta name="description" content="Redaktionssystem">
<meta name="author" content="Webagentur Niewerth">
<meta name="robots" content="noindex">
</head>

<body bgcolor="#<? echo $webs[bgcolor_seite]; ?>" leftmargin="20" topmargin="10" marginwidth="20" marginheight="10" text="#000000">
<form method="post" action="<? echo $self ?>?Father[typ]=<? echo $Father[typ] ?>&Father[ID]=<? echo $Father[ID] ?>&Target[typ]=<? echo $Target[typ] ?>" name="formname">
  <table width="558" border="0" cellspacing="0" cellpadding="0" height="100%">
    <tr valign="top"> 
      <td width="488"> 
        <table width="100%" height="100%" border="1" cellspacing="0" cellpadding="3" bordercolorlight="#FFFFFF" bordercolordark="#999999">
          <tr bgcolor="#<? echo $webs[bgcolor_links] ?>"> 
            <td><font color="#<? echo $webs[font_color_links] ?>"><b><? if ($Target[typ] == 'a') { ?>Artikel<? } else { ?>Ordner<? } ?> verlinken</b></font></td>
          </tr>
          <tr> 
            <td bgcolor="#<? echo $webs[bgcolor_links] ?>" valign="top" height="100%">
                        <iframe name="position" frameborder="1" height="100%" width="100%" src="tree_link.php?<? echo $QUERY_STRING ?>"></iframe> 
            </td>
          </tr>
          <tr bgcolor="#<? echo $webs[bgcolor_links] ?>"> 
            <td align="right"> 
              <input type="text" name="Father[typ]" value="<? echo $Father[typ] ?>" size="3" readonly>
              <input type="text" name="Father[ID]" value="<? echo $Father[ID] ?>" size="3" readonly>
              <input type="text" name="Son[typ]" value="" size="3" readonly>
              <input type="text" name="Son[ID]" value="" size="3" readonly>
              <input type="submit" value="OK" name="action">
              <input type="button" value="Abbrechen" onClick="document.location='<? if ($Father[typ] == "d") { echo "directory"; } else { echo "artikel"; } ?>.php?action=edit&ID=<? echo $Father[ID] ?>'">
            </td>
          </tr>
        </table>
      </td>
</tr>
</table>
<table>
<?
                $sql3="SELECT * FROM shop_link_table WHERE Father='".$Father['ID']."'";
                $result3 = mysql_query ($sql3) or die (mysql_errno().": ".mysql_error());
                
                while($zeile3=mysql_fetch_array($result3))
                {
?>
  <tr>
        <td valign="top"><? echo $zeile3['ID'] ?></td>
        <td nowrap valign="top"><? echo $zeile3['Verwendung'] ?></td>
  </tr>
  <?
                }
  ?>
 </table>
</form>
</body>