index.php: Overhaul to match archweb

* Switch to CSS used by archweb
* Move package search to a smaller box to match the style of the main site
* Add text describing mailing list and bug tracker. Eventually remove those
associated nav bar links.
* General clean-up of XHTML

Signed-off-by: canyonknight <canyonknight@gmail.com>
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
canyonknight 2012-05-23 13:38:52 -04:00 committed by Lukas Fleischer
parent 2416ffea66
commit c1c74f0c37

View file

@ -10,73 +10,114 @@ include_once('stats.inc.php');
html_header( __("Home") ); html_header( __("Home") );
include('pkg_search_form.php');
$dbh = db_connect(); $dbh = db_connect();
?> ?>
<div class="pgbox"> <div id="content-left-wrapper">
<h2>AUR <?php print __("Home"); ?></h2> <div id="content-left">
<div class="frontpgboxbody"> <div id="intro" class="box">
<p> <h2>AUR <?php print __("Home"); ?></h2>
<p>
<?php <?php
echo __( echo __(
'Welcome to the AUR! Please read the %sAUR User Guidelines%s and %sAUR TU Guidelines%s for more information.', 'Welcome to the AUR! Please read the %sAUR User Guidelines%s and %sAUR TU Guidelines%s for more information.',
'<a href="http://wiki.archlinux.org/index.php/AUR_User_Guidelines">', '<a href="http://wiki.archlinux.org/index.php/AUR_User_Guidelines">',
'</a>', '</a>',
'<a href="http://wiki.archlinux.org/index.php/AUR_Trusted_User_Guidelines">', '<a href="http://wiki.archlinux.org/index.php/AUR_Trusted_User_Guidelines">',
'</a>' '</a>'
); );
?> ?>
</p>
<br /> <p>
<?php
<?php echo __(
echo __(
'Contributed PKGBUILDs %smust%s conform to the %sArch Packaging Standards%s otherwise they will be deleted!', 'Contributed PKGBUILDs %smust%s conform to the %sArch Packaging Standards%s otherwise they will be deleted!',
'<b>', '</b>', '<b>', '</b>',
'<a href="http://wiki.archlinux.org/index.php/Arch_Packaging_Standards">', '<a href="http://wiki.archlinux.org/index.php/Arch_Packaging_Standards">',
'</a>' '</a>'
); );
?> ?>
</p>
<p>
<?php echo __('Remember to vote for your favourite packages!'); ?>
<?php echo __('Some packages may be provided as binaries in [community].'); ?>
</p>
<p>
<h4><?php echo __('Discussion') ?></h4>
<?php
echo __(
'General discussion regarding the Arch User Repository (AUR) and Trusted User structure takes place on %saur-general%s. This list can be used for package orphan requests, merge requests, and deletion requests. For discussion relating to the development of the AUR, use the %saur-dev%s mailing list.',
'<a href="http://mailman.archlinux.org/mailman/listinfo/aur-general">',
'</a>',
'<a href="http://mailman.archlinux.org/mailman/listinfo/aur-dev">',
'</a>'
);
?>
</p>
<h4><?php echo __('Bug Reporting') ?></h4>
<?php
echo __(
'If you find a bug in the AUR, please fill out a bug report on our %sbug tracker%s. Use the tracker to report bugs in the AUR %sonly%s. To report packaging bugs contact the package maintainer or leave a comment on the appropriate package page.',
'<a href="https://bugs.archlinux.org/index.php?project=2">',
'</a>',
'<strong>',
'</strong>'
);
?>
</p>
</p> <div class="important">
<p> <b><?php echo __('DISCLAIMER') ?> :</b>
<?php echo __('Remember to vote for your favourite packages!'); ?> <br />
<br /> <?php echo __('Unsupported packages are user produced content. Any use of the provided files is at your own risk.'); ?>
<?php echo __('Some packages may be provided as binaries in [community].'); ?> </div>
</p> </div>
<table> <?php if (!empty($_COOKIE["AURSID"])): ?>
<tr> <div id="pkg-updates" class="widget box">
<td class='boxSoft' valign='top'> <table>
<?php updates_table($dbh); ?> <tr>
</td> <td class="pkg-name">
<td class='boxSoft' valign='top'> <?php
<?php
if (!empty($_COOKIE["AURSID"])) {
$userid = uid_from_sid($_COOKIE["AURSID"]); $userid = uid_from_sid($_COOKIE["AURSID"]);
user_table($userid, $dbh); user_table($userid, $dbh);
echo '<br />'; ?>
} </td>
</tr>
general_stats_table($dbh); </table>
?> </div>
<?php endif; ?>
</td> </div>
</tr> </div>
</table> <div id="content-right">
<div id="pkgsearch" class="widget">
<br /> <form id="pkgsearch-form" method="get" action="packages.php">
<div class="important"><?php <fieldset>
echo __('DISCLAIMER') . ':<br />'; <label for="pkgsearch-field">Package Search:</label>
echo __('Unsupported packages are user produced content. Any use of the provided files is at your own risk.'); <input type="hidden" name="O" value="0" />
?></div> <input type="text" name="K" size="30" value="<?php if (isset($_REQUEST["K"])) { print stripslashes(trim(htmlspecialchars($_REQUEST["K"], ENT_QUOTES))); } ?>" maxlength="35" />
</fieldset>
</form>
</div>
<div id="pkg-updates" class="widget box">
<table>
<tr>
<td class="pkg-name">
<?php updates_table($dbh); ?>
</td>
</tr>
</table>
</div>
<div id="pkg-updates" class="widget box">
<table>
<tr>
<td class="pkg-name">
<?php general_stats_table($dbh); ?>
</td>
</tr>
</table>
</div>
</div> </div>
</div>
<?php <?php
html_footer(AUR_VERSION); html_footer(AUR_VERSION);