Subversion-Projekte lars-tiefland.content-management

Revision

Blame | Letzte Änderung | Log anzeigen | RSS feed

<?
        require_once "connect2.php";
        if ($_POST)
        {
                foreach(array_keys($Name) as $elem)
                {
                        $values="($artikel,$elem,'$Name[$elem]','$Testdatum[$elem]','$Testresultat[$elem]','$PHP_AUTH_USER',NOW())";
                        if 
                        (
                                ($Name[$elem]) or
                                ($Testdatum[$elem]) or 
                                ($Testresultat[$elem])
                        )
                        {
                                $query="replace into artikel_to_WarenTesterLogos values $values";
                        }
                        mysql_query($query);
                }
?><script language="Javascript">
parent.WarenTester.location.href="WarenTester.php?artikel=<? echo $artikel ?>";
</script><?
        }
?>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel=stylesheet type="text/css" href="redaktion.css">
</head>
<script language="Javascript">
        function go(elem)
        {
                with (document.forms[0])
                {
                        focused.value=elem;
                        submit();
                }
        }
</script>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"
        onChange="with(window.event) {go(srcElement.id)}"
        onKeydown="with(window.event) {if (keyCode==13) {go(srcElement.id)}}"
        onClick="
        with(window.event)
        {
                if (ctrlKey && (srcElement.value) &&(srcElement.value.substring(0,7) == 'http://'))
                {
                        window.open(srcElement.value,'','');
                }
        }
        "
>
<?
        if ($ID)
        {
                $query2="select * from artikel_to_WarenTesterLogos where WarenTester = $ID and artikel = $artikel";
                $result2=mysql_query($query2) or die (mysql_errno().": ".mysql_error()."<hr>$query2<hr>");
                $a2wt=mysql_fetch_array($result2);
?>
<form action="<? echo $PHP_SELF ?>" method="POST">
  <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td valign="top"> 
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr> 
      <td nowrap>&nbsp;DEEPLiNK</td>
      <td width="100%" nowrap align="right"><input type="text" id="<? echo $feld_counter++ ?>" name="Name[<? echo $ID ?>]" value="<? echo $a2wt[deeplink] ?>"></td>
    </tr>
    <tr> 
      <td>&nbsp;Datum</td>
      <td align="right"><input type="text" id="<? echo $feld_counter++ ?>" name="Testdatum[<? echo $ID ?>]" value="<? echo $a2wt[TestDatum] ?>"></td>
    </tr>
    <tr> 
      <td>&nbsp;Resultat</td>
      <td align="right" > 
        <input type="text" id="<? echo $feld_counter++ ?>" name="Testresultat[<? echo $ID ?>]" value="<? echo $a2wt[TestResultat] ?>">
      </td>
    </tr>
</table>
</td>
  </tr>
  <tr>
      <td valign="bottom">
              
        <table width="100%" border="0" cellspacing="0" cellpadding="3">
          <? if ($a2wt[letzte_Aenderung_am]) {?>
          <tr> 
            <td>letzte Änderung am / von:</td>
          </tr>
          <tr> 
            <td align="center"> 
              <? $lu=timestamp2human($a2wt[letzte_Aenderung_am]) ?>
              <? echo $lu[Datum] ?>
              um: 
              <? echo $lu[Zeit] ?>
            </td>
          </tr>
          <tr> 
            <td align="center"> 
              <? echo $a2wt[letzte_Aenderung_von] ?>
            </td>
          </tr>
          <? } ?>
        </table>
                <input type="submit" class="button" name="Abschicken" value="Abschicken">
                <input type="hidden" name="artikel" value="<? echo $artikel ?>">
                <? if ($ID) { ?><input type="hidden" name="ID" value="<? echo $ID ?>"><? } ?>
      </td>
    </tr>
  </table>
</form>
<?
        }
?>
</body>
</html>