tidy appdb html to make it validate - try 4
This commit is contained in:
committed by
Chris Morgan
parent
ccbc842d5c
commit
16949bb71c
@@ -554,9 +554,9 @@ function display_page_range($iCurrentPage=1, $iPageRange=1, $iTotalPages=1, $sLi
|
||||
|
||||
if($iCurrentPage != 1)
|
||||
{
|
||||
echo "<a href='".$sLinkurl."&iPage=1'>|<</a> ";
|
||||
echo "<a href='".$sLinkurl."&iPage=1'>|<</a> ";
|
||||
$iPreviousPage = $iCurrentPage - 1;
|
||||
echo "<a href='".$sLinkurl."&iPage=$iPreviousPage'><</a> ";
|
||||
echo "<a href='".$sLinkurl."&iPage=$iPreviousPage'><</a> ";
|
||||
} else
|
||||
{
|
||||
echo "|< < ";
|
||||
@@ -565,7 +565,7 @@ function display_page_range($iCurrentPage=1, $iPageRange=1, $iTotalPages=1, $sLi
|
||||
for($iPg = $iStartPage; $iPg <= $iEndPage; $iPg++)
|
||||
{
|
||||
if($iPg != $iCurrentPage)
|
||||
echo "<a href='".$sLinkurl."&iPage=".$iPg."'>$iPg</a> ";
|
||||
echo "<a href='".$sLinkurl."&iPage=".$iPg."'>$iPg</a> ";
|
||||
else
|
||||
echo "$iPg ";
|
||||
}
|
||||
@@ -573,8 +573,8 @@ function display_page_range($iCurrentPage=1, $iPageRange=1, $iTotalPages=1, $sLi
|
||||
if($iCurrentPage < $iTotalPages)
|
||||
{
|
||||
$iNextPage = $iCurrentPage + 1;
|
||||
echo "<a href='".$sLinkurl."&iPage=$iNextPage'>></a> ";
|
||||
echo "<a href='".$sLinkurl."&iPage=$iTotalPages'>>|</a> ";
|
||||
echo "<a href='".$sLinkurl."&iPage=$iNextPage'>></a> ";
|
||||
echo "<a href='".$sLinkurl."&iPage=$iTotalPages'>>|</a> ";
|
||||
} else
|
||||
{
|
||||
echo "> >|";
|
||||
@@ -847,7 +847,7 @@ function login_url()
|
||||
and we don't want two. Besides, there is little point in redirecting to the login page
|
||||
after login. */
|
||||
if(!strpos($sCurrentUrl, "sReturnTo") && !strpos($sCurrentUrl, "account.php"))
|
||||
$sLoginUrl .= "&sReturnTo=".$sCurrentUrl;
|
||||
$sLoginUrl .= "&sReturnTo=".$sCurrentUrl;
|
||||
|
||||
return $sLoginUrl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user