Author: dgoette Date: Thu Mar 26 14:08:27 2009 New Revision: 40252
URL: http://svn.reactos.org/svn/reactos?rev=40252&view=rev Log: create new folder structure and move files to their new folders, update header
Added: branches/danny-web/reactos.org/htdocs/compat/css/ branches/danny-web/reactos.org/htdocs/compat/css/style.css (contents, props changed) - copied, changed from r40251, branches/danny-web/reactos.org/htdocs/compat/style.css branches/danny-web/reactos.org/htdocs/compat/js/ branches/danny-web/reactos.org/htdocs/compat/js/search.js (contents, props changed) - copied, changed from r40251, branches/danny-web/reactos.org/htdocs/compat/search.js branches/danny-web/reactos.org/htdocs/compat/js/smoothscroll.js (props changed) - copied unchanged from r40251, branches/danny-web/reactos.org/htdocs/compat/smoothscroll.js branches/danny-web/reactos.org/htdocs/compat/lib/ Removed: branches/danny-web/reactos.org/htdocs/compat/search.js branches/danny-web/reactos.org/htdocs/compat/smoothscroll.js branches/danny-web/reactos.org/htdocs/compat/style.css
Copied: branches/danny-web/reactos.org/htdocs/compat/css/style.css (from r40251, branches/danny-web/reactos.org/htdocs/compat/style.css) URL: http://svn.reactos.org/svn/reactos/branches/danny-web/reactos.org/htdocs/com... ============================================================================== --- branches/danny-web/reactos.org/htdocs/compat/style.css [iso-8859-1] (original) +++ branches/danny-web/reactos.org/htdocs/compat/css/style.css [iso-8859-1] Thu Mar 26 14:08:27 2009 @@ -1,383 +1,383 @@ -body { - font-family: Verdana; - font-size: 12px; - margin: 0 0 1em 0; - padding: 0; /* Only affects Opera */ - background: #FFFFFF url('http://localhost/reactos.org/images/topbar.jpg') repeat-x scroll top left; -} - -hr { - margin: 5px 0 5px 0; - color: #8D8D8D; -} - -address { - font-size: 9px; -} - -address p { - margin: 0; -} -address a { - font-size: 9px; - text-decoration:none; -} -address a:hover { - font-size: 9px; - text-decoration:underline; -} - - - -h1, .contentSmallTitle { - display: block; - line-height: normal; - font-size: 14px; - font-weight: bold; - color: #FFFFFF; - background-color: #5984C3; - padding: 0px 0px 1px 10px; - margin-top: 0; -} -h1 a { - font-size: 14px; - font-weight: bold; - color: #FFFFFF; - background-color: #5984C3; - text-decoration:none; -} -h1 a:hover { - font-size: 14px; - font-weight: bold; - color: #FFFFFF; - background-color: #5984C3; - text-decoration:underline; -} - -h2 { - font-size: 22px; - color: #5984C3; - font-weight: bold; - margin-top: 15px; -} - -h3 { - font-size: 18px; - color: #5984C3; - font-weight: bold; - margin-top: 10px; -} - -h4 { - font-size: 16px; - color: #5984C3; - font-weight: bold; - margin-top: 5px; -} - -h5 { - font-size: 14px; - color: #5984C3; - font-weight: bold; - margin-top: 5px; -} - -h6 { - font-size: 12px; - color: #5984C3; - font-weight: bold; -} - -a { - font-size: 12px; - color: #006090; -} - -a:hover { - background-color: #DDEEFF; - color: #000000; -} - -/* set by the generator */ -a.extern { - background: url('http://localhost/reactos.org/wiki/stylesheets/monobook/external.png') no-repeat center right; - padding-right: 14px; -} - -#content, .contentSmall { - padding-right: 3px; - font-size: 12px; - text-align: justify; -} - -#content li { - list-style-image: url('http://localhost/reactos.org/images/bullet.png') -} - -#top { - margin: 0; - background: url('http://localhost/reactos.org/support/images/logo_rsdb.jpg') no-repeat scroll 35px 0; - padding: 103px 0 26px 0; - color: #FFFFFF; - text-align: right; -} - -#top a { - font-size: 13px; - color: #FFFFFF; - text-decoration: none; - padding: 1px 5px 1px 5px; -} - -#top a:hover { - color: #000000; - background-color: #FFCC33; -} - -#topMenu { - font-size: 13px; - margin-left: 300px; - background-color: #5984C3; -} - -#topMenu p { - text-align: left; - margin: 0; -} - -#leftNav { - padding: 0px 10px 10px 7px; -} - -#rightNav { - padding: 0px 3px 0px 5px; - width: 270px; - line-height: 150%; -} - -#rightNav img { - border: 1px solid #000000; - height: 200px; - width: 266px; -} - -#leftNav ol { - margin: 0; - padding: 0; - list-style-type: none; - background-color: #EEEEEE; - border-top: #3F3849 0px solid; - border-right: #3F3849 1px solid; - border-left: #3F3849 1px solid; -} - -#leftNav ol li { - font-size: 13px; - font-weight: bold; - border-bottom: #3f3849 1px solid; -} - -#leftNav ol li a { - display: block; - width: 145px; - padding: 2px 4px 2px 4px; - - color: #3F3849; - text-decoration: none; - background-color: #EEEEEE; -} - -#leftNav ol li a:hover { - color: #000000; - background-color: #FFCC33; -} - -#leftNav ol li a.extern { - background: none; - padding-right: 0px; -} - -#leftNav .navTitle { - padding-left: 12px; - border-top: #3F3849 1px solid; - border-right: #3F3849 1px solid; - border-bottom: #3F3849 1px solid; - border-left: #3F3849 1px solid; - - font-weight: bold; - font-size: 14px; - color: #FFFFFF; - background-color: #5984c3; -} - -#leftNav .navBox { - text-align: center; - padding: 2px; - background-color: #EEEEEE; - border-right: 1px solid #3F3849; - border-bottom: 1px solid #3F3849; - border-left: 1px solid #3F3849; - font-size: 13px; -} - - -#bugzillaContent { - font-size: 12px; -} - -#bugzillaContent table { - font-size: 12px; -} - - - -#sectionMenu { - margin: 0; - font-size: 13px; - background-color: #5984C3; -} -#sectionMenu a { - font-size: 13px; - color: #FFFFFF; - text-decoration: none; - padding: 1px 5px 1px 5px; -} -#sectionMenu a:hover { - color: #000000; - background-color: #FFCC33; -} - - -/* Maintainer Bar */ - -table.maintainer { - background-color: #ddddee; - padding:4px 8px; - border:1px solid #ccccdd; - text-align: Center; -} - -table.maintainer td { - background-color: #ddddee; - font-family: Verdana; - font-size: 15px; -} - -table.maintainer a { - font-size: 15px; -} - -table.maintainer a:hover { - background:#eeeeff; - color: #000000; - font-family: Verdana; - font-size: 15px; -} - - -/* Admin Bar */ - -table.admin { - background-color: #FEE3CB; - padding:4px 8px; - border:1px solid #FBBB95; - text-align: Center; -} - -table.admin td { - background-color: #FEE3CB; - font-family: Verdana; - font-size: 15px; -} - -table.admin a { - font-size: 15px; -} - -table.admin a:hover { - background:#eeeeff; - color: #000000; - font-family: Verdana; - font-size: 15px; -} - -/* Message Bar */ - -table.message { - background-color: #FFCC00; - padding:4px 8px; - border: 1px solid #FF6600; - text-align: Center; -} - -table.message td { - background-color: #FFCC00; - font-family: Verdana; - font-size: 15px; -} - -table.message a { - font-size: 15px; -} - -table.message a:hover { - background:#eeeeff; - color: #000000; - font-family: Verdana; - font-size: 15px; -} - - -/* Forum Bar */ - -table.forumbar { - background-color: #99CCCC; - padding:4px 8px; - border: 1px solid #5984C3; - text-align: Center; -} - -table.forumbar td { - background-color: #DDEEFF; - font-family: Verdana; - font-size: 15px; -} - -table.forumbar a { - font-size: 15px; -} - -table.forumbar a:hover { - background:#eeeeff; - color: #000000; - font-family: Verdana; - font-size: 15px; -} - - -.button -{ - background-color: #5984C3; color: white; - font-family: "verdana bitstream vera sans", verdana, sans-serif; font-size: 13px; - border-width:1px; border-style:solid; border-color: #C0C0C0; - font-weight: bold; padding: 0; -} - - - -UL.simple { - PADDING-RIGHT: 0px; - PADDING-LEFT: 20px; - PADDING-BOTTOM: 0px; - PADDING-TOP: 0px; - MARGIN: 0px 0px 1em; - LIST-STYLE-TYPE: none; - FONT-SIZE: 12px; -} -SPAN.simple { - font-size: 15px; - font-weight: bold; -} - - - +body { + font-family: Verdana; + font-size: 12px; + margin: 0 0 1em 0; + padding: 0; /* Only affects Opera */ + background: #FFFFFF url('http://localhost/reactos.org/images/topbar.jpg') repeat-x scroll top left; +} + +hr { + margin: 5px 0 5px 0; + color: #8D8D8D; +} + +address { + font-size: 9px; +} + +address p { + margin: 0; +} +address a { + font-size: 9px; + text-decoration:none; +} +address a:hover { + font-size: 9px; + text-decoration:underline; +} + + + +h1, .contentSmallTitle { + display: block; + line-height: normal; + font-size: 14px; + font-weight: bold; + color: #FFFFFF; + background-color: #5984C3; + padding: 0px 0px 1px 10px; + margin-top: 0; +} +h1 a { + font-size: 14px; + font-weight: bold; + color: #FFFFFF; + background-color: #5984C3; + text-decoration:none; +} +h1 a:hover { + font-size: 14px; + font-weight: bold; + color: #FFFFFF; + background-color: #5984C3; + text-decoration:underline; +} + +h2 { + font-size: 22px; + color: #5984C3; + font-weight: bold; + margin-top: 15px; +} + +h3 { + font-size: 18px; + color: #5984C3; + font-weight: bold; + margin-top: 10px; +} + +h4 { + font-size: 16px; + color: #5984C3; + font-weight: bold; + margin-top: 5px; +} + +h5 { + font-size: 14px; + color: #5984C3; + font-weight: bold; + margin-top: 5px; +} + +h6 { + font-size: 12px; + color: #5984C3; + font-weight: bold; +} + +a { + font-size: 12px; + color: #006090; +} + +a:hover { + background-color: #DDEEFF; + color: #000000; +} + +/* set by the generator */ +a.extern { + background: url('http://localhost/reactos.org/wiki/stylesheets/monobook/external.png') no-repeat center right; + padding-right: 14px; +} + +#content, .contentSmall { + padding-right: 3px; + font-size: 12px; + text-align: justify; +} + +#content li { + list-style-image: url('http://localhost/reactos.org/images/bullet.png') +} + +#top { + margin: 0; + background: url('http://localhost/reactos.org/support/images/logo_rsdb.jpg') no-repeat scroll 35px 0; + padding: 103px 0 26px 0; + color: #FFFFFF; + text-align: right; +} + +#top a { + font-size: 13px; + color: #FFFFFF; + text-decoration: none; + padding: 1px 5px 1px 5px; +} + +#top a:hover { + color: #000000; + background-color: #FFCC33; +} + +#topMenu { + font-size: 13px; + margin-left: 300px; + background-color: #5984C3; +} + +#topMenu p { + text-align: left; + margin: 0; +} + +#leftNav { + padding: 0px 10px 10px 7px; +} + +#rightNav { + padding: 0px 3px 0px 5px; + width: 270px; + line-height: 150%; +} + +#rightNav img { + border: 1px solid #000000; + height: 200px; + width: 266px; +} + +#leftNav ol { + margin: 0; + padding: 0; + list-style-type: none; + background-color: #EEEEEE; + border-top: #3F3849 0px solid; + border-right: #3F3849 1px solid; + border-left: #3F3849 1px solid; +} + +#leftNav ol li { + font-size: 13px; + font-weight: bold; + border-bottom: #3f3849 1px solid; +} + +#leftNav ol li a { + display: block; + width: 145px; + padding: 2px 4px 2px 4px; + + color: #3F3849; + text-decoration: none; + background-color: #EEEEEE; +} + +#leftNav ol li a:hover { + color: #000000; + background-color: #FFCC33; +} + +#leftNav ol li a.extern { + background: none; + padding-right: 0px; +} + +#leftNav .navTitle { + padding-left: 12px; + border-top: #3F3849 1px solid; + border-right: #3F3849 1px solid; + border-bottom: #3F3849 1px solid; + border-left: #3F3849 1px solid; + + font-weight: bold; + font-size: 14px; + color: #FFFFFF; + background-color: #5984c3; +} + +#leftNav .navBox { + text-align: center; + padding: 2px; + background-color: #EEEEEE; + border-right: 1px solid #3F3849; + border-bottom: 1px solid #3F3849; + border-left: 1px solid #3F3849; + font-size: 13px; +} + + +#bugzillaContent { + font-size: 12px; +} + +#bugzillaContent table { + font-size: 12px; +} + + + +#sectionMenu { + margin: 0; + font-size: 13px; + background-color: #5984C3; +} +#sectionMenu a { + font-size: 13px; + color: #FFFFFF; + text-decoration: none; + padding: 1px 5px 1px 5px; +} +#sectionMenu a:hover { + color: #000000; + background-color: #FFCC33; +} + + +/* Maintainer Bar */ + +table.maintainer { + background-color: #ddddee; + padding:4px 8px; + border:1px solid #ccccdd; + text-align: Center; +} + +table.maintainer td { + background-color: #ddddee; + font-family: Verdana; + font-size: 15px; +} + +table.maintainer a { + font-size: 15px; +} + +table.maintainer a:hover { + background:#eeeeff; + color: #000000; + font-family: Verdana; + font-size: 15px; +} + + +/* Admin Bar */ + +table.admin { + background-color: #FEE3CB; + padding:4px 8px; + border:1px solid #FBBB95; + text-align: Center; +} + +table.admin td { + background-color: #FEE3CB; + font-family: Verdana; + font-size: 15px; +} + +table.admin a { + font-size: 15px; +} + +table.admin a:hover { + background:#eeeeff; + color: #000000; + font-family: Verdana; + font-size: 15px; +} + +/* Message Bar */ + +table.message { + background-color: #FFCC00; + padding:4px 8px; + border: 1px solid #FF6600; + text-align: Center; +} + +table.message td { + background-color: #FFCC00; + font-family: Verdana; + font-size: 15px; +} + +table.message a { + font-size: 15px; +} + +table.message a:hover { + background:#eeeeff; + color: #000000; + font-family: Verdana; + font-size: 15px; +} + + +/* Forum Bar */ + +table.forumbar { + background-color: #99CCCC; + padding:4px 8px; + border: 1px solid #5984C3; + text-align: Center; +} + +table.forumbar td { + background-color: #DDEEFF; + font-family: Verdana; + font-size: 15px; +} + +table.forumbar a { + font-size: 15px; +} + +table.forumbar a:hover { + background:#eeeeff; + color: #000000; + font-family: Verdana; + font-size: 15px; +} + + +.button +{ + background-color: #5984C3; color: white; + font-family: "verdana bitstream vera sans", verdana, sans-serif; font-size: 13px; + border-width:1px; border-style:solid; border-color: #C0C0C0; + font-weight: bold; padding: 0; +} + + + +UL.simple { + PADDING-RIGHT: 0px; + PADDING-LEFT: 20px; + PADDING-BOTTOM: 0px; + PADDING-TOP: 0px; + MARGIN: 0px 0px 1em; + LIST-STYLE-TYPE: none; + FONT-SIZE: 12px; +} +SPAN.simple { + font-size: 15px; + font-weight: bold; +} + + +
Propchange: branches/danny-web/reactos.org/htdocs/compat/css/style.css ------------------------------------------------------------------------------ svn:eol-style = native
Copied: branches/danny-web/reactos.org/htdocs/compat/js/search.js (from r40251, branches/danny-web/reactos.org/htdocs/compat/search.js) URL: http://svn.reactos.org/svn/reactos/branches/danny-web/reactos.org/htdocs/com... ============================================================================== --- branches/danny-web/reactos.org/htdocs/compat/search.js [iso-8859-1] (original) +++ branches/danny-web/reactos.org/htdocs/compat/js/search.js [iso-8859-1] Thu Mar 26 14:08:27 2009 @@ -1,353 +1,353 @@ -<!-- - - // Ajax driven search box - // (c) by Klemens Friedl 2006 - http://www.reactos.org/support/ - - - // Global variable for the request-object - var http_request = false; - var tSearch = ""; - var tView = ""; - var tWhere = ""; - var tPicAnimation = ""; - var tResults = ""; - //var twebsite = "http://localhost/reactos.org/support/index.php"; - //var twebsite2 = "http://localhost/reactos.org/"; - var twebsite = "http://www.reactos.org/support/index.php"; - var twebsite2 = "http://www.reactos.org/"; - - - 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>"; - 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"><b><a href=""+twebsite+"?page=db&view=comp&sec=category&group=" + itemid + "">" + itemname + "</a></b></font></td> \n"; - if (vendorid != 0) { - tempb += "<td width="30%" valign="top" bgcolor="" + colorcur + ""><font size="2"><a href=""+twebsite+"?page=db&view=comp&sec=vendor&vendor=" + 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>"; - return tempb; - } - - function writeItemList_style_footer() { - return "</table>"; - } - - function write_bar_entry(itemid, itemname) { - var tempb = ""; - tempb += "<a href=""+twebsite+"?page=db&view=comp&sec=category&group=" + itemid + "">• " + itemname + "</a>\n"; - return tempb; - } - - function write_rosweb_entry(itemname, itemid) { - var tempb = ""; - tempb += "<a href=""+twebsite2+"?page=" + itemid + "">• " + itemname + "</a>\n"; - return tempb; - } - - function write_compsubmit_header() { - var tempa = ""; - - tempa = "<table width="500" border="0" cellpadding="1" cellspacing="1">\n"; - tempa += "<tr bgcolor="#5984C3"> \n"; - tempa += "<td width="60%"> <div align="center"><font color="#FFFFFF" face="Arial, Helvetica, sans-serif"><strong>Application</strong></font></div></td> \n"; - tempa += "<td width="40%"> <div align="center"><font color="#FFFFFF" face="Arial, Helvetica, sans-serif"><strong>Vendor</strong></font></div></td> \n"; - tempa += "</tr>"; - return tempa; - } - - function write_compsubmit_entry(itemid, itemname, vendorname, colorcur) { - var tempb = ""; - - tempb += "<tr> \n"; - tempb += "<td width="60%" valign="top" bgcolor="" + colorcur + ""><font size="2"><b><a href=""+twebsite+"?page=db&view=comp&sec=category&group=" + itemid + "">" + itemname + "</a></b></font></td> \n"; - if (vendorname != ". ") { - tempb += "<td width="40%" valign="top" bgcolor="" + colorcur + ""><font size="2">" + vendorname + "</font></td> \n"; - } - else { - tempb += "<td width="40%" valign="top" bgcolor="" + colorcur + ""><font size="2"><i>no vendor defined</i></font></td> \n"; - } - tempb += "</tr>"; - return tempb; - } - - function write_vendorsubmit_header() { - var tempa = ""; - - tempa = "<table width="500" border="0" cellpadding="1" cellspacing="1">\n"; - tempa += "<tr bgcolor="#5984C3"> \n"; - tempa += "<td width="50%"> <div align="center"><font color="#FFFFFF" face="Arial, Helvetica, sans-serif"><strong>Vendor</strong></font></div></td> \n"; - tempa += "<td width="50%"> <div align="center"><font color="#FFFFFF" face="Arial, Helvetica, sans-serif"><strong>Website</strong></font></div></td> \n"; - tempa += "</tr>"; - return tempa; - } - - function write_vendorsubmit_entry(vendorid, vendorname, vendorurl, colorcur) { - var tempb = ""; - - tempb += "<tr> \n"; - tempb += "<td width="50%" valign="top" bgcolor="" + colorcur + ""><font size="2"><b><a href="javascript://" onclick="UseThisVendor("+vendorid+",'"+vendorname+"')">" + vendorname + "</a></b></font></td> \n"; - if (vendorurl != ".") { - tempb += "<td width="50%" valign="top" bgcolor="" + colorcur + ""><font size="2">" + vendorurl + "</font></td> \n"; - } - else { - tempb += "<td width="50%" valign="top" bgcolor="" + colorcur + ""><font size="2"> </font></td> \n"; - } - tempb += "</tr>"; - return tempb; - } - - function deleteItemList() { - document.getElementById(tResults).innerHTML = ""; - } - - function loadItemList(asearch,aview,awhere,apicani,aoutput) { - - // Prevent extra load, when using onblur and nothing has changed - if (tSearch == asearch) { - return 0; - } - - tSearch=asearch; - tView=aview; - tWhere=awhere; - tPicAnimation=apicani; - tResults=aoutput; - - if (tWhere == "vendor") { - checkFields(); - } - if (tResults == "submitresult" && tSearch.length < 2) { - enableButtonWizPageNext2(1); - } - - if (asearch.length > 1) { - document.getElementById(tResults).style.display = "block"; - document.getElementById(tPicAnimation).style.display = "inline"; - if (asearch != "") { - setCursor('wait'); - if (http_request && (http_request.readyState == 2 || http_request.readyState == 3)) { - http_request.abort(); // stop running request - } - - - if (tWhere == "comp") { - makeRequest(twebsite+'?page=dat&export=grplst&search='+asearch); - } - else if (tWhere == "vendor") { - //alert("vendor"); - makeRequest(twebsite+'?page=dat&export=vdrlst&search='+asearch); - } - else if (tWhere.substr(0, 6) == "roscms") { - //alert("vendor"); - makeRequest(twebsite2+'roscms/search.php?search='+asearch+'&searchlang='+tWhere.substr(7, 2)); - } - } - } - else { - document.getElementById(tResults).style.display = "none"; - document.getElementById(tPicAnimation).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 = ""; - - // Table header: - if (tView == "table") { - lstData = writeItemList_style_header(); - } - else if (tView == "submit") { - lstData = write_compsubmit_header(); - } - else if (tView == "submit_vendor") { - lstData = write_vendorsubmit_header(); - } - - // XML schema: - if (tWhere == "comp") { - var items = http_request.responseXML.getElementsByTagName("item"); - var descs = http_request.responseXML.getElementsByTagName("desc"); - var vendo = http_request.responseXML.getElementsByTagName("vendor"); - } - else if (tWhere == "vendor") { - var vendo = http_request.responseXML.getElementsByTagName("vendor"); - var vendurl = http_request.responseXML.getElementsByTagName("url"); - } - else if (tWhere.substr(0, 6) == "roscms") { - var webcontent = http_request.responseXML.getElementsByTagName("content"); - } - - // Colors: - var colorcur=""; - var color1="#E2E2E2"; - var color2="#EEEEEE"; - var colorcounter=0; - - // XML length: - var xmllength=0; - if (tWhere == "comp") { - xmllength = items.length; - } - else if (tWhere == "vendor") { - xmllength = vendo.length; - } - else if (tWhere.substr(0, 6) == "roscms") { - xmllength = webcontent.length; - } - - // XML-Loop: - for (var i = 0; i < xmllength; i++) { - // Table colors: - colorcounter++; - if (colorcounter == "1") { - colorcur = color1; - } - else if (colorcounter == "2") { - colorcounter="0"; - colorcur = color2; - } - - // Table data: - if (tView == "table") { - 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); - } - else if (tView == "submit") { - lstData += write_compsubmit_entry(items[i].getAttributeNode("id").value, items[i].firstChild.data, vendo[i].firstChild.data, colorcur); - } - else if (tView == "bar") { - lstData += write_bar_entry(items[i].getAttributeNode("id").value, items[i].firstChild.data); - } - else if (tView == "submit_vendor") { - lstData += write_vendorsubmit_entry(vendo[i].getAttributeNode("id").value, vendo[i].firstChild.data, vendurl[i].firstChild.data, colorcur); - } - else if (tView == "rosweb") { - lstData += write_rosweb_entry(webcontent[i].getAttributeNode("id").value, webcontent[i].firstChild.data); - } - - } - - // Table footer: - if (tView == "table") { - lstData += writeItemList_style_footer(); - } - else if (tView == "submit") { - lstData += writeItemList_style_footer(); - lstData += "<p>Click on an application in the list above or <a href="javascript://" onclick="WizPag2()">submit new application</a> to the database.</p>"; - } - else if (tView == "submit_vendor") { - lstData += writeItemList_style_footer(); - lstData += "<p>Click on a vendor name in the search result list above, choose a vendor from the <b><a href="javascript://" onclick="SelectVendor()">vendor list</a></b> or <b><a href="javascript://" onclick="AddVendor()">submit a new vendor</a></b> to the database.</p>"; - } - - if (tResults == "submitresult") { - enableButtonWizPageNext2(1); - } - - // HTML output: - document.getElementById(tResults).innerHTML = lstData; - } - else { - // No related database entries found: - if (tView == "table") { - document.getElementById(tResults).innerHTML = "<p>Your search - " + tSearch + " - did not match any database entries.</p>"; - } - else if (tView == "bar") { - document.getElementById(tResults).innerHTML = "<center>no entries found</center>"; - } - else if (tView == "submit") { - document.getElementById(tResults).innerHTML = "<p>Your search - " + tSearch + " - did not match any database entries.</p><p><b><a href="javascript://" onclick="WizPag2()">Submit new application</a></b> to the database.</p>"; - enableButtonWizPageNext2(2); - } - else if (tView == "submit_vendor") { - document.getElementById(tResults).innerHTML = "<p>Your search - " + tSearch + " - did not match any database entries.</p><p>Choose a vendor from the <b><a href="javascript://" onclick="SelectVendor()">vendor list</a></b> or <b><a href="javascript://" onclick="AddVendor()">submit a new vendor</a></b> to the database.</p>"; - } - else if (tView == "rosweb") { - document.getElementById(tResults).innerHTML = "<center>no entries found</center>"; - } - } - - // reset mouse cursor - setCursor('auto'); - - // reset loading picture: - document.getElementById(tPicAnimation).style.display = "none"; - - } - else { - alert('There was a problem with the request:\n' + http_request.statusText); - } - } - - } - +<!-- + + // Ajax driven search box + // (c) by Klemens Friedl 2006 - http://www.reactos.org/support/ + + + // Global variable for the request-object + var http_request = false; + var tSearch = ""; + var tView = ""; + var tWhere = ""; + var tPicAnimation = ""; + var tResults = ""; + //var twebsite = "http://localhost/reactos.org/support/index.php"; + //var twebsite2 = "http://localhost/reactos.org/"; + var twebsite = "http://www.reactos.org/support/index.php"; + var twebsite2 = "http://www.reactos.org/"; + + + 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>"; + 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\"><b><a href=\""+twebsite+"?page=db&view=comp&sec=category&group=" + itemid + "\">" + itemname + "</a></b></font></td> \n"; + if (vendorid != 0) { + tempb += "<td width=\"30%\" valign=\"top\" bgcolor=\"" + colorcur + "\"><font size=\"2\"><a href=\""+twebsite+"?page=db&view=comp&sec=vendor&vendor=" + 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>"; + return tempb; + } + + function writeItemList_style_footer() { + return "</table>"; + } + + function write_bar_entry(itemid, itemname) { + var tempb = ""; + tempb += "<a href=\""+twebsite+"?page=db&view=comp&sec=category&group=" + itemid + "\">• " + itemname + "</a>\n"; + return tempb; + } + + function write_rosweb_entry(itemname, itemid) { + var tempb = ""; + tempb += "<a href=\""+twebsite2+"?page=" + itemid + "\">• " + itemname + "</a>\n"; + return tempb; + } + + function write_compsubmit_header() { + var tempa = ""; + + tempa = "<table width=\"500\" border=\"0\" cellpadding=\"1\" cellspacing=\"1\">\n"; + tempa += "<tr bgcolor=\"#5984C3\"> \n"; + tempa += "<td width=\"60%\"> <div align=\"center\"><font color=\"#FFFFFF\" face=\"Arial, Helvetica, sans-serif\"><strong>Application</strong></font></div></td> \n"; + tempa += "<td width=\"40%\"> <div align=\"center\"><font color=\"#FFFFFF\" face=\"Arial, Helvetica, sans-serif\"><strong>Vendor</strong></font></div></td> \n"; + tempa += "</tr>"; + return tempa; + } + + function write_compsubmit_entry(itemid, itemname, vendorname, colorcur) { + var tempb = ""; + + tempb += "<tr> \n"; + tempb += "<td width=\"60%\" valign=\"top\" bgcolor=\"" + colorcur + "\"><font size=\"2\"><b><a href=\""+twebsite+"?page=db&view=comp&sec=category&group=" + itemid + "\">" + itemname + "</a></b></font></td> \n"; + if (vendorname != ". ") { + tempb += "<td width=\"40%\" valign=\"top\" bgcolor=\"" + colorcur + "\"><font size=\"2\">" + vendorname + "</font></td> \n"; + } + else { + tempb += "<td width=\"40%\" valign=\"top\" bgcolor=\"" + colorcur + "\"><font size=\"2\"><i>no vendor defined</i></font></td> \n"; + } + tempb += "</tr>"; + return tempb; + } + + function write_vendorsubmit_header() { + var tempa = ""; + + tempa = "<table width=\"500\" border=\"0\" cellpadding=\"1\" cellspacing=\"1\">\n"; + tempa += "<tr bgcolor=\"#5984C3\"> \n"; + tempa += "<td width=\"50%\"> <div align=\"center\"><font color=\"#FFFFFF\" face=\"Arial, Helvetica, sans-serif\"><strong>Vendor</strong></font></div></td> \n"; + tempa += "<td width=\"50%\"> <div align=\"center\"><font color=\"#FFFFFF\" face=\"Arial, Helvetica, sans-serif\"><strong>Website</strong></font></div></td> \n"; + tempa += "</tr>"; + return tempa; + } + + function write_vendorsubmit_entry(vendorid, vendorname, vendorurl, colorcur) { + var tempb = ""; + + tempb += "<tr> \n"; + tempb += "<td width=\"50%\" valign=\"top\" bgcolor=\"" + colorcur + "\"><font size=\"2\"><b><a href=\"javascript:\/\/\" onclick=\"UseThisVendor("+vendorid+",\'"+vendorname+"\')\">" + vendorname + "</a></b></font></td> \n"; + if (vendorurl != ".") { + tempb += "<td width=\"50%\" valign=\"top\" bgcolor=\"" + colorcur + "\"><font size=\"2\">" + vendorurl + "</font></td> \n"; + } + else { + tempb += "<td width=\"50%\" valign=\"top\" bgcolor=\"" + colorcur + "\"><font size=\"2\"> </font></td> \n"; + } + tempb += "</tr>"; + return tempb; + } + + function deleteItemList() { + document.getElementById(tResults).innerHTML = ""; + } + + function loadItemList(asearch,aview,awhere,apicani,aoutput) { + + // Prevent extra load, when using onblur and nothing has changed + if (tSearch == asearch) { + return 0; + } + + tSearch=asearch; + tView=aview; + tWhere=awhere; + tPicAnimation=apicani; + tResults=aoutput; + + if (tWhere == "vendor") { + checkFields(); + } + if (tResults == "submitresult" && tSearch.length < 2) { + enableButtonWizPageNext2(1); + } + + if (asearch.length > 1) { + document.getElementById(tResults).style.display = "block"; + document.getElementById(tPicAnimation).style.display = "inline"; + if (asearch != "") { + setCursor('wait'); + if (http_request && (http_request.readyState == 2 || http_request.readyState == 3)) { + http_request.abort(); // stop running request + } + + + if (tWhere == "comp") { + makeRequest(twebsite+'?page=dat&export=grplst&search='+asearch); + } + else if (tWhere == "vendor") { + //alert("vendor"); + makeRequest(twebsite+'?page=dat&export=vdrlst&search='+asearch); + } + else if (tWhere.substr(0, 6) == "roscms") { + //alert("vendor"); + makeRequest(twebsite2+'roscms/search.php?search='+asearch+'&searchlang='+tWhere.substr(7, 2)); + } + } + } + else { + document.getElementById(tResults).style.display = "none"; + document.getElementById(tPicAnimation).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 = ""; + + // Table header: + if (tView == "table") { + lstData = writeItemList_style_header(); + } + else if (tView == "submit") { + lstData = write_compsubmit_header(); + } + else if (tView == "submit_vendor") { + lstData = write_vendorsubmit_header(); + } + + // XML schema: + if (tWhere == "comp") { + var items = http_request.responseXML.getElementsByTagName("item"); + var descs = http_request.responseXML.getElementsByTagName("desc"); + var vendo = http_request.responseXML.getElementsByTagName("vendor"); + } + else if (tWhere == "vendor") { + var vendo = http_request.responseXML.getElementsByTagName("vendor"); + var vendurl = http_request.responseXML.getElementsByTagName("url"); + } + else if (tWhere.substr(0, 6) == "roscms") { + var webcontent = http_request.responseXML.getElementsByTagName("content"); + } + + // Colors: + var colorcur=""; + var color1="#E2E2E2"; + var color2="#EEEEEE"; + var colorcounter=0; + + // XML length: + var xmllength=0; + if (tWhere == "comp") { + xmllength = items.length; + } + else if (tWhere == "vendor") { + xmllength = vendo.length; + } + else if (tWhere.substr(0, 6) == "roscms") { + xmllength = webcontent.length; + } + + // XML-Loop: + for (var i = 0; i < xmllength; i++) { + // Table colors: + colorcounter++; + if (colorcounter == "1") { + colorcur = color1; + } + else if (colorcounter == "2") { + colorcounter="0"; + colorcur = color2; + } + + // Table data: + if (tView == "table") { + 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); + } + else if (tView == "submit") { + lstData += write_compsubmit_entry(items[i].getAttributeNode("id").value, items[i].firstChild.data, vendo[i].firstChild.data, colorcur); + } + else if (tView == "bar") { + lstData += write_bar_entry(items[i].getAttributeNode("id").value, items[i].firstChild.data); + } + else if (tView == "submit_vendor") { + lstData += write_vendorsubmit_entry(vendo[i].getAttributeNode("id").value, vendo[i].firstChild.data, vendurl[i].firstChild.data, colorcur); + } + else if (tView == "rosweb") { + lstData += write_rosweb_entry(webcontent[i].getAttributeNode("id").value, webcontent[i].firstChild.data); + } + + } + + // Table footer: + if (tView == "table") { + lstData += writeItemList_style_footer(); + } + else if (tView == "submit") { + lstData += writeItemList_style_footer(); + lstData += "<p>Click on an application in the list above or <a href=\"javascript://\" onclick=\"WizPag2()\">submit new application</a> to the database.</p>"; + } + else if (tView == "submit_vendor") { + lstData += writeItemList_style_footer(); + lstData += "<p>Click on a vendor name in the search result list above, choose a vendor from the <b><a href=\"javascript://\" onclick=\"SelectVendor()\">vendor list</a></b> or <b><a href=\"javascript://\" onclick=\"AddVendor()\">submit a new vendor</a></b> to the database.</p>"; + } + + if (tResults == "submitresult") { + enableButtonWizPageNext2(1); + } + + // HTML output: + document.getElementById(tResults).innerHTML = lstData; + } + else { + // No related database entries found: + if (tView == "table") { + document.getElementById(tResults).innerHTML = "<p>Your search - " + tSearch + " - did not match any database entries.</p>"; + } + else if (tView == "bar") { + document.getElementById(tResults).innerHTML = "<center>no entries found</center>"; + } + else if (tView == "submit") { + document.getElementById(tResults).innerHTML = "<p>Your search - " + tSearch + " - did not match any database entries.</p><p><b><a href=\"javascript://\" onclick=\"WizPag2()\">Submit new application</a></b> to the database.</p>"; + enableButtonWizPageNext2(2); + } + else if (tView == "submit_vendor") { + document.getElementById(tResults).innerHTML = "<p>Your search - " + tSearch + " - did not match any database entries.</p><p>Choose a vendor from the <b><a href=\"javascript://\" onclick=\"SelectVendor()\">vendor list</a></b> or <b><a href=\"javascript://\" onclick=\"AddVendor()\">submit a new vendor</a></b> to the database.</p>"; + } + else if (tView == "rosweb") { + document.getElementById(tResults).innerHTML = "<center>no entries found</center>"; + } + } + + // reset mouse cursor + setCursor('auto'); + + // reset loading picture: + document.getElementById(tPicAnimation).style.display = "none"; + + } + else { + alert('There was a problem with the request:\n' + http_request.statusText); + } + } + + } + -->
Propchange: branches/danny-web/reactos.org/htdocs/compat/js/search.js ------------------------------------------------------------------------------ svn:eol-style = native
Propchange: branches/danny-web/reactos.org/htdocs/compat/js/smoothscroll.js ------------------------------------------------------------------------------ svn:eol-style = native
Removed: branches/danny-web/reactos.org/htdocs/compat/search.js URL: http://svn.reactos.org/svn/reactos/branches/danny-web/reactos.org/htdocs/com... ============================================================================== --- branches/danny-web/reactos.org/htdocs/compat/search.js [iso-8859-1] (original) +++ branches/danny-web/reactos.org/htdocs/compat/search.js (removed) @@ -1,353 +1,0 @@ -<!-- - - // Ajax driven search box - // (c) by Klemens Friedl 2006 - http://www.reactos.org/support/ - - - // Global variable for the request-object - var http_request = false; - var tSearch = ""; - var tView = ""; - var tWhere = ""; - var tPicAnimation = ""; - var tResults = ""; - //var twebsite = "http://localhost/reactos.org/support/index.php"; - //var twebsite2 = "http://localhost/reactos.org/"; - var twebsite = "http://www.reactos.org/support/index.php"; - var twebsite2 = "http://www.reactos.org/"; - - - 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>"; - 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"><b><a href=""+twebsite+"?page=db&view=comp&sec=category&group=" + itemid + "">" + itemname + "</a></b></font></td> \n"; - if (vendorid != 0) { - tempb += "<td width="30%" valign="top" bgcolor="" + colorcur + ""><font size="2"><a href=""+twebsite+"?page=db&view=comp&sec=vendor&vendor=" + 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>"; - return tempb; - } - - function writeItemList_style_footer() { - return "</table>"; - } - - function write_bar_entry(itemid, itemname) { - var tempb = ""; - tempb += "<a href=""+twebsite+"?page=db&view=comp&sec=category&group=" + itemid + "">• " + itemname + "</a>\n"; - return tempb; - } - - function write_rosweb_entry(itemname, itemid) { - var tempb = ""; - tempb += "<a href=""+twebsite2+"?page=" + itemid + "">• " + itemname + "</a>\n"; - return tempb; - } - - function write_compsubmit_header() { - var tempa = ""; - - tempa = "<table width="500" border="0" cellpadding="1" cellspacing="1">\n"; - tempa += "<tr bgcolor="#5984C3"> \n"; - tempa += "<td width="60%"> <div align="center"><font color="#FFFFFF" face="Arial, Helvetica, sans-serif"><strong>Application</strong></font></div></td> \n"; - tempa += "<td width="40%"> <div align="center"><font color="#FFFFFF" face="Arial, Helvetica, sans-serif"><strong>Vendor</strong></font></div></td> \n"; - tempa += "</tr>"; - return tempa; - } - - function write_compsubmit_entry(itemid, itemname, vendorname, colorcur) { - var tempb = ""; - - tempb += "<tr> \n"; - tempb += "<td width="60%" valign="top" bgcolor="" + colorcur + ""><font size="2"><b><a href=""+twebsite+"?page=db&view=comp&sec=category&group=" + itemid + "">" + itemname + "</a></b></font></td> \n"; - if (vendorname != ". ") { - tempb += "<td width="40%" valign="top" bgcolor="" + colorcur + ""><font size="2">" + vendorname + "</font></td> \n"; - } - else { - tempb += "<td width="40%" valign="top" bgcolor="" + colorcur + ""><font size="2"><i>no vendor defined</i></font></td> \n"; - } - tempb += "</tr>"; - return tempb; - } - - function write_vendorsubmit_header() { - var tempa = ""; - - tempa = "<table width="500" border="0" cellpadding="1" cellspacing="1">\n"; - tempa += "<tr bgcolor="#5984C3"> \n"; - tempa += "<td width="50%"> <div align="center"><font color="#FFFFFF" face="Arial, Helvetica, sans-serif"><strong>Vendor</strong></font></div></td> \n"; - tempa += "<td width="50%"> <div align="center"><font color="#FFFFFF" face="Arial, Helvetica, sans-serif"><strong>Website</strong></font></div></td> \n"; - tempa += "</tr>"; - return tempa; - } - - function write_vendorsubmit_entry(vendorid, vendorname, vendorurl, colorcur) { - var tempb = ""; - - tempb += "<tr> \n"; - tempb += "<td width="50%" valign="top" bgcolor="" + colorcur + ""><font size="2"><b><a href="javascript://" onclick="UseThisVendor("+vendorid+",'"+vendorname+"')">" + vendorname + "</a></b></font></td> \n"; - if (vendorurl != ".") { - tempb += "<td width="50%" valign="top" bgcolor="" + colorcur + ""><font size="2">" + vendorurl + "</font></td> \n"; - } - else { - tempb += "<td width="50%" valign="top" bgcolor="" + colorcur + ""><font size="2"> </font></td> \n"; - } - tempb += "</tr>"; - return tempb; - } - - function deleteItemList() { - document.getElementById(tResults).innerHTML = ""; - } - - function loadItemList(asearch,aview,awhere,apicani,aoutput) { - - // Prevent extra load, when using onblur and nothing has changed - if (tSearch == asearch) { - return 0; - } - - tSearch=asearch; - tView=aview; - tWhere=awhere; - tPicAnimation=apicani; - tResults=aoutput; - - if (tWhere == "vendor") { - checkFields(); - } - if (tResults == "submitresult" && tSearch.length < 2) { - enableButtonWizPageNext2(1); - } - - if (asearch.length > 1) { - document.getElementById(tResults).style.display = "block"; - document.getElementById(tPicAnimation).style.display = "inline"; - if (asearch != "") { - setCursor('wait'); - if (http_request && (http_request.readyState == 2 || http_request.readyState == 3)) { - http_request.abort(); // stop running request - } - - - if (tWhere == "comp") { - makeRequest(twebsite+'?page=dat&export=grplst&search='+asearch); - } - else if (tWhere == "vendor") { - //alert("vendor"); - makeRequest(twebsite+'?page=dat&export=vdrlst&search='+asearch); - } - else if (tWhere.substr(0, 6) == "roscms") { - //alert("vendor"); - makeRequest(twebsite2+'roscms/search.php?search='+asearch+'&searchlang='+tWhere.substr(7, 2)); - } - } - } - else { - document.getElementById(tResults).style.display = "none"; - document.getElementById(tPicAnimation).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 = ""; - - // Table header: - if (tView == "table") { - lstData = writeItemList_style_header(); - } - else if (tView == "submit") { - lstData = write_compsubmit_header(); - } - else if (tView == "submit_vendor") { - lstData = write_vendorsubmit_header(); - } - - // XML schema: - if (tWhere == "comp") { - var items = http_request.responseXML.getElementsByTagName("item"); - var descs = http_request.responseXML.getElementsByTagName("desc"); - var vendo = http_request.responseXML.getElementsByTagName("vendor"); - } - else if (tWhere == "vendor") { - var vendo = http_request.responseXML.getElementsByTagName("vendor"); - var vendurl = http_request.responseXML.getElementsByTagName("url"); - } - else if (tWhere.substr(0, 6) == "roscms") { - var webcontent = http_request.responseXML.getElementsByTagName("content"); - } - - // Colors: - var colorcur=""; - var color1="#E2E2E2"; - var color2="#EEEEEE"; - var colorcounter=0; - - // XML length: - var xmllength=0; - if (tWhere == "comp") { - xmllength = items.length; - } - else if (tWhere == "vendor") { - xmllength = vendo.length; - } - else if (tWhere.substr(0, 6) == "roscms") { - xmllength = webcontent.length; - } - - // XML-Loop: - for (var i = 0; i < xmllength; i++) { - // Table colors: - colorcounter++; - if (colorcounter == "1") { - colorcur = color1; - } - else if (colorcounter == "2") { - colorcounter="0"; - colorcur = color2; - } - - // Table data: - if (tView == "table") { - 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); - } - else if (tView == "submit") { - lstData += write_compsubmit_entry(items[i].getAttributeNode("id").value, items[i].firstChild.data, vendo[i].firstChild.data, colorcur); - } - else if (tView == "bar") { - lstData += write_bar_entry(items[i].getAttributeNode("id").value, items[i].firstChild.data); - } - else if (tView == "submit_vendor") { - lstData += write_vendorsubmit_entry(vendo[i].getAttributeNode("id").value, vendo[i].firstChild.data, vendurl[i].firstChild.data, colorcur); - } - else if (tView == "rosweb") { - lstData += write_rosweb_entry(webcontent[i].getAttributeNode("id").value, webcontent[i].firstChild.data); - } - - } - - // Table footer: - if (tView == "table") { - lstData += writeItemList_style_footer(); - } - else if (tView == "submit") { - lstData += writeItemList_style_footer(); - lstData += "<p>Click on an application in the list above or <a href="javascript://" onclick="WizPag2()">submit new application</a> to the database.</p>"; - } - else if (tView == "submit_vendor") { - lstData += writeItemList_style_footer(); - lstData += "<p>Click on a vendor name in the search result list above, choose a vendor from the <b><a href="javascript://" onclick="SelectVendor()">vendor list</a></b> or <b><a href="javascript://" onclick="AddVendor()">submit a new vendor</a></b> to the database.</p>"; - } - - if (tResults == "submitresult") { - enableButtonWizPageNext2(1); - } - - // HTML output: - document.getElementById(tResults).innerHTML = lstData; - } - else { - // No related database entries found: - if (tView == "table") { - document.getElementById(tResults).innerHTML = "<p>Your search - " + tSearch + " - did not match any database entries.</p>"; - } - else if (tView == "bar") { - document.getElementById(tResults).innerHTML = "<center>no entries found</center>"; - } - else if (tView == "submit") { - document.getElementById(tResults).innerHTML = "<p>Your search - " + tSearch + " - did not match any database entries.</p><p><b><a href="javascript://" onclick="WizPag2()">Submit new application</a></b> to the database.</p>"; - enableButtonWizPageNext2(2); - } - else if (tView == "submit_vendor") { - document.getElementById(tResults).innerHTML = "<p>Your search - " + tSearch + " - did not match any database entries.</p><p>Choose a vendor from the <b><a href="javascript://" onclick="SelectVendor()">vendor list</a></b> or <b><a href="javascript://" onclick="AddVendor()">submit a new vendor</a></b> to the database.</p>"; - } - else if (tView == "rosweb") { - document.getElementById(tResults).innerHTML = "<center>no entries found</center>"; - } - } - - // reset mouse cursor - setCursor('auto'); - - // reset loading picture: - document.getElementById(tPicAnimation).style.display = "none"; - - } - else { - alert('There was a problem with the request:\n' + http_request.statusText); - } - } - - } - --->
Removed: branches/danny-web/reactos.org/htdocs/compat/smoothscroll.js URL: http://svn.reactos.org/svn/reactos/branches/danny-web/reactos.org/htdocs/com... ============================================================================== --- branches/danny-web/reactos.org/htdocs/compat/smoothscroll.js [iso-8859-1] (original) +++ branches/danny-web/reactos.org/htdocs/compat/smoothscroll.js (removed) @@ -1,144 +1,0 @@ -/* Smooth scrolling - Changes links that link to other parts of this page to scroll - smoothly to those links rather than jump to them directly, which - can be a little disorienting. - - sil, http://www.kryogenix.org/ - - v1.0 2003-11-11 - v1.1 2005-06-16 wrap it up in an object -*/ - -var ss = { - fixAllLinks: function() { - // Get a list of all links in the page - var allLinks = document.getElementsByTagName('a'); - // Walk through the list - for (var i=0;i<allLinks.length;i++) { - var lnk = allLinks[i]; - if ((lnk.href && lnk.href.indexOf('#') != -1) && - ( (lnk.pathname == location.pathname) || - ('/'+lnk.pathname == location.pathname) ) && - (lnk.search == location.search)) { - // If the link is internal to the page (begins in #) - // then attach the smoothScroll function as an onclick - // event handler - ss.addEvent(lnk,'click',ss.smoothScroll); - } - } - }, - - smoothScroll: function(e) { - // This is an event handler; get the clicked on element, - // in a cross-browser fashion - if (window.event) { - target = window.event.srcElement; - } else if (e) { - target = e.target; - } else return; - - // Make sure that the target is an element, not a text node - // within an element - if (target.nodeName.toLowerCase() != 'a') { - target = target.parentNode; - } - - // Paranoia; check this is an A tag - if (target.nodeName.toLowerCase() != 'a') return; - - // Find the <a name> tag corresponding to this href - // First strip off the hash (first character) - anchor = target.hash.substr(1); - // Now loop all A tags until we find one with that name - var allLinks = document.getElementsByTagName('a'); - var destinationLink = null; - for (var i=0;i<allLinks.length;i++) { - var lnk = allLinks[i]; - if (lnk.name && (lnk.name == anchor)) { - destinationLink = lnk; - break; - } - } - - // If we didn't find a destination, give up and let the browser do - // its thing - if (!destinationLink) return true; - - // Find the destination's position - var destx = destinationLink.offsetLeft; - var desty = destinationLink.offsetTop; - var thisNode = destinationLink; - while (thisNode.offsetParent && - (thisNode.offsetParent != document.body)) { - thisNode = thisNode.offsetParent; - destx += thisNode.offsetLeft; - desty += thisNode.offsetTop; - } - - // Stop any current scrolling - clearInterval(ss.INTERVAL); - - cypos = ss.getCurrentYPos(); - - ss_stepsize = parseInt((desty-cypos)/ss.STEPS); - ss.INTERVAL = -setInterval('ss.scrollWindow('+ss_stepsize+','+desty+',"'+anchor+'")',10); - - // And stop the actual click happening - if (window.event) { - window.event.cancelBubble = true; - window.event.returnValue = false; - } - if (e && e.preventDefault && e.stopPropagation) { - e.preventDefault(); - e.stopPropagation(); - } - }, - - scrollWindow: function(scramount,dest,anchor) { - wascypos = ss.getCurrentYPos(); - isAbove = (wascypos < dest); - window.scrollTo(0,wascypos + scramount); - iscypos = ss.getCurrentYPos(); - isAboveNow = (iscypos < dest); - if ((isAbove != isAboveNow) || (wascypos == iscypos)) { - // if we've just scrolled past the destination, or - // we haven't moved from the last scroll (i.e., we're at the - // bottom of the page) then scroll exactly to the link - window.scrollTo(0,dest); - // cancel the repeating timer - clearInterval(ss.INTERVAL); - // and jump to the link directly so the URL's right - location.hash = anchor; - } - }, - - getCurrentYPos: function() { - if (document.body && document.body.scrollTop) - return document.body.scrollTop; - if (document.documentElement && document.documentElement.scrollTop) - return document.documentElement.scrollTop; - if (window.pageYOffset) - return window.pageYOffset; - return 0; - }, - - addEvent: function(elm, evType, fn, useCapture) { - // addEvent and removeEvent - // cross-browser event handling for IE5+, NS6 and Mozilla - // By Scott Andrew - if (elm.addEventListener){ - elm.addEventListener(evType, fn, useCapture); - return true; - } else if (elm.attachEvent){ - var r = elm.attachEvent("on"+evType, fn); - return r; - } else { - alert("Handler could not be removed"); - } - } -} - -ss.STEPS = 25; - -ss.addEvent(window,"load",ss.fixAllLinks);
Removed: branches/danny-web/reactos.org/htdocs/compat/style.css URL: http://svn.reactos.org/svn/reactos/branches/danny-web/reactos.org/htdocs/compat/style.css?rev=40251&view=auto ============================================================================== --- branches/danny-web/reactos.org/htdocs/compat/style.css [iso-8859-1] (original) +++ branches/danny-web/reactos.org/htdocs/compat/style.css (removed) @@ -1,383 +1,0 @@ -body { - font-family: Verdana; - font-size: 12px; - margin: 0 0 1em 0; - padding: 0; /* Only affects Opera */ - background: #FFFFFF url('http://localhost/reactos.org/images/topbar.jpg') repeat-x scroll top left; -} - -hr { - margin: 5px 0 5px 0; - color: #8D8D8D; -} - -address { - font-size: 9px; -} - -address p { - margin: 0; -} -address a { - font-size: 9px; - text-decoration:none; -} -address a:hover { - font-size: 9px; - text-decoration:underline; -} - - - -h1, .contentSmallTitle { - display: block; - line-height: normal; - font-size: 14px; - font-weight: bold; - color: #FFFFFF; - background-color: #5984C3; - padding: 0px 0px 1px 10px; - margin-top: 0; -} -h1 a { - font-size: 14px; - font-weight: bold; - color: #FFFFFF; - background-color: #5984C3; - text-decoration:none; -} -h1 a:hover { - font-size: 14px; - font-weight: bold; - color: #FFFFFF; - background-color: #5984C3; - text-decoration:underline; -} - -h2 { - font-size: 22px; - color: #5984C3; - font-weight: bold; - margin-top: 15px; -} - -h3 { - font-size: 18px; - color: #5984C3; - font-weight: bold; - margin-top: 10px; -} - -h4 { - font-size: 16px; - color: #5984C3; - font-weight: bold; - margin-top: 5px; -} - -h5 { - font-size: 14px; - color: #5984C3; - font-weight: bold; - margin-top: 5px; -} - -h6 { - font-size: 12px; - color: #5984C3; - font-weight: bold; -} - -a { - font-size: 12px; - color: #006090; -} - -a:hover { - background-color: #DDEEFF; - color: #000000; -} - -/* set by the generator */ -a.extern { - background: url('http://localhost/reactos.org/wiki/stylesheets/monobook/external.png') no-repeat center right; - padding-right: 14px; -} - -#content, .contentSmall { - padding-right: 3px; - font-size: 12px; - text-align: justify; -} - -#content li { - list-style-image: url('http://localhost/reactos.org/images/bullet.png') -} - -#top { - margin: 0; - background: url('http://localhost/reactos.org/support/images/logo_rsdb.jpg') no-repeat scroll 35px 0; - padding: 103px 0 26px 0; - color: #FFFFFF; - text-align: right; -} - -#top a { - font-size: 13px; - color: #FFFFFF; - text-decoration: none; - padding: 1px 5px 1px 5px; -} - -#top a:hover { - color: #000000; - background-color: #FFCC33; -} - -#topMenu { - font-size: 13px; - margin-left: 300px; - background-color: #5984C3; -} - -#topMenu p { - text-align: left; - margin: 0; -} - -#leftNav { - padding: 0px 10px 10px 7px; -} - -#rightNav { - padding: 0px 3px 0px 5px; - width: 270px; - line-height: 150%; -} - -#rightNav img { - border: 1px solid #000000; - height: 200px; - width: 266px; -} - -#leftNav ol { - margin: 0; - padding: 0; - list-style-type: none; - background-color: #EEEEEE; - border-top: #3F3849 0px solid; - border-right: #3F3849 1px solid; - border-left: #3F3849 1px solid; -} - -#leftNav ol li { - font-size: 13px; - font-weight: bold; - border-bottom: #3f3849 1px solid; -} - -#leftNav ol li a { - display: block; - width: 145px; - padding: 2px 4px 2px 4px; - - color: #3F3849; - text-decoration: none; - background-color: #EEEEEE; -} - -#leftNav ol li a:hover { - color: #000000; - background-color: #FFCC33; -} - -#leftNav ol li a.extern { - background: none; - padding-right: 0px; -} - -#leftNav .navTitle { - padding-left: 12px; - border-top: #3F3849 1px solid; - border-right: #3F3849 1px solid; - border-bottom: #3F3849 1px solid; - border-left: #3F3849 1px solid; - - font-weight: bold; - font-size: 14px; - color: #FFFFFF; - background-color: #5984c3; -} - -#leftNav .navBox { - text-align: center; - padding: 2px; - background-color: #EEEEEE; - border-right: 1px solid #3F3849; - border-bottom: 1px solid #3F3849; - border-left: 1px solid #3F3849; - font-size: 13px; -} - - -#bugzillaContent { - font-size: 12px; -} - -#bugzillaContent table { - font-size: 12px; -} - - - -#sectionMenu { - margin: 0; - font-size: 13px; - background-color: #5984C3; -} -#sectionMenu a { - font-size: 13px; - color: #FFFFFF; - text-decoration: none; - padding: 1px 5px 1px 5px; -} -#sectionMenu a:hover { - color: #000000; - background-color: #FFCC33; -} - - -/* Maintainer Bar */ - -table.maintainer { - background-color: #ddddee; - padding:4px 8px; - border:1px solid #ccccdd; - text-align: Center; -} - -table.maintainer td { - background-color: #ddddee; - font-family: Verdana; - font-size: 15px; -} - -table.maintainer a { - font-size: 15px; -} - -table.maintainer a:hover { - background:#eeeeff; - color: #000000; - font-family: Verdana; - font-size: 15px; -} - - -/* Admin Bar */ - -table.admin { - background-color: #FEE3CB; - padding:4px 8px; - border:1px solid #FBBB95; - text-align: Center; -} - -table.admin td { - background-color: #FEE3CB; - font-family: Verdana; - font-size: 15px; -} - -table.admin a { - font-size: 15px; -} - -table.admin a:hover { - background:#eeeeff; - color: #000000; - font-family: Verdana; - font-size: 15px; -} - -/* Message Bar */ - -table.message { - background-color: #FFCC00; - padding:4px 8px; - border: 1px solid #FF6600; - text-align: Center; -} - -table.message td { - background-color: #FFCC00; - font-family: Verdana; - font-size: 15px; -} - -table.message a { - font-size: 15px; -} - -table.message a:hover { - background:#eeeeff; - color: #000000; - font-family: Verdana; - font-size: 15px; -} - - -/* Forum Bar */ - -table.forumbar { - background-color: #99CCCC; - padding:4px 8px; - border: 1px solid #5984C3; - text-align: Center; -} - -table.forumbar td { - background-color: #DDEEFF; - font-family: Verdana; - font-size: 15px; -} - -table.forumbar a { - font-size: 15px; -} - -table.forumbar a:hover { - background:#eeeeff; - color: #000000; - font-family: Verdana; - font-size: 15px; -} - - -.button -{ - background-color: #5984C3; color: white; - font-family: "verdana bitstream vera sans", verdana, sans-serif; font-size: 13px; - border-width:1px; border-style:solid; border-color: #C0C0C0; - font-weight: bold; padding: 0; -} - - - -UL.simple { - PADDING-RIGHT: 0px; - PADDING-LEFT: 20px; - PADDING-BOTTOM: 0px; - PADDING-TOP: 0px; - MARGIN: 0px 0px 1em; - LIST-STYLE-TYPE: none; - FONT-SIZE: 12px; -} -SPAN.simple { - font-size: 15px; - font-weight: bold; -} - - -