Parašė JaWa· 2011 Lap. 22 16:11:39
#5
Turiu kita klausimą, dėl kokios priežasties man neužsidega rodyklė "back", kai panele atvaizduojama tinklapyje (2)... Kai aš ją bandau peržiūrėti per administracijos panele, "Peržiūrėti panele", tai man veikia kuo puikiausiai (1).... pavyzdys screenshot'e ... Pati panele žemiau.
<?php
/*-------------------------------------------------------+
| <span style="border-bottom: 1px dotted black;">PHP</span>-Fusion Content Management System
| Copyright © 2002 - 2011 Nick Jones
| <a href='http://www.php-fusion.co.uk/' target='_blank'><span style='color:005C5B'>http://www.php-fusion.co.uk/</span></a>
+--------------------------------------------------------+
| Filename: jcarousel_panel.php
| Version: 1.0
| Author: jikaka
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at <a href='http://www.gnu.org/licenses/agpl.html.' target='_blank'><span style='color:005C5B'>www.gnu.org/licenses/agpl.html.</span></a> Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
if (file_exists(INFUSIONS."jcarousel_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."jcarousel_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."jcarousel_panel/locale/English.php";
}
add_to_head("
<script type='text/javascript' src='".INFUSIONS."jcarousel_panel/js/jquery-1.4.2.min.js'></script>
<script type='text/javascript' src='".INFUSIONS."jcarousel_panel/js/jquery.jcarousel.min.js'></script>
<link type='text/css' href='".INFUSIONS."jcarousel_panel/css/skin.css' media='screen' rel='stylesheet' />
<script type='text/javascript'>
function mycarousel_initCallback(carousel)
{
// Disable autoscrolling if the user clicks the prev or next button.
carousel.buttonNext.bind('click', function() {
carousel.startAuto(0);
});
carousel.buttonPrev.bind('click', function() {
carousel.startAuto(0);
});
// Pause autoscrolling if the user moves with the cursor over the clip.
carousel.clip.hover(function() {
carousel.stopAuto();
}, function() {
carousel.startAuto();
});
};
<span style="border-bottom: 1px dotted black;">jQuery</span>(document).ready(function() {
<span style="border-bottom: 1px dotted black;">jQuery</span>('#mycarousel').jcarousel({
auto: 2,
wrap: 'last',
initCallback: mycarousel_initCallback
});
});
</script>
");
$result = dbquery("SELECT * FROM ".$db_prefix."news ORDER BY news_datestamp DESC");
if (dbrows($result)!= "0") {
echo "<tr><td class='aplink'><div id='wrap'><ul id='mycarousel' class='jcarousel-skin-tango'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['news_subject'], 27);
$itemsubject2 = trimlink($data['news_extended'], 100);
echo "<li><a href='".BASEDIR."news.php?readmore=".$data['news_id']."' class='side'>";
echo "<b> $itemsubject</b><table><tr><td class='aplinknaujiena'><img src='".IMAGES_N_T.$data['news_image_t1']."' width='236' height='194' alt='".$data['news_subject']."'></td></tr></table>";
echo "</a><a class='naujienos'> $itemsubject2</a></li>";
}
echo "</ul></div></td></tr>";
} else {
echo $locale['jcp002'];
echo "</ul></div></td></tr>";
}
?>