<?php
error_reporting(0);
//spoji se na bazu

include ("admin/func/db_func.php");
$conn = db_connect();
mysql_set_charset('utf8',$conn);

$stranica = $_GET['stranica'];

include ("modules/core_func.php");


//$stranica=12;
if ( $stranica )
{
	if ( is_numeric( $stranica ) )
	{
		//učitaj osnovne podatke
		$sql99 = "select * from b7_sadrzaj where id_sadrzaj='$stranica'";
		$rez99=mysql_query($sql99,$conn);
		if ( $rez99 ) $num99 = mysql_num_rows( $rez99 );
		if ( $num99 == 1 )
		{
			$row99 = mysql_fetch_array( $rez99 );
			$id_sadrzaj = $row99['id_sadrzaj'];
			$id_kategorija = $row99['id_kategorija'];
			$id_rubrika = $row99['id_rubrika'];
			$naslov = $row99['naslov'];
			$link = $row99['link'];
			$opis = $row99['opis'];
			$datum = $row99['datum'];
			$dan = $row99['dan'];
			$vidljivost = $row99['vidljivost'];
			$stylesheet = $row99['stylesheet'];
			$seo_link = $row99['seo_link'];
			$uvod_tekst = $row99['uvod_tekst'];
			$uvod_slika = $row99['uvod_slika'];
			$uvod_slika_x = $row99['uvod_slika_x'];
			$uvod_slika_y = $row99['uvod_slika_y'];
		} else 
		{
			$stranica = 12;	
		}
	} else 
	{
		$stranica = 12;
	}
} else {
	$stranica = 12;
}

if ( $stranica == 12 )
{
	//osnovne postavke
	$description = 'Državni arhiv u Vukovaru';	
	$title = 'Državni arhiv u Vukovaru';
	
} else 
{
	$description = $opis;
	$title = 'Državni arhiv u Vukovaru - '.$naslov;
}
$keywords = 'Državni, arhiv, Vukovara, Vukovar, Vukovaru, davu';
$master_page='template.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" xmlns:rei="http://r-effects.com" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<meta name="description" content="<?php echo $description; ?>" />
<meta name="keywords" content="<?php echo $keywords; ?>" />
<meta name="robots" content="index,follow" />
<meta name="revisit-after" content="7 days" />


<title><?php echo $title; ?></title>

<script src="js/jquery-1.7.1.min.js" language="javascript" type="text/javascript"></script>
<script src="js/jquery.nivo.slider.pack.js" type="text/javascript"></script>
<script type="text/javascript" src="js/jquery.fancybox-1.3.4.pack.js"></script>

<link href="css/qubi1.css" rel="stylesheet" type="text/css" media="screen">
<link rel="stylesheet" href="css/nivo-slider.css" type="text/css" media="screen" />  
<link href="menu_assets/styles.css" rel="stylesheet" type="text/css">  
<link rel="stylesheet" type="text/css" href="fancybox/jquery.fancybox-1.3.4.css" media="screen" /> 
   
<script language="javascript" type="text/javascript">
$(document).ready(function() {
	$("a[rel=lightbox]").fancybox({
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'titlePosition' 	: 'over',
			'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
				return '<span id="fancybox-title-over">Slika ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
			}
		});
	
});

$(window).load(function() {
        $('#slider').nivoSlider(
		{
		effect: 'fold', // Specify sets like: sliceDown, sliceDownLeft, sliceUp, sliceUpLeft, sliceUpDown, sliceUpDownLeft, fold, fade, random, slideInRight, slideInLeft, boxRandom, boxRain, boxRainReverse, boxRainGrow, boxRainGrowReverse
        slices: 15, // For slice animations
        boxCols: 8, // For box animations
        boxRows: 4, // For box animations
        animSpeed: 500, // Slide transition speed
        pauseTime: 3000, // How long each slide will show
        startSlide: 0, // Set starting Slide (0 index)
        directionNav: false, // Next & Prev navigation
        controlNav: false, // 1,2,3... navigation
        controlNavThumbs: false, // Use thumbnails for Control Nav
        pauseOnHover: true, // Stop animation while hovering
        manualAdvance: false, // Force manual transitions
        prevText: 'Prev', // Prev directionNav text
        nextText: 'Next', // Next directionNav text
        randomStart: true, // Start on a random slide
        beforeChange: function(){}, // Triggers before a slide transition
        afterChange: function(){}, // Triggers after a slide transition
        slideshowEnd: function(){}, // Triggers after all slides have been shown
        lastSlide: function(){}, // Triggers when last slide is shown
        afterLoad: function(){} // Triggers when slider has loaded	
		});
    });

</script>
	





<meta http-equiv="imagetoolbar" content="no" xmlns="" />
</head>
<body>
<div id="wraper">
	<div id="kontejner">
    	<div id="top">
        	<h1><span>Državni arhiv grada Vukovara</span></h1>
        	<div id="logo">
                    <a href="index.php" title=""><span>DRŽAVNI ARHIV U VUKOVARU</span></a>
                </div>

        
        </div>
       
        <div id="slider" class="nivoSlider">
        <img src="slike/slide_1.jpg" width="980" height="200" alt="" border="0" />
        <img src="slike/slide_2.jpg" width="980" height="200" alt="" border="0" />
        <img src="slike/slide_3.jpg" width="980" height="200" alt="" border="0" />
        <img src="slike/slide_4.jpg" width="980" height="200" alt="" border="0" />
        <img src="slike/slide_5.jpg" width="980" height="200" alt="" border="0" />
        <img src="slike/slide_6.jpg" width="980" height="200" alt="" border="0" />
        <img src="slike/slide_7.jpg" width="980" height="200" alt="" border="0" />
        </div>
        <div id="main_nav">
        <div id='cssmenu'>
        <ul>
           <li <?php if ($stranica==12) echo 'class="active"';?>><a href='index.php'><span>Naslovna</span></a></li>
           <li class="has-sub <?php if ($stranica==13 || $stranica==14 || $stranica==15) echo 'active';?>"><a href='#'><span>O arhivu</span></a>
              <ul>
                 <li><a href='index.php?stranica=13'><span>Povijest arhiva</span></a></li>
                 <li><a href='index.php?stranica=14'><span>Djelatnost i teritorijalna nadležnost arhiva</span></a></li>
                 <li><a href='index.php?stranica=15'><span>Ustroj arhiva</span></a></li>
                 <li><a href='index.php?stranica=39'><span>Dokumenti</span></a></li>
              </ul>
           </li>
           
           <li class="has-sub <?php if ($stranica==32 || $stranica==33) echo 'active';?>"><a href='#'><span>Fondovi i zbirke</span></a>
              <ul>
                 <li><a href='index.php?stranica=32'><span>Pregled fondova i zbirki</span></a></li>
                 <li><a href='index.php?stranica=33'><span>Popis matičnih knjiga</span></a></li>
              </ul>
           </li>
           
           <li <?php if ($stranica==17) echo 'class="active"';?>><a href='index.php?stranica=17'><span>Izdanja arhiva</span></a></li>
           <li <?php if ($stranica==16) echo 'class="active"';?>><a href='index.php?stranica=16'><span>Izložbe i događanja</span></a></li>
           
           
           <li <?php if ($stranica==18) echo 'class="active"';?>><a href='index.php?stranica=18'><span>Pristup informacijama</span></a></li>
           
           
           
           
           
           <li <?php if ($stranica==20) echo 'class="active"';?>><a href='index.php?stranica=20'><span>Kontakt</span></a></li>
        </ul>
        </div>
        </div>
        <div id="main_content">
	        <div id="sadrzaj_wrap">
                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                	<tr>
                    <td valign="top" id="td_left">
                    	
                        <div class="opty">
                        	<h3>Korištenje arhivskog gradiva</h3>
                            <ul>
                            	<li><a href="index.php?stranica=21">Predaja zahtjeva</a></li>
                                <li><a href="index.php?stranica=23">Pravilnik o radu čitaonice DAVU-a</a></li>
                                <li><a href="index.php?stranica=24">Dostupnost arhivskog gradiva</a></li>
                                <li><a href="index.php?stranica=34">Obrasci zahtjevnica</a></li>
                                <li><a href="index.php?stranica=36">Cjenik usluga</a></li>
                            </ul>
                        </div>
                        <div class="opty">
                        	<h3>Stvaratelji i imatelji</h3>
                            <ul>
                            	<li><a href="index.php?stranica=25">Tko su stvaratelji i imatelji</a></li>
                                <li><a href="index.php?stranica=26">Obveze stvaratelja i imatelja</a></li>
                                <li><a href="index.php?stranica=27">Kategorizacija stvaratelja i imatelja na području DAVU-a</a></li>
                                <li><a href="index.php?stranica=28">Stručno usavršavanje djelatnika u pismohranama</a></li>
                            </ul>
                        </div>
                        <div class="opty">
                        	<h3>Zakoni i propisi</h3>
                            <ul>
                            	<li><a href="index.php?stranica=29">Arhivsko zakonodavstvo</a></li>
                                <li><a href="index.php?stranica=30">Arhivske norme i standardi</a></li>
                                <li><a href="index.php?stranica=31">Uredsko poslovanje</a></li>
                            </ul>
                        </div>
                        <div id="arhinet">
                        <center>
                        	<a href="http://arhinet.arhiv.hr/" target="_blank"><img src="slike/arhinetlogoo.jpg" width="207" height="76" border="0" /></a>
                            </center>
                        </div>
                    </td>
                    <td valign="top" id="td_right">
                    	<?php
						if ($stranica==12) {
						?>
                        <div id="Uvodna riječ">
                            <?php
							prikazi_sadrzaj_paragraf($conn,1);
							?>
                        </div>
                        
                        <br /><br />
                        
                        <div id="Čestitka">
                            <?php
							$sql2="select id_paragraf from b7_paragraf where id_sadrzaj='12' and id_paragraf>'50' order by pozicija asc";
							$rez2=mysql_query($sql2,$conn);
							if ($rez2) $num2=mysql_num_rows($rez2);
							if ($num2>0) {
								$cur2=1;
								while ($num2>=$cur2) {
									$row2=mysql_fetch_array($rez2);
									$id_paragraf=$row2["id_paragraf"];
									prikazi_sadrzaj_paragraf($conn,$id_paragraf);
									$cur2++;
								}
							}
							
							
							
							
							?>
                        </div>
                        <br /><br />
                        <div id="rad_vrijeme">
                        	<?php
							prikazi_sadrzaj_paragraf($conn,2);
							?>
                        </div>
                       
                        
                       
                        <?php
						} else {
							echo '<div id="sadrzaj">'."\n";
							prikazi_stranicu($conn, $stranica);
							echo '</div>'."\n";
						}
						?>
                        
                    </td>
                    <?php
						if ($stranica==12) {
					?>
                    <td id="td_prva_desno" valign="top">
                    
                    <?php
					prikazi_sadrzaj_paragraf($conn,28);
					?>
                    
                    
                    </td>	
                    <?
						}
					?>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</div>
<div id="footer">
	<div id="footer_content">
    	<h2>DAVU - Državni arhiv u Vukovaru</h2>
        <br />
        Izrada: <a href="http://www.ikonaweb.hr" target="_blank">Ikona web design studio</a>
    </div>
</div>
</body></html>