Author: dgoette Date: Sun Apr 5 03:49:40 2009 New Revision: 40364
URL: http://svn.reactos.org/svn/reactos?rev=40364&view=rev Log: * use compatDB's home site as general home site * get home site into class structure * get conditions into class structure * remove some unused files
Added: branches/danny-web/reactos.org/htdocs/compat/lib/view/Conditions.class.php (contents, props changed) - copied, changed from r40325, branches/danny-web/reactos.org/htdocs/compat/inc/conditions.php branches/danny-web/reactos.org/htdocs/compat/lib/view/Home.class.php (contents, props changed) - copied, changed from r40336, branches/danny-web/reactos.org/htdocs/compat/inc/comp/comp_home.php Removed: branches/danny-web/reactos.org/htdocs/compat/inc/comp.php branches/danny-web/reactos.org/htdocs/compat/inc/comp/comp_home.php branches/danny-web/reactos.org/htdocs/compat/inc/comp/sub/search_bar.php branches/danny-web/reactos.org/htdocs/compat/inc/comp/sub/search_box.php branches/danny-web/reactos.org/htdocs/compat/inc/conditions.php branches/danny-web/reactos.org/htdocs/compat/inc/home.php Modified: branches/danny-web/reactos.org/htdocs/compat/index.php branches/danny-web/reactos.org/htdocs/compat/lib/view/About.class.php
Removed: branches/danny-web/reactos.org/htdocs/compat/inc/comp.php URL: http://svn.reactos.org/svn/reactos/branches/danny-web/reactos.org/htdocs/com... ============================================================================== --- branches/danny-web/reactos.org/htdocs/compat/inc/comp.php [iso-8859-1] (original) +++ branches/danny-web/reactos.org/htdocs/compat/inc/comp.php (removed) @@ -1,80 +1,0 @@ -<?php - /* - RSDB - ReactOS Support Database - Copyright (C) 2005-2006 Klemens Friedl <frik85@reactos.org> - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - */ - -/* - * ReactOS Support Database System - RSDB - * - * (c) by Klemens Friedl <frik85> - * - * 2005 - 2006 - */ - - - // To prevent hacking activity: - if ( !defined('RSDB') ) - { - die(" "); - } - -?> -<h1><a href="<?php echo $RSDB_intern_index_php ?>?page=home">ReactOS Support Database</a> > -<?php - - switch ($RSDB_SET_sec) { - case "home": // Home - default: - include("inc/comp/comp_home.php"); - break; - // Browse Database - case "category": // Category - include("inc/tree/tree_category.php"); - break; - case "name": // Name - include("inc/tree/tree_name.php"); - break; - case "vendor": // Vendor/Company - include("inc/tree/tree_vendor.php"); - break; - case "rank": // Rank - include("inc/tree/tree_rank.php"); - break; - - case "search": // Search - if ($RSDB_SET_group != "") { - $RSDB_SET_sec="name"; - include("inc/tree/tree_name.php"); - } - else { - include("inc/comp/comp_search.php"); - } - break; - - case "submit": // Category - include("inc/comp/comp_item_submit.php"); - break; - case "stats": // Statistics - echo 'depracted'; - break; - case "help": // Vendor/Company - include("inc/comp/comp_help.php"); - break; - } - -?>
Removed: branches/danny-web/reactos.org/htdocs/compat/inc/comp/comp_home.php URL: http://svn.reactos.org/svn/reactos/branches/danny-web/reactos.org/htdocs/com... ============================================================================== --- branches/danny-web/reactos.org/htdocs/compat/inc/comp/comp_home.php [iso-8859-1] (original) +++ branches/danny-web/reactos.org/htdocs/compat/inc/comp/comp_home.php (removed) @@ -1,219 +1,0 @@ -<?php - /* - RSDB - ReactOS Support Database - Copyright (C) 2005-2006 Klemens Friedl <frik85@reactos.org> - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - */ - -/* - * ReactOS Support Database System - RSDB - * - * (c) by Klemens Friedl <frik85> - * - * 2005 - 2006 - */ - - - // To prevent hacking activity: - if ( !defined('RSDB') ) - { - die(" "); - } - - echo $RSDB_intern_code_view_name; ?> -<script language="JavaScript" type="text/JavaScript"> -<!-- - function MM_preloadImages() { //v3.0 - var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); - var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) - if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} - } - - function MM_swapImgRestore() { //v3.0 - var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; - } - - function MM_findObj(n, d) { //v4.01 - var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { - d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} - if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; - for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); - if(!x && d.getElementById) x=d.getElementById(n); return x; - } - - function MM_swapImage() { //v3.0 - var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) - if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} - } -//--> -</script> -<style type="text/css"> -<!-- -.Stil1 { - font-size: 135%; - font-weight: bold; -} ---> -</style><body onLoad="MM_preloadImages('media/icons/buttons/button_comp_search_m.jpg','media/icons/buttons/button_comp_category_m.jpg','media/icons/buttons/button_comp_name_m.jpg','media/icons/buttons/button_comp_vendor_m.jpg','media/icons/buttons/button_comp_rank_m.jpg','media/icons/buttons/button_comp_submit_m.jpg')"> -<a href="<?php echo $RSDB_intern_index_php; ?>?page=about"><img src="media/pictures/compatibility_small.jpg" vspace="1" border="0" align="right"></a> -</h1> -<p>ReactOS Software and Hardware Compatibility Database</p> - -<h1>Compatibility Database - Overview </h1> -<h2>Compatibility Database - Overview</h2> -<table width="100%" border="0" cellpadding="0" cellspacing="0"> - <tr> - <td width="100%" valign="top"> -<p><font size="2">The ReactOS Compatibility Database (CompDB) has stored a lot of information about application and driver compatibility - with ReactOS.</font></p> -<div id="StartList" align="center" style="display: none"> -<a href="<?php echo $RSDB_intern_link_db_sec; ?>category&cat=0&ajax=true" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('CompCategory','','media/icons/buttons/button_comp_category_m.jpg',1)"><img src="media/icons/buttons/button_comp_category.jpg" alt="Browse by Category" name="CompCategory" width="232" height="50" border="0"></a><br> -<a href="<?php echo $RSDB_intern_link_db_sec; ?>name&letter=all&ajax=true" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('CompName','','media/icons/buttons/button_comp_name_m.jpg',1)"><img src="media/icons/buttons/button_comp_name.jpg" alt="Browse by Name" name="CompName" width="232" height="50" border="0"></a><br> -<a href="<?php echo $RSDB_intern_link_db_sec; ?>vendor&letter=all&ajax=true" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('CompVendor','','media/icons/buttons/button_comp_vendor_m.jpg',1)"><img src="media/icons/buttons/button_comp_vendor.jpg" alt="Browse by Vendor" name="CompVendor" width="232" height="50" border="0"></a><br> -<a href="<?php echo $RSDB_intern_link_db_sec; ?>rank&ajax=true" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('CompRank','','media/icons/buttons/button_comp_rank_m.jpg',1)"><img src="media/icons/buttons/button_comp_rank.jpg" alt="Browse by Rank" name="CompRank" width="232" height="50" border="0"></a><br> -<a href="<?php echo $RSDB_intern_link_db_sec; ?>submit&ajax=true" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('SubApp','','media/icons/buttons/button_comp_submit_m.jpg',1)"><img src="media/icons/buttons/button_comp_submit.jpg" alt="Submit Application" name="SubApp" width="232" height="50" border="0"></a><br> - <table width="231" height="49" border="0" cellpadding="0" cellspacing="0"> - <tr> - <td width="231" height="49" align="right" valign="middle" nowrap background="media/icons/buttons/button_comp_search.jpg"> - <table width="100%" border="0"> - <tr> - <td width="110"> </td> - <td><input name="searchinput" type="text" id="searchinput" tabindex="0" onBlur="loadItemList(this.value,'table','comp','ajaxload','sresult')" onKeyUp="loadItemList(this.value,'table','comp','ajaxload','sresult')" size="10" maxlength="50" style="background-color: #FFFFFF; color: #000000; font-family: Verdana; font-size: x-small; font-style: normal; border-left : 1px solid #FFFFFF; border-right : 1px solid #FFFFFF; border-top : 1px solid #FFFFFF; border-bottom : 1px solid #FFFFFF;" /><img id="ajaxload" src="images/ajax_loading.gif" style="display: none"> - <script language="JavaScript" type="text/JavaScript"> - <!-- - var brow = navigator.appName; - if (brow=="Netscape") { - document.getElementById('searchinput').size=15; - } - --> - </script> - <?php - //include("inc/comp/sub/search_box.php"); - ?> - </td> - </tr> - </table> - </td> - </tr> - </table> -</div> -<div align="center"> - <noscript> - <a href="<?php echo $RSDB_intern_link_db_sec; ?>category&cat=0&ajax=false"><img src="media/icons/buttons/button_comp_category.jpg" alt="Browse by Category" name="CompCategory" width="232" height="50" border="0"></a><br> - <a href="<?php echo $RSDB_intern_link_db_sec; ?>name&letter=all&ajax=false"><img src="media/icons/buttons/button_comp_name.jpg" alt="Browse by Name" name="CompName" width="232" height="50" border="0"></a><br> - <a href="<?php echo $RSDB_intern_link_db_sec; ?>vendor&letter=all&ajax=false"><img src="media/icons/buttons/button_comp_vendor.jpg" alt="Browse by Vendor" name="CompVendor" width="232" height="50" border="0"></a><br> - <a href="<?php echo $RSDB_intern_link_db_sec; ?>rank&ajax=false"><img src="media/icons/buttons/button_comp_rank.jpg" alt="Browse by Rank" name="CompRank" width="232" height="50" border="0"></a><br> - <a href="<?php echo $RSDB_intern_link_db_sec; ?>submit&ajax=false"><img src="media/icons/buttons/button_comp_submit.jpg" alt="Submit Application" name="SubApp" width="232" height="50" border="0"></a><br> - <a href="<?php echo $RSDB_intern_link_db_sec; ?>search&ajax=false"><img src="media/icons/buttons/button_comp_search_noscript.jpg" alt="Search by Query" name="CompSearch" width="232" height="50" border="0"></a><br> - </noscript> -</div> -</td> - <td align="right" valign="top"><img src="media/pictures/compatibility.jpg" alt="ReactOS Compatibility Database" height="300" width="400"></td> - </tr> -</table> -<div id="sresult" style="display: none"></div> -<h3>Features</h3> -<p>Some of the <strong>features of the Compatibility Database</strong> are:</p> -<ul> - <li>Browse through the database in several different ways (by <a href="<?php echo $RSDB_intern_link_db_sec; ?>category&cat=0">category</a>, <a href="<?php echo $RSDB_intern_link_db_sec; ?>name&letter=all">name</a>, <a href="<?php echo $RSDB_intern_link_db_sec; ?>vendor&letter=all">vendor</a>, <a href="<?php echo $RSDB_intern_link_db_sec; ?>rank">ranks</a>, <a href="<?php echo $RSDB_intern_link_db_sec; ?>search">search</a>).</li> - <li>Submit application entries, compatibility test reports, vendor information, screenshots and forum messages. </li> - <li>Ability to vote on test reports, forum messages, screenshots, etc.</li> - <li>Ability to customize the layout, several settings (like personal threshold, etc.) and behaviour of the Support Database.</li> - <li>Ability to sign up to be an application maintainer.<br /> -</li> -</ul> -<h3>Recent submissions<font color="#B5E196"></font></h3> -<p>There are <a href="<?php echo $RSDB_intern_link_db_sec; ?>stats"><b> - <?php - - $stmt=CDBConnection::getInstance()->prepare("SELECT COUNT(*) FROM rsdb_groups WHERE grpentr_visible = '1' AND grpentr_comp = '1'"); - $stmt->execute(); - $result_count_cat = $stmt->fetch(); - echo $result_count_cat[0]; - - -?> applications and drivers</b></a> currently in the database.</p> - -<div style="margin:0; margin-top:10px; width:520px; margin-right:10px; border:1px solid #dfdfdf; padding:0em 1em 1em 1em; background-color:#EAF0F8;"> -<br /> -<table width="500" border="0" cellpadding="1" cellspacing="1"> - <tr bgcolor="#5984C3"> - <td width="15%" bgcolor="#5984C3"><div align="center"><font color="#FFFFFF" face="Arial, Helvetica, sans-serif"><strong>Time</strong></font></div></td> - <td width="50%" bgcolor="#5984C3"><div align="center"><font color="#FFFFFF" face="Arial, Helvetica, sans-serif"><strong>Application</strong></font></div></td> - <td width="35%" bgcolor="#5984C3"><div align="center"><font color="#FFFFFF" face="Arial, Helvetica, sans-serif"><strong>Function</strong></font></div></td> - </tr> - <?php - $cellcolor1="#E2E2E2"; - $cellcolor2="#EEEEEE"; - $cellcolorcounter="0"; - - $stmt=CDBConnection::getInstance()->prepare("SELECT * FROM rsdb_item_comp_testresults WHERE test_visible = '1' ORDER BY test_id DESC LIMIT 5"); - $stmt->execute(); - while($result_date_entry_records = $stmt->fetch(PDO::FETCH_ASSOC)) { -?> - <tr bgcolor="<?php - $cellcolorcounter++; - if ($cellcolorcounter == "1") { - echo $cellcolor1; - $farbe = $cellcolor1; - } - elseif ($cellcolorcounter == "2") { - $cellcolorcounter="0"; - echo $cellcolor2; - $farbe = $cellcolor2; - } - ?>"> - <td><div align="center"><font size="1" face="Arial, Helvetica, sans-serif"> - <?php - echo $result_date_entry_records['test_user_submit_timestamp']; - - ?> - </font></div></td> - <td><font size="2" face="Arial, Helvetica, sans-serif"> - <?php - $stmt=CDBConnection::getInstance()->prepare("SELECT * FROM rsdb_item_comp WHERE comp_id = :comp_id LIMIT 1"); - $stmt->bindParam('comp_id',$result_date_entry_records['test_comp_id'],PDO::PARAM_STR); - $stmt->execute(); - $result_date_vendor = $stmt->fetch(PDO::PARAM_STR); - echo "<b><a href=\"". $RSDB_intern_link_item_comp.$result_date_vendor['comp_id'] ."&item2=tests\">".$result_date_vendor['comp_name']."</a></b>"; - - ?> - </font></td> - <td><div align="left"><font size="2" face="Arial, Helvetica, sans-serif"> - <?php - echo Star::drawSmall($result_date_entry_records['test_result_function'], 1, 5, ""); - ?> - </font></div></td> - </tr> - <?php - } -?> -</table> -</div> -<?php - if ($RSDB_intern_user_id <= 0) { -?> - <p><font size="2">Some of the features of the ReactOS Compatibility Database require that you have a <a href="<?php echo $RSDB_intern_loginsystem_fullpath; ?>?page=register">myReactOS account</a> and are <a href="<?php echo $RSDB_intern_loginsystem_fullpath; ?>?page=login">logged in</a>.</font></p> -<?php - } -?> -<script language="JavaScript" type="text/JavaScript"> -<!-- - document.getElementById('StartList').style.display = "block"; - document.getElementById('searchinput').focus(); - document.getElementById('searchinput').select(); ---> -</script>
Removed: branches/danny-web/reactos.org/htdocs/compat/inc/comp/sub/search_bar.php URL: http://svn.reactos.org/svn/reactos/branches/danny-web/reactos.org/htdocs/com... ============================================================================== --- branches/danny-web/reactos.org/htdocs/compat/inc/comp/sub/search_bar.php [iso-8859-1] (original) +++ branches/danny-web/reactos.org/htdocs/compat/inc/comp/sub/search_bar.php (removed) @@ -1,244 +1,0 @@ -<?php - /* - RSDB - ReactOS Support Database - Copyright (C) 2005-2006 Klemens Friedl <frik85@reactos.org> - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - */ - -/* - * ReactOS Support Database System - RSDB - * - * (c) by Klemens Friedl <frik85> - * - * 2005 - 2006 - */ - - - // To prevent hacking activity: - if ( !defined('RSDB') ) - { - die(" "); - } - -?> <div class="navTitle">Search</div> - <div class="navBox"><form method="get" action="#" style="padding:0;margin:0"> - <div style="text-align:center;"> - - <input name="q" value="" size="12" maxlength="80" class="searchInput" type="text" /><input name="domains" value="http://www.reactos.org" type="hidden" /><input name="sitesearch" value="http://www.reactos.org" type="hidden" /> - <input name="btnG" value="Go" type="submit" class="button" /> - - - </div></form> - </div> - <ol> - <div id="outputItemListShort" style="display: none"></div> - </ol> -<p></p> -<script type="text/javascript" language="javascript"> -<!-- - - // Global variable for the request-object - var http_request = false; - var tSearch = ""; - - document.getElementById('bSearch').style.display = "none"; - - - - function writeItemList_style_header() { - var tempa = ""; - - tempa = "<table width="700" border="0" cellpadding="1" cellspacing="1">\n"; - tempa += "<tr bgcolor="#5984C3"> \n"; - tempa += "<td width="30%"> <div align="center"><font color="#FFFFFF" face="Arial, Helvetica, sans-serif"><strong>Application</strong></font></div></td> \n"; - tempa += "<td width="30%"> <div align="center"><font color="#FFFFFF" face="Arial, Helvetica, sans-serif"><strong>Vendor</strong></font></div></td> \n"; - tempa += "<td width="40%"> <div align="center"><font color="#FFFFFF" face="Arial, Helvetica, sans-serif"><strong>Description</strong></font></div></td> \n"; - tempa += "</tr>"; -// alert('test:' + tempa); -// document.getElementById("outputItemList").innerHTML = tempa; -// document.getElementById('tempc').value = tempa; - return tempa; - } - - function writeItemList_style_entry(itemid, itemname, vendorid, vendorname, description, colorcur) { - var tempb = ""; - - tempb += "<tr> \n"; - tempb += "<td width="30%" valign="top" bgcolor="" + colorcur + ""><font size="2"><a href="<?php echo $RSDB_intern_link_group_comp; ?>" + itemid + "">" + itemname + "</a></font></td> \n"; - if (vendorid != 0) { - tempb += "<td width="30%" valign="top" bgcolor="" + colorcur + ""><font size="2"><a href="<?php echo $RSDB_intern_link_vendor_sec_comp; ?>" + vendorid + "">" + vendorname + "</a></font></td> \n"; - } - else { - tempb += "<td width="30%" valign="top" bgcolor="" + colorcur + ""><font size="2"> </font></td> \n"; - } - if (description != ".") { - tempb += "<td width="40%" valign="top" bgcolor="" + colorcur + ""><font size="2">" + description + "</font></td> \n"; - } - else { - tempb += "<td width="40%" valign="top" bgcolor="" + colorcur + ""><font size="2"> </font></td> \n"; - } - tempb += "</tr>"; -// alert('test:' + tempb); -// document.getElementById("outputItemList").innerHTML += tempb; -// document.getElementById('tempc').value += tempb; - return tempb; - } - - function writeItemList_style_footer() { -// document.getElementById("outputItemList").innerHTML += "</table>"; -// document.getElementById('tempc').value += "</table>"; - return "</table>"; - } - - function deleteItemList() { - document.getElementById("outputItemList").innerHTML = ""; - } - - - function loadItemList(asearch) { - tSearch=asearch; - - if (asearch.length > 1) { - document.getElementById('outputItemList').style.display = "block"; - document.getElementById('ajaxload').style.display = "inline"; - if (asearch != "") { - setCursor('wait'); - if (http_request && (http_request.readyState == 2 || http_request.readyState == 3)) { - http_request.abort(); // falls ein Request läuft, diesen abbrechen - } - - //loadXMLDoc('getentry.php'); - makeRequest('<?php echo $RSDB_intern_link_export2; ?>grplst&search='+asearch); - } - } - else { - document.getElementById('outputItemList').style.display = "none"; - document.getElementById('ajaxload').style.display = "none"; - deleteItemList(); - } - } - - - function setCursor(mode) { - var pageBody = document.getElementsByTagName("body")[0]; - pageBody.style.cursor = mode; - } - - - - function makeRequest(url) { - - http_request = false; - - if (window.XMLHttpRequest) { // Mozilla, Safari,... - http_request = new XMLHttpRequest(); - if (http_request.overrideMimeType) { - http_request.overrideMimeType('text/xml'); - } - } else if (window.ActiveXObject) { // IE - try { - http_request = new ActiveXObject("Msxml2.XMLHTTP"); - } catch (e) { - try { - http_request = new ActiveXObject("Microsoft.XMLHTTP"); - } catch (e) {} - } - } - - if (!http_request) { - alert('Giving up :( Cannot create an XMLHTTP instance'); - return false; - } - http_request.onreadystatechange = showItemList; - http_request.open('GET', url, true); - http_request.send(null); - - } - - function showItemList() { - - if (http_request.readyState == 4) { - if (http_request.status == 200) { - - var lstData = ""; - - var xmldoc = http_request.responseXML; - var root_node = xmldoc.getElementsByTagName('root').item(0); - - if ((root_node.firstChild.data.search(/#none#/)) == -1) { - lstData = ""; - lstData = writeItemList_style_header(); - var items = http_request.responseXML.getElementsByTagName("item"); - var descs = http_request.responseXML.getElementsByTagName("desc"); - var vendo = http_request.responseXML.getElementsByTagName("vendor"); - - // Colors - var colorcur=""; - var color1="#E2E2E2"; - var color2="#EEEEEE"; - var colorcounter=0; - -// alert(items.length); - for (var i = 0; i < items.length; i++) { -// lstData += items[i].firstChild.data; -// alert(items[i].firstChild.data); - //alert(items[i].firstChild.nodeValue); -// alert(items[i].getAttributeNode("id").value); -// alert(descs[i].firstChild.data); -// alert(vendo[i].firstChild.data); -// alert(vendo[i].getAttributeNode("id").value); - - //writeItemList_style_entry(itemid, itemname, vendorid, vendorname, description, colorcur); - - colorcounter++; - if (colorcounter == "1") { - colorcur = color1; - } - else if (colorcounter == "2") { - colorcounter="0"; - colorcur = color2; - } - - lstData += writeItemList_style_entry(items[i].getAttributeNode("id").value, items[i].firstChild.data, vendo[i].getAttributeNode("id").value, vendo[i].firstChild.data, descs[i].firstChild.data, colorcur); - - } - - lstData += writeItemList_style_footer(); - - document.getElementById("outputItemList").innerHTML = lstData; - } - else { - document.getElementById("outputItemList").innerHTML = "<p>Your search - " + tSearch + " - did not match any database entries.</p>"; - //deleteItemList(); - //alert(root_node.firstChild.data); - } - - - // reset mouse cursor - setCursor('auto'); - - // reset loading picture: - document.getElementById('ajaxload').style.display = "none"; - - } else { - alert('There was a problem with the request:\n' + http_request.statusText); - } - } - - } - ---> -</script>
Removed: branches/danny-web/reactos.org/htdocs/compat/inc/comp/sub/search_box.php URL: http://svn.reactos.org/svn/reactos/branches/danny-web/reactos.org/htdocs/com... ============================================================================== --- branches/danny-web/reactos.org/htdocs/compat/inc/comp/sub/search_box.php [iso-8859-1] (original) +++ branches/danny-web/reactos.org/htdocs/compat/inc/comp/sub/search_box.php (removed) @@ -1,241 +1,0 @@ -<?php - /* - RSDB - ReactOS Support Database - Copyright (C) 2005-2006 Klemens Friedl <frik85@reactos.org> - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - */ - -/* - * ReactOS Support Database System - RSDB - * - * (c) by Klemens Friedl <frik85> - * - * 2005 - 2006 - */ - - - // To prevent hacking activity: - if ( !defined('RSDB') ) - { - die(" "); - } - -?><input name="searchinput" type="text" id="searchinput" tabindex="0" onblur="loadItemList(this.value)" onkeyup="loadItemList(this.value)" size="10" maxlength="50" style="background-color: #FFFFFF; color: #000000; font-family: Verdana; font-size: x-small; font-style: normal; border-left : 1px solid #FFFFFF; border-right : 1px solid #FFFFFF; border-top : 1px solid #FFFFFF; border-bottom : 1px solid #FFFFFF;" /><img id="ajaxload" src="images/ajax_loading.gif" style="display: none"> -<?php /* -<p><label for="searchinput" accesskey="s">Search: </label></p><input name="bSearch" type="button" disabled="true" id="bSearch" value="Search" style="display: inline" /> -<noscript> -Sorry, currently the search function is only usable with ECMAScript enabled! The noscript methode will be available soon! -</noscript> */ ?> -<script type="text/javascript" language="javascript"> -<!-- - - // Global variable for the request-object - var http_request = false; - var tSearch = ""; - - //document.getElementById('bSearch').style.display = "none"; - - - var brow = navigator.appName; - if (brow=="Netscape") { - document.getElementById('searchinput').size=15; - } - - - function writeItemList_style_header() { - var tempa = ""; - - tempa = "<table width="700" border="0" cellpadding="1" cellspacing="1">\n"; - tempa += "<tr bgcolor="#5984C3"> \n"; - tempa += "<td width="30%"> <div align="center"><font color="#FFFFFF" face="Arial, Helvetica, sans-serif"><strong>Application</strong></font></div></td> \n"; - tempa += "<td width="30%"> <div align="center"><font color="#FFFFFF" face="Arial, Helvetica, sans-serif"><strong>Vendor</strong></font></div></td> \n"; - tempa += "<td width="40%"> <div align="center"><font color="#FFFFFF" face="Arial, Helvetica, sans-serif"><strong>Description</strong></font></div></td> \n"; - tempa += "</tr>"; -// alert('test:' + tempa); -// document.getElementById("outputItemList").innerHTML = tempa; -// document.getElementById('tempc').value = tempa; - return tempa; - } - - function writeItemList_style_entry(itemid, itemname, vendorid, vendorname, description, colorcur) { - var tempb = ""; - - tempb += "<tr> \n"; - tempb += "<td width="30%" valign="top" bgcolor="" + colorcur + ""><font size="2"><a href="<?php echo $RSDB_intern_link_group_comp; ?>" + itemid + "">" + itemname + "</a></font></td> \n"; - if (vendorid != 0) { - tempb += "<td width="30%" valign="top" bgcolor="" + colorcur + ""><font size="2"><a href="<?php echo $RSDB_intern_link_vendor_sec_comp; ?>" + vendorid + "">" + vendorname + "</a></font></td> \n"; - } - else { - tempb += "<td width="30%" valign="top" bgcolor="" + colorcur + ""><font size="2"> </font></td> \n"; - } - if (description != ".") { - tempb += "<td width="40%" valign="top" bgcolor="" + colorcur + ""><font size="2">" + description + "</font></td> \n"; - } - else { - tempb += "<td width="40%" valign="top" bgcolor="" + colorcur + ""><font size="2"> </font></td> \n"; - } - tempb += "</tr>"; -// alert('test:' + tempb); -// document.getElementById("outputItemList").innerHTML += tempb; -// document.getElementById('tempc').value += tempb; - return tempb; - } - - function writeItemList_style_footer() { -// document.getElementById("outputItemList").innerHTML += "</table>"; -// document.getElementById('tempc').value += "</table>"; - return "</table>"; - } - - function deleteItemList() { - document.getElementById("outputItemList").innerHTML = ""; - } - - - function loadItemList(asearch) { - tSearch=asearch; - - if (asearch.length > 1) { - document.getElementById('outputItemList').style.display = "block"; - document.getElementById('ajaxload').style.display = "inline"; - if (asearch != "") { - setCursor('wait'); - if (http_request && (http_request.readyState == 2 || http_request.readyState == 3)) { - http_request.abort(); // falls ein Request läuft, diesen abbrechen - } - - //loadXMLDoc('getentry.php'); - makeRequest('<?php echo $RSDB_intern_link_export2; ?>grplst&search='+asearch); - } - } - else { - document.getElementById('outputItemList').style.display = "none"; - document.getElementById('ajaxload').style.display = "none"; - deleteItemList(); - } - } - - - function setCursor(mode) { - var pageBody = document.getElementsByTagName("body")[0]; - pageBody.style.cursor = mode; - } - - - - function makeRequest(url) { - - http_request = false; - - if (window.XMLHttpRequest) { // Mozilla, Safari,... - http_request = new XMLHttpRequest(); - if (http_request.overrideMimeType) { - http_request.overrideMimeType('text/xml'); - } - } else if (window.ActiveXObject) { // IE - try { - http_request = new ActiveXObject("Msxml2.XMLHTTP"); - } catch (e) { - try { - http_request = new ActiveXObject("Microsoft.XMLHTTP"); - } catch (e) {} - } - } - - if (!http_request) { - alert('Giving up :( Cannot create an XMLHTTP instance'); - return false; - } - http_request.onreadystatechange = showItemList; - http_request.open('GET', url, true); - http_request.send(null); - - } - - function showItemList() { - - if (http_request.readyState == 4) { - if (http_request.status == 200) { - - var lstData = ""; - - var xmldoc = http_request.responseXML; - var root_node = xmldoc.getElementsByTagName('root').item(0); - - if ((root_node.firstChild.data.search(/#none#/)) == -1) { - lstData = ""; - lstData = writeItemList_style_header(); - var items = http_request.responseXML.getElementsByTagName("item"); - var descs = http_request.responseXML.getElementsByTagName("desc"); - var vendo = http_request.responseXML.getElementsByTagName("vendor"); - - // Colors - var colorcur=""; - var color1="#E2E2E2"; - var color2="#EEEEEE"; - var colorcounter=0; - -// alert(items.length); - for (var i = 0; i < items.length; i++) { -// lstData += items[i].firstChild.data; -// alert(items[i].firstChild.data); - //alert(items[i].firstChild.nodeValue); -// alert(items[i].getAttributeNode("id").value); -// alert(descs[i].firstChild.data); -// alert(vendo[i].firstChild.data); -// alert(vendo[i].getAttributeNode("id").value); - - //writeItemList_style_entry(itemid, itemname, vendorid, vendorname, description, colorcur); - - colorcounter++; - if (colorcounter == "1") { - colorcur = color1; - } - else if (colorcounter == "2") { - colorcounter="0"; - colorcur = color2; - } - - lstData += writeItemList_style_entry(items[i].getAttributeNode("id").value, items[i].firstChild.data, vendo[i].getAttributeNode("id").value, vendo[i].firstChild.data, descs[i].firstChild.data, colorcur); - - } - - lstData += writeItemList_style_footer(); - - document.getElementById("outputItemList").innerHTML = lstData; - } - else { - document.getElementById("outputItemList").innerHTML = "<p>Your search - " + tSearch + " - did not match any database entries.</p>"; - //deleteItemList(); - //alert(root_node.firstChild.data); - } - - - // reset mouse cursor - setCursor('auto'); - - // reset loading picture: - document.getElementById('ajaxload').style.display = "none"; - - } else { - alert('There was a problem with the request:\n' + http_request.statusText); - } - } - - } - ---> -</script>
Removed: branches/danny-web/reactos.org/htdocs/compat/inc/conditions.php URL: http://svn.reactos.org/svn/reactos/branches/danny-web/reactos.org/htdocs/com... ============================================================================== --- branches/danny-web/reactos.org/htdocs/compat/inc/conditions.php [iso-8859-1] (original) +++ branches/danny-web/reactos.org/htdocs/compat/inc/conditions.php (removed) @@ -1,41 +1,0 @@ -<?php - /* - RSDB - ReactOS Support Database - Copyright (C) 2005-2006 Klemens Friedl <frik85@reactos.org> - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - */ - -/* - * ReactOS Support Database System - RSDB - * - * (c) by Klemens Friedl <frik85> - * - * 2005 - 2006 - */ - - - // To prevent hacking activity: - if ( !defined('RSDB') ) - { - die(" "); - } - -?> -<h1><a href="<?php echo $RSDB_intern_index_php ?>?page=home">ReactOS Support Database</a> > Submit Conditions</h1> -<h2>Submit Conditions</h2> -<p><font size="2">The ReactOS administrator and moderator team of the ReactOS homepage will attempt to remove or edit any generally objectionable material as quickly as possible, it is impossible to review every message/comment/entry/etc. Therefore you acknowledge that all posts/comment/entry/etc. made to the ReactOS homepage express the views and opinions of the author and not the administrators, moderators or webmaster (except for posts/comment/entry/etc. by these people) and hence will not be held liable. </font></p> -<p><font size="2">You agree not to post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-oriented or any other material that may violate any applicable laws. Doing so may lead to you being immediately and permanently banned (and your service provider being informed). The IP address of all posts is recorded to aid in enforcing these conditions. You agree that the webmaster, administrator and moderator team of the ReactOS homepage have the right to remove, edit, move or close any topic/entry/etc. at any time should they see fit. As a user you agree to any information you have entered above being stored in a database. While this information will not be disclosed to any third party without your consent the webmaster, administrator and moderator team cannot be held responsible for any hacking attempt that may lead to the data being compromised. </font></p> -<p> <font size="2"><strong>By submitting anything to the "ReactOS Support Database" you agree that you have read the "Submit Conditions" text above and to be bound by these conditions.</strong></font></p>
Removed: branches/danny-web/reactos.org/htdocs/compat/inc/home.php URL: http://svn.reactos.org/svn/reactos/branches/danny-web/reactos.org/htdocs/com... ============================================================================== --- branches/danny-web/reactos.org/htdocs/compat/inc/home.php [iso-8859-1] (original) +++ branches/danny-web/reactos.org/htdocs/compat/inc/home.php (removed) @@ -1,50 +1,0 @@ -<?php - /* - RSDB - ReactOS Support Database - Copyright (C) 2005-2006 Klemens Friedl <frik85@reactos.org> - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - */ - -/* - * ReactOS Support Database System - RSDB - * - * (c) by Klemens Friedl <frik85> - * - * 2005 - 2006 - */ - - - // To prevent hacking activity: - if ( !defined('RSDB') ) - { - die(" "); - } - -?> -<h1><?php echo $RSDB_langres['RSDB_name']; ?></h1> -<p><?php echo $RSDB_langres['CONTENT_description']; ?></p> -<h1><?php echo $RSDB_langres['TEXT_overview']; ?></h1> -<h2><img src="media/pictures/supportdb.jpg" alt="ReactOS Support Database" align="right" height="130" width="290"><?php echo $RSDB_langres['TEXT_about']; ?></h2> - -<p><?php echo $RSDB_langres['CONTENT_about_short']; ?> <a href="<?php echo $RSDB_intern_index_php; ?>?page=about"><?php echo $RSDB_langres['TEXT_more']; ?></a> </p> -<h2><?php echo $RSDB_langres['TEXT_sections']; ?></h2> -<h3><?php echo $RSDB_langres['TEXT_compdb']; ?></h3> -<p> - <?php echo $RSDB_langres['CONTENT_compdb_description']; ?> <a href="<?php echo $RSDB_intern_link_db_view_comp; ?>&sec=home"><?php echo $RSDB_langres['TEXT_more']; ?></a> -</p> - -<p> </p> -
Modified: branches/danny-web/reactos.org/htdocs/compat/index.php URL: http://svn.reactos.org/svn/reactos/branches/danny-web/reactos.org/htdocs/com... ============================================================================== --- branches/danny-web/reactos.org/htdocs/compat/index.php [iso-8859-1] (original) +++ branches/danny-web/reactos.org/htdocs/compat/index.php [iso-8859-1] Sun Apr 5 03:49:40 2009 @@ -250,43 +250,68 @@ // echo "<hr />db: ".$RSDB_SET_page.", sec: ".$RSDB_SET_sec."<hr />";
switch ($RSDB_SET_page) { - case "home": // Frontpage - //require($RSDB_intern_path_server.$RSDB_intern_loginsystem_path."inc/login.php"); - $rpm_page_title="Support Database - Overview"; - include("inc/header.php"); // Head - create_head($rpm_page_title, $rpm_logo, $RSDB_langres); - include("inc/structure.php"); // Layout-Structure - create_structure($rpm_page); - include("inc/home.php"); // Content - include("inc/footer.php"); // Body - break; - case "about": // RSDB About Page - new About(); - break; - case "conditions": // RSDB Submit Conditions Page - $rpm_page_title="Support Database - Submit Conditions"; - include("inc/header.php"); // Head - create_head($rpm_page_title, $rpm_logo, $RSDB_langres); - include("inc/structure.php"); // Layout-Structure - create_structure($rpm_page); - include("inc/conditions.php"); // Content - include("inc/footer.php"); // Body - break; - default: - case "db": // developer interface - //require($RSDB_intern_path_server.$RSDB_intern_loginsystem_path."inc/login.php"); - $rpm_page_title="Support Database - Compatibility"; - $RSDB_intern_section_script = "inc/comp.php"; - - include("inc/header.php"); - create_head($rpm_page_title, $rpm_logo, $RSDB_langres); - include("inc/structure.php"); - create_structure($rpm_page); - - include($RSDB_intern_section_script); - - include("inc/footer.php"); - + + // Frontpage + case 'home': + new Home(); + break; + + // RSDB About Page + case 'about': + new About(); + break; + + // RSDB Submit Conditions Page + case 'conditions': + new Conditions(); + break; + + case 'comp': + switch ($RSDB_SET_sec) { + + // Browse Database + case "category": + include("inc/tree/tree_category.php"); + break; + + // Name + case "name": + include("inc/tree/tree_name.php"); + break; + + // Vendor/Company + case "vendor": + include("inc/tree/tree_vendor.php"); + break; + + // Rank + case "rank": + include("inc/tree/tree_rank.php"); + break; + + // Search + case "search": + if ($RSDB_SET_group != "") { + $RSDB_SET_sec="name"; + include("inc/tree/tree_name.php"); + } + else { + include("inc/comp/comp_search.php"); + } + break; + + // Category + case "submit": + include("inc/comp/comp_item_submit.php"); + break; + + // Vendor/Company + case "help": + include("inc/comp/comp_help.php"); + break; + } + + default: break; case "dat": // export data switch ($RSDB_SET_export) {
Modified: branches/danny-web/reactos.org/htdocs/compat/lib/view/About.class.php URL: http://svn.reactos.org/svn/reactos/branches/danny-web/reactos.org/htdocs/com... ============================================================================== --- branches/danny-web/reactos.org/htdocs/compat/lib/view/About.class.php [iso-8859-1] (original) +++ branches/danny-web/reactos.org/htdocs/compat/lib/view/About.class.php [iso-8859-1] Sun Apr 5 03:49:40 2009 @@ -27,9 +27,10 @@ protected function body( ) { global $RSDB_langres; + global $RSDB_intern_index_php;
echo ' - <h1><a href="<?php echo $RSDB_intern_index_php ?>?page=home">ReactOS Support Database</a> > '.$RSDB_langres['TEXT_about_rsdb'].'</h1> + <h1><a href="'.$RSDB_intern_index_php.'?page=about">ReactOS Compatability Database</a> > '.$RSDB_langres['TEXT_about_rsdb'].'</h1> <h2>'.$RSDB_langres['TEXT_about_rsdb'].'</h2> <p>'.$RSDB_langres['CONTENT_about_rsdb'].'</p> <p>'.$RSDB_langres['CONTENT_about_webteam'].'</p>
Copied: branches/danny-web/reactos.org/htdocs/compat/lib/view/Conditions.class.php (from r40325, branches/danny-web/reactos.org/htdocs/compat/inc/conditions.php) URL: http://svn.reactos.org/svn/reactos/branches/danny-web/reactos.org/htdocs/com... ============================================================================== --- branches/danny-web/reactos.org/htdocs/compat/inc/conditions.php [iso-8859-1] (original) +++ branches/danny-web/reactos.org/htdocs/compat/lib/view/Conditions.class.php [iso-8859-1] Sun Apr 5 03:49:40 2009 @@ -18,24 +18,36 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
-/* - * ReactOS Support Database System - RSDB - * - * (c) by Klemens Friedl <frik85> - * - * 2005 - 2006 - */ + +class Conditions extends HTML +{
- // To prevent hacking activity: - if ( !defined('RSDB') ) - { - die(" "); - }
-?> -<h1><a href="<?php echo $RSDB_intern_index_php ?>?page=home">ReactOS Support Database</a> > Submit Conditions</h1> -<h2>Submit Conditions</h2> -<p><font size="2">The ReactOS administrator and moderator team of the ReactOS homepage will attempt to remove or edit any generally objectionable material as quickly as possible, it is impossible to review every message/comment/entry/etc. Therefore you acknowledge that all posts/comment/entry/etc. made to the ReactOS homepage express the views and opinions of the author and not the administrators, moderators or webmaster (except for posts/comment/entry/etc. by these people) and hence will not be held liable. </font></p> -<p><font size="2">You agree not to post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-oriented or any other material that may violate any applicable laws. Doing so may lead to you being immediately and permanently banned (and your service provider being informed). The IP address of all posts is recorded to aid in enforcing these conditions. You agree that the webmaster, administrator and moderator team of the ReactOS homepage have the right to remove, edit, move or close any topic/entry/etc. at any time should they see fit. As a user you agree to any information you have entered above being stored in a database. While this information will not be disclosed to any third party without your consent the webmaster, administrator and moderator team cannot be held responsible for any hacking attempt that may lead to the data being compromised. </font></p> -<p> <font size="2"><strong>By submitting anything to the "ReactOS Support Database" you agree that you have read the "Submit Conditions" text above and to be bound by these conditions.</strong></font></p> + protected function body( ) + { + global $RSDB_intern_index_php; + + echo ' + <h1> + <a href="'.$RSDB_intern_index_php.'?page=about">ReactOS Compatability Database</a> + > Submit Conditions + </h1> + <h2>Submit Conditions</h2> + <p style="font-size:2;"> + The ReactOS administrator and moderator team of the ReactOS homepage will attempt to remove or edit any generally objectionable material as quickly as possible, it is impossible to review every message/comment/entry/etc. Therefore you acknowledge that all posts/comment/entry/etc. made to the ReactOS homepage express the views and opinions of the author and not the administrators, moderators or webmaster (except for posts/comment/entry/etc. by these people) and hence will not be held liable. + </p> + <p style="font-size:2;"> + You agree not to post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-oriented or any other material that may violate any applicable laws. Doing so may lead to you being immediately and permanently banned (and your service provider being informed). The IP address of all posts is recorded to aid in enforcing these conditions. You agree that the webmaster, administrator and moderator team of the ReactOS homepage have the right to remove, edit, move or close any topic/entry/etc. at any time should they see fit. As a user you agree to any information you have entered above being stored in a database. While this information will not be disclosed to any third party without your consent the webmaster, administrator and moderator team cannot be held responsible for any hacking attempt that may lead to the data being compromised. + </p> + <p> + <strong> + By submitting anything to the "ReactOS Support Database" you agree that you have read the "Submit Conditions" text above and to be bound by these conditions. + </strong> + </p>'; + } // end of member function body + + + +} // end of Conditions +
Propchange: branches/danny-web/reactos.org/htdocs/compat/lib/view/Conditions.class.php ------------------------------------------------------------------------------ svn:mergeinfo =
Copied: branches/danny-web/reactos.org/htdocs/compat/lib/view/Home.class.php (from r40336, branches/danny-web/reactos.org/htdocs/compat/inc/comp/comp_home.php) URL: http://svn.reactos.org/svn/reactos/branches/danny-web/reactos.org/htdocs/com... ============================================================================== --- branches/danny-web/reactos.org/htdocs/compat/inc/comp/comp_home.php [iso-8859-1] (original) +++ branches/danny-web/reactos.org/htdocs/compat/lib/view/Home.class.php [iso-8859-1] Sun Apr 5 03:49:40 2009 @@ -18,202 +18,212 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
-/* - * ReactOS Support Database System - RSDB - * - * (c) by Klemens Friedl <frik85> - * - * 2005 - 2006 - */ - - - // To prevent hacking activity: - if ( !defined('RSDB') ) - { - die(" "); - } - - echo $RSDB_intern_code_view_name; ?> -<script language="JavaScript" type="text/JavaScript"> -<!-- - function MM_preloadImages() { //v3.0 - var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); - var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) - if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} - } - - function MM_swapImgRestore() { //v3.0 - var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; - } - - function MM_findObj(n, d) { //v4.01 - var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { - d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} - if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; - for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); - if(!x && d.getElementById) x=d.getElementById(n); return x; - } - - function MM_swapImage() { //v3.0 - var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) - if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} - } -//--> -</script> -<style type="text/css"> -<!-- -.Stil1 { - font-size: 135%; - font-weight: bold; -} ---> -</style><body onLoad="MM_preloadImages('media/icons/buttons/button_comp_search_m.jpg','media/icons/buttons/button_comp_category_m.jpg','media/icons/buttons/button_comp_name_m.jpg','media/icons/buttons/button_comp_vendor_m.jpg','media/icons/buttons/button_comp_rank_m.jpg','media/icons/buttons/button_comp_submit_m.jpg')"> -<a href="<?php echo $RSDB_intern_index_php; ?>?page=about"><img src="media/pictures/compatibility_small.jpg" vspace="1" border="0" align="right"></a> -</h1> -<p>ReactOS Software and Hardware Compatibility Database</p> - -<h1>Compatibility Database - Overview </h1> -<h2>Compatibility Database - Overview</h2> -<table width="100%" border="0" cellpadding="0" cellspacing="0"> - <tr> - <td width="100%" valign="top"> -<p><font size="2">The ReactOS Compatibility Database (CompDB) has stored a lot of information about application and driver compatibility - with ReactOS.</font></p> -<div id="StartList" align="center" style="display: none"> -<a href="<?php echo $RSDB_intern_link_db_sec; ?>category&cat=0&ajax=true" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('CompCategory','','media/icons/buttons/button_comp_category_m.jpg',1)"><img src="media/icons/buttons/button_comp_category.jpg" alt="Browse by Category" name="CompCategory" width="232" height="50" border="0"></a><br> -<a href="<?php echo $RSDB_intern_link_db_sec; ?>name&letter=all&ajax=true" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('CompName','','media/icons/buttons/button_comp_name_m.jpg',1)"><img src="media/icons/buttons/button_comp_name.jpg" alt="Browse by Name" name="CompName" width="232" height="50" border="0"></a><br> -<a href="<?php echo $RSDB_intern_link_db_sec; ?>vendor&letter=all&ajax=true" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('CompVendor','','media/icons/buttons/button_comp_vendor_m.jpg',1)"><img src="media/icons/buttons/button_comp_vendor.jpg" alt="Browse by Vendor" name="CompVendor" width="232" height="50" border="0"></a><br> -<a href="<?php echo $RSDB_intern_link_db_sec; ?>rank&ajax=true" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('CompRank','','media/icons/buttons/button_comp_rank_m.jpg',1)"><img src="media/icons/buttons/button_comp_rank.jpg" alt="Browse by Rank" name="CompRank" width="232" height="50" border="0"></a><br> -<a href="<?php echo $RSDB_intern_link_db_sec; ?>submit&ajax=true" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('SubApp','','media/icons/buttons/button_comp_submit_m.jpg',1)"><img src="media/icons/buttons/button_comp_submit.jpg" alt="Submit Application" name="SubApp" width="232" height="50" border="0"></a><br> - <table width="231" height="49" border="0" cellpadding="0" cellspacing="0"> - <tr> - <td width="231" height="49" align="right" valign="middle" nowrap background="media/icons/buttons/button_comp_search.jpg"> - <table width="100%" border="0"> + +class Home extends HTML +{ + + + + protected function body( ) + { + global $RSDB_intern_code_view_name; + global $RSDB_intern_index_php; + global $RSDB_intern_link_db_sec; + global $RSDB_intern_user_id; + global $RSDB_intern_loginsystem_fullpath; + global $RSDB_intern_link_item_comp; + + echo ' + <script type="text/JavaScript"> + <!--'." + function MM_preloadImages() { //v3.0 + var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); + var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) + if (a[i].indexOf('#')!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} + } + + function MM_swapImgRestore() { //v3.0 + var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; + } + + function MM_findObj(n, d) { //v4.01 + var p,i,x; if(!d) d=document; if((p=n.indexOf('?'))>0&&parent.frames.length) { + d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} + if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; + for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); + if(!x && d.getElementById) x=d.getElementById(n); return x; + } + + function MM_swapImage() { //v3.0 + var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) + if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} + } + ".'//--> + </script> + <style type="text/css"> + <!--'." + .Stil1 { + font-size: 135%; + font-weight: bold; + } + ".'--> + </style> + <body onLoad="'."MM_preloadImages('media/icons/buttons/button_comp_search_m.jpg', 'media/icons/buttons/button_comp_category_m.jpg', 'media/icons/buttons/button_comp_name_m.jpg', 'media/icons/buttons/button_comp_vendor_m.jpg', 'media/icons/buttons/button_comp_rank_m.jpg', 'media/icons/buttons/button_comp_submit_m.jpg');".'"> + + <h1>Compatibility Database - Overview</h1> + <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> - <td width="110"> </td> - <td><input name="searchinput" type="text" id="searchinput" tabindex="0" onBlur="loadItemList(this.value,'table','comp','ajaxload','sresult')" onKeyUp="loadItemList(this.value,'table','comp','ajaxload','sresult')" size="10" maxlength="50" style="background-color: #FFFFFF; color: #000000; font-family: Verdana; font-size: x-small; font-style: normal; border-left : 1px solid #FFFFFF; border-right : 1px solid #FFFFFF; border-top : 1px solid #FFFFFF; border-bottom : 1px solid #FFFFFF;" /><img id="ajaxload" src="images/ajax_loading.gif" style="display: none"> - <script language="JavaScript" type="text/JavaScript"> - <!-- - var brow = navigator.appName; - if (brow=="Netscape") { - document.getElementById('searchinput').size=15; - } - --> - </script> - <?php - //include("inc/comp/sub/search_box.php"); - ?> - </td> + <td width="100%" valign="top"> + <p style="font-size:2;">The ReactOS Compatibility Database (CompDB) has stored a lot of information about application and driver compatibility with ReactOS.</p> + <div id="StartList" style="display: none;text-align:center;"> + <a href="'.$RSDB_intern_link_db_sec.'category&cat=0&ajax=true" onMouseOut="'."MM_swapImgRestore()".'" onMouseOver="'."MM_swapImage('CompCategory', '', 'media/icons/buttons/button_comp_category_m.jpg', 1);".'"> + <img src="media/icons/buttons/button_comp_category.jpg" alt="Browse by Category" name="CompCategory" width="232" height="50" border="0" /> + </a> + <br /> + <a href="'.$RSDB_intern_link_db_sec.'name&letter=all&ajax=true" onMouseOut="'."MM_swapImgRestore()".'" onMouseOver="'."MM_swapImage('CompName', '', 'media/icons/buttons/button_comp_name_m.jpg', 1);".'"> + <img src="media/icons/buttons/button_comp_name.jpg" alt="Browse by Name" name="CompName" width="232" height="50" border="0" /> + </a> + <br /> + <a href="'.$RSDB_intern_link_db_sec.'vendor&letter=all&ajax=true" onMouseOut="'."MM_swapImgRestore()".'" onMouseOver="'."MM_swapImage('CompVendor', '', 'media/icons/buttons/button_comp_vendor_m.jpg', 1);".'"> + <img src="media/icons/buttons/button_comp_vendor.jpg" alt="Browse by Vendor" name="CompVendor" width="232" height="50" border="0" /> + </a> + <br /> + <a href="'.$RSDB_intern_link_db_sec.'rank&ajax=true" onMouseOut="'."MM_swapImgRestore()".'" onMouseOver="'."MM_swapImage('CompRank', '', 'media/icons/buttons/button_comp_rank_m.jpg', 1);".'"> + <img src="media/icons/buttons/button_comp_rank.jpg" alt="Browse by Rank" name="CompRank" width="232" height="50" border="0" /> + </a> + <br /> + <a href="'.$RSDB_intern_link_db_sec.'submit&ajax=true" onMouseOut="'."MM_swapImgRestore()".'" onMouseOver="'."MM_swapImage('SubApp', '', 'media/icons/buttons/button_comp_submit_m.jpg', 1)".'"> + <img src="media/icons/buttons/button_comp_submit.jpg" alt="Submit Application" name="SubApp" width="232" height="50" border="0" /> + </a> + <br /> + <table width="231" height="49" border="0" cellpadding="0" cellspacing="0" style="margin: 0px auto;"> + <tr> + <td width="231" height="49" align="right" valign="middle" nowrap background="media/icons/buttons/button_comp_search.jpg"> + <table width="100%" border="0"> + <tr> + <td width="110"> </td> + <td> + <input name="searchinput" type="text" id="searchinput" tabindex="0" onBlur="'."loadItemList(this.value, 'table', 'comp', 'ajaxload', 'sresult');".'" onKeyUp="'."loadItemList(this.value, 'table', 'comp', 'ajaxload', 'sresult');".'" size="10" maxlength="50" style="background-color: #FFFFFF; color: #000000; font-family: Verdana; font-size: x-small; font-style: normal; border-left : 1px solid #FFFFFF; border-right : 1px solid #FFFFFF; border-top : 1px solid #FFFFFF; border-bottom : 1px solid #FFFFFF;" /> + <img id="ajaxload" src="images/ajax_loading.gif" style="display: none" /> + <script language="JavaScript" type="text/JavaScript"> + <!--'." + var brow = navigator.appName; + if (brow == 'Netscape') { + document.getElementById('searchinput').size=15; + } + ".'--> + </script> + </td> + </tr> + </table> + </td> + </tr> + </table> + </div> + <div style="text-align:center;"> + <noscript> + <a href="'.$RSDB_intern_link_db_sec.'category&cat=0&ajax=false"> + <img src="media/icons/buttons/button_comp_category.jpg" alt="Browse by Category" name="CompCategory" width="232" height="50" border="0" /> + </a> + <br /> + <a href="'.$RSDB_intern_link_db_sec.'name&letter=all&ajax=false"> + <img src="media/icons/buttons/button_comp_name.jpg" alt="Browse by Name" name="CompName" width="232" height="50" border="0" /> + </a> + <br /> + <a href="'.$RSDB_intern_link_db_sec.'vendor&letter=all&ajax=false"> + <img src="media/icons/buttons/button_comp_vendor.jpg" alt="Browse by Vendor" name="CompVendor" width="232" height="50" border="0" /> + </a> + <br /> + <a href="'.$RSDB_intern_link_db_sec.'rank&ajax=false"> + <img src="media/icons/buttons/button_comp_rank.jpg" alt="Browse by Rank" name="CompRank" width="232" height="50" border="0" /> + </a> + <br /> + <a href="'.$RSDB_intern_link_db_sec.'submit&ajax=false"> + <img src="media/icons/buttons/button_comp_submit.jpg" alt="Submit Application" name="SubApp" width="232" height="50" border="0" /> + </a> + <br /> + <a href="'.$RSDB_intern_link_db_sec.'search&ajax=false"> + <img src="media/icons/buttons/button_comp_search_noscript.jpg" alt="Search by Query" name="CompSearch" width="232" height="50" border="0" /> + </a> + <br /> + </noscript> + </div> + </td> + <td style="text-align:right;vertical-align:top;"> + <img src="media/pictures/compatibility.jpg" alt="ReactOS Compatibility Database" height="300" width="400" /> + </td> </tr> </table> - </td> - </tr> - </table> -</div> -<div align="center"> - <noscript> - <a href="<?php echo $RSDB_intern_link_db_sec; ?>category&cat=0&ajax=false"><img src="media/icons/buttons/button_comp_category.jpg" alt="Browse by Category" name="CompCategory" width="232" height="50" border="0"></a><br> - <a href="<?php echo $RSDB_intern_link_db_sec; ?>name&letter=all&ajax=false"><img src="media/icons/buttons/button_comp_name.jpg" alt="Browse by Name" name="CompName" width="232" height="50" border="0"></a><br> - <a href="<?php echo $RSDB_intern_link_db_sec; ?>vendor&letter=all&ajax=false"><img src="media/icons/buttons/button_comp_vendor.jpg" alt="Browse by Vendor" name="CompVendor" width="232" height="50" border="0"></a><br> - <a href="<?php echo $RSDB_intern_link_db_sec; ?>rank&ajax=false"><img src="media/icons/buttons/button_comp_rank.jpg" alt="Browse by Rank" name="CompRank" width="232" height="50" border="0"></a><br> - <a href="<?php echo $RSDB_intern_link_db_sec; ?>submit&ajax=false"><img src="media/icons/buttons/button_comp_submit.jpg" alt="Submit Application" name="SubApp" width="232" height="50" border="0"></a><br> - <a href="<?php echo $RSDB_intern_link_db_sec; ?>search&ajax=false"><img src="media/icons/buttons/button_comp_search_noscript.jpg" alt="Search by Query" name="CompSearch" width="232" height="50" border="0"></a><br> - </noscript> -</div> -</td> - <td align="right" valign="top"><img src="media/pictures/compatibility.jpg" alt="ReactOS Compatibility Database" height="300" width="400"></td> - </tr> -</table> -<div id="sresult" style="display: none"></div> -<h3>Features</h3> -<p>Some of the <strong>features of the Compatibility Database</strong> are:</p> -<ul> - <li>Browse through the database in several different ways (by <a href="<?php echo $RSDB_intern_link_db_sec; ?>category&cat=0">category</a>, <a href="<?php echo $RSDB_intern_link_db_sec; ?>name&letter=all">name</a>, <a href="<?php echo $RSDB_intern_link_db_sec; ?>vendor&letter=all">vendor</a>, <a href="<?php echo $RSDB_intern_link_db_sec; ?>rank">ranks</a>, <a href="<?php echo $RSDB_intern_link_db_sec; ?>search">search</a>).</li> - <li>Submit application entries, compatibility test reports, vendor information, screenshots and forum messages. </li> - <li>Ability to vote on test reports, forum messages, screenshots, etc.</li> - <li>Ability to customize the layout, several settings (like personal threshold, etc.) and behaviour of the Support Database.</li> - <li>Ability to sign up to be an application maintainer.<br /> -</li> -</ul> -<h3>Recent submissions<font color="#B5E196"></font></h3> -<p>There are <a href="<?php echo $RSDB_intern_link_db_sec; ?>stats"><b> - <?php - - $stmt=CDBConnection::getInstance()->prepare("SELECT COUNT(*) FROM rsdb_groups WHERE grpentr_visible = '1' AND grpentr_comp = '1'"); - $stmt->execute(); - $result_count_cat = $stmt->fetch(); - echo $result_count_cat[0]; - - -?> applications and drivers</b></a> currently in the database.</p> - -<div style="margin:0; margin-top:10px; width:520px; margin-right:10px; border:1px solid #dfdfdf; padding:0em 1em 1em 1em; background-color:#EAF0F8;"> -<br /> -<table width="500" border="0" cellpadding="1" cellspacing="1"> - <tr bgcolor="#5984C3"> - <td width="15%" bgcolor="#5984C3"><div align="center"><font color="#FFFFFF" face="Arial, Helvetica, sans-serif"><strong>Time</strong></font></div></td> - <td width="50%" bgcolor="#5984C3"><div align="center"><font color="#FFFFFF" face="Arial, Helvetica, sans-serif"><strong>Application</strong></font></div></td> - <td width="35%" bgcolor="#5984C3"><div align="center"><font color="#FFFFFF" face="Arial, Helvetica, sans-serif"><strong>Function</strong></font></div></td> - </tr> - <?php - $cellcolor1="#E2E2E2"; - $cellcolor2="#EEEEEE"; - $cellcolorcounter="0"; - - $stmt=CDBConnection::getInstance()->prepare("SELECT * FROM rsdb_item_comp_testresults WHERE test_visible = '1' ORDER BY test_id DESC LIMIT 5"); - $stmt->execute(); - while($result_date_entry_records = $stmt->fetch(PDO::FETCH_ASSOC)) { -?> - <tr bgcolor="<?php - $cellcolorcounter++; - if ($cellcolorcounter == "1") { - echo $cellcolor1; - $farbe = $cellcolor1; - } - elseif ($cellcolorcounter == "2") { - $cellcolorcounter="0"; - echo $cellcolor2; - $farbe = $cellcolor2; - } - ?>"> - <td><div align="center"><font size="1" face="Arial, Helvetica, sans-serif"> - <?php - echo $result_date_entry_records['test_user_submit_timestamp']; - - ?> - </font></div></td> - <td><font size="2" face="Arial, Helvetica, sans-serif"> - <?php - $stmt=CDBConnection::getInstance()->prepare("SELECT * FROM rsdb_item_comp WHERE comp_id = :comp_id LIMIT 1"); - $stmt->bindParam('comp_id',$result_date_entry_records['test_comp_id'],PDO::PARAM_STR); + <div id="sresult" style="display: none"></div> + <h3>Features</h3> + <p>Some of the <strong>features of the Compatibility Database</strong> are:</p> + <ul> + <li>Browse through the database in several different ways (by <a href="'.$RSDB_intern_link_db_sec.'category&cat=0">category</a>, <a href="'.$RSDB_intern_link_db_sec.'name&letter=all">name</a>, <a href="'.$RSDB_intern_link_db_sec.'vendor&letter=all">vendor</a>, <a href="'.$RSDB_intern_link_db_sec.'rank">ranks</a>, <a href="'.$RSDB_intern_link_db_sec.'search">search</a>).</li> + <li>Submit application entries, compatibility test reports, vendor information, screenshots and forum messages. </li> + <li>Ability to vote on test reports, forum messages, screenshots, etc.</li> + <li>Ability to customize the layout, several settings (like personal threshold, etc.) and behaviour of the Support Database.</li> + <li>Ability to sign up to be an application maintainer.<br /></li> + </ul> + <h3>Recent submissions</h3>'; + + // get number of entries + $stmt=CDBConnection::getInstance()->prepare("SELECT COUNT(*) FROM rsdb_groups WHERE grpentr_visible = '1' AND grpentr_comp = '1'"); $stmt->execute(); - $result_date_vendor = $stmt->fetch(PDO::PARAM_STR); - echo "<b><a href=\"". $RSDB_intern_link_item_comp.$result_date_vendor['comp_id'] ."&item2=tests\">".$result_date_vendor['comp_name']."</a></b>"; - - ?> - </font></td> - <td><div align="left"><font size="2" face="Arial, Helvetica, sans-serif"> - <?php - echo Star::drawSmall($result_date_entry_records['test_result_function'], 1, 5, ""); - ?> - </font></div></td> - </tr> - <?php - } -?> -</table> -</div> -<?php - if ($RSDB_intern_user_id <= 0) { -?> - <p><font size="2">Some of the features of the ReactOS Compatibility Database require that you have a <a href="<?php echo $RSDB_intern_loginsystem_fullpath; ?>?page=register">myReactOS account</a> and are <a href="<?php echo $RSDB_intern_loginsystem_fullpath; ?>?page=login">logged in</a>.</font></p> -<?php - } -?> -<script language="JavaScript" type="text/JavaScript"> -<!-- - document.getElementById('StartList').style.display = "block"; - document.getElementById('searchinput').focus(); - document.getElementById('searchinput').select(); ---> -</script> + echo ' + <p>There are <a href="'.$RSDB_intern_link_db_sec.'stats"><strong>'.$stmt->fetchColumn().' applications and drivers</strong></a> currently in the database.</p> + <div style="margin:0; margin-top:10px; width:520px; margin-right:10px; border:1px solid #dfdfdf; padding:0em 1em 1em 1em; background-color:#EAF0F8;"> + <br /> + <table width="500" border="0" cellpadding="1" cellspacing="1"> + <tr bgcolor="#5984C3"> + <td width="15%" bgcolor="#5984C3"><div align="center"><font color="#FFFFFF" face="Arial, Helvetica, sans-serif"><strong>Time</strong></font></div></td> + <td width="50%" bgcolor="#5984C3"><div align="center"><font color="#FFFFFF" face="Arial, Helvetica, sans-serif"><strong>Application</strong></font></div></td> + <td width="35%" bgcolor="#5984C3"><div align="center"><font color="#FFFFFF" face="Arial, Helvetica, sans-serif"><strong>Function</strong></font></div></td> + </tr>'; + + //@MOVEME to css + $cellcolor1='#E2E2E2'; + $cellcolor2='#EEEEEE'; + $cellcolorcounter=0; + + // show latest tests + $stmt=CDBConnection::getInstance()->prepare("SELECT * FROM rsdb_item_comp_testresults WHERE test_visible = '1' ORDER BY test_id DESC LIMIT 5"); + $stmt->execute(); + while ($entry = $stmt->fetch(PDO::FETCH_ASSOC)) { + + // get programm name to the test + $stmt_comp=CDBConnection::getInstance()->prepare("SELECT * FROM rsdb_item_comp WHERE comp_id = :comp_id LIMIT 1"); + $stmt_comp->bindParam('comp_id',$entry['test_comp_id'],PDO::PARAM_STR); + $stmt_comp->execute(); + $comp = $stmt_comp->fetchOnce(PDO::FETCH_ASSOC); + + $cellcolorcounter++; + echo ' + <tr style="background-color:'.($cellcolorcounter%2 ? $cellcolor1 : $cellcolor2).';"> + <td style="text-align: center;font-size:1;">'.$entry['test_user_submit_timestamp'].'</td> + <td style="font-size:2;"> <strong><a href="'.$RSDB_intern_link_item_comp.$comp['comp_id'].'&item2=tests">'.$comp['comp_name'].'</a></strong></td> + <td style="font-size:2;"> '.Star::drawSmall($entry['test_result_function'], 1, 5, '').'</td> + </tr>'; + } + + echo ' + </table> + </div>'; + + // print some login blah to guest users + if ($RSDB_intern_user_id <= 0) { + echo '<p style="font-size:2;">Some of the features of the ReactOS Compatibility Database require that you have a <a href="'.$RSDB_intern_loginsystem_fullpath.'?page=register">myReactOS account</a> and are <a href="'.$RSDB_intern_loginsystem_fullpath.'?page=login">logged in</a>.</p>'; + } + + echo ' + <script type="text/JavaScript"> + <!--'." + document.getElementById('StartList').style.display = 'block'; + document.getElementById('searchinput').focus(); + document.getElementById('searchinput').select(); + ".'--> + </script>'; + } // end of member function body + + + +} // end of Home
Propchange: branches/danny-web/reactos.org/htdocs/compat/lib/view/Home.class.php ------------------------------------------------------------------------------ svn:mergeinfo =