svn: /web/php/trunk/ quickref.php styles/site.css
| From: | Rasmus Lerdorf | Date: | Thu, 21 Jul 2011 03:41:21 +0000 |
| Subject: | svn: /web/php/trunk/ quickref.php styles/site.css | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-11716@lists.php.net to get a copy of this message | ||
rasmus Thu, 21 Jul 2011 03:41:21 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=313495
Log:
Get rid of the nasty table here and start adding more of the
"Other ways to search" links to get closer to this being the
one true initial landing page for the redesign.
Changed paths:
U web/php/trunk/quickref.php
U web/php/trunk/styles/site.css
Modified: web/php/trunk/quickref.php
===================================================================
--- web/php/trunk/quickref.php 2011-07-21 03:07:07 UTC (rev 313494)
+++ web/php/trunk/quickref.php 2011-07-21 03:41:21 UTC (rev 313495)
@@ -40,9 +40,7 @@
global $LANG;
echo "<!-- result list start -->\n";
- echo "<table border=\"0\" cellpadding=\"5\"
cellspacing=\"0\" width=\"100%\">\n";
- echo "<tr valign=\"top\"><td>\n";
-
+ echo "<ul id=\"quickref_functions\">\n";
// Prepare the data
$i = 0;
$limit = ceil(count($functions) / COLUMNS);
@@ -52,15 +50,9 @@
// Print out all rows
foreach ($functions as $file => $name) {
-
- // Start a new column
- if ($i > 0 && $i % $limit==0) {
- echo "</td><td>\n";
- }
- echo "<a href=\"/manual/$LANG/$file\">$name</a><br
/>\n";
- $i++;
+ echo "<li><a
href=\"/manual/$LANG/$file\">$name</a></li>\n";
}
- echo "</td></tr></table>\n";
+ echo "</ul>\n";
echo "<!-- result list end -->\n";
}
@@ -149,6 +141,7 @@
</p>
<?php quickref_table($maybe, false); ?>
+<br clear="left"/>
<?php
// Don't do a web search if the search term contains:
@@ -175,12 +168,18 @@
To search the string "<b><?php echo $notfound; ?></b>" using other
options, try searching:
</p>
-<ul>
+<ul id="quickref_other">
<li><?php print_link('search.php?show=manual&pattern=' . $notfound_enc,
'Only the documentation'); ?></li>
<li><?php print_link('search.php?show=local&pattern=' . $notfound_enc,
'Only this mirror'); ?></li>
<li><?php print_link('search.php?show=wholesite&pattern=' .
$notfound_enc, 'The entire php.net domain'); ?></li>
+ <li><?php print_link('search.php?show=pear&pattern=' . $notfound_enc,
'pear.php.net'); ?></li>
+ <li><?php print_link('search.php?show=pecl&pattern=' . $notfound_enc,
'pecl.php.net'); ?></li>
+ <li><?php print_link('http://bugs.php.net/search.php?cmd=Display+Bugs&status=All&bug_type=Any&search_for='
. $notfound_enc, 'The Bug DB');?></li>
+ <li><?php print_link('http://marc.info/?r=1&w=2&q=b&l=php-general&s='
. $notfound_enc, 'php-general mailing list');?></li>
+ <li><?php print_link('http://marc.info/?r=1&w=2&q=b&l=php-internals&s='
. $notfound_enc, 'Internals mailing list');?></li>
+ <li><?php print_link('http://marc.info/?r=1&w=2&q=b&l=phpdoc&s='
. $notfound_enc, 'Documentation mailing list');?></li>
</ul>
-
+<br clear="left"/>
<p>
For a quick overview over all documented PHP functions,
<?php print_link('quickref.php', 'click here'); ?>.
Modified: web/php/trunk/styles/site.css
===================================================================
--- web/php/trunk/styles/site.css 2011-07-21 03:07:07 UTC (rev 313494)
+++ web/php/trunk/styles/site.css 2011-07-21 03:41:21 UTC (rev 313495)
@@ -747,7 +747,7 @@
}
ul#results_nav_list {
- margin-top: -1em;
+ margin-top: -1em;
text-align: center;
padding: 0px;
}
@@ -757,6 +757,32 @@
list-style-type: none;
}
+ul#quickref_functions {
+ display: inline;
+ margin-right: 0.4em;
+}
+
+ul#quickref_functions li {
+ list-style-type: none;
+ margin:0;
+ padding:0;
+ float:left;
+ width:30%;
+}
+
+ul#quickref_other {
+ display: inline;
+ margin-right: 0.4em;
+}
+
+ul#quickref_other li {
+ list-style-type: none;
+ margin:0;
+ padding:0;
+ float:left;
+ width:30%;
+}
+
/* Definition lists used on eg. the unsub page */
dl dd {
margin: 0.5em 0 0.5em 2em;