com web/people: Fixed user data display.: index.php
| From: | Peter Cowburn | Date: | Sun, 15 Jun 2014 21:07:51 +0000 |
| Subject: | com web/people: Fixed user data display.: index.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-19269@lists.php.net to get a copy of this message | ||
Commit: a5d1d988e2eeb43aec6a35634bf4303484355b6d
Author: Kadet <kadet1090@gmail.com> Sun, 15 Jun 2014 23:07:51 +0200
Parents: 2f93c511587b95c417e5db69c2e9c90f82ffee2f
Branches: master
Link: http://git.php.net/?p=web/people.git;a=commitdiff;h=a5d1d988e2eeb43aec6a35634bf4303484355b6d
Log:
Fixed user data display.
Changed paths:
M index.php
Diff:
diff --git a/index.php b/index.php
index 2cba636..dcf9332 100644
--- a/index.php
+++ b/index.php
@@ -11,41 +11,41 @@ if ($USERNAME) {
site_header("PHP: Developers Profile Pages");
$page = filter_input(INPUT_GET, "page", FILTER_VALIDATE_INT, array("options"
=> array("min_range" => 1))) ?: 1;
?>
-
+<div class="twrapper">
<table class="people">
-<thead>
- <tr>
- <th></th>
- <th>Username</th>
- <th>Full name</th>
- </tr>
-</thead>
-<tbody>
+ <thead>
+ <tr>
+ <th></th>
+ <th>Username</th>
+ <th>Full name</th>
+ </tr>
+ </thead>
+ <tbody>
-<?php $x = 0 ?>
-<?php foreach (findAllUsers($page) as $x => $user): ?>
- <tr>
- <td class="gravatar"><img src="//www.gravatar.com/avatar/<?php
echo md5($user["username"] . "@php.net")?>.jpg" alt="Picture of
<?php $user["name"] ?>"/></td>
- <td class="username"><a href="/<?php echo
$user["username"]?>"><?php echo $user["username"]
?></a></td>
- <td class="name"><?php echo $user["name"] ?></td>
- </tr>
-<?php endforeach ?>
-</tbody>
-<tfoot>
-<tr>
-<th colspan="3">
- <?php if ($page > 1): ?>
- <a class="pagination prev" href="?page=<?php echo
$page-1?>">« Previous page</a></th>
- <?php endif ?>
- <span class="page"><?php echo $page ?></span>
- <?php if ($x == 49): ?>
- <a class="pagination next" href="?page=<?php echo
++$page?>">Next page »</a></th>
- <?php endif ?>
-</th>
-</tr>
-</tfoot>
+ <?php $x = 0 ?>
+ <?php foreach (findAllUsers($page) as $x => $user): ?>
+ <tr>
+ <td class="gravatar"><img src="//www.gravatar.com/avatar/<?php echo
md5($user["username"] . "@php.net")?>.jpg" alt="Picture of <?php
$user["name"] ?>"/></td>
+ <td class="username"><a href="/<?php echo
$user["username"]?>"><?php echo $user["username"]
?></a></td>
+ <td class="name"><?php echo $user["name"] ?></td>
+ </tr>
+ <?php endforeach ?>
+ </tbody>
+ <tfoot>
+ <tr>
+ <th colspan="3">
+ <?php if ($page > 1): ?>
+ <a class="pagination prev" href="?page=<?php echo
$page-1?>">« Previous page</a>
+ <?php endif ?>
+ <span class="page"><?php echo $page ?></span>
+ <?php if ($x == 49): ?>
+ <a class="pagination next" href="?page=<?php echo
++$page?>">Next page »</a>
+ <?php endif ?>
+ </th>
+ </tr>
+ </tfoot>
</table>
-
+</div>
<?php
site_footer();
// vim: set expandtab shiftwidth=4 softtabstop=4 tabstop=4 :