Subversion-Projekte lars-tiefland.content-management

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?
2
	$self=basename($PHP_SELF);
3
	$table="directory";
4
	define ("modul_name", "online_shop");
5
	define ("tool_name", "directory");
6
	require_once "connect2.php";
7
	require_once "includes/system/charset.php";
8
	require_once "includes/system/listFiles.php";
9
 
10
	// Session starten
11
	session_start();
12
 
13
	/*
14
		Falls noch keine Sprachauswahl getätigt wurde
15
		auf die native Shopsprache umschalten.
16
	*/
17
	if (!$_SESSION[language]) {$_SESSION[language]="DE";}
18
 
19
	/*
20
		Kommando ausführen
21
		Insert-Anweisungen werden wie Updates behandelt
22
	*/
23
	switch ($_POST[action])
24
	{
25
		case "update":
26
					// Update + Insertroutinen aufrufen
27
					require_once "includes/directory/actionUpdate.php";
28
					break;
29
		case "delete":
30
					// Löschroutinen aufrufen
31
					require_once "includes/directory/actionDelete.php";
32
					break;
33
	}
34
 
35
	if (!$sort) {$sort='Name';}
36
?>
37
<html>
38
<head>
39
<title><? echo $webs[kunde_bezeichnung] ?>: Redaktionssystem</title>
40
<meta http-equiv="Content-Type" content="text/html; charset=<?=charset($_SESSION[language]);?>">
41
<link rel=stylesheet type="text/css" href="redaktion.css">
42
 
43
<style type="text/css">
44
<!--
45
table.input
46
{
47
	border-width: 2px 1px 1px 2px;
48
	border-top-color    : #CCCCCC;
49
	border-left-color   : #CCCCCC;
50
	border-bottom-color : #AAAAAA;
51
	border-right-color  : #AAAAAA;
52
	border-style		:inset;
53
	background-color	: #FFFFFF;
54
}
55
 
56
input {font-family: Arial, Helvetica, sans-serif; font-size: 8pt}
57
select {font-family: Arial, Helvetica, sans-serif; font-size: 8pt}
58
textarea {font-family: Arial, Helvetica, sans-serif; font-size: 8pt}
59
 
60
.button
61
{
62
	width : 150px
63
}
64
 
65
td.links
66
{
67
	background-color	: #<? echo $webs[bgcolor_links] ?>;
68
	text-color			: #<? echo $webs[font_color_links] ?>;
69
	font-weight			: bold;
70
}
71
 
72
td.rechts
73
{
74
	background-color	: #<? echo $webs[bgcolor_rechts] ?>;
75
	text-color			: #<? echo $webs[font_color_rechts] ?>;
76
}
77
 
78
td
79
{
80
	font-size			: 10pt;
81
	vertical-align		: top;
82
}
83
body
84
 
85
{
86
	background-color	: #<? echo $webs[bgcolor_seite] ?>;
87
	margin				: 10px 0px 0px 20px text="#000000";
88
	font-family			: Arial, Helvetica, sans-serif;
89
}
90
-->
91
</style>
92
<script language="JavaScript" scr="includes/call_editor.js"></script>
93
<meta name="description" content="Redaktionssystem">
94
<meta name="author" content="Webagentur Niewerth">
95
<meta name="robots" content="noindex">
96
</head>
97
<body>
98
<form method="post" action="#" name="formname" enctype="multipart/form-data">
99
  <?
100
	// Daten für den Bearbeitungsmodus laden
101
	if (($action=="edit") && ($ID))
102
	{
103
		$result = mysql_query("SELECT * FROM $table where ID = '$ID' and Language = '".$_SESSION[language]."'") or die (mysql_errno().": ".mysql_error());
104
		if (mysql_num_rows($result) == 0)
105
		{
106
			$result = mysql_query ("SELECT * FROM $table where ID = '$ID' and Language = 'DE'") or die (mysql_errno().": ".mysql_error());
107
			$Language_neueintrag=true;
108
		}
109
		else
110
		{
111
			$Language_neueintrag=false;
112
		}
113
		$zeile=mysql_fetch_array($result);
114
	}
115
?>
116
  <?
117
	// Formularelemente laden
118
?>
119
  <table border=1 cellspacing=0 cellpadding=3 bordercolorlight="#FFFFFF" bordercolordark="#999999" style="float:left">
120
    <?
121
	foreach
122
	(
123
		array
124
		(
125
			"titelzeile.php",
126
			"Name.php",
127
			"Kennung.php",
128
			"range.php",
129
			"Artikelstamm.php",
130
			"Template.php",
131
			"Bilder.php",
132
			"Beschreibung.php",
133
			"beschreibung_simpel.php",
134
			"Beschreibung2.php",
135
			"beschreibung2_simpel.php",
136
			"short_line.php",
137
			"Eigenschaften.php",
138
			"Verschieben.php",
139
			"status.php",
140
			"Protokoll.php",
141
			"schlussLeiste.php"
142
		)
143
		as $elem
144
	)
145
	{
146
		require_once "includes/templates/directory/".$elem;
147
	}
148
?>
149
  </table>
150
  <? require_once "includes/templates/directory/Flaggen.php"; ?>
151
  <table width=520 border="0" cellspacing="0" cellpadding="0">
152
    <tr>
153
      <td colspan="3">&nbsp;</td>
154
    </tr>
155
    <tr>
156
      <td>
157
        <? require_once "includes/templates/directory/neuerOrdner.php"; ?>
158
      </td>
159
      <td>
160
        <? require_once "includes/templates/directory/neuerArtikel.php"; ?>
161
      </td>
162
      <td>
163
        <? require_once "includes/templates/directory/delete.php"; ?>
164
      </td>
165
    </tr>
166
  </table>
167
  <table width=520 border="0" cellspacing="0" cellpadding="0">
168
    <tr>
169
      <td>
170
        <? require_once "includes/templates/directory/d2d.php"; ?>
171
      </td>
172
      <td>
173
        <? require_once "includes/templates/directory/a2d.php"; ?>
174
      </td>
175
    </tr>
176
  </table>
177
</form>
178
</body>