Commit: 2f93c511587b95c417e5db69c2e9c90f82ffee2f Author: Kadet <kadet1...@gmail.com> Sun, 15 Jun 2014 20:44:15 +0200 Parents: 5c5f9cb917de9629dcf81fe78bcfd8ca98223e79 Branches: master
Link: http://git.php.net/?p=web/people.git;a=commitdiff;h=2f93c511587b95c417e5db69c2e9c90f82ffee2f Log: Redesigned users listing. Changed paths: M index.php Diff: diff --git a/index.php b/index.php index 25935b1..2cba636 100644 --- a/index.php +++ b/index.php @@ -12,7 +12,7 @@ site_header("PHP: Developers Profile Pages"); $page = filter_input(INPUT_GET, "page", FILTER_VALIDATE_INT, array("options" => array("min_range" => 1))) ?: 1; ?> -<table> +<table class="people"> <thead> <tr> <th></th> @@ -25,7 +25,7 @@ $page = filter_input(INPUT_GET, "page", FILTER_VALIDATE_INT, array("options" => <?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"] ?>" height="80" width="80" /></td> + <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> @@ -33,15 +33,13 @@ $page = filter_input(INPUT_GET, "page", FILTER_VALIDATE_INT, array("options" => </tbody> <tfoot> <tr> -<th> +<th colspan="3"> <?php if ($page > 1): ?> - <a href="?page=<?php echo $page-1?>">Previous page</a></th> + <a class="pagination prev" href="?page=<?php echo $page-1?>">« Previous page</a></th> <?php endif ?> -</th> -<th></th> -<th> + <span class="page"><?php echo $page ?></span> <?php if ($x == 49): ?> - <a href="?page=<?php echo ++$page?>">Next page</a></th> + <a class="pagination next" href="?page=<?php echo ++$page?>">Next page »</a></th> <?php endif ?> </th> </tr> -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php