Commit a36d7de3 authored by Emmanuel Puig's avatar Emmanuel Puig

* New menu changes

parent 5691750c
<? <?
$title = "404 forbidden"; $title = "403 forbidden";
$menu = array( "home", "" );
require("header.php3"); require("header.php3");
?> ?>
<h1>403 error: forbidden</h1> <h1 class="error">403 error: forbidden</h1>
<p> Nice try :-) </p> <p> Nice try :-) </p>
<? footer('$Id: 403.html,v 1.4 2003/01/20 09:53:39 sam Exp $'); ?> <? footer('$Id: 403.html,v 1.5 2003/04/08 20:18:51 karibu Exp $'); ?>
<? <?
$title = "404 not found"; $title = "404 not found";
$menu = array( "home", "" );
require("header.php3"); require("header.php3");
?> ?>
<h1>404 error: page not found</h1> <h1 class="error">404 error: page not found</h1>
<p>Please check your links, or contact <a <p>Please check your links, or contact <a
href="mailto:webmaster@videolan.org">the VideoLAN team</a> if you think href="mailto:webmaster@videolan.org">the VideoLAN team</a> if you think
there should be something here. </p> there should be something here. </p>
<? footer('$Id: 404.html,v 1.5 2003/01/20 09:53:39 sam Exp $'); ?> <? footer('$Id: 404.html,v 1.6 2003/04/08 20:18:51 karibu Exp $'); ?>
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
$title = "VideoLAN - Contact us"; $title = "VideoLAN - Contact us";
$lang = "en"; $lang = "en";
$date = "28 Septembre 2001"; $date = "28 Septembre 2001";
$menu = array( "home", "contact" );
require("header.php3"); require("header.php3");
?> ?>
...@@ -35,7 +36,7 @@ href="/vlc/download-sources.html">VLC source code page</a>.</p> ...@@ -35,7 +36,7 @@ href="/vlc/download-sources.html">VLC source code page</a>.</p>
have a copy of it to add to our press book. You can send us the article have a copy of it to add to our press book. You can send us the article
at the following address :</p> at the following address :</p>
<pre> <pre style="margin-left: 60px;">
VideoLAN VideoLAN
Club VIA Centrale Réseaux Club VIA Centrale Réseaux
Résidence Ecole Centrale Résidence Ecole Centrale
...@@ -44,4 +45,4 @@ R ...@@ -44,4 +45,4 @@ R
France France
</pre> </pre>
<? footer('$Id: contact.html,v 1.9 2003/03/05 10:11:19 alexis Exp $'); ?> <? footer('$Id: contact.html,v 1.10 2003/04/08 20:18:51 karibu Exp $'); ?>
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
$title = "VideoLAN - Contribute to the project"; $title = "VideoLAN - Contribute to the project";
$lang = "en"; $lang = "en";
$date = "24 July 2002"; $date = "24 July 2002";
$menu = array( "home", "contribute" );
require("header.php3"); require("header.php3");
?> ?>
...@@ -152,4 +153,4 @@ licence. There is absolutely no requirement to donate money (this is not ...@@ -152,4 +153,4 @@ licence. There is absolutely no requirement to donate money (this is not
shareware software). But if you want to help us move faster, we welcome shareware software). But if you want to help us move faster, we welcome
donations. </p> donations. </p>
<? footer('$Id: contribute.html,v 1.20 2003/03/28 22:32:58 alexis Exp $'); ?> <? footer('$Id: contribute.html,v 1.21 2003/04/08 20:18:51 karibu Exp $'); ?>
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
$title = "VideoLAN - Documentation"; $title = "VideoLAN - Documentation";
$lang = "en"; $lang = "en";
$date = "4 October 2002"; $date = "4 October 2002";
$menu = array( "doc" );
require("header.php3"); require("header.php3");
?> ?>
...@@ -94,4 +95,4 @@ ...@@ -94,4 +95,4 @@
</table> </table>
<? footer('$Id: index.html,v 1.27 2003/03/21 15:04:26 alexis Exp $'); ?> <? footer('$Id: index.html,v 1.28 2003/04/08 20:18:51 karibu Exp $'); ?>
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
$title = "VideoLAN - Thank you for your donation"; $title = "VideoLAN - Thank you for your donation";
$lang = "en"; $lang = "en";
$date = "06 July 2002"; $date = "06 July 2002";
$menu = array( "home", "contribute" );
require("header.php3"); require("header.php3");
?> ?>
...@@ -28,4 +29,4 @@ want to contact VideoLAN's Treasurer, write a mail to Julien Leproust ...@@ -28,4 +29,4 @@ want to contact VideoLAN's Treasurer, write a mail to Julien Leproust
</p> </p>
<? footer('$Id: donation-thankyou.html,v 1.6 2003/03/18 21:51:36 alexis Exp $'); ?> <? footer('$Id: donation-thankyou.html,v 1.7 2003/04/08 20:18:51 karibu Exp $'); ?>
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
$title = "VideoLAN - the events"; $title = "VideoLAN - the events";
$lang = "en"; $lang = "en";
$date = "6 April 2002"; $date = "6 April 2002";
$menu = array( "home", "events" );
require("header.php3"); require("header.php3");
?> ?>
...@@ -127,4 +128,4 @@ and streaming.</p> ...@@ -127,4 +128,4 @@ and streaming.</p>
<p><a href="20010407/index.html">Slides of the presentation (in french)</a></p> <p><a href="20010407/index.html">Slides of the presentation (in french)</a></p>
<? footer('$Id: index.html,v 1.18 2003/03/26 23:24:36 alexis Exp $'); ?> <? footer('$Id: index.html,v 1.19 2003/04/08 20:18:51 karibu Exp $'); ?>
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
$title = "VideoLAN - Goodies"; $title = "VideoLAN - Goodies";
$lang = "en"; $lang = "en";
$date = "9 March 2003"; $date = "9 March 2003";
$menu = array( "home", "goodies" );
require("header.php3"); require("header.php3");
?> ?>
...@@ -119,4 +120,4 @@ may be used or modified by anyone to refer to the VideoLAN project ...@@ -119,4 +120,4 @@ may be used or modified by anyone to refer to the VideoLAN project
or any product developed by the VideoLAN team, but does not indicate or any product developed by the VideoLAN team, but does not indicate
endorsement by the project.</pre> endorsement by the project.</pre>
<? footer('$Id: goodies.html,v 1.13 2003/04/07 11:20:36 alexis Exp $'); ?> <? footer('$Id: goodies.html,v 1.14 2003/04/08 20:18:51 karibu Exp $'); ?>
...@@ -4,19 +4,11 @@ ...@@ -4,19 +4,11 @@
* starthtml: beginning of the page * starthtml: beginning of the page
*/ */
function h2($title) { function h2($title)
global $HTTP_GET_VARS; {
?> ?><h2><?
<table class="h2" cellspacing="0" cellpadding="0"> echo $title;
<tr class="h2"> ?></h2><?
<td class="h2">
<? if(! $HTTP_GET_VARS['poukram']) { ?><h2 class="h2poukram"><? } else { ?><h2><? } ?>
<? echo $title; ?>
</h2>
</td>
</tr>
</table>
<?
} }
function h3($title) { function h3($title) {
...@@ -33,7 +25,7 @@ function h3($title) { ...@@ -33,7 +25,7 @@ function h3($title) {
<? <?
} }
function starthtml($title) { function StartHtml( $title ) {
global $HTTP_GET_VARS; global $HTTP_GET_VARS;
...@@ -54,223 +46,76 @@ global $HTTP_GET_VARS; ...@@ -54,223 +46,76 @@ global $HTTP_GET_VARS;
</head> </head>
<body><? <body><?
/* }
* The cool navigation bar, including mirror drop-down menu
*/
$modules = split("/", $GLOBALS['PHP_SELF']);
switch($modules[1]) {
case "404.html": case "403.html": break;
case "vlc": break;
case "streaming": break;
case "doc": break;
case "support": break;
default: $modules[2]=$modules[1]; $modules[1]="home"; break;
}
function DrawMenu( $file, $mod )
{
?> ?>
<table class="menu" cellspacing="3">
<? if(! $HTTP_GET_VARS['poukram']) { ?>
<form action="index.html" method="get">
<table width="100%" cellspacing="0" cellpadding="5">
<tr>
<td style="width: 35px; text-align: center; vertical-align: middle">
<a href="/index.html"><img
src="/images/cone-soppera10-mini.png" alt="Logo VideoLAN"
style="vertical-align: middle; border-width: 0px;" /></a>
</td>
<td style="width: 100%; text-align: center; vertical-align: top;">
<table style="width: 100%;" cellspacing="0" cellpadding="0">
<tr>
<td class="topleft" style="width: 8%">&nbsp;</td><?
get_first_bar_item_poukram(6, "home", "Home", "/", $modules[1]);
get_first_bar_item_poukram(6, "vlc", "VLC&nbsp;media&nbsp;player", "/vlc/", $modules[1]);
get_first_bar_item_poukram(6, "streaming", "Streaming", "/streaming/", $modules[1]);
get_first_bar_item_poukram(6, "doc", "Documentation", "/doc/", $modules[1]);
get_first_bar_item_poukram(6, "support", "Support", "/support/", $modules[1]);
get_first_bar_item_poukram(6, "developers", "Developers", "http://developers.videolan.org/", $modules[1]); ?>
<td class="topright" style="width: 8%">
</td>
</tr>
</table>
<table style="width: 100%;" cellspacing="0" cellpadding="0">
<tr>
<td class="bottomleft">&nbsp;</td>
<? switch($modules[1]) {
case "vlc": second_bar_vlc($modules[2]); break;
case "streaming": second_bar_stream($modules[2]); break;
case "doc": ?><td></td><?; break;
case "support": second_bar_support($modules[2]); break;
case "home": second_bar_home($modules[2]); break;
} ?>
<td class="bottomright">&nbsp;</td>
</tr>
</table>
</td>
<td style="text-align: center; vertical-align: middle">
<select name="mirror">
<!-- current: $GLOBALS['HTTP_HOST'] -->
<option value="www.videolan.org">Main site (VIA)</option>
<option value="www.fr.videolan.org">Mirror site (Zoy)</option>
</select><br /><input type="submit" value="Select Mirror" />
</td>
</tr>
</table>
</form>
<? } else { ?>
<form action="index.html" method="get">
<table width="100%" cellspacing="0" cellpadding="5">
<tr>
<td style="width: 35px; text-align: center; vertical-align: middle">
<a href="/index.html"><img
src="/images/cone-soppera10-mini.png" alt="Logo VideoLAN"
style="vertical-align: middle; border-width: 0px;" /></a>
</td>
<td style="width: 100%; text-align: center; vertical-align: top;">
<table style="width: 100%;" cellspacing="0" cellpadding="0">
<tr> <tr>
<td style="width: 8%">&nbsp;</td><?
get_first_bar_item(6, "home", "Home", "/", $modules[1]);
get_first_bar_item(6, "vlc", "VLC&nbsp;media&nbsp;player", "/vlc/", $modules[1]);
get_first_bar_item(6, "streaming", "Streaming", "/streaming/", $modules[1]);
get_first_bar_item(6, "doc", "Documentation", "/doc/", $modules[1]);
get_first_bar_item(6, "support", "Support", "/support/", $modules[1]);
get_first_bar_item(6, "developers", "Developers", "http://developers.videolan.org/", $modules[1]); ?>
<td style="width: 8%">&nbsp;</td>
</tr>
</table>
<table style="width: 100%;" cellspacing="0" cellpadding="0">
<tr>
<? switch($modules[1]) {
case "vlc": second_bar_vlc($modules[2]); break;
case "streaming": second_bar_stream($modules[2]); break;
case "doc": ?><td></td><?; break;
case "support": second_bar_support($modules[2]); break;
case "home": second_bar_home($modules[2]); break;
} ?>
</tr>
</table>
</td>
<td style="text-align: center; vertical-align: middle">
<select name="mirror">
<!-- current: $GLOBALS['HTTP_HOST'] -->
<option value="www.videolan.org">Main site (VIA)</option>
<option value="www.fr.videolan.org">Mirror site (Zoy)</option>
</select><br/><input type="submit" value="Select Mirror" />
</td>
</tr>
</table>
</form>
<? } ?>
<div style="margin: 10px;">
<? <?
/* This is where the real user page stands */
}
/* Give an entire cell html code for the first menubar */ if( $m = fopen( "menu/$file", "r", 1 ) )
function get_first_bar_item_poukram($number, $module, $text, $url, $current_module) {
if($current_module == $module)
{ {
?><td class="topbarselected"><? echo $text; ?></td> while( $l = fgets( $m, 300 ) )
<?
}
else
{ {
?><td class="topbar"><a class="topbar" href="<? echo $url; ?>"><? echo $text; ?></a></td> $l = rtrim( $l );
<? if( $l == "sep" )
}
}
/* Give an entire cell html code for the first menubar */
function get_first_bar_item($number, $module, $text, $url, $current_module) {
if($current_module == $module)
{ {
?><td class="firstbarselected"><? echo $text; ?></td> ?><td><div class="sep"></div></td>
<? <?
} }
else else
{ {
?><td class="firstbar"><a class="firstbar" href="<? echo $url; ?>"><? echo $text; ?></a></td> list( $name, $text, $link, $icon ) = split( "[\t;]+", $l );
<? if( $name == $mod )
}
}
/* Give an entire cell html code for the second menubar */
function get_second_bar_item($number, $module, $text, $url, $current_module) {
global $HTTP_GET_VARS;
$size = floor(100 / $number);
if($current_module == $module)
{ {
?><td class="<? if(! $HTTP_GET_VARS['poukram']) { echo "bottom"; } else { echo "second"; } ?>barselected" style="width: <? echo $size; ?>%"><? echo $text; ?></td> ?><td class="button-down" onclick="document.location='<?
echo $link;
?>'">
<? <?
} }
else else
{ {
?><td class="<? if(! $HTTP_GET_VARS['poukram']) { echo "bottom"; } else { echo "second"; } ?>bar" style="width: <? echo $size; ?>%"><a class="<? if(! $HTTP_GET_VARS['poukram']) { echo "bottom"; } else { echo "second"; } ?>bar" href="<? echo $url; ?>"><? echo $text; ?></a></td> ?><td class="button" <?
?>onmouseout="this.className='button'" <?
?>onmouseover="this.className='button-up'" <?
?>onmousedown="this.className='button-down'" <?
?>onclick="document.location='<? echo $link ?>'">
<? <?
} }
} ?><table cellpadding="1" cellspacing="0" style="margin: 0px;">
<tr><?
/* Second bar for vlc */ if( $icon != "" )
{
function second_bar_vlc($module) { ?><td>
get_second_bar_item(3, "index.html", "Download", "/vlc/", $module); <img class="button" src="/images/menu/<?
get_second_bar_item(3, "features.html", "Features", "/vlc/features.html", $module); echo $icon;
get_second_bar_item(3, "screenshots.html", "Screenshots", "/vlc/screenshots.html", $module); ?>" alt="<?
} echo $name;
?>"/></td><?
/* Second bar for streaming */ }
?><td class="button-text"><?
function second_bar_stream($module) { echo $text;
get_second_bar_item (2, "index.html", "Overview", "/streaming/", $module); ?></td></tr></table></td><?
get_second_bar_item (2, "features.html", "Features", "/streaming/features.html", $module);
}
/* Second bar for support */
function second_bar_support($module) { }
get_second_bar_item(4, "index.html", "Overview", "/support/", $module); }
get_second_bar_item(4, "bug-reporting.html", "Report a bug", "/support/bug-reporting.html", $module); }
get_second_bar_item(4, "lists.html", "Mailing-lists", "/support/lists.html", $module); ?>
get_second_bar_item(4, "irc", "IRCWeb", "/cgi-bin/irc/irc.cgi", $module); </tr>
</table>
<?
} }
/* Second bar for home */
function second_bar_home($module) {
get_second_bar_item(9, "index.html", "Overview", "/index.html", $module);
get_second_bar_item(9, "news.html", "News", "/news.html", $module);
get_second_bar_item(9, "events", "Events", "/events/", $module);
get_second_bar_item(9, "team", "Team", "/team/", $module);
get_second_bar_item(9, "partners.html", "Partners", "/partners.html", $module);
get_second_bar_item(9, "contribute.html", "Contribute", "/contribute.html", $module);
get_second_bar_item(9, "contact.html", "Contact", "/contact.html", $module);
get_second_bar_item(9, "links.html", "Links", "/links.html", $module);
get_second_bar_item(9, "goodies.html", "Goodies", "/goodies.html", $module);
}
/*
* footer: bottom of the page
*/
function footer($tag) { function footer($tag) {
global $language; ?> global $language; ?>
<hr />
<table cellspacing="0" cellpadding="2" style="width: 100%;" border="0"> <table class="footer" cellspacing="3" cellpadding="2">
<tr> <tr>
<td align="left"> <td align="left">
<a href="/">VideoLAN</a> &nbsp;-&nbsp; <a href="/">VideoLAN</a> &nbsp;-&nbsp;
...@@ -288,7 +133,7 @@ function footer($tag) { ...@@ -288,7 +133,7 @@ function footer($tag) {
</tr> </tr>
</table> </table>
</div><? <?
/* /*
* end of the body * end of the body
...@@ -309,9 +154,37 @@ if($mirror) ...@@ -309,9 +154,37 @@ if($mirror)
} }
/* default language and date */ /* default language and date */
if($lang=="") { $lang = "en"; } if( $lang == "" ) { $lang = "en"; }
/* render the page */ /* render the page */
starthtml(ereg_replace("<[^>]*>","",$title));
// HTML header
StartHtml( ereg_replace( "<[^>]*>" , "" , $title ) );
?><table class="menu-back" cellspacing="0" cellpadding="0">
<tr align="center">
<td>
<?
$file = "menu.txt";
foreach( $menu as $module )
{
DrawMenu( $file, $module );
$file = "$module.$file";
}
?>
</td>
<td>
<select name="mirror">
<!-- current: $GLOBALS['HTTP_HOST'] -->
<option value="www.videolan.org">Main site (VIA)</option>
<option value="www.fr.videolan.org">Mirror site (Zoy)</option>
</select><br /><input type="submit" value="Select Mirror" />
</td>
</tr>
</table><?
?> ?>
...@@ -2,37 +2,29 @@ ...@@ -2,37 +2,29 @@
$title = "VideoLAN - OpenSource video streaming solution for every OS!"; $title = "VideoLAN - OpenSource video streaming solution for every OS!";
$lang = "en"; $lang = "en";
$date = "06 April 2002"; $date = "06 April 2002";
$menu = array( "home", "overview" );
require("header.php3"); require("header.php3");
include("news.php3"); include("news.php3");
?> ?>
<table style="width: 100%;" border="0" cellspacing="0" cellpadding="10"> <table style="margin: 8px 0px 10px 30px;" border="0" cellspacing="5">
<tr> <tr>
<td style="width: auto;"> <td align="center" rowspan="2">
<img alt="VideoLAN" src="/images/videolan-new4.png"
<div style="text-align: center; margin-bottom: 15px;"> style="margin: 0px 50px;"/>
<img width="300" height="75" alt="VideoLAN" </td>
src="/images/videolan-new4.png" /> <td class="news-title">
</div> Latest news
</td>
</td><td> </tr>
<tr valign="top">
<div style="left-margin: 10px; right-margin: 10px;"> <td class="news">
<table cellspacing="0" cellpadding="0" border="0">
<tr><td class="firstbarselected">Latest news</td></tr>
<tr><td>
<? shownews("title",5); ?> <? shownews("title",5); ?>
</td></tr>
</table>
</div>
</td> </td>
</tr> </tr>
</table> </table>
<br />
<table border="0" cellspacing="0" cellpadding="0"> <table border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
<td style="width: 75%"> <td style="width: 75%">
...@@ -116,4 +108,4 @@ href="contribute.html">contribution page</a> for more information.</p> ...@@ -116,4 +108,4 @@ href="contribute.html">contribution page</a> for more information.</p>
</tr> </tr>
</table> </table>
<? footer('$Id: index.html,v 1.73 2003/04/07 11:20:36 alexis Exp $'); ?> <? footer('$Id: index.html,v 1.74 2003/04/08 20:18:51 karibu Exp $'); ?>
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
$title = "VideoLAN - links"; $title = "VideoLAN - links";
$lang = "en"; $lang = "en";
$date = "14 Octobre 2001"; $date = "14 Octobre 2001";
$menu = array( "home", "links" );
require("header.php3"); require("header.php3");
?> ?>
...@@ -63,4 +64,4 @@ library to access the DVB drivers.</li> ...@@ -63,4 +64,4 @@ library to access the DVB drivers.</li>
</ul> </ul>
<? footer('$Id: links.html,v 1.8 2003/03/11 22:52:33 alexis Exp $'); ?> <? footer('$Id: links.html,v 1.9 2003/04/08 20:18:51 karibu Exp $'); ?>
/* CSS for the VideoLAN website /* CSS for the VideoLAN website
* Stolen from the Gnumeric website by Sam :-) * Stolen from the Gnumeric website by Sam :-)
* Hardly modified by karibu :(
* *
* $Id: main.css,v 1.77 2003/02/03 16:00:00 sam Exp $ */ * $Id: main.css,v 1.78 2003/04/08 20:18:51 karibu Exp $ */
body { body {
font-family: sans-serif, Helvetica, Arial; font-family: sans-serif, Helvetica, Arial;
font-size: 1em; font-size: 1em;
background: white;
color: black; color: black;
margin: 0px 0px; margin: 0px;
width: 99%; padding: 0px;
border: 0px;
width: 100%;
background-color: white;
} }
code { code {
...@@ -21,12 +24,24 @@ img { ...@@ -21,12 +24,24 @@ img {
margin-right: 5px; margin-right: 5px;
} }
p { p
{
font-size: 1em; font-size: 1em;
font-family: inherit; font-family: inherit;
text-indent: 0px; text-indent: 0px;
background: inherit; background: inherit;
color: inherit; color: inherit;
margin-left: 30px;
margin-right: 10px;
text-align: justify;