Hello there,
I m using following script to display my book pages (scanned) page wise
global $scripturl;
$num_pages = 110;
$cover_image_url ="http://baask.com/literature/ayub_eval/baalaad/baalaad.jpg";
$page_image_url = "http://baask.com/literature/ayub_eval/baalaad/0%s.gif";
if (empty($GET['number']) || $GET['number'] < 1 || $GET['number'] > $num_pages)
{
$current_page = 0;
$image_url = $cover_image_url;
}
else
{
$current_page = (int) $GET['number'];
$image_url = sprintf($page_image_url, ($current_page>9 ? '' : '0') . $current_page);
}
echo '
<div style="text-align: center;">
Page ', $current_page, ' of ', $num_pages, '
<p><img src="', $image_url, '" alt="', $current_page, '" /></p>';
for ($i = 0; $i <= $num_pages; $i++)
echo '
<a href="', $scripturl, '?page=baalaad;number=', $i, '">', ($i == $current_page ? '<strong>[' : ''), ($i == 0 ? 'Cover' : $i), ($i == $current_page ? ']</strong>' : ''), '</a>';
echo '
<a href="http://baask.com/diwwan/index.php?topic=6722">Click for Comments and feedback </a>;
</div>';
Here is its output
http://baask.com/diwwan/index.php?page=baalaad
Now I want to move this script from smf portal to home page (joomla)
http://baask.com/site/index.php?option=com_content&view=article&id=48&Itemid=58
Its only displaying page 1, when I click on next page its skipping URL of this article page.
Please any one is there to help me out this script to display this book page wise.
Thanks in advance for your prompt response
Looking forward
Raji