Zitat (Diewie: 15.05.2008, 18:36)
Für was? Für sich selber?
geschrieben 15. Mai 2008 - 18:04
Zitat (Diewie: 15.05.2008, 18:36)
geschrieben 15. Mai 2008 - 18:26
<title><? echo $action; ?></title>
geschrieben 15. Mai 2008 - 18:41
Zitat (Gitarremann: 15.05.2008, 19:04)
geschrieben 15. Mai 2008 - 18:45
<?php
$action = $_GET['act'];
$m1=".counter";
$m1m1="total:";
$m2=".menu";
$m2m1="home";
$m2m2="news";
$m2m3="guestbook";
$m2m4="chat";
$m2m5="impressum";
$variable[1] = "menue";
$variable[2] = "menue";
$variable[3] = "menue";
$variable[4] = "menue";
$variable[5] = "menue";
$variable[6] = "menue";
include('include/counter.php');
?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
<title><? echo $action; ?></title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
<meta name="description" content="" />
<meta name="author" content="Dyon" />
<meta name="keywords" content="Dennis" />
<link href="include/style.css" type="text/css" rel="stylesheet" />
<link rel="shortcut icon" type="image/x-icon" href="include/favicon.ico">
</head>
<body>
<div id="all">
<div id="top">
<img src="include/top.jpg" alt="top" id="top">
</div>
<div id="navi" class="klein">you are here:
<?php
if($action=="" | $action=="m2" | $action=="m2m1" | $action=="m2m2" | $action=="m2m3" | $action=="m2m4" | $action=="m2m5" | $action=="m2m6" | $action=="m2m7") {
echo '<a href="?act=m2">'.$m2.'</a>';
echo ' >> ';
if($action=="" | $action=="m2m1")
echo '<a href="?act=m2m1">'.$m2m1.'</a>';
if($action=="m2m2")
echo '<a href="?act=m2m2">'.$m2m2.'</a>';
if($action=="m2m3")
echo '<a href="?act=m2m2">'.$m2m3.'</a>';
if($action=="m2m4")
echo '<a href="?act=m2m2">'.$m2m4.'</a>';
if($action=="m2m5")
echo '<a href="?act=m2m2">'.$m2m5.'</a>';
if($action=="m2m6")
echo '<a href="?act=m2m2">'.$m2m6.'</a>';
if($action=="m2m7")
echo '<a href="?act=m2m2">'.$m2m7.'</a>';
}
?>
</div>
<ul id="menue">
<li id="menuefeldueberschrift">
<? echo $m1; ?>
</li>
<li id="menuefeldmain">
<? echo $m1m1;
include "counter.txt";
?>
</li>
<li id="menuefeldueberschrift">
<? echo $m2; ?>
</li>
<li id="menuefeldmain">
<?php
for ($i=1;$i<12;$i++)
{ echo("<li id=\"menuefeld\"><a href=\"index.php?id=$i\"><?=$variable[$i]?></a></li>");}
?>
</li>
<li id="menuefeldueberschrift">
.login
</li>
<li id="menuefeldmain">
<a id="menuefeld">
<input id="login" type="text" name="name" value="name" />
</a>
</li>
<li id="menuefeldmain">
<a id="menuefeld">
<input id="login" type="password" name="password" value="password" />
</a>
</li>
<li id="menuefeldmain">
<a id="menuefeld" href="l.php">
login
</a>
</li>
<li id="menuefeldueberschrift">
.chat
</li>
</ul>
<div id="main"></div>
</div>
<p id="footer">(c)2008 by Dennis - Impressum</p>
</body>
</html>
geschrieben 15. Mai 2008 - 19:24
Zitat (Diewie: 15.05.2008, 19:41)
Dieser Beitrag wurde von Gitarremann bearbeitet: 15. Mai 2008 - 19:27
geschrieben 15. Mai 2008 - 19:31
Zitat (Dyon: 15.05.2008, 19:45)
{ echo("<li class=\"lala\"><a href=\"index.php?id=$i\"><?=$variable[$i]?></a></li>"); }
{ echo("<li class=\"lala\"><a href=\"index.php?id=$i\">$variable[$i]</a></li>"); }
geschrieben 15. Mai 2008 - 19:40
geschrieben 15. Mai 2008 - 19:44
Zitat (Gitarremann: 15.05.2008, 20:24)
geschrieben 15. Mai 2008 - 20:10
Zitat (Diewie: 15.05.2008, 20:44)
Zitat (Diewie: 15.05.2008, 20:44)
Zitat (Dyon: 15.05.2008, 20:40)
id="sowieso"
#sowieso {...}
class="sowieso"
.sowieso {...}
geschrieben 15. Mai 2008 - 21:35
<?php
$top = trim($_GET['top']);
$sub = trim($_GET['sub']);
//$menu_top - Enthält die Überschriften der Menüs
$menu_top = array('menu_oben' => '.hauptmenü',
'menu_unten' => '.menü');
//$menu - hält die Elemente des Untermenüs
$menu['menu_oben'] = array('home' => 'hauptseite');
$menu['menu_unten'] = array('news' => 'news',
'gb' => 'gästebuch',
'chat' => 'chat',
'impressum' => 'impressum');
//.navigation - hauptseite ist Standardseite
$top = (strlen($top) <= 0)?'menu_oben':$top;
$sub = (strlen($sub) <= 0)?'home':$sub;
//include('include/counter.php');
echo '<?xml version="1.0" ?>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><? echo $menu_top[$top]; echo (isset($menu[$top][$sub]))?' - '.$menu[$top][$sub]:null; ?></title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
<meta name="description" content="" />
<meta name="author" content="Dyon" />
<meta name="keywords" content="Dennis" />
<link href="include/style.css" type="text/css" rel="stylesheet" />
<link rel="shortcut icon" type="image/x-icon" href="include/favicon.ico" />
</head>
<body>
<div id="all">
<div id="top">
<img src="include/top.jpg" alt="top" class="top" />
</div>
<div id="navi" class="klein">you are here:
<?php
if (isset($menu_top[$top])) {
echo '<a href="?top='.$top.'">'.$menu_top[$top].'</a>';
if (isset($menu[$top][$sub])) {
echo ' >> '.'<a href="?top='.$top.'&sub='.$sub.'">'.$menu[$top][$sub].'</a>';
}
}
?>
</div>
<ul id="menue">
<?php
/* Menü erstellen */
foreach($menu as $topkey => $topvalue) {
echo '<li class="menuefeldueberschrift">'.$menu_top[$topkey].'</li>';
foreach($menu[$topkey] as $subkey => $subvalue) {
echo '<li class="menuefeldmain"><a href="?top='.$topkey.'&sub='.$subkey.'">'.$subvalue.'</a></li>';
}
}
?>
<li class="menuefeldueberschrift">
.counter
</li>
<li class="menuefeldmain">
total:
<? //include('counter.txt'); ?>
</li>
<li class="menuefeldueberschrift">
.login
</li>
<li class="menuefeldmain">
<a class="menuefeld">
<input class="login" type="text" name="name" value="name" />
</a>
</li>
<li class="menuefeldmain">
<a class="menuefeld">
<input class="login" type="password" name="password" value="password" />
</a>
</li>
<li class="menuefeldmain">
<a class="menuefeld" href="l.php">
login
</a>
</li>
<li class="menuefeldueberschrift">
.chat
</li>
</ul>
<div id="main">
<?php
/* So könnte die Ausgabe des Contents erfolgen */
switch ($top) {
case 'menu_oben':
switch ($sub) {
case 'home':
echo 'Dies ist die Hauptseite.';
break;
default:
}
break;
case 'menu_unten':
switch ($sub) {
case 'gb':
echo 'Das ist das Gästebuch.';
break;
default:
}
break;
default:
}
?>
</div>
</div>
<p id="footer">©2008 by Dennis - Impressum</p>
</body>
</html>
geschrieben 16. Mai 2008 - 16:55
geschrieben 16. Mai 2008 - 17:01
Zitat (Dyon: 16.05.2008, 17:55)
Dieser Beitrag wurde von Gitarremann bearbeitet: 16. Mai 2008 - 17:04
geschrieben 16. Mai 2008 - 17:18
switch ($top) {
case 'menu_oben':
switch ($sub) {
case 'home':
?>
<p>Ok this is the home page</p>
<?php
break;
default:
}
break;
case 'menu_unten':
switch ($sub) {
case 'gb':
?>
<p>Ok this is the guestbook</p>
<?php
break;
default:
}
switch ($sub) {
case 'news':
?>
<p>Ok this is the news page</p>
<?php
break;
default:
}
break;
default:
}
?>
geschrieben 16. Mai 2008 - 17:39
<?php
$top = trim($_GET['top']);
$sub = trim($_GET['sub']);
//$menu_top - Enthält die Überschriften der Menüs
$menu_top = array('menu_oben' => '.hauptmenü',
'menu_unten' => '.menü');
//$menu - hält die Elemente des Untermenüs
$menu['menu_oben'] = array('home' => 'hauptseite');
$menu['menu_unten'] = array('news' => 'news',
'gb' => 'gästebuch',
'chat' => 'chat',
'impressum' => 'impressum');
//.navigation - hauptseite ist Standardseite
if (strlen($top) <= 0) {
$top = 'menu_oben';
$sub = 'home';
}
//include('include/counter.php');
echo '<?xml version="1.0" ?>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><? echo $menu_top[$top]; echo (isset($menu[$top][$sub]))?' - '.$menu[$top][$sub]:null; ?></title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
<meta name="description" content="" />
<meta name="author" content="Dyon" />
<meta name="keywords" content="Dennis" />
<link href="include/style.css" type="text/css" rel="stylesheet" />
<link rel="shortcut icon" type="image/x-icon" href="include/favicon.ico" />
</head>
<body>
<div id="all">
<div id="top">
<img src="include/top.jpg" alt="top" class="top" />
</div>
<div id="navi" class="klein">you are here:
<?php
if (isset($menu_top[$top])) {
echo '<a href="?top='.$top.'">'.$menu_top[$top].'</a>';
if (isset($menu[$top][$sub])) {
echo ' >> '.'<a href="?top='.$top.'&sub='.$sub.'">'.$menu[$top][$sub].'</a>';
}
}
?>
</div>
<ul id="menue">
<?php
/* Menü erstellen */
foreach($menu as $topkey => $topvalue) {
echo '<li class="menuefeldueberschrift"><a href="?top='.$topkey.'">'.$menu_top[$topkey].'</a></li>';
foreach($menu[$topkey] as $subkey => $subvalue) {
echo '<li class="menuefeldmain"><a href="?top='.$topkey.'&sub='.$subkey.'">'.$subvalue.'</a></li>';
}
}
?>
<li class="menuefeldueberschrift">
.counter
</li>
<li class="menuefeldmain">
total:
<? //include('counter.txt'); ?>
</li>
<li class="menuefeldueberschrift">
.login
</li>
<li class="menuefeldmain">
<a class="menuefeld">
<input class="login" type="text" name="name" value="name" />
</a>
</li>
<li class="menuefeldmain">
<a class="menuefeld">
<input class="login" type="password" name="password" value="password" />
</a>
</li>
<li class="menuefeldmain">
<a class="menuefeld" href="l.php">
login
</a>
</li>
<li class="menuefeldueberschrift">
.chat
</li>
</ul>
<div id="main">
<?php
/* So könnte die Ausgabe des Contents erfolgen */
switch ($top) {
case 'menu_oben':
switch ($sub) {
case 'home':
echo 'Dies ist die Hauptseite.';
break;
case '':
echo 'Du hast auf das <strong>obere</strong> Menü geklickt.';
break;
default:
echo 'Für diese Seite aus dem oberen Menü ist noch kein Inhalt angelegt worden.';
}
break;
case 'menu_unten':
switch ($sub) {
case 'gb':
echo 'Das ist das Gästebuch.';
break;
case 'news':
echo 'Dies ist die Newsseite.';
break;
case '':
echo 'Du hast auf das <strong>untere</strong> Menü geklickt.';
break;
default:
echo 'Für diese Seite aus dem unteren Menü ist noch kein Inhalt angelegt worden.';
}
break;
default:
}
?>
</div>
</div>
<p id="footer">©2008 by Dennis - Impressum</p>
</body>
</html>
geschrieben 16. Mai 2008 - 17:45
Zitat (Dyon: 16.05.2008, 18:18)
switch ($top) {
case 'menu_oben':
switch ($sub) {
case 'home':
?>
<p>Ok this is the home page</p>
<?php
break;
default:
}
break;
case 'menu_unten':
switch ($sub) {
case 'gb':
?>
<p>Ok this is the guestbook</p>
<?php
break;
default:
}
switch ($sub) {
case 'news':
?>
<p>Ok this is the news page</p>
<?php
break;
default:
}
break;
default:
}
?>