team4alfanous team mailing list archive
-
team4alfanous team
-
Mailing list archive
-
Message #00083
[Branch ~team4alfanous/alfanous/alfanous-git] Rev 276: show page number every 50 page [wui]
------------------------------------------------------------
revno: 276
git commit: 870c2ad88cc7372ecde03a73c9a8942bec802583
committer: Assem Chelli <assem.ch@xxxxxxxxx>
timestamp: Sat 2012-06-23 19:19:27 +0100
message:
show page number every 50 page [wui]
modified:
interfaces/web/wui/index.html
--
lp:alfanous
https://code.launchpad.net/~team4alfanous/alfanous/alfanous-git
Your team Alfanous team is subscribed to branch lp:alfanous.
To unsubscribe from this branch go to https://code.launchpad.net/~team4alfanous/alfanous/alfanous-git/+edit-subscription
=== modified file 'interfaces/web/wui/index.html'
--- interfaces/web/wui/index.html 2012-06-23 17:26:42 +0000
+++ interfaces/web/wui/index.html 2012-06-23 18:19:27 +0000
@@ -179,14 +179,15 @@
{
results_pages += " <a href=''>"+ i+ "</a>";
}
- else if (i==1) // first page
+ else if (i==1 || (i%50 == 0 && i<page)) // first page
{
results_pages += " <a href=''>"+ i+ "</a> ..";
}
- else if (i==nb_pages) // last page
+ else if (i==nb_pages || (i%50 == 0 && i>page)) // last page
{
results_pages += " .. <a href=''>"+ i+ "</a>";
}
+
}
results_pages += "</div><img src='images/next.gif' alt='الصفحة التالية' title = 'الصفحة التالية' />\n</div>\n";
@@ -272,6 +273,7 @@
results += "</span> ";
results += " <span>("+ build_search_link(param,"رقم_الآية:" + json.ayas[i].aya.id ,false ) + json.ayas[i].aya.id + "</a>)</span> ";
results += "] <br></span></p><br />";
+
results += "<p dir='ltr' align='center' style=' margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;'>";
results += "<span style='font-family: \"Droid Sans\", Tahoma, \"Bitstream Vera Sans\", \"DejaVu Sans\", Verdana, Geneva, Arial, Sans-serif; line-height: 150%;'>"+ json.ayas[i].aya.traduction+ "</span></p>";
results += "<br><p align='center' style=' margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;'>";