- fix the 25 errors reported by the w3c html validator (http://validator.w3.org) in appview.php?appid=whatever
- fix the 46 errors reported by the w3c html validator in appview.php?versionid=whatever - fix the 97 errors reported by the w3c html validator in index.php
This commit is contained in:
@@ -220,7 +220,7 @@ TD.stub { color: #0000B1; font-style: italic; text-align: center }
|
||||
/*******************************************************************/
|
||||
|
||||
/* Main table */
|
||||
#mainTable { padding-left: 7px; }
|
||||
.mainTable { padding-left: 7px; }
|
||||
|
||||
/* Banner div */
|
||||
#banner { border: 1px solid black; }
|
||||
|
||||
123
appview.php
123
appview.php
@@ -32,7 +32,6 @@ function display_catpath($catId, $appId, $versionId = '')
|
||||
|
||||
/**
|
||||
* display the SUB apps that belong to this app
|
||||
* FIXME:
|
||||
*/
|
||||
function display_bundle($appId)
|
||||
{
|
||||
@@ -45,9 +44,9 @@ function display_bundle($appId)
|
||||
}
|
||||
|
||||
echo html_frame_start("","98%","",0);
|
||||
echo "<table width='100%' border=0 cellpadding=3 cellspacing=1>\n\n";
|
||||
echo "<table width=\"100%\" border=\"0\" cellpadding=\"3\" cellspacing=\"1\">\n\n";
|
||||
|
||||
echo "<tr class=color4>\n";
|
||||
echo "<tr class=\"color4\">\n";
|
||||
echo " <td>Application Name</td>\n";
|
||||
echo " <td>Description</td>\n";
|
||||
echo "</tr>\n\n";
|
||||
@@ -58,8 +57,8 @@ function display_bundle($appId)
|
||||
$bgcolor = ($c % 2 == 0) ? "color0" : "color1";
|
||||
|
||||
//display row
|
||||
echo "<tr class=$bgcolor>\n";
|
||||
echo " <td><a href='appview.php?appId=$ob->appId'>".stripslashes($ob->appName)."</a></td>\n";
|
||||
echo "<tr class=\"$bgcolor\">\n";
|
||||
echo " <td><a href=\"appview.php?appId=$ob->appId\">".stripslashes($ob->appName)."</a></td>\n";
|
||||
echo " <td>".trim_description($oApp->sDescription)."</td>\n";
|
||||
echo "</tr>\n\n";
|
||||
|
||||
@@ -97,17 +96,17 @@ function show_note($sType,$oData){
|
||||
|
||||
$s = html_frame_start("","98%",'',0);
|
||||
|
||||
$s .= "<table width='100%' border=0 cellspacing=0>\n";
|
||||
$s .= "<tr width='100%' bgcolor='$color' align=center valign=top><td><b>$title</b></td></tr>\n";
|
||||
$s .= "<tr><td class='note'>\n";
|
||||
$s .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\">\n";
|
||||
$s .= "<tr width=\"100%\" bgcolor=\"".$color."\" align=\"center\" valign=\"top\"><td><b>".$title."</b></td></tr>\n";
|
||||
$s .= "<tr><td class=\"note\">\n";
|
||||
$s .= $oData->noteDesc;
|
||||
$s .= "</td></tr>\n";
|
||||
|
||||
if ($_SESSION['current']->hasPriv("admin") || $_SESSION['current']->isMaintainer($_REQUEST['versionId']))
|
||||
{
|
||||
$s .= "<tr width='100%' class=color1 align=center valign=top><td>";
|
||||
$s .= "<form method=post name=message action='admin/editAppNote.php?noteId={$oData->noteId}'>";
|
||||
$s .= '<input type=submit value="Edit Note" class=button>';
|
||||
$s .= "<tr width=\"100%\" class=\"color1\" align=\"center\" valign=\"top\"><td>";
|
||||
$s .= "<form method=\"post\" name=\"message\" action=\"admin/editAppNote.php?noteId={$oData->noteId}\">";
|
||||
$s .= '<input type="submit" value="Edit Note" class="button">';
|
||||
$s .= '</form></td></tr>';
|
||||
}
|
||||
|
||||
@@ -125,7 +124,7 @@ function display_versions($iAppId, $aVersionsIds)
|
||||
if ($aVersionsIds)
|
||||
{
|
||||
echo html_frame_start("","98%","",0);
|
||||
echo "<table width='100%' border=0 cellpadding=3 cellspacing=1>\n\n";
|
||||
echo "<table width=\"100%\" border=\"0\" cellpadding=\"3\" cellspacing=\"1\">\n\n";
|
||||
|
||||
echo "<tr class=color4>\n";
|
||||
echo " <td width=\"80\">Version</td>\n";
|
||||
@@ -194,12 +193,11 @@ if($_REQUEST['appId'])
|
||||
|
||||
// start display application
|
||||
echo html_frame_start("","98%","",0);
|
||||
echo "<link rel=\"stylesheet\" href=\"./application.css\" type=\"text/css\">";
|
||||
echo "<tr><td class=color4 valign=top>\n";
|
||||
echo " <table>\n";
|
||||
echo " <tr><td>\n";
|
||||
|
||||
echo ' <table width="250" border=0 cellpadding=3 cellspacing=1">',"\n";
|
||||
echo ' <table width="250" border="0" cellpadding="3" cellspacing="1">',"\n";
|
||||
echo " <tr class=color0 valign=top><td width=\"100\"><b>Name</b></td><td width='100%'> ".$oApp->sName." </td>\n";
|
||||
echo " <tr class=\"color1\"><td><b>Vendor</b></td><td> ".
|
||||
" <a href='vendorview.php?vendorId=$oVendor->iVendorId'> ".$oVendor->sName." </a> \n";
|
||||
@@ -227,7 +225,7 @@ if($_REQUEST['appId'])
|
||||
|
||||
// image
|
||||
$img = get_screenshot_img($oApp->iAppId);
|
||||
echo "<tr><td align=center colspan=2>$img</td></tr>\n";
|
||||
echo "<tr><td align=\"center\" colspan=\"2\">$img</td></tr>\n";
|
||||
|
||||
echo " </table>\n"; /* close of name/vendor/bugs/url table */
|
||||
|
||||
@@ -235,24 +233,25 @@ if($_REQUEST['appId'])
|
||||
echo " <tr><td>\n";
|
||||
|
||||
// Display all supermaintainers maintainers of this application
|
||||
echo " <table class=color4 width=250 border=1>\n";
|
||||
echo " <tr><td align=left><b>Super maintainers:</b></td></tr>\n";
|
||||
echo " <table class=\"color4\" width=\"250\" border=\"1\">\n";
|
||||
echo " <tr><td align=\"left\"><b>Super maintainers:</b></td></tr>\n";
|
||||
$other_maintainers = getSuperMaintainersUserIdsFromAppId($oApp->iAppId);
|
||||
if($other_maintainers)
|
||||
{
|
||||
echo " <tr><td align=\"left\"><ul>\n";
|
||||
while(list($index, list($userIdValue)) = each($other_maintainers))
|
||||
{
|
||||
$oUser = new User($userIdValue);
|
||||
echo " <tr><td align=left>\n";
|
||||
echo " <li>".$oUser->sRealname."</td></tr>\n";
|
||||
echo " <li>".$oUser->sRealname."</li>\n";
|
||||
}
|
||||
echo "</ul></td></tr>\n";
|
||||
} else
|
||||
{
|
||||
echo " <tr><td align=right>No maintainers.Volunteer today!</td></tr>\n";
|
||||
}
|
||||
|
||||
// Display the app maintainer button
|
||||
echo " <tr><td><center>\n";
|
||||
echo ' <tr><td align="center">';
|
||||
if($_SESSION['current']->isLoggedIn())
|
||||
{
|
||||
/* are we already a maintainer? */
|
||||
@@ -274,13 +273,13 @@ if($_REQUEST['appId'])
|
||||
}
|
||||
if($_SESSION['current']->isLoggedIn())
|
||||
{
|
||||
echo '<form method="post" name="message" action="appsubmit.php?appId='.$oApp->iAppId.'&apptype=2">';
|
||||
echo '<form method="post" name="message" action="appsubmit.php?appId='.$oApp->iAppId.'&apptype=2">';
|
||||
echo '<input type=submit value="Add Version" class="button">';
|
||||
echo '</form>';
|
||||
}
|
||||
if($_SESSION['current']->hasPriv("admin"))
|
||||
{
|
||||
$url = BASE."admin/deleteAny.php?what=appFamily&appId=".$oApp->iAppId."&confirmed=yes";
|
||||
$url = BASE."admin/deleteAny.php?what=appFamily&appId=".$oApp->iAppId."&confirmed=yes";
|
||||
echo " <form method=\"post\" name=\"edit\" action=\"javascript:deleteURL('Are you sure?', '".$url."')\"><input type=\"submit\" value=\"Delete App\" class=\"button\"></form>";
|
||||
echo ' <form method="post" name="edit" action="admin/editBundle.php"><input type="hidden" name="bundleId" value="'.$oApp->iAppId.'"><input type="submit" value="Edit Bundle" class="button"></form>';
|
||||
}
|
||||
@@ -288,13 +287,9 @@ if($_REQUEST['appId'])
|
||||
{
|
||||
echo '<form method="post" action="account.php?cmd=login"><input type="submit" value="Log in to become a super maintainer" class="button"></form>';
|
||||
}
|
||||
echo " </center></td></tr>\n";
|
||||
echo " </td></tr>\n";
|
||||
echo " </table>\n"; /* close of super maintainers table */
|
||||
|
||||
echo " </td></tr>\n";
|
||||
|
||||
echo " </td></tr>\n";
|
||||
|
||||
echo " </table>\n"; /* close the table that contains the whole left hand side of the upper table */
|
||||
|
||||
// description
|
||||
@@ -347,11 +342,10 @@ else if($_REQUEST['versionId'])
|
||||
|
||||
// start version display
|
||||
echo html_frame_start("","98%","",0);
|
||||
echo "<link rel=\"stylesheet\" href=\"./application.css\" type=\"text/css\">";
|
||||
echo '<tr><td class=color4 valign=top>',"\n";
|
||||
echo '<table width="250" border=0 cellpadding=3 cellspacing=1">',"\n";
|
||||
echo "<tr class=color0 valign=top><td width=100> <b>Name</b></td><td width='100%'>".$oApp->sName."</td>\n";
|
||||
echo "<tr class=color1 valign=top><td> <b>Version</b></td><td>".$oVersion->sName."</td></tr>\n";
|
||||
echo '<tr><td class="color4" valign="top">',"\n";
|
||||
echo '<table width="250" border="0" cellpadding="3" cellspacing="1">',"\n";
|
||||
echo "<tr class=\"color0\" valign=\"top\"><td width=\"100\"> <b>Name</b></td><td width=\"100%\">".$oApp->sName."</td>\n";
|
||||
echo "<tr class=\"color1\" valign=\"top\"><td><b>Version</b></td><td>".$oVersion->sName."</td></tr>\n";
|
||||
|
||||
// links
|
||||
$result = query_appdb("SELECT * FROM appData WHERE versionID = ".$oVersion->iVersionId." AND type = 'url'");
|
||||
@@ -360,31 +354,32 @@ else if($_REQUEST['versionId'])
|
||||
echo " <tr class=\"color1\"><td><b>Links</b></td><td>\n";
|
||||
while($ob = mysql_fetch_object($result))
|
||||
{
|
||||
echo " <a href='$ob->url'>".substr(stripslashes($ob->description),0,30)."</a> <br />\n";
|
||||
echo " <a href=\"$ob->url\">".substr(stripslashes($ob->description),0,30)."</a> <br />\n";
|
||||
}
|
||||
echo " </td></tr>\n";
|
||||
}
|
||||
|
||||
// rating Area
|
||||
echo "<tr class=\"color1\" valign=\"top\"><td> <b>Maintainer Rating</b></td><td>".$oVersion->sTestedRating."</td></tr>\n";
|
||||
echo "<tr class=\"color0\" valign=\"top\"><td> <b>Maintainers Version</b></td><td>".$oVersion->sTestedRelease."</td></tr>\n";
|
||||
echo "<tr class=\"color1\" valign=\"top\"><td><b>Maintainer Rating</b></td><td>".$oVersion->sTestedRating."</td></tr>\n";
|
||||
echo "<tr class=\"color0\" valign=\"top\"><td><b>Maintainers Version</b></td><td>".$oVersion->sTestedRelease."</td></tr>\n";
|
||||
|
||||
// image
|
||||
$img = get_screenshot_img($oApp->iAppId, $oVersion->iVersionId);
|
||||
echo "<tr><td align=center colspan=2>$img</td></tr>\n";
|
||||
echo "<tr><td align=\"center\" colspan=\"2\">$img</td></tr>\n";
|
||||
|
||||
// display all maintainers of this application
|
||||
echo "<tr class=color0><td align=left colspan=2><b>Maintainers of this application:</b>\n";
|
||||
echo "<table width=250 border=0>";
|
||||
echo "<tr class=\"color0\"><td align=\"left\" colspan=\"2\"><b>Maintainers of this application:</b>\n";
|
||||
echo "<table width=\"250\" border=\"0\">";
|
||||
$other_maintainers = getMaintainersUserIdsFromAppIdVersionId($oApp->iAppId, $oVersion->iVersionId);
|
||||
if($other_maintainers)
|
||||
{
|
||||
echo "<tr class=\"color0\"><td align=\"left\" colspan=\"2\"><ul>";
|
||||
while(list($index, list($userIdValue)) = each($other_maintainers))
|
||||
{
|
||||
$oUser = new User($userIdValue);
|
||||
echo "<tr class=color0><td align=left colspan=2>";
|
||||
echo "<li>".$oUser->sRealname."</td></tr>\n";
|
||||
echo "<li>".$oUser->sRealname."</li>";
|
||||
}
|
||||
echo "</ul></td></tr>\n";
|
||||
} else
|
||||
{
|
||||
echo "<tr class=color0><td align=right colspan=2>";
|
||||
@@ -393,25 +388,28 @@ else if($_REQUEST['versionId'])
|
||||
echo "</table></td></tr>";
|
||||
|
||||
// display the app maintainer button
|
||||
echo "<tr><td colspan = 2><center>";
|
||||
echo '<tr><td colspan="2" align="center">';
|
||||
if($_SESSION['current']->isLoggedIn())
|
||||
{
|
||||
/* is this user a maintainer of this version by virtue of being a super maintainer */
|
||||
/* of this app family? */
|
||||
if($_SESSION['current']->isSuperMaintainer($oApp->iAppId))
|
||||
{
|
||||
echo '<form method=post name=message action="maintainerdelete.php"><input type=submit value="Remove yourself as a supermaintainer" class=button>';
|
||||
echo "<input type=hidden name='superMaintainer' value=1>";
|
||||
echo '<form method="post" name="message" action="maintainerdelete.php">';
|
||||
echo '<input type="submit" value="Remove yourself as a supermaintainer" class="button">';
|
||||
echo '<input type="hidden" name="superMaintainer" value="1">';
|
||||
} else
|
||||
{
|
||||
/* are we already a maintainer? */
|
||||
if($_SESSION['current']->isMaintainer($oVersion->iVersionId)) /* yep */
|
||||
{
|
||||
echo '<form method=post name=message action="maintainerdelete.php"><input type=submit value="Remove yourself as a maintainer" class=button>';
|
||||
echo "<input type=hidden name='superMaintainer' value=0>";
|
||||
echo '<form method="post" name="message" action="maintainerdelete.php">';
|
||||
echo '<input type="submit" value="Remove yourself as a maintainer" class=button>';
|
||||
echo '<input type="hidden" name="superMaintainer" value="0">';
|
||||
} else /* nope */
|
||||
{
|
||||
echo '<form method="post" name="message" action="maintainersubmit.php"><input type="submit" value="Be a maintainer for this app" class="button" title="Click here to know more about maintainers.">';
|
||||
echo '<form method="post" name="message" action="maintainersubmit.php">';
|
||||
echo '<input type="submit" value="Be a maintainer for this app" class="button" title="Click here to know more about maintainers.">';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -420,37 +418,38 @@ else if($_REQUEST['versionId'])
|
||||
echo "</form>";
|
||||
} else
|
||||
{
|
||||
echo '<form method=post name=message action="account.php?cmd=login">';
|
||||
echo '<input type=submit value="Log in to become an app maintainer" class=button>';
|
||||
echo '<form method="post" name="message" action="account.php">';
|
||||
echo '<input type="hidden" name="cmd" value="login">';
|
||||
echo '<input type=submit value="Log in to become an app maintainer" class="button">';
|
||||
echo '</form>';
|
||||
}
|
||||
|
||||
echo "</center></td></tr>";
|
||||
echo "</td></tr>";
|
||||
|
||||
if ($_SESSION['current']->hasPriv("admin") || $_SESSION['current']->isMaintainer($oVersion->iVersionId))
|
||||
{
|
||||
echo "<tr><td colspan = 2><center>";
|
||||
echo '<form method="post" name="message" action="admin/editAppVersion.php?appId='.$oApp->iAppId.'&versionId='.$oVersion->iVersionId.'">';
|
||||
echo '<input type=submit value="Edit Version" class=button>';
|
||||
echo '<tr><td colspan="2" align="center">';
|
||||
echo '<form method="post" name="message" action="admin/editAppVersion.php">';
|
||||
echo '<input type="hidden" name="appId" value="'.$oApp->iAppId.'" />';
|
||||
echo '<input type="hidden" name="versionId" value="'.$oVersion->iVersionId.'" />';
|
||||
echo '<input type=submit value="Edit Version" class="button" />';
|
||||
echo '</form>';
|
||||
$url = BASE."admin/deleteAny.php?what=appVersion&appId=".$oApp->iAppId."&versionId=".$oVersion->iVersionId."&confirmed=yes";
|
||||
$url = BASE."admin/deleteAny.php?what=appVersion&appId=".$oApp->iAppId."&versionId=".$oVersion->iVersionId."&confirmed=yes";
|
||||
echo "<form method=\"post\" name=\"delete\" action=\"javascript:deleteURL('Are you sure?', '".$url."')\">";
|
||||
echo '<input type=submit value="Delete Version" class="button">';
|
||||
echo '<input type=submit value="Delete Version" class="button" />';
|
||||
echo '</form>';
|
||||
echo '<form method=post name=message action=admin/addAppNote.php?versionId='.$oVersion->iVersionId.'>';
|
||||
echo '<input type=submit value="Add Note" class=button>';
|
||||
echo '</form>';
|
||||
echo '<input type=submit value="Add Note" class=button />';
|
||||
echo '</form>';
|
||||
echo '<form method=post name=message action=admin/addAppNote.php?versionId='.$oVersion->iVersionId.'>';
|
||||
echo '<input type=hidden name="noteTitle" value="HOWTO">';
|
||||
echo '<input type=submit value="Add How To" class=button>';
|
||||
echo '</form>';
|
||||
echo '<input type=hidden name="noteTitle" value="HOWTO" />';
|
||||
echo '<input type=submit value="Add How To" class="button" />';
|
||||
echo '</form>';
|
||||
echo '<form method=post name=message action=admin/addAppNote.php?versionId='.$oVersion->iVersionId.'>';
|
||||
echo '<input type=hidden name="noteTitle" value="WARNING">';
|
||||
echo '<input type=submit value="Add Warning" class=button>';
|
||||
echo '<input type=hidden name="noteTitle" value="WARNING" />';
|
||||
echo '<input type=submit value="Add Warning" class="button" />';
|
||||
echo '</form>';
|
||||
echo "</center></td></tr>";
|
||||
echo "</td></tr>";
|
||||
}
|
||||
|
||||
echo "</table><td class=color2 valign=top width='100%'>\n";
|
||||
|
||||
@@ -38,7 +38,7 @@ allowing many unmodified Windows binaries to run on x86-based Unixes, including
|
||||
<a href="http://wwws.sun.com/software/solaris/">Solaris</a>.</p>
|
||||
|
||||
<p>More information can be found at the
|
||||
<a href="http://www.winehq.org/site/docs/wine-faq/index">Wine FAQ</a>.<p>
|
||||
<a href="http://www.winehq.org/site/docs/wine-faq/index" style="cursor: help">Wine FAQ</a>.<p>
|
||||
</blockquote>
|
||||
|
||||
<p><b>Q: What are the benefits of this Application Database?</b></p>
|
||||
|
||||
@@ -46,7 +46,7 @@ function display_index ()
|
||||
$id = $arr[1];
|
||||
$title = get_help_title("$help_path/$file");
|
||||
|
||||
echo " <li> <a href='".BASE."help?topic=$id'> $title </a><p /></li>\n";
|
||||
echo " <li> <a href=\"".BASE."help?topic=$id\" style=\"cursor: help\"> $title </a><p /></li>\n";
|
||||
}
|
||||
|
||||
echo "</ul><hr noshade>\n";
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<h3>Maintainers Guidelines</h3>
|
||||
|
||||
<p>
|
||||
This page gives informations on how to maintain an application once being an application maintainer. If you are looking on informations on how to become an application maintainer, this topic is covered in the <a href="./?topic=appdb_faq">FAQ</a>.
|
||||
This page gives informations on how to maintain an application once being an application maintainer. If you are looking on informations on how to become an application maintainer, this topic is covered in the <a href="./?topic=appdb_faq" style="cursor: help">FAQ</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
||||
@@ -77,7 +77,7 @@ class Comment {
|
||||
if($sEmail)
|
||||
{
|
||||
$sSubject = "Comment for ".lookup_app_name($this->iAppId)." ".lookup_version_name($this->iVersionId)." added by ".$_SESSION['current']->sRealname;
|
||||
$sMsg = APPDB_ROOT."appview.php?appId=".$this->iAppId."&versionId=".$this->iVersionId."\n";
|
||||
$sMsg = APPDB_ROOT."appview.php?appId=".$this->iAppId."&versionId=".$this->iVersionId."\n";
|
||||
$sMsg .= "\n";
|
||||
$sMsg .= "Subject: ".$this->sSubject."\r\n";
|
||||
$sMsg .= "\n";
|
||||
@@ -148,7 +148,7 @@ class Comment {
|
||||
if($sEmail)
|
||||
{
|
||||
$sSubject = "Comment for ".lookup_app_name($this->iAppId)." ".lookup_version_name($this->iVersionId)." deleted by ".$_SESSION['current']->sRealname;
|
||||
$sMsg = APPDB_ROOT."appview.php?appId=".$this->iAppId."&versionId=".$this->iVersionId."\n";
|
||||
$sMsg = APPDB_ROOT."appview.php?appId=".$this->iAppId."&versionId=".$this->iVersionId."\n";
|
||||
$sMsg .= "\n";
|
||||
$sMsg .= "This comment was made on ".substr($this->sDateCreated,0,10)." by ".$this->oOwner->sRealname."\n";
|
||||
$sMsg .= "\n";
|
||||
@@ -185,7 +185,7 @@ function forum_lookup_user($iUserId)
|
||||
}
|
||||
if (!$iUserId || !$oUser->isLoggedIn())
|
||||
{
|
||||
$sMailto = '<font color="#999999">Anonymous</font>';
|
||||
$sMailto = 'Anonymous';
|
||||
}
|
||||
return $sMailto;
|
||||
}
|
||||
@@ -197,19 +197,19 @@ function view_app_comment($ob)
|
||||
{
|
||||
|
||||
echo html_frame_start('','98%');
|
||||
echo '<table width="100%" border=0 cellpadding=2 cellspacing=1">',"\n";
|
||||
echo '<table width="100%" border="0" cellpadding="2" cellspacing="1">',"\n";
|
||||
|
||||
$ob->subject = stripslashes($ob->subject);
|
||||
$ob->body = stripslashes($ob->body);
|
||||
|
||||
// message header
|
||||
echo "<tr bgcolor=#E0E0E0><td>\n";
|
||||
echo " <b>".$ob->subject."</b><br>\n";
|
||||
echo " by ".forum_lookup_user($ob->userId)." on ".$ob->time."<br>\n";
|
||||
echo "<tr bgcolor=\"#E0E0E0\"><td>\n";
|
||||
echo " <b>".$ob->subject."</b><br />\n";
|
||||
echo " by ".forum_lookup_user($ob->userId)." on ".$ob->time."<br />\n";
|
||||
echo "</td></tr><tr><td>\n";
|
||||
|
||||
// body
|
||||
echo htmlify_urls($ob->body), "<br><br>\n";
|
||||
echo htmlify_urls($ob->body), "<br /><br />\n";
|
||||
|
||||
// only add RE: once
|
||||
if(eregi("RE:", $ob->subject))
|
||||
@@ -218,9 +218,9 @@ function view_app_comment($ob)
|
||||
$subject = "RE: ".$ob->subject;
|
||||
|
||||
// reply post buttons
|
||||
echo " [<a href='addcomment.php?appId=$ob->appId&versionId=$ob->versionId'><small>post new</small></a>] \n";
|
||||
echo " [<a href='addcomment.php?appId=$ob->appId&versionId=$ob->versionId&subject=".
|
||||
urlencode("$subject")."&thread=$ob->commentId'><small>reply to this</small></a>] \n";
|
||||
echo " [<a href=\"addcomment.php?appId=$ob->appId&versionId=$ob->versionId\"><small>post new</small></a>] \n";
|
||||
echo " [<a href=\"addcomment.php?appId=$ob->appId&versionId=$ob->versionId&subject=".
|
||||
urlencode("$subject")."&thread=$ob->commentId\"><small>reply to this</small></a>] \n";
|
||||
|
||||
echo "</td></tr>\n";
|
||||
|
||||
@@ -228,10 +228,10 @@ function view_app_comment($ob)
|
||||
if ($_SESSION['current']->isLoggedIn() && ($_SESSION['current']->hasPriv("admin") || $_SESSION['current']->isMaintainer($ob->appId,$ob->versionId) ))
|
||||
{
|
||||
echo "<tr>";
|
||||
echo "<td><form method=\"post\" name=\"message\" action=\"".BASE."deletecomment.php\"><input type=submit value='Delete' class=button>\n";
|
||||
echo "<td><form method=\"post\" name=\"message\" action=\"".BASE."deletecomment.php\"><input type=\"submit\" value=\"Delete\" class=\"button\">\n";
|
||||
echo "<input type=\"hidden\" name=\"commentId\" value=\"$ob->commentId\" />";
|
||||
echo "<input type=\"hidden\" name=\"appId\" value=\"$ob->appId\" />";
|
||||
echo "<input type=\"hidden\" name=\"versionId\" value=\"$ob->versionId\" /></form></td>","\n";
|
||||
echo "<input type=\"hidden\" name=\"versionId\" value=\"$ob->versionId\" /></form>","\n";
|
||||
echo "</td></tr>";
|
||||
}
|
||||
|
||||
@@ -307,7 +307,7 @@ function do_display_comments_threaded($handle, $is_main)
|
||||
view_app_comment($ob);
|
||||
} else
|
||||
{
|
||||
echo '<li><a href="commentview.php?appId='.$ob->appId.'&versionId='.$ob->versionId.'&threadId='.$ob->parentId.'"> '.
|
||||
echo '<li><a href="commentview.php?appId='.$ob->appId.'&versionId='.$ob->versionId.'&threadId='.$ob->parentId.'"> '.
|
||||
$ob->subject.' </a> by '.forum_lookup_user($ob->userId).' on '.$ob->time.' </li>'."\n";
|
||||
}
|
||||
|
||||
@@ -357,9 +357,9 @@ function view_app_comments($versionId, $threadId = 0)
|
||||
|
||||
//start comment format table
|
||||
echo html_frame_start("","98%",'',0);
|
||||
echo '<table width="100%" border=0 cellpadding=1 cellspacing=0">',"\n";
|
||||
echo '<table width="100%" border="0" cellpadding="1" cellspacing="0">',"\n";
|
||||
|
||||
echo '<tr><td bgcolor=#C0C0C0 align=center><table border=0 cellpadding=0 cellspacing=0><tr bgcolor=#C0C0C0>',"\n";
|
||||
echo '<tr><td bgcolor="#C0C0C0" align="center"><table border="0" cellpadding="0" cellspacing="0"><tr bgcolor="#C0C0C0">',"\n";
|
||||
|
||||
// message display mode changer
|
||||
if ($_SESSION['current']->isLoggedIn())
|
||||
@@ -369,7 +369,7 @@ function view_app_comments($versionId, $threadId = 0)
|
||||
$_SESSION['current']->setpref("comments:mode", $_REQUEST['cmode']);
|
||||
|
||||
$sel[$_SESSION['current']->getpref("comments:mode")] = 'selected';
|
||||
echo '<td><form method=get name=smode action="appview.php">',"\n";
|
||||
echo '<td><form method="post" name="smode" action="appview.php">',"\n";
|
||||
echo "<b>Application Comments</b> $messageCount total comments ";
|
||||
echo '<b>Mode</b> <select name="cmode" onchange="document.smode.submit();">',"\n";
|
||||
echo ' <option value="flat" '.$sel['flat'].'>Flat</option>',"\n";
|
||||
@@ -377,15 +377,15 @@ function view_app_comments($versionId, $threadId = 0)
|
||||
echo ' <option value="nested" '.$sel['nested'].'>Nested</option>',"\n";
|
||||
echo ' <option value="off" '.$sel['off'].'>No Comments</option>',"\n";
|
||||
echo '</select>',"\n";
|
||||
echo '<input type=hidden name="versionId" value="'.$versionId.'"></form></td>',"\n";
|
||||
echo '<input type="hidden" name="versionId" value="'.$versionId.'"></form></td>',"\n";
|
||||
}
|
||||
|
||||
// blank space
|
||||
echo '<td> </td>',"\n";
|
||||
|
||||
// post new message button
|
||||
echo '<td><form method="get" name=message action="addcomment.php"><input type=submit value=" post new comment " class=button> ',"\n";
|
||||
echo '<input type=hidden name="versionId" value="'.$versionId.'"></form></td>',"\n";
|
||||
echo '<td><form method="post" name="message" action="addcomment.php"><input type="submit" value="post new comment" class="button"> ',"\n";
|
||||
echo '<input type="hidden" name="versionId" value="'.$versionId.'"></form></td>',"\n";
|
||||
|
||||
//end comment format table
|
||||
echo '</tr></table></td></tr>',"\n";
|
||||
@@ -398,7 +398,7 @@ function view_app_comments($versionId, $threadId = 0)
|
||||
}
|
||||
|
||||
//start comments
|
||||
echo '<table width="100%" border=0 cellpadding=2 cellspacing=1"><tr><td>',"\n";
|
||||
echo '<table width="100%" border="0" cellpadding="2" cellspacing="1"><tr><td>',"\n";
|
||||
|
||||
//hide or display depending on pref
|
||||
if ($_SESSION['current']->isLoggedIn())
|
||||
|
||||
@@ -1,4 +1,2 @@
|
||||
<!-- start of footer.inc -->
|
||||
</body>
|
||||
</html>
|
||||
<!-- end of footer.inc -->
|
||||
|
||||
@@ -3,30 +3,27 @@
|
||||
/* Application Database - Header */
|
||||
/*********************************/
|
||||
?>
|
||||
|
||||
<!-- start of header.inc -->
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Wine Application DB <?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">
|
||||
<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 src="<?php echo BASE; ?>scripts.js" type="text/javascript"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<table width="100%" cellpadding=0 cellspacing=0>
|
||||
<table width="100%" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" cellpadding=0 cellspacing=0>
|
||||
<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 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="">
|
||||
<img src="<?php echo BASE; ?>images/blank.gif" width="10" height="1" alt="">
|
||||
</td>
|
||||
<td width="100%" align="center" valign="middle">
|
||||
<?php echo $banner_ad; ?>
|
||||
@@ -36,4 +33,3 @@
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<!-- end of header.inc -->
|
||||
|
||||
@@ -195,7 +195,7 @@ function html_frame_start($title = "", $width = "", $extra = "", $innerPad = 5)
|
||||
|
||||
if ($width) { $width = 'width="'.$width.'"'; }
|
||||
|
||||
$str = '<table '.$width.' border=0 id="mainTable" cellpadding=0 cellspacing=0 align=center>'."\n";
|
||||
$str = '<table '.$width.' border="0" class="mainTable" cellpadding="0" cellspacing="0" align="center">'."\n";
|
||||
|
||||
if ($title)
|
||||
{
|
||||
|
||||
@@ -297,12 +297,12 @@ function get_screenshot_img($iAppId = null, $iVersionId = null)
|
||||
} else
|
||||
{
|
||||
$oRow = mysql_fetch_object($hResult);
|
||||
$sImgFile = '<img src="appimage.php?thumbnail=true&id='.$oRow->id.'" alt="'.$oRow->description.'" />';
|
||||
$sImgFile = '<img src="appimage.php?thumbnail=true&id='.$oRow->id.'" alt="'.$oRow->description.'" />';
|
||||
}
|
||||
|
||||
$sImg = html_frame_start("",'128','',2);
|
||||
if($iVersionId || mysql_num_rows($hResult))
|
||||
$sImg .= "<a href='screenshots.php?appId=$iAppId&versionId=$iVersionId'>$sImgFile</a>";
|
||||
$sImg .= "<a href='screenshots.php?appId=$iAppId&versionId=$iVersionId'>$sImgFile</a>";
|
||||
else // no link for adding app screenshot as screenshots are linked to versions
|
||||
$sImg .= $sImgFile;
|
||||
$sImg .= html_frame_end()."<br />";
|
||||
|
||||
@@ -14,7 +14,7 @@ function global_sidebar_menu() {
|
||||
$g->add("Browse Apps", BASE."appbrowse.php");
|
||||
$g->add("Top 25", BASE."votestats.php");
|
||||
$g->add("Submit Application", BASE."appsubmit.php?apptype=1");
|
||||
$g->add("Help & Documentation", BASE."help/");
|
||||
$g->add("Help & Documentation", BASE."help/");
|
||||
$g->add("AppDB Stats", BASE."appdbStats.php");
|
||||
$g->done();
|
||||
|
||||
|
||||
10
index.php
10
index.php
@@ -12,7 +12,6 @@ require(BASE."include/application.php");
|
||||
require(BASE."include/screenshot.php");
|
||||
|
||||
apidb_header("Wine Application Database");
|
||||
|
||||
?>
|
||||
|
||||
<img src="images/appdb_montage.jpg" width=391 height=266 align=right alt="Wine AppDB">
|
||||
@@ -25,10 +24,10 @@ application.</p>
|
||||
<?php
|
||||
$str_benefits="
|
||||
<ul>
|
||||
<li>Ability to <a href=\"".BASE."help/?topic=voting\" title=\"help on voting\">Vote</a> on Favorite Applications</li>
|
||||
<li>Ability to <a href=\"".BASE."help/?topic=voting\" title=\"help on voting\" style=\"cursor: help\">vote</a> on Favorite Applications</li>
|
||||
<li>Ability to customize the layout and behaviour of the AppDB and comments system</li>
|
||||
<li>Take Credit for your witty posts</li>
|
||||
<li>Ability to sign up to be an <a href=\"".BASE."help/?topic=maintainer_guidelines\" title=\"informations about application maintainers\">application maintainer</a>.</li>
|
||||
<li>Take credit for your witty posts</li>
|
||||
<li>Ability to sign up to be an <a href=\"".BASE."help/?topic=maintainer_guidelines\" title=\"informations about application maintainers\" style=\"cursor: help\">application maintainer</a>.</li>
|
||||
<li>Submit new applications and versions.</li>
|
||||
<li>Submit new screenshots.</li>
|
||||
</ul>
|
||||
@@ -154,10 +153,9 @@ application site. The site contains tips and howtos on getting listed apps to ru
|
||||
<p>
|
||||
<a href="http://sidenet.ddo.jp/winetips/config.html"><b>Sidenet Wine configuration utility</b></a>: Installs Internet Explorer 6 and Windows Media Player 7 automatically (works also with MSN Messenger and RealPlayer).
|
||||
</p>
|
||||
<p>
|
||||
<a href="http://www.von-thadden.de/Joachim/WineTools/"><b>WineTools</b></a>: WineTools is an menu driven installer for installing Windows programs under Wine (DCOM98, IE6, Windows Core Fonts, Windows System Software, Office & Office Viewer, Adobe Photoshop 7, Illustrator 9, Acrobat Reader 5.1, ...).
|
||||
</p>
|
||||
<p> </p>
|
||||
|
||||
<?php
|
||||
apidb_footer();
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user