| 1 |
lars |
1 |
<?
|
|
|
2 |
require_once "page_functions.php";
|
|
|
3 |
?>
|
|
|
4 |
<html>
|
|
|
5 |
<head>
|
|
|
6 |
<title>Content-Management-System - Webagentur Niewerth</title>
|
|
|
7 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
8 |
<meta name="author" content="Webagentur Niewerth - www.weban.de">
|
|
|
9 |
<meta name="revisit-after" content="30 days">
|
|
|
10 |
<meta name="language" content="deutsch, de">
|
|
|
11 |
<meta name="distribution" content="global">
|
|
|
12 |
<meta name="robots" content="all">
|
|
|
13 |
<link rel="stylesheet" href="redaktion.css" type="text/css">
|
|
|
14 |
<style type="text/css"><? require_once "redaktion.css"?></style>
|
|
|
15 |
<script language="javascript">
|
|
|
16 |
function go()
|
|
|
17 |
{
|
|
|
18 |
document.formname.submit();
|
|
|
19 |
}
|
|
|
20 |
</script>
|
|
|
21 |
<script language="javascript" src="Farb_Assistent.js"></script>
|
|
|
22 |
</head>
|
|
|
23 |
|
|
|
24 |
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0 marginwidth="0" marginheight="0">
|
|
|
25 |
<?
|
|
|
26 |
if ($ID)
|
|
|
27 |
{
|
|
|
28 |
$result = mysql_query ("SELECT * FROM $Tab where ID = $ID and site='$site'") or die (mysql_errno().": ".mysql_error());
|
|
|
29 |
if (mysql_num_rows($result) == 0) {unset($ID);}
|
|
|
30 |
$zeile=mysql_fetch_array($result);
|
|
|
31 |
}
|
|
|
32 |
?>
|
|
|
33 |
<form method="post" action="<? echo $self ?>?redirect=true&File=<? echo $File; ?>" name="formname" enctype="multipart/form-data">
|
|
|
34 |
<table border="1" cellspacing="0" cellpadding="0" bordercolorlight="#FFFFFF" bordercolordark="#999999" width="100%" height="100%">
|
|
|
35 |
<tr>
|
|
|
36 |
|
|
|
37 |
<td bgcolor="#000096" class="headline" width="100" nowrap valign="top">Datei:</td>
|
|
|
38 |
|
|
|
39 |
<td colspan="3" width="594" valign="top">
|
|
|
40 |
<?
|
|
|
41 |
$file_name="Dateiname";
|
|
|
42 |
$file_Path="../$site/";
|
|
|
43 |
if ($zeile[$file_name] != "")
|
|
|
44 |
{
|
|
|
45 |
?>
|
|
|
46 |
<input type="radio" name="_<? echo $file_name ?>" value="<? echo $zeile[$file_name]; ?>" <? if ($zeile[$file_name] != "") {echo "checked";}?>>
|
|
|
47 |
<?
|
|
|
48 |
echo "$zeile[$file_name]";
|
|
|
49 |
}
|
|
|
50 |
?>
|
|
|
51 |
<!-- <input type="radio" name="_<? echo $file_name ?>" value="1" <? if ($zeile[$file_name] == "") {echo "checked";}?>>
|
|
|
52 |
keine Datei-->
|
|
|
53 |
<br>
|
|
|
54 |
<input type="radio" name="_<? echo $file_name ?>" value="2">
|
|
|
55 |
<input type="File" name="<? echo $file_name ?>" size="17" maxlength="255" onFocus="this.form._<? echo $file_name ?><? if ($zeile[$file_name] != "") {echo "[1]";} ?>.checked=true;">
|
|
|
56 |
<input type="hidden" name="<? echo $file_name ?>_Pfad" value="<? echo $file_Path ?>">
|
|
|
57 |
</td>
|
|
|
58 |
</tr>
|
|
|
59 |
</table>
|
|
|
60 |
<input type="hidden" name="site" value="<? echo $site ?>">
|
|
|
61 |
<input type="hidden" name="ID" value="<? echo $ID ?>">
|
|
|
62 |
<input type="hidden" name="action" value="update">
|
|
|
63 |
</form>
|
|
|
64 |
<?
|
|
|
65 |
if ($redirect) { ?>
|
|
|
66 |
<script language="javascript">
|
|
|
67 |
parent.formname.ID.value='<? echo $ID ?>';
|
|
|
68 |
parent.formname.submit();
|
|
|
69 |
</script>
|
|
|
70 |
<? } ?>
|
|
|
71 |
</body>
|
|
|
72 |
</html>
|