Subversion-Projekte lars-tiefland.content-management

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?
2
	require_once "connect2.php";
3
	if ($_POST)
4
	{
5
		foreach(array_keys($Name) as $elem)
6
		{
7
			$values="($artikel,$elem,'$Name[$elem]','$Testdatum[$elem]','$Testresultat[$elem]','$PHP_AUTH_USER',NOW())";
8
			if
9
			(
10
				($Name[$elem]) or
11
				($Testdatum[$elem]) or
12
				($Testresultat[$elem])
13
			)
14
			{
15
				$query="replace into artikel_to_WarenTesterLogos values $values";
16
			}
17
			mysql_query($query);
18
		}
19
?><script language="Javascript">
20
parent.WarenTester.location.href="WarenTester.php?artikel=<? echo $artikel ?>";
21
</script><?
22
	}
23
?>
24
<html>
25
<head>
26
<title></title>
27
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
28
<link rel=stylesheet type="text/css" href="redaktion.css">
29
</head>
30
<script language="Javascript">
31
	function go(elem)
32
	{
33
		with (document.forms[0])
34
		{
35
			focused.value=elem;
36
			submit();
37
		}
38
	}
39
</script>
40
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"
41
	onChange="with(window.event) {go(srcElement.id)}"
42
	onKeydown="with(window.event) {if (keyCode==13) {go(srcElement.id)}}"
43
	onClick="
44
	with(window.event)
45
	{
46
		if (ctrlKey && (srcElement.value) &&(srcElement.value.substring(0,7) == 'http://'))
47
		{
48
			window.open(srcElement.value,'','');
49
		}
50
	}
51
	"
52
>
53
<?
54
	if ($ID)
55
	{
56
		$query2="select * from artikel_to_WarenTesterLogos where WarenTester = $ID and artikel = $artikel";
57
		$result2=mysql_query($query2) or die (mysql_errno().": ".mysql_error()."<hr>$query2<hr>");
58
		$a2wt=mysql_fetch_array($result2);
59
?>
60
<form action="<? echo $PHP_SELF ?>" method="POST">
61
  <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
62
    <tr>
63
      <td valign="top">
64
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
65
    <tr>
66
      <td nowrap>&nbsp;DEEPLiNK</td>
67
      <td width="100%" nowrap align="right"><input type="text" id="<? echo $feld_counter++ ?>" name="Name[<? echo $ID ?>]" value="<? echo $a2wt[deeplink] ?>"></td>
68
    </tr>
69
    <tr>
70
      <td>&nbsp;Datum</td>
71
      <td align="right"><input type="text" id="<? echo $feld_counter++ ?>" name="Testdatum[<? echo $ID ?>]" value="<? echo $a2wt[TestDatum] ?>"></td>
72
    </tr>
73
    <tr>
74
      <td>&nbsp;Resultat</td>
75
      <td align="right" >
76
        <input type="text" id="<? echo $feld_counter++ ?>" name="Testresultat[<? echo $ID ?>]" value="<? echo $a2wt[TestResultat] ?>">
77
      </td>
78
    </tr>
79
</table>
80
</td>
81
  </tr>
82
  <tr>
83
      <td valign="bottom">
84
 
85
        <table width="100%" border="0" cellspacing="0" cellpadding="3">
86
          <? if ($a2wt[letzte_Aenderung_am]) {?>
87
          <tr>
88
            <td>letzte Änderung am / von:</td>
89
          </tr>
90
          <tr>
91
            <td align="center">
92
              <? $lu=timestamp2human($a2wt[letzte_Aenderung_am]) ?>
93
              <? echo $lu[Datum] ?>
94
              um:
95
              <? echo $lu[Zeit] ?>
96
            </td>
97
          </tr>
98
          <tr>
99
            <td align="center">
100
              <? echo $a2wt[letzte_Aenderung_von] ?>
101
            </td>
102
          </tr>
103
          <? } ?>
104
        </table>
105
	  	<input type="submit" class="button" name="Abschicken" value="Abschicken">
106
		<input type="hidden" name="artikel" value="<? echo $artikel ?>">
107
		<? if ($ID) { ?><input type="hidden" name="ID" value="<? echo $ID ?>"><? } ?>
108
      </td>
109
    </tr>
110
  </table>
111
</form>
112
<?
113
	}
114
?>
115
</body>
116
</html>