updating to new WineHQ design

This commit is contained in:
Jeremy Newman
2008-12-05 16:44:29 -06:00
parent e738a6d58e
commit acccbed63a
30 changed files with 597 additions and 285 deletions

View File

@@ -1,2 +1,15 @@
<!-- End Content -->
</div>
<b class="rbottom"><b class="r4"></b><b class="r3"></b><b class="r2"></b><b class="r1"></b></b>
</div>
</div>
<div id="footer">
Hosted By
<a href="http://www.codeweavers.com/"><img src="<?php echo BASE; ?>images/cw_logo_sm.png" alt="CodeWeavers"
title="CodeWeavers - Run Windows applications and games on Mac and Linux"></a>
</div>
</body>
</html>

View File

@@ -2,41 +2,60 @@
/*********************************/
/* Application Database - Header */
/*********************************/
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Wine AppDB <?php echo $title; ?></title>
<meta http-equiv="Expires" content="Mon, 06 Jan 1990 00:00:01 GMT">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>WineHQ <?php echo $title; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta HTTP-EQUIV="Expires" CONTENT="Mon, 06 Jan 1990 00:00:01 GMT">
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta name="description" content="Open Source Software for running Windows applications on other operating systems.">
<meta name="keywords" content="windows, linux, macintosh, solaris, freebsd">
<meta name="robots" content="index, follow">
<meta name="copyright" content="Copyright WineHQ.org All Rights Reserved.">
<meta name="language" content="English">
<meta name="revisit-after" content="1">
<link rel="stylesheet" href="<?php echo BASE; ?>styles.css" type="text/css" media="screen">
<script language="JavaScript" src="<?php echo BASE; ?>jquery.js" type="text/javascript"></script>
<script language="JavaScript" src="<?php echo BASE; ?>utils.js" type="text/javascript"></script>
<link rel="stylesheet" href="<?php echo BASE; ?>apidb.css" type="text/css">
<link rel="stylesheet" href="<?php echo BASE; ?>application.css" type="text/css">
<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.2/prototype.js"></script>
<script src="<?php echo BASE; ?>scripts.js" type="text/javascript"></script>
<link rel="icon" type="image/png" href="<?php echo BASE; ?>images/winehq_logo_16.png">
<link rel="shortcut icon" type="image/png" href="<?php echo BASE; ?>images/winehq_logo_16.png">
</head>
<body>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="100%"><a href="<?php echo BASE; ?>"><img src="<?php echo BASE; ?>images/winehq_top_logo.png" width="300" height="99" alt="Wine HQ"></a></td>
<td>
<img src="<?php echo BASE; ?>images/blank.gif" width="10" height="1" alt="">
</td>
<td width="468" align="center" valign="middle">
<!-- BANNER AD -->
<iframe src="http://www.winehq.org/bin/ad" scrolling="no" frameBorder="0" height="60" width="468"></iframe>
<!-- END BANNER AD -->
</td>
<td>
<img src="<?php echo BASE; ?>images/blank.gif" width=10 height=1 alt="">
</td>
</tr>
</table>
</td>
</tr>
</table>
<div id="logo_glass"><a href="<?php echo BASE; ?>"><img src="<?php echo BASE; ?>images/winehq_logo_glass_sm.png" alt=""></a></div>
<div id="logo_text"><a href="<?php echo BASE; ?>"><img src="<?php echo BASE; ?>images/winehq_logo_text.png" alt="WineHQ" title="WineHQ"></a></div>
<div id="logo_blurb"><?php echo preg_replace("/^ - /", "", $title); ?></div>
<div id="search_box">
<form action="http://www.winehq.org/search" id="cse-search-box" style="margin: 0; padding: 0;">
<input type="hidden" name="cx" value="partner-pub-0971840239976722:w9sqbcsxtyf">
<input type="hidden" name="cof" value="FORID:10">
<input type="hidden" name="ie" value="UTF-8">
<span style="color: #ffffff;">Search:</span> <input type="text" name="q" size="20">
</form>
<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en"></script>
</div>
<div id="tabs">
<ul>
<li><a href="http://www.winehq.org/">WineHQ</a></li>
<li><a href="http://wiki.winehq.org/">Wiki</a></li>
<li class="s"><a href="http://appdb.winehq.org/">AppDB</a></li>
<li><a href="http://bugs.winehq.org/">Bugzilla</a></li>
<li><a href="http://forums.winehq.org/">Forums</a></li>
</ul>
</div>
<div id="main_content">
<div class="rbox">
<b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b>
<div class="content" style="padding: 20px 20px 10px 80px">
<!-- Start Content -->

View File

@@ -165,19 +165,7 @@ $str .= '
<tr><td>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="topMenu">
<tr>
<td valign="top" align="left"><img src="'.BASE.'images/winehq_border_top_left.gif" width="6" height="9" alt=""></td>
<td rowspan="3" valign="middle" align="left"><img src="'.BASE.'images/winehq_border_dot_left.gif" width="12" height="3" alt=""></td>
<td width="100%" rowspan="3" align="center"><span class="menuTitle">'.$title.'</span></td>
<td rowspan="3" valign="middle" align="right"><img src="'.BASE.'images/winehq_border_dot_right.gif" width="12" height="3" alt=""></td>
<td valign="top" align="left"><img src="'.BASE.'images/winehq_border_top_right.gif" width="6" height="9" alt=""></td>
</tr>
<tr>
<td><img src="'.BASE.'images/blank.gif" width="1" height="1" alt=""></td>
<td><img src="'.BASE.'images/blank.gif" width="1" height="1" alt=""></td>
</tr>
<tr>
<td valign="bottom" align="right"><img src="'.BASE.'images/winehq_border_bottom_left.gif" width="6" height="9" alt=""></td>
<td valign="bottom" align="right"><img src="'.BASE.'images/winehq_border_bottom_right.gif" width="6" height="9" alt=""></td>
</tr>
</table>
</td></tr>

View File

@@ -138,14 +138,7 @@ function apidb_header($title = 0)
include(BASE."include/header.php");
// Display Sidebar
echo "<table width='100%' border=0 cellspacing=0 cellpadding=0>\n";
echo "<tr valign='top'>\n";
echo "<td width=150>\n";
apidb_sidebar();
echo "</td>\n";
echo "<td width='100%'>\n";
echo html_frame_start($page_title, '100%');
// Display Status Messages
dumpmsgbuffer();
@@ -157,11 +150,6 @@ function apidb_header($title = 0)
*/
function apidb_footer()
{
echo html_frame_end();
//Close Sidebar and Content Well
echo "<br></td></tr></table>\n";
// grab the end of the page generating time
global $sPageGeneratingStartTime;
$sPageGeneratingEndTime = microtime();
@@ -173,7 +161,7 @@ function apidb_footer()
// Display Footer
if(!isset($header_disabled))
include(BASE."include/"."footer.php");
include(BASE."include/"."footer.php");
}
/*
@@ -183,6 +171,11 @@ function apidb_sidebar()
{
global $sidebar_func_list;
echo '
<div id="sidebar">
<ul>
';
//TURN on GLOBAL ADMIN MENU
if ($_SESSION['current']->hasPriv("admin"))
{
@@ -208,6 +201,12 @@ function apidb_sidebar()
$func = $sidebar_func_list[$i];
$func();
}
echo '
</ul>
</div>
';
}

View File

@@ -8,30 +8,7 @@ class htmlmenu {
echo "<form action=\"$form\" method=\"post\">\n";
echo '
<div align=left>
<table width="160" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan=2>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="topMenu">
<tr>
<td width="100%" rowspan="3" align="left"><span class="menuTitle">&nbsp; '.$name.'</span></td>
<td rowspan="3" valign="middle" align="right"><img src="'.BASE.'images/winehq_border_dot_right.gif" alt=""></td>
<td valign="top" align="left"><img src="'.BASE.'images/winehq_border_top_right.gif" alt=""></td>
</tr>
<tr>
<td><img src="'.BASE.'images/blank.gif" width="1" height="1" alt=""></td>
</tr>
<tr>
<td valign="bottom" align="right"><img src="'.BASE.'images/winehq_border_bottom_right.gif" alt=""></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="155" border="0" cellspacing="0" cellpadding="1">
<tr class="topMenu"><td>
<table width="100%" border="0" cellspacing="0" cellpadding="5"><tr><td class="sidemenu">
<li class="top"><p>'.$name.'</p></li>
';
}
@@ -43,33 +20,24 @@ class htmlmenu {
if($shUrl)
{
echo "<a href=\"$shUrl\" class=\"menuLink\">$sName</a>";
} else
echo " <li><p><a href=\"{$shUrl}\">{$sName}</a></p></li>\n";
}
else
{
echo "<div class=\"menuItem\">$sName</div>";
echo " <li><p>{$sName}</a></li>\n";
}
}
function addmisc($sStuff, $sAlign = "left")
{
echo "<div align=\"$sAlign\" class=\"menuItem\">$sStuff</div>\n";
echo "<div align=\"$sAlign\">$sStuff</div>\n";
}
function done($form = null)
{
echo '
</td>
</tr>
</table>
</td></tr>
</table>
</td>
<td><img src="'.BASE.'images/blank.gif" width=5 height=1 alt="-"></td>
</tr>
</table>
</div>
<br>
';
<li class="bot"></li>
';
if ($form)
echo "</form>\n";

View File

@@ -10,14 +10,6 @@ function global_sidebar_menu()
{
global $aClean;
$g = new htmlmenu(APPDB_OWNER." Menu");
$g->add(APPDB_OWNER, APPDB_OWNER_URL);
$g->add("AppDB", BASE);
$g->add("Bugzilla", BUGZILLA_ROOT);
$g->add("Wine Wiki", "http://wiki.winehq.org");
$g->add("Wine Forum", "http://forum.winehq.org");
$g->done();
$g = new htmlmenu("AppDB");
$g->add('Home', BASE.'index.php');
$g->add("Screenshots", BASE."objectManager.php?sClass=screenshot&amp;sTitle=View+Screenshots");
@@ -25,52 +17,14 @@ function global_sidebar_menu()
'sTitle=Browse%20Applications&amp;sOrderBy=appName&amp;bAscending=true');
$g->add('Browse by Developer', BASE.'objectManager.php?sClass=vendor&amp;sTitle=Browse%20by%20Developer');
$g->add("Top 25", BASE."votestats.php");
$g->add("Submit Application", BASE."objectManager.php?sClass=application_queue&amp;".
$g->add("Submit App", BASE."objectManager.php?sClass=application_queue&amp;".
"sTitle=Submit+Application&amp;sAction=add");
$g->add("Help &amp; Documentation", BASE."help/");
$g->add("Help", BASE."help/");
$g->add("Statistics", BASE."appdbStats.php");
$g->add('Distributions ('.distribution::objectGetEntriesCount('accepted').')', BASE.'objectManager.php?sClass=distribution&amp;sTitle=View%20Distributions');
$g->add("Email your suggestions for improving the AppDB", "mailto:appdb@winehq.org");
$g->add("Email Us", "mailto:appdb@winehq.org");
$g->done();
$g = new htmlmenu('Search the AppDB');
$g->addmisc(app_search_box(!empty($aClean['sSearchQuery']) ? $aClean['sSearchQuery'] : ''));
$g->done();
}
function app_search_box($q = '')
{
// google custom search dialog
// used in place of appdb specific search engine code
// Chris Morgan <cmorgan@alum.wpi.edu> maintains
// the search engine settings
$shSearchStr = '
<!-- Google CSE Search Box Begins -->
<script type="text/javascript">
document.write(\'<form id=\"searchbox_013271970634691685804:bc-56dvxydi\" action=\"http://appdb.winehq.org/search_results.php\">\')
document.write(\'<input type="hidden" name="cx" value="013271970634691685804:bc-56dvxydi" >\')
document.write(\'<input type=\"hidden\" name=\"cof" value=\"FORID:11\" >\')
document.write(\'<input name=\"q\" type=\"text\" size=\"20\" >\')
document.write(\'<input type=\"submit\" name=\"sa\" value=\"Search\" >\')
document.write(\'<\/form>\')
</script>
<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_013271970634691685804%3Abc-56dvxydi"></script>
<!-- Google CSE Search Box Ends -->
';
// Search dialog using our own search engine, displayed when
// JavaScript is unavailable
$shSearchStr .= '
<noscript>
<form method="post" action="search.php">
<input type="text" size="20" name="sSearchQuery">
<input type="submit" value="Search">
</form>
</noscript>
';
return $shSearchStr;
}
?>