Viewing File: /people/testlab/www/testlab.com.pl/script/s669.php

<?
$db = new DBConnect();

		$images='';
		$captions='';
		
if ($_GET['limit']=='') $_GET['limit']=0;
$sql = "select * from `aktualnosci` where skrypt_id=669 order by data asc;";
$db->query($sql);
while ($row=$db->fetchrow()) $images=$images."{title:'', autor:'', date:'', link:''},";
$sql = "select * from `aktualnosci` where skrypt_id=669 order by data asc;";
$db->query($sql);
while ($row=$db->fetchrow()) $images=$images."{title:'', autor:'', date:'', link:''},";
$images=substr($images,0,-1);
?>
	<script type="text/javascript">
	window.addEvent('domready',function(){
		

			//SAMPLE 6 (on "mouseenter" walk)
		var info6 = $('box6').getNext().setOpacity(0.5);
		var sampleObjectItems =[
	    <?echo $images;?>
		];
		var hs6 = new noobSlide({
			mode: 'horizontal',
			box: $('box6'),
			items: sampleObjectItems,
			size: 126,
			autoPlay: true,
			handles: $ES('div','handles6_1'),
			handle_event: 'mouseenter',
			buttons: {
				previous: $('prev6'),
				play: $('play6'),
				stop: $('stop6'),
				playback: $('playback6'),
				next: $('next6')
			},
			button_event: 'click',
			fxOptions: {
				duration: 1500,
				transition: Fx.Transitions.Back.easeOut,
				wait: false
			},
			onWalk: function(currentItem,currentHandle){
				info6.empty();
				new Element('h4').setHTML('');
				new Element('p').setHTML('');
				this.handles.setOpacity(0.5);
				currentHandle.setOpacity(1);
			}
		});
		//hs6.next();
		
	

	});
	</script>






<!-- SAMPLE 6 -->


<div style='width:960px;border:0px solid red;margin-top:-110px;margin-left:10px;position:absolute;'>
	

	<div class="buttons" >
		<div id="prev6" >&nbsp;</div>
		<div id="next6">&nbsp;</div>
		<span id="playback6" >&lt;Playback</span>
		<span id="stop6" >&nbsp;&nbsp;Stop&nbsp;&nbsp;|</span>
		<span id="play6" >&nbsp;&nbsp;Play&nbsp;&nbsp;|</span>
	</div>
	<div class="mask6" style='height:55px;width:960px;display:block;border:0px solid red'>
		<div id="box6">
		<?
$sql = "select * from `aktualnosci` where skrypt_id=669 order by data asc;";
$result = $db->query($sql);
	while ($row=$db->fetchrow()) 
	{
	echo '	<div style="border:1px solid #aaa;height:53px;width:121px;text-align:center;display:inline-block;margin:0px;">';
	if ($row['link']!='') echo '<a href="'.$row['link'].'" target='.$row['opcje'].'>';
	echo '<img src="upload/'.$row['plik'].'.jpg" alt="'.$row['opis'].'" style="height:50px;">';
	if ($row['link']!='')  echo '</a>';
	echo '</div>';
	}
$sql = "select * from `aktualnosci` where skrypt_id=669 order by data asc;";
$result = $db->query($sql);
	while ($row=$db->fetchrow()) 
	{
	echo '	<div style="border:1px solid #aaa;height:53px;width:121px;text-align:center;display:inline-block;margin:0px;">';
	if ($row['link']!='') echo '<a href="'.$row['link'].'" target='.$row['opcje'].'>';
	echo '<img src="upload/'.$row['plik'].'.jpg" alt="'.$row['opis'].'" style="height:50px;">';
	if ($row['link']!='')  echo '</a>';
	echo '</div>';
	}

	?>
		</div>
		<div class="info"></div>
	</div>
	<?

$sql = "select * from `aktualnosci` where skrypt_id=669 order by data asc;";
$result = $db->query($sql);

//paginacja ($liczba,$_GET['limit'],10);
echo "<div class='thumbs' id='handles6_1'>";
	while ($row=$db->fetchrow()) echo '	<div><img src="upload/'.$row['plik'].'.jpg" alt="'.$row['opis'].'"></div>';
$sql = "select * from `aktualnosci` where skrypt_id=669 order by data asc;";
$result = $db->query($sql);
	while ($row=$db->fetchrow()) echo '	<div><img src="upload/'.$row['plik'].'.jpg" alt="'.$row['opis'].'"></div>';
	

	?>
	</div>
	
</div>


Back to Directory File Manager