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
 
4
    define( "modul_name", "online_shop" );
5
    define( "tool_name", "artikel" );
6
    require_once  "connect2.php";
7
    session_start();
8
 
9
    // $charset laden um die jeweiligen ISO-Zeichensätzte zu laden.
10
    require_once  "charset.php";
11
 
12
    if ( $action )
13
    {
14
        unset( $_POST[action] );
15
        $_SESSION[$self] = $_POST;
16
?><script language="Javascript">parent.parent.tool.location.href='preisagenten_laden.php'</script><?
17
    }
18
?>
19
<html>
20
<head>
21
<title>Preisagenten config</title>
22
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
23
<link rel="stylesheet" href="redaktion.css" type="text/css">
24
<style>
25
.root
26
{
27
		border-style: solid;
28
		border-width: 0px 0px 0px 0px;
29
		border-color: #FF0000;
30
}
31
.subdir
32
{
33
		border-style: solid;
34
		border-width: 0px 0px 0px 0px;
35
		border-color: #0000FF;
36
		margin-left:17px;
37
}
38
</style>
39
</head>
40
<body bgcolor="#FFFFFF" text="#000000">
41
<form method="post" action="<? echo $self
42
?>">
43
  <table width="100%" border="1" cellspacing="0" cellpadding="2">
44
    <tr>
45
      <td width="50%">Anzeigen:</td>
46
      <td width="50%">Agenten:</td>
47
    </tr>
48
    <tr>
49
      <td valign="top">
50
        <input type="radio" name="nav_status_overide" value="-1"<? if ( $_SESSION[$self][nav_status_overide] ==
51
-1 )
52
    {
53
        echo " checked";
54
    }
55
?>>
56
          Alle Artikel
57
          <hr noshade width="100%">
58
          <input type="radio" name="nav_status_overide" value="select"<? if ( $_SESSION[$self][nav_status_overide] ==
59
'select' )
60
    {
61
        echo " checked";
62
    }
63
?>>
64
          Alles unterhalb von:
65
<?
66
    $query =
67
        "select distinct * FROM directory where Father = -1 and Language='DE' order by Kennung";
68
    $result = mysql_query( $query ) or die( mysql_errno() . ": " .
69
        mysql_error() );
70
    while ( $dir = mysql_fetch_array( $result ) )
71
    {
72
?>
73
<div class="root">
74
	<input type="checkbox" name="nav_status_overide_selected[<? echo $dir["ID"]
75
?>]" value="<? if ( $dir[$_SESSION["tree.php"]["output"]["directory_show_primary"]] )
76
        {
77
            echo $dir[$_SESSION["tree.php"]["output"]["directory_show_primary"]];
78
        }
79
        else
80
        {
81
            echo $dir[$_SESSION["tree.php"]["output"]["directory_show_fallback"]];
82
        }
83
?>"<? if ( $_SESSION[$self]["nav_status_overide_selected"][$dir["ID"]] )
84
        {
85
            echo " checked";
86
        }
87
?>>
88
	&nbsp;<b><? if ( $dir[$_SESSION["tree.php"]["output"]["directory_show_primary"]] )
89
        {
90
            echo $dir[$_SESSION["tree.php"]["output"]["directory_show_primary"]];
91
        }
92
        else
93
        {
94
            echo $dir[$_SESSION["tree.php"]["output"]["directory_show_fallback"]];
95
        }
96
?></b>
97
<?
98
        $query_dir2 = "select distinct * FROM directory where Father = $dir[ID] and Language='DE' order by Kennung";
99
        $result_dir2 = mysql_query( $query_dir2 ) or die( mysql_errno() .
100
            ": " . mysql_error() );
101
        while ( $dir2 = mysql_fetch_array( $result_dir2 ) )
102
        {
103
?>
104
	<div class="subdir">
105
		<input type="checkbox" name="nav_status_overide_selected[<? echo $dir2["ID"]
106
?>]" value="<? if ( $dir2[$_SESSION["tree.php"]["output"]["directory_show_primary"]] )
107
            {
108
                echo $dir2[$_SESSION["tree.php"]["output"]["directory_show_primary"]];
109
            }
110
            else
111
            {
112
                echo $dir2[$_SESSION["tree.php"]["output"]["directory_show_fallback"]];
113
            }
114
?>"<? if ( $_SESSION[$self][nav_status_overide_selected][$dir2[ID]] )
115
            {
116
                echo " checked";
117
            }
118
?>>
119
		<? if ( $dir2[$_SESSION["tree.php"]["output"]["directory_show_primary"]] )
120
            {
121
                echo $dir2[$_SESSION["tree.php"]["output"]["directory_show_primary"]];
122
            }
123
            else
124
            {
125
                echo $dir2[$_SESSION["tree.php"]["output"]["directory_show_fallback"]];
126
            }
127
?>
128
	</div>
129
<? }
130
?>
131
</div>
132
<? }
133
?>
134
      </td>
135
      <td valign="top">        <blockquote>
136
              <?
137
    $query = "select * from Preisagentur where Language='" . $_SESSION[language] .
138
        "' and hidden = 'false' order by ID";
139
    $result = mysql_query( $query ) or die( mysql_errno() . ": " .
140
        mysql_error() );
141
    while ( $agenten = mysql_fetch_array( $result ) )
142
    {
143
?>
144
              <input type="checkbox" name="agenten[<? echo $agenten[ID]
145
?>]" value="1" <? if ( $_SESSION[$self][agenten][$agenten[ID]] )
146
        {
147
            echo " checked";
148
        }
149
?>>
150
              <? echo $agenten[Titel]
151
?>
152
              <br>
153
              <?
154
    }
155
?>
156
              <br>
157
              <input name="alle_Artikel" type="checkbox" value="checkbox" id="alle_Artikel"<? if ( $_SESSION["preisagenten_config.php"]["alle_Artikel"] ==
158
"checkbox" )
159
    {
160
        echo " checked";
161
    }
162
?>>
163
Auch Artikel ohne Link anzeigen <br>
164
</blockquote>
165
 
166
      </td>
167
    </tr>
168
    <tr align="right">
169
      <td colspan="2">
170
        <input type="submit" name="action" value="Abschicken">
171
        <input type="reset" value="Zur&uuml;cksetzen">
172
      </td>
173
    </tr>
174
  </table>
175
</form>
176
</body>
177
</html>