Author: cfinck
Date: Thu Aug 16 14:42:21 2007
New Revision: 28370
URL:
http://svn.reactos.org/svn/reactos?rev=28370&view=rev
Log:
Integrate "getbuilds" into the Layout and Design of the ReactOS Website.
Also add a Language selection box, which works similar to the Language selection box of
RosCMS.
At the moment, you can select between an english and a german interface. Translators, feel
free to add more translations by translating the "lang.inc.php" files :-)
Modified:
trunk/web/reactos.org/htdocs/getbuilds/getbuilds.css
trunk/web/reactos.org/htdocs/getbuilds/index.php
trunk/web/reactos.org/htdocs/getbuilds/lang/de.inc.php
trunk/web/reactos.org/htdocs/getbuilds/lang/en.inc.php
Modified:
trunk/web/reactos.org/htdocs/getbuilds/getbuilds.css
URL:
http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/getbuilds/g…
==============================================================================
---
trunk/web/reactos.org/htdocs/getbuilds/getbuilds.css (original)
+++
trunk/web/reactos.org/htdocs/getbuilds/getbuilds.css Thu Aug 16 14:42:21 2007
@@ -6,16 +6,27 @@
COPYRIGHT: Copyright 2007 Colin Finck <mail(a)colinfinck.de>
*/
-body, tr {
- font-family: Verdana, Arial, Helvetica;
+body {
+ font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10pt;
+ margin: 0 0 1em 0;
+ padding: 0; /* Only affects Opera */
+ background: #FFFFFF
url('http://www.reactos.org/images/topbar.jpg') repeat-x
scroll top left;
+}
+
+a {
+ color: #006090;
+}
+
+a:hover {
+ color: #000000;
}
h2 {
font-size: 22px;
color: #5984C3;
font-weight: bold;
- margin-top: 15px;
+ margin-top: 0;
}
h3 {
@@ -24,6 +35,96 @@
font-weight: bold;
margin-top: 0;
margin-bottom: 1em;
+}
+
+#top {
+ margin: 0;
+ background:
url('http://www.reactos.org/images/logo.jpg') no-repeat scroll 35px
0;
+ padding: 103px 0 26px 0;
+ color: #FFFFFF;
+ text-align: right;
+}
+
+#top a {
+ font-size: 13px;
+ color: #FFFFFF;
+ text-decoration: none;
+ padding: 1px 5px 1px 5px;
+}
+
+#top a:hover {
+ color: #000000;
+ background-color: #FFCC33;
+}
+
+#topMenu {
+ font-size: 13px;
+ margin-left: 300px;
+ background-color: #5984C3;
+}
+
+#topMenu p {
+ text-align: left;
+ margin: 0;
+}
+
+#leftNav {
+ padding: 0px 10px 10px 7px;
+}
+
+#leftNav ol {
+ margin: 0;
+ padding: 0;
+ list-style-type: none;
+ background-color: #EEEEEE;
+ border-top: #3F3849 0px solid;
+ border-right: #3F3849 1px solid;
+ border-left: #3F3849 1px solid;
+}
+
+#leftNav ol li {
+ font-size: 13px;
+ font-weight: bold;
+ border-bottom: #3f3849 1px solid;
+}
+
+#leftNav ol li a {
+ font-size: 12px;
+
+ display: block;
+ width: 137px;
+ padding: 2px 4px 2px 4px;
+
+ color: #3F3849;
+ text-decoration: none;
+ background-color: #EEEEEE;
+}
+
+#leftNav ol li a:hover {
+ color: #000000;
+ background-color: #FFCC33;
+}
+
+#leftNav ol li a.extern {
+ background: none;
+ padding-right: 0px;
+}
+
+#leftNav .navTitle {
+ padding-left: 12px;
+ border-top: #3F3849 1px solid;
+ border-right: #3F3849 1px solid;
+ border-bottom: #3F3849 1px solid;
+ border-left: #3F3849 1px solid;
+
+ font-weight: bold;
+ font-size: 14px;
+ color: #FFFFFF;
+ background-color: #5984c3;
+}
+
+#content {
+ padding-right: 10px;
}
.bubble_bg {
Modified:
trunk/web/reactos.org/htdocs/getbuilds/index.php
URL:
http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/getbuilds/i…
==============================================================================
---
trunk/web/reactos.org/htdocs/getbuilds/index.php (original)
+++
trunk/web/reactos.org/htdocs/getbuilds/index.php Thu Aug 16 14:42:21 2007
@@ -8,7 +8,41 @@
*/
require_once("config.inc.php");
- require_once("lang/en.inc.php");
+
+ // Get the domain for the cookie (with a leading dot if possible). Borrowed from
"utils.php" of RosCMS.
+ function cookie_domain()
+ {
+ if( isset($_SERVER['SERVER_NAME']) )
+ {
+ if( preg_match('/(\.[^.]+\.[^.]+$)/', $_SERVER['SERVER_NAME'],
$matches) )
+ return $matches[1];
+ else
+ return "";
+ }
+ else
+ return "";
+ }
+
+ // Get the language and include it
+ if( isset($_GET["lang"]) )
+ $lang = $_GET["lang"];
+ else if( isset($_COOKIE["roscms_usrset_lang"]) )
+ $lang = $_COOKIE["roscms_usrset_lang"];
+
+ // Use this switch statement to prevent users from entering invalid languages and fall
back to english if no language has been set
+ switch($lang)
+ {
+ case "de":
+ case "en":
+ // Language is valid, nothing to be done
+ break;
+
+ default:
+ $lang = "en";
+ }
+
+ setcookie( "roscms_usrset_lang", $lang, time() + 5 * 30 * 24 * 3600,
"/", cookie_domain() );
+ require_once("lang/$lang.inc.php");
// Get the latest SVN revision
$fp = fopen( $SVN_ACTIVITY_URL, "r" );
@@ -41,7 +75,33 @@
</head>
<body onload="showLatestFiles();">
+<?php
+
readfile("http://www.reactos.org/$lang/subsys_extern_menu_top.html&quo…tml");
+
readfile("http://www.reactos.org/$lang/subsys_extern_menu_left.html&qu…tml");
+?>
+
+<div class="navTitle"><?php echo
$getbuilds_langres["language"]; ?></div>
+ <ol>
+ <li style="text-align: center;">
+ <select size="1" onchange="window.location.href = '<?php echo
"http://" . $_SERVER["SERVER_NAME"] . $_SERVER["PHP_SELF"];
?>?lang=' + this.options[this.selectedIndex].value;">
+ <?php
+ $getbuilds_languages = array(
+ "en" => "English",
+ "de" => "Deutsch (German)"
+ );
+
+ foreach($getbuilds_languages as $lang_key => $lang_name)
+ printf('<option value="%s"%s>%s</option>', $lang_key,
($lang_key == $lang ? ' selected' : ''), $lang_name);
+ ?>
+ </select>
+ </li>
+ </ol>
+</td>
+<td id="content">
+
<h2><?php echo $getbuilds_langres["title"]; ?></h2>
+
+<p><?php echo $getbuilds_langres["intro"]; ?></p>
<div class="bubble_bg">
<div class="rounded_ll">
@@ -58,7 +118,7 @@
<li><a href="http://cia.vc/stats/project/ReactOS"><?php echo
$getbuilds_langres["cia"]; ?></a></li>
</ul>
- <?php echo $getbuilds_langres["buildbot_status"]; ?>: Not yet
implemented
+ <?php echo $getbuilds_langres["buildbot_status"]; ?>:
<ul class="web">
<li><a href="http://www.reactos.org:8010"><?php echo
$getbuilds_langres["buildbot_web"]; ?></a></li>
<li><a
href="http://svn.reactos.org/iso"><?php echo
$getbuilds_langres["browsebuilds"]; ?></a></li>
@@ -148,5 +208,9 @@
</div>
</div>
+</td>
+</tr>
+</table>
+
</body>
</html>
Modified:
trunk/web/reactos.org/htdocs/getbuilds/lang/de.inc.php
URL:
http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/getbuilds/l…
==============================================================================
---
trunk/web/reactos.org/htdocs/getbuilds/lang/de.inc.php (original)
+++
trunk/web/reactos.org/htdocs/getbuilds/lang/de.inc.php Thu Aug 16 14:42:21 2007
@@ -8,7 +8,10 @@
*/
/**** German resources (charset=utf-8) ****/
+ $getbuilds_langres["language"] = "Sprache";
+
$getbuilds_langres["title"] = "Entwicklerversionen herunterladen";
+ $getbuilds_langres["intro"] = 'Hier können Sie aktuelle aber auch ältere
ReactOS-Entwicklerversionen herunterladen, die von unserem <a
href="http://www.reactos.org/wiki/index.php/RosBuild">BuildBot…
erstellt wurden.';
$getbuilds_langres["overview"] = "Ãbersicht";
$getbuilds_langres["latestrev"] = "Letzte ReactOS-Revision auf dem
SVN-Server";
Modified:
trunk/web/reactos.org/htdocs/getbuilds/lang/en.inc.php
URL:
http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/getbuilds/l…
==============================================================================
---
trunk/web/reactos.org/htdocs/getbuilds/lang/en.inc.php (original)
+++
trunk/web/reactos.org/htdocs/getbuilds/lang/en.inc.php Thu Aug 16 14:42:21 2007
@@ -8,7 +8,10 @@
*/
/**** English resources (charset=utf-8) ****/
+ $getbuilds_langres["language"] = "Language";
+
$getbuilds_langres["title"] = "Download trunk builds";
+ $getbuilds_langres["intro"] = 'Here you can download recent, but also
older ReactOS Developer versions, which were created by our <a
href="http://www.reactos.org/wiki/index.php/RosBuild">BuildBot…uildBot</a>.';
$getbuilds_langres["overview"] = "Overview";
$getbuilds_langres["latestrev"] = "Latest ReactOS Revision on the SVN
Server";