Author: cfinck
Date: Thu Jun 21 12:55:34 2007
New Revision: 27247
URL:
http://svn.reactos.org/svn/reactos?rev=27247&view=rev
Log:
Major update to the getbuilds code:
- Divides the files into pages and adds buttons and a ComboBox for page switching
- Allows you to select the type of CD images to be displayed
- "ajax-getfiles-provider.php" now stores the files in multidimensional arrays
for a faster file search
The new code was successfully tested on Firefox 1.5-2.0, IE 6-7, Opera 9.10 and Konqueror
3.5.0
Modified:
trunk/web/reactos.org/htdocs/getbuilds/ajax-getfiles-provider.php
trunk/web/reactos.org/htdocs/getbuilds/config.inc.php
trunk/web/reactos.org/htdocs/getbuilds/getbuilds.css
trunk/web/reactos.org/htdocs/getbuilds/getbuilds.js.php
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/ajax-getfiles-provider.php
URL:
http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/getbuilds/a…
==============================================================================
---
trunk/web/reactos.org/htdocs/getbuilds/ajax-getfiles-provider.php (original)
+++
trunk/web/reactos.org/htdocs/getbuilds/ajax-getfiles-provider.php Thu Jun 21 12:55:34
2007
@@ -12,7 +12,8 @@
// Configuration
$ISO_DIR = ".";
-
+ $MAX_FILES_PER_PAGE = 100; // The same value has to be set in
"config.inc.php"
+ $REV_RANGE_LIMIT = 3000;
// Functions
function fsize_str( $size )
@@ -35,41 +36,111 @@
// Entry point
- if( !isset( $_GET["from"] ) || !isset( $_GET["to"] ) )
- die("No revision range specified!");
+ if( !isset( $_GET["get"] ) || !isset( $_GET["startrev"] ) )
+ die("Necessary information not specified!");
- $files = array();
- $i = 0;
+ if( $_GET["endrev"] - $_GET["startrev"] > $REV_RANGE_LIMIT )
+ die("Maximum revision range limit of $REV_RANGE_LIMIT exceeded!");
+
+ switch( $_GET["get"] )
+ {
+ case "all":
+ $get_infos = true;
+ $get_filelist = true;
+ break;
+
+ case "infos":
+ $get_infos = true;
+ break;
+
+ case "filelist":
+ $get_filelist = true;
+ break;
+
+ default:
+ die("Wrong input for parameter 'get'!");
+ }
+
+ $file_patterns = array();
+ if( $_GET["bootcd-dbg"] == 1 )
+ $file_patterns[] = "#bootcd-[0-9]+-dbg#";
+ if( $_GET["livecd-dbg"] == 1 )
+ $file_patterns[] = "#livecd-[0-9]+-dbg#";
+ if( $_GET["bootcd-rel"] == 1 )
+ $file_patterns[] = "#bootcd-[0-9]+-rel#";
+ if( $_GET["livecd-rel"] == 1 )
+ $file_patterns[] = "#livecd-[0-9]+-rel#";
+
+ header("Content-type: text/xml");
+ echo "<fileinformation>";
+
+ $exitloop = false;
+ $filenum = 0;
+ $firstrev = 0;
+ $lastrev = 0;
+ $morefiles = 0;
$dir = opendir( $ISO_DIR ) or die("opendir failed!");
-?>
-<files>
-<?php
+
while( $fname = readdir($dir) )
+ if( preg_match( "#-([0-9]+)-#", $fname, $matches ) )
+ $fnames[ $matches[1] ][] = $fname;
+
+ closedir($dir);
+
+ for( $i = $_GET["startrev"]; $i <= $_GET["endrev"]; $i++ )
{
- for( $j = $_GET["from"]; $j <= $_GET["to"]; $j++ )
+ if( isset( $fnames[$i] ) )
{
- if( strpos( $fname, "-$j-" ) !== false )
+ sort( $fnames[$i] );
+
+ foreach( $fnames[$i] as $fname )
{
- $fnames[$i] = $fname;
+ // Is it an allowed CD Image type?
+ foreach( $file_patterns as $p )
+ {
+ if( preg_match( $p, $fname ) )
+ {
+ // This is a file we are looking for
+ if( $get_filelist )
+ {
+ echo "<file>";
+ printf("<name>%s</name>", $fname );
+ printf("<size>%s</size>", fsize_str( filesize(
"$ISO_DIR/$fname" ) ) );
+ printf("<date>%s</date>", date( "Y-m-d H:i",
filemtime( "$ISO_DIR/$fname" ) ) );
+ echo "</file>";
+ }
+
+ if( $i < $firstrev || $firstrev == 0 )
+ $firstrev = $i;
- $i++;
- break;
+ if( $i > $lastrev )
+ $lastrev = $i;
+
+ $filenum++;
+ break;
+ }
+ }
+
+ if( $filenum == $MAX_FILES_PER_PAGE )
+ {
+ $morefiles = 1;
+ $exitloop = true;
+ break;
+ }
}
}
+
+ if( $exitloop )
+ break;
}
- closedir($dir);
- sort($fnames);
+ if( $get_infos )
+ {
+ printf( "<filenum>%s</filenum>", $filenum );
+ printf( "<firstrev>%s</firstrev>", $firstrev );
+ printf( "<lastrev>%s</lastrev>", $lastrev );
+ printf( "<morefiles>%s</morefiles>", $morefiles );
+ }
- for( $j = 0; $j < $i; $j++ )
- {
+ echo "</fileinformation>";
?>
-<file>
- <name><?php echo $fnames[$j]; ?></name>
- <size><?php echo fsize_str( filesize( "$ISO_DIR/$fnames[$j]" ) );
?></size>
- <date><?php echo date( "Y-m-d H:i", filemtime(
"$ISO_DIR/$fnames[$j]" ) ); ?></date>
-</file>
-<?php
- }
-?>
-</files>
Modified:
trunk/web/reactos.org/htdocs/getbuilds/config.inc.php
URL:
http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/getbuilds/c…
==============================================================================
---
trunk/web/reactos.org/htdocs/getbuilds/config.inc.php (original)
+++
trunk/web/reactos.org/htdocs/getbuilds/config.inc.php Thu Jun 21 12:55:34 2007
@@ -10,5 +10,6 @@
// Configuration
$AJAX_GETFILES_PROVIDER_URL =
"http://svn.reactos.org/iso/ajax-getfiles-provider.php";
$ISO_DOWNLOAD_URL = "http://svn.reactos.org/iso/";
+ $MAX_FILES_PER_PAGE = 100; // The same value has to be set in
"ajax-getfiles-provider.php"
$SVN_ACTIVITY_URL = "http://svn.reactos.org/svnact/svn_activity.xml";
?>
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 Jun 21 12:55:34 2007
@@ -6,7 +6,7 @@
COPYRIGHT: Copyright 2007 Colin Finck <mail(a)colinfinck.de>
*/
-body {
+body, tr {
font-family: Verdana, Arial, Helvetica;
font-size: 10pt;
}
@@ -58,22 +58,35 @@
vertical-align: top;
}
-#showrev img {
+#showrev td {
+ vertical-align: top;
+}
+
+#revcontrols img {
vertical-align: middle;
cursor: pointer;
}
-#showrev button,
-#showrev input {
+#revcontrols input {
vertical-align: middle;
}
-#ajaxloadinginfo {
- margin-left: 10px;
+#controlbox {
+ margin-bottom: 2em;
}
-#infobox {
- margin-bottom: 2em;
+#controlbox button {
+ font-weight: bold;
+}
+
+#ajaxloadinginfo {
+ font-weight: bold;
+ margin-left: 20px;
+}
+
+#pagesbox {
+ font-weight: bold;
+ text-align: right;
}
.datatable {
Modified:
trunk/web/reactos.org/htdocs/getbuilds/getbuilds.js.php
URL:
http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/getbuilds/g…
==============================================================================
---
trunk/web/reactos.org/htdocs/getbuilds/getbuilds.js.php (original)
+++
trunk/web/reactos.org/htdocs/getbuilds/getbuilds.js.php Thu Jun 21 12:55:34 2007
@@ -8,6 +8,15 @@
*/
?>
+var currentpage;
+var endrev;
+var fullrange;
+var inputbox_startrev;
+var inputbox_endrev;
+var isoparameters;
+var pagecount;
+var startrev;
+
function loadingsplash(zeroone)
{
if (zeroone == 1)
@@ -74,51 +83,140 @@
}
}
-function getfilesCallback(http_request, revs)
-{
- if( http_request.responseXML == null )
+function getfilesCallback(http_request, data)
+{
+ // "ajax-getfiles.php" always outputs text/xml data, so we have to check here
if it's really XML or just an error message
+ if( http_request.responseText.substr(0, 1) != "<" )
{
alert( http_request.responseText );
loadingsplash(0);
return;
}
- // Prepare the table
- var datatable = '<table class="datatable" cellspacing="0"
cellpadding="1">';
- datatable += '<thead><tr class="head"><th
class="fname"><?php echo $getbuilds_langres["filename"];
?></th><th class="fsize"><?php echo
$getbuilds_langres["filesize"]; ?></th><th
class="fdate"><?php echo $getbuilds_langres["filedate"];
?></th></tr></thead>';
- datatable += '<tbody>';
-
- var files = http_request.responseXML.getElementsByTagName("file");
-
- if( files.length == 0 )
- datatable += '<tr class="odd"><td><?php echo
$getbuilds_langres["nofiles1"]; ?>' + revs + '<?php echo
$getbuilds_langres["nofiles2"];
?></td><td> </td><td> </td></tr>';
+ var html = "";
+
+ if( data["requesttype"] == "FirstPageFullLoad" ||
data["requesttype"] == "PageSwitch" )
+ {
+ // Page number boxes
+ html += '<div id="pagesbox">';
+
+ if( currentpage == 1 )
+ {
+ html += '<strong>«</strong> ';
+ html += '<strong>‹ <?php echo
$getbuilds_langres["prevpage"]; ?></strong> ';
+ }
+ else
+ {
+ html += '<a href="javascript:firstPage()" title="<?php echo
$getbuilds_langres["firstpage_title"]; ?>">«</a>
';
+ html += '<a href="javascript:prevPage()" title="<?php echo
$getbuilds_langres["prevpage_title"]; ?>">‹ <?php echo
$getbuilds_langres["prevpage"]; ?></a> ';
+ }
+
+ html += '<select id="pagesel" size="1"
onchange="pageboxChange(this)">';
+
+ if( data["requesttype"] == "FirstPageFullLoad" )
+ {
+ pagecount = 1;
+
+ html += '<option selected="selected" value="' + currentpage
+ '-' + startrev + '"><?php echo
$getbuilds_langres["page"]; ?> ' + currentpage;
+
+ if(
http_request.responseXML.getElementsByTagName("filenum")[0].firstChild.data >
0 )
+ html += ' - ' +
http_request.responseXML.getElementsByTagName("firstrev")[0].firstChild.data +
' ... ' +
http_request.responseXML.getElementsByTagName("lastrev")[0].firstChild.data +
'</option>';
+ }
+ else
+ {
+ html += document.getElementById("pagesel").innerHTML;
+ }
+
+ html += '</select> ';
+
+ if(
http_request.responseXML.getElementsByTagName("morefiles")[0].firstChild.data ==
0 )
+ {
+ html += '<strong><?php echo $getbuilds_langres["nextpage"];
?> ›</strong> ';
+ html += '<strong>»</strong>';
+ }
+ else
+ {
+ html += '<a href="javascript:nextPage()" title="<?php echo
$getbuilds_langres["nextpage_title"]; ?>"><?php echo
$getbuilds_langres["nextpage"]; ?> ›</a> ';
+ html += '<a href="javascript:lastPage()" title="<?php echo
$getbuilds_langres["lastpage_title"];
?>">»</a>';
+ }
+
+ html += '</div>';
+
+ // File table
+ html += '<table class="datatable" cellspacing="0"
cellpadding="1">';
+ html += '<thead><tr class="head"><th
class="fname"><?php echo $getbuilds_langres["filename"];
?></th><th class="fsize"><?php echo
$getbuilds_langres["filesize"]; ?></th><th
class="fdate"><?php echo $getbuilds_langres["filedate"];
?></th></tr></thead>';
+ html += '<tbody>';
+
+ var files = http_request.responseXML.getElementsByTagName("file");
+
+ if( files.length == 0 )
+ html += '<tr class="odd"><td><?php echo
$getbuilds_langres["nofiles1"]; ?>' + fullrange + '<?php echo
$getbuilds_langres["nofiles2"];
?></td><td> </td><td> </td></tr>';
+ else
+ {
+ var oddeven = false;
+
+ for( var i = 0; i < files.length; i++ )
+ {
+ var fname = files[i].getElementsByTagName("name")[0].firstChild.data;
+ var fsize = files[i].getElementsByTagName("size")[0].firstChild.data;
+ var fdate = files[i].getElementsByTagName("date")[0].firstChild.data;
+ var flink = '<a href="<?php echo $ISO_DOWNLOAD_URL; ?>' + fname
+ '">';
+ oddeven = !oddeven;
+
+ html += '<tr class="' + (oddeven ? "odd" :
"even") + '" onmouseover="tr_mouseover(this);"
onmouseout="tr_mouseout(this);">';
+ html += '<td>' + flink + '<img src="images/cd.png"
alt=""> ' + fname + '</a></td>';
+ html += '<td>' + flink + fsize + '</a></td>';
+ html += '<td>' + flink + fdate + '</a></td>';
+ html += '</tr>';
+ }
+ }
+
+ html += '</tbody></table>';
+
+ document.getElementById("filetable").innerHTML = html;
+
+ if( data["requesttype"] == "PageSwitch" )
+ {
+ // Switch the selected page in the Page ComboBox
+ var options =
document.getElementById("pagesel").getElementsByTagName("option");
+
+ for( var i = 0; i < options.length; i++ )
+ {
+ if( options[i].value.substr( 0, options[i].value.indexOf("-") ) ==
currentpage )
+ options[i].selected = true;
+ else if( options[i].selected )
+ options[i].selected = false;
+ }
+ }
+ }
+ else if( data["requesttype"] == "FirstPageAddPage" )
+ {
+ pagecount++;
+
+ // As always, we have to work around an IE bug
+ // If I use "innerHTML" here, the first <OPTION> start tag gets dropped
in the IE...
+ // Therefore I have to use the DOM functions in this case.
+ var option_elem = document.createElement("option");
+ var option_text = document.createTextNode( '<?php echo
$getbuilds_langres["page"]; ?> ' + pagecount + ' - ' +
http_request.responseXML.getElementsByTagName("firstrev")[0].firstChild.data +
' ... ' +
http_request.responseXML.getElementsByTagName("lastrev")[0].firstChild.data );
+
+ option_elem.value = pagecount + "-" + data["new_startrev"];
+ option_elem.appendChild( option_text );
+
+ document.getElementById("pagesel").appendChild( option_elem );
+ }
+
+ if(
http_request.responseXML.getElementsByTagName("morefiles")[0].firstChild.data ==
1 && ( data["requesttype"] == "FirstPageFullLoad" ||
data["requesttype"] == "FirstPageAddPage" ) )
+ {
+ // There are more files available in the full range. Therefore we have to start another
request and add a new page
+ data["new_startrev"] =
http_request.responseXML.getElementsByTagName("lastrev")[0].firstChild.data;
+ data["requesttype"] = "FirstPageAddPage";
+ ajaxGet( 'getfiles', 'get=infos&startrev=' +
data["new_startrev"] + '&endrev=' + endrev + isoparameters, data );
+ }
else
- {
- var oddeven = false;
-
- for( var i = 0; i < files.length; i++ )
- {
- var fname = files[i].getElementsByTagName("name")[0].firstChild.data;
- var fsize = files[i].getElementsByTagName("size")[0].firstChild.data;
- var fdate = files[i].getElementsByTagName("date")[0].firstChild.data;
- var flink = '<a href="<?php echo $ISO_DOWNLOAD_URL; ?>' + fname
+ '">';
- oddeven = !oddeven;
-
- datatable += '<tr class="' + (oddeven ? "odd" :
"even") + '" onmouseover="tr_mouseover(this);"
onmouseout="tr_mouseout(this);">';
- datatable += '<td>' + flink + '<img src="images/cd.png"
alt=""> ' + fname + '</a></td>';
- datatable += '<td>' + flink + fsize + '</a></td>';
- datatable += '<td>' + flink + fdate + '</a></td>';
- datatable += '</tr>';
- }
- }
-
- datatable += '</tbody></table>';
-
- document.getElementById("filetable").innerHTML = datatable;
- loadingsplash(0);
-}
-
-function setrowcolor(elem, color)
+ loadingsplash(0);
+}
+
+function setRowColor(elem, color)
{
tdl = elem.getElementsByTagName("td");
@@ -128,21 +226,18 @@
function tr_mouseover(elem)
{
- setrowcolor( elem, "#FFFFCC" );
+ setRowColor( elem, "#FFFFCC" );
}
function tr_mouseout(elem)
{
if( elem.className == "odd" )
- setrowcolor( elem, "#DDDDDD" );
+ setRowColor( elem, "#DDDDDD" );
else
- setrowcolor( elem, "#EEEEEE" );
-}
-
-var from;
-var to;
-
-function getrevnums()
+ setRowColor( elem, "#EEEEEE" );
+}
+
+function getRevNums()
{
var rev = document.getElementById("revnum").value;
@@ -153,11 +248,11 @@
if( hyphen > 0 )
{
- from = rev.substr( 0, hyphen );
- to = rev.substr( hyphen + 1 );
- }
-
- if( hyphen <= 0 || isNaN(from) || isNaN(to) )
+ inputbox_startrev = rev.substr( 0, hyphen );
+ inputbox_endrev = rev.substr( hyphen + 1 );
+ }
+
+ if( hyphen <= 0 || isNaN(inputbox_startrev) || isNaN(inputbox_endrev) )
{
alert("Invalid revision number!");
return false;
@@ -165,44 +260,138 @@
}
else
{
- from = rev;
- to = rev;
+ inputbox_startrev = rev;
+ inputbox_endrev = rev;
}
return true;
}
-function prevrev()
-{
- if( getrevnums() )
- {
- from--;
+function prevRev()
+{
+ if( getRevNums() )
+ {
+ startrev--;
// 25700 is the lowest rev on the server at the time, when this script has been
written
// There is no harm if this rev does not exist anymore on the FTP server, it's just
a min value
- if(from < 25700)
+ if(inputbox_startrev < 25700)
return;
- document.getElementById("revnum").value = from;
- }
-}
-
-function nextrev()
-{
- if( getrevnums() )
- {
- from++;
- document.getElementById("revnum").value = from;
- }
-}
-
-function showrev()
-{
- if( getrevnums() )
- ajaxGet( 'getfiles', 'from=' + from + '&to=' + to,
document.getElementById("revnum").value );
-}
-
-function checkrevnum(elem)
+ document.getElementById("revnum").value = inputbox_startrev;
+ }
+}
+
+function nextRev()
+{
+ if( getRevNums() )
+ {
+ inputbox_startrev++;
+ document.getElementById("revnum").value = inputbox_startrev;
+ }
+}
+
+function showRev()
+{
+ if( getRevNums() )
+ {
+ var data = new Array();
+
+ currentpage = 1;
+ endrev = inputbox_endrev;
+ fullrange = document.getElementById("revnum").value;
+ isoparameters = "";
+ startrev = inputbox_startrev;
+
+ if( document.getElementById("bootcd-dbg").checked )
+ isoparameters += '&bootcd-dbg=1';
+ if( document.getElementById("livecd-dbg").checked )
+ isoparameters += '&livecd-dbg=1';
+ if( document.getElementById("bootcd-rel").checked )
+ isoparameters += '&bootcd-rel=1';
+ if( document.getElementById("livecd-rel").checked )
+ isoparameters += '&livecd-rel=1';
+
+ data["requesttype"] = "FirstPageFullLoad";
+
+ ajaxGet( 'getfiles', 'get=all&startrev=' + startrev +
'&endrev=' + endrev + isoparameters, data );
+ }
+}
+
+function checkForReturn( keyevent )
+{
+ // keyevent.which - supported under NS 4.0, Opera 5.12, Firefox, Konqueror 3.3, Safari
+ if( keyevent )
+ {
+ if( keyevent.which == 13 )
+ showRev();
+ }
+
+ // window.event - for IE Browsers
+ else if( window.event )
+ {
+ if( window.event.keyCode == 13 )
+ showRev();
+ }
+}
+
+function checkRevNum(elem)
{
elem.value = elem.value.replace( /[^[0-9-]/g, "");
}
+
+function showLatestFiles()
+{
+ var data = new Array();
+
+ currentpage = 1;
+ endrev = <?php echo $rev; ?>;
+ fullrange = <?php echo $rev; ?>;
+ isoparameters =
"&bootcd-dbg=1&livecd-dbg=1&bootcd-rel=1&livecd-rel=1";
+ startrev = <?php echo $rev; ?>
+
+ data["requesttype"] = "FirstPageFullLoad";
+
+ ajaxGet( 'getfiles', 'get=all&startrev=<?php echo $rev;
?>&endrev=<?php echo $rev; ?>' + isoparameters, data );
+}
+
+function pageSwitch(new_page, new_startrev)
+{
+ var data = new Array();
+
+ currentpage = new_page;
+ startrev = new_startrev;
+ data["requesttype"] = "PageSwitch";
+
+ ajaxGet( 'getfiles', 'get=all&startrev=' + startrev +
'&endrev=' + endrev + isoparameters, data );
+}
+
+function firstPage()
+{
+ var info =
document.getElementById("pagesel").getElementsByTagName("option")[0].value.split("-");
+ pageSwitch( info[0], info[1] );
+}
+
+function prevPage()
+{
+ var info =
document.getElementById("pagesel").getElementsByTagName("option")[
currentpage - 2 ].value.split("-");
+ pageSwitch( info[0], info[1] );
+}
+
+function pageboxChange(obj)
+{
+ var info = obj.value.split("-");
+ pageSwitch( info[0], info[1] );
+}
+
+function nextPage()
+{
+ var info =
document.getElementById("pagesel").getElementsByTagName("option")[currentpage].value.split("-");
+ pageSwitch( info[0], info[1] );
+}
+
+function lastPage()
+{
+ var info =
document.getElementById("pagesel").getElementsByTagName("option")[
document.getElementById("pagesel").getElementsByTagName("option").length
- 1 ].value.split("-");
+ pageSwitch( info[0], info[1] );
+}
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 Jun 21 12:55:34 2007
@@ -1,4 +1,4 @@
-<?php
+<?php
/*
PROJECT: ReactOS Website
LICENSE: GPL v2 or any later version
@@ -39,7 +39,7 @@
<?php require_once("getbuilds.js.php"); ?>
</script>
</head>
-<body onload="ajaxGet('getfiles', 'from=<?php echo $rev;
?>&to=<?php echo $rev; ?>', <?php echo $rev; ?>);">
+<body onload="showLatestFiles();">
<h2><?php echo $getbuilds_langres["title"]; ?></h2>
@@ -86,23 +86,38 @@
<script type="text/javascript">
document.write(
- '<div id="showrev">' +
- '<?php echo $getbuilds_langres["showrevfiles"]; ?>: ' +
- '<img src="images/leftarrow.gif" alt="<"
title="<?php echo $getbuilds_langres["prevrev"]; ?>"
onclick="prevrev();"> ' +
- '<input type="text" id="revnum" value="<?php echo
$rev; ?>" size="12" onkeyup="checkrevnum(this);"> ' +
- '<img src="images/rightarrow.gif" alt=">"
title="<?php echo $getbuilds_langres["nextrev"]; ?>"
onclick="nextrev();"> ' +
-
- '<button type="submit"
onclick="showrev();"><strong><?php echo
$getbuilds_langres["showrev"]; ?></strong></button>' +
+ '<table id="showrev" cellspacing="0"
cellpadding="5">' +
+ '<tr>' +
+ '<td><?php echo $getbuilds_langres["showrevfiles"]; ?>:
</td>' +
+ '<td>' +
+ '<span id="revcontrols">' +
+ '<img src="images/leftarrow.gif" alt="<"
title="<?php echo $getbuilds_langres["prevrev"]; ?>"
onclick="prevRev();"> ' +
+ '<input type="text" id="revnum" value="<?php
echo $rev; ?>" size="12" onkeyup="checkRevNum(this);">
' +
+ '<img src="images/rightarrow.gif" alt=">"
title="<?php echo $getbuilds_langres["nextrev"]; ?>"
onclick="nextRev();"><br>' +
+ '</span>' +
+
+ '<img src="images/info.png" alt="INFO:"> <?php
echo $getbuilds_langres["rangeinfo"]; ?>' +
+ '</td>' +
+ '</tr>' +
+ '<tr>' +
+ '<td><?php echo $getbuilds_langres["isotype"]; ?>:
</td>' +
+ '<td>' +
+ '<input type="checkbox" id="bootcd-dbg"
checked="checked"> Debug Boot CDs ' +
+ '<input type="checkbox" id="livecd-dbg"
checked="checked"> Debug Live CDs ' +
+ '<input type="checkbox" id="bootcd-rel"
checked="checked"> Release Boot CDs ' +
+ '<input type="checkbox" id="livecd-rel"
checked="checked"> Release Live CDs' +
+ '</td>' +
+ '</tr>' +
+ '</table>' +
+
+ '<div id="controlbox">' +
+ '<button type="button" onclick="showRev();"><?php
echo $getbuilds_langres["showrev"]; ?></button>' +
'<span id="ajaxloadinginfo">' +
- '<img src="images/ajax_loading.gif"> <strong><?php
echo $getbuilds_langres["gettinglist"]; ?>...</strong>' +
+ '<img src="images/ajax_loading.gif"> <?php echo
$getbuilds_langres["gettinglist"]; ?>...' +
'</span>' +
'</div>' +
-
- '<div id="infobox">' +
- '<img src="images/info.png" alt="INFO:"> <?php echo
$getbuilds_langres["rangeinfo"]; ?>' +
- '</div>' +
-
+
'<div id="filetable">' +
'<table class="datatable" cellspacing="0"
cellpadding="1">' +
'<thead>' +
@@ -122,6 +137,8 @@
'</table>' +
'</div>'
);
+
+ document.getElementById("revnum").onkeypress = checkForReturn;
</script>
</div>
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 Jun 21 12:55:34 2007
@@ -26,6 +26,16 @@
$getbuilds_langres["showrev"] = "Anzeigen";
$getbuilds_langres["gettinglist"] = "Dateiliste wird geladen";
$getbuilds_langres["rangeinfo"] = "Sie können eine Revisionsnummer (z.B.
<i>27154</i>) oder einen Revisionsbereich (z.B.
<i>27000-27154</i>) eingeben.";
+ $getbuilds_langres["isotype"] = "CD-Image-Typen anzeigen";
+
+ $getbuilds_langres["firstpage_title"] = "Gehe zur ersten Seite";
+ $getbuilds_langres["prevpage_title"] = "Vorherige Seite";
+ $getbuilds_langres["prevpage"] = "Zurück";
+ $getbuilds_langres["page"] = "Seite";
+ $getbuilds_langres["nextpage"] = "Vor";
+ $getbuilds_langres["nextpage_title"] = "Nächste Seite";
+ $getbuilds_langres["lastpage_title"] = "Gehe zur letzten Seite";
+
$getbuilds_langres["filename"] = "Dateiname";
$getbuilds_langres["filesize"] = "GröÃe";
$getbuilds_langres["filedate"] = "Zuletzt geändert";
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 Jun 21 12:55:34 2007
@@ -26,6 +26,16 @@
$getbuilds_langres["showrev"] = "Show";
$getbuilds_langres["gettinglist"] = "Getting file list";
$getbuilds_langres["rangeinfo"] = "You can enter a revision number (e.g.
<i>27154</i>) or a revision range (e.g.
<i>27000-27154</i>).";
+ $getbuilds_langres["isotype"] = "Show CD Image types";
+
+ $getbuilds_langres["firstpage_title"] = "Go to the first page";
+ $getbuilds_langres["prevpage_title"] = "Previous page";
+ $getbuilds_langres["prevpage"] = "Previous";
+ $getbuilds_langres["page"] = "Page";
+ $getbuilds_langres["nextpage"] = "Next";
+ $getbuilds_langres["nextpage_title"] = "Next page";
+ $getbuilds_langres["lastpage_title"] = "Go to the last page";
+
$getbuilds_langres["filename"] = "File name";
$getbuilds_langres["filesize"] = "Size";
$getbuilds_langres["filedate"] = "Last changed";