<!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" xml:lang="sr_yu" lang="sr_yu">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="language" content="sr_yu"/>

    <!-- blueprint CSS framework -->
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css"
          media="screen, projection"/>
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css"
          media="print"/>


    <!--  <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/kalkulacija.css" />
    -->
    <?php Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl . '/js/jquery.multiplyforms.js'); ?>
    <?php Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl . '/js/jquery.jkey.js'); ?>

    <!-- registracija novog .css i .js by Nik-->


    <title><?php echo CHtml::encode($this->pageTitle); ?></title>

    <!-- ajax inikacija script  -->
    <?php
    $cs = Yii::app()->getClientScript();
    $cs->registerCoreScript('jquery');
    $cs->registerCoreScript('bbq');
    ?>
    <?php
    $script = <<<HTML
		var headline = $("#ajaxind");
 
		$(document).ajaxSend(function() {
    		headline
        	.attr("class", "activity")
		});
 
		$(document).ajaxStop(function() {
    		headline.removeAttr("class")
		 	});
HTML;
    $cs->registerScript('ajaxind-indicator', $script, CClientScript::POS_READY);
    ?>

</head>

<body>
<div style="background-color: #FFF;">

</div>
<!-- ajax indikacija -->
<div id="ob"></div>
<div id="ajaxind">
    <div class="slikaajax">
        <?php echo CHtml::image(Yii::app()->request->baseUrl . '/css/load.gif', 'load'); ?>
    </div>
</div>

<div class="container">
    <nav class="navbar navbar-inverse navbar-fixed-top">
        <?php

        $this->widget('bootstrap.widgets.BootMenu', array(
            'items' => $this->getModule()->getTopMenuItems(),
            'htmlOptions' => array('class' => 'nav navbar-nav'),
        ));
        ?>
    </nav>

    <nav class="navbar navbar-inverse navbar-fixed-bottom">
        <?php
        $this->widget('bootstrap.widgets.BootMenu', array(
            'items' => $this->getModule()->getBottomMenuItems(),
            //'htmlOptions'=>array('class'=>'operations'),
        ));

        ?>


        <?php
        $this->widget('WKurs');
        ?>
    </nav>


</div>
<div class="container-fluid">
    <div class="row row-offcanvas row-offcanvas-right">
        <div class="bg-warning  col-xs-12  col-sm-12 col-md-2 sidebar-offcanvas" id="sidebar">
            <?php

            $this->widget('bootstrap.widgets.BootMenu', array(
                'items' => $this->getModule()->getMenuItems(),
                // 'htmlOptions'=>array('class'=>'navbar-fixed-top'),
            ));

            ?>




            <?php
            $this->beginWidget('zii.widgets.CPortlet', array(
                'title' => 'Brzi linkovi',
                'id' => 'brzi_linkovi',
            ));
            $this->widget('bootstrap.widgets.BootMenu', array(
                'items' => array(
                    array('label' => 'Poslovni Partneri', 'icon' => 'plus', 'url' => array('poslovnipartner/admin')),
                    //  array('label'=>'I. Fakture','icon'=>'plus', 'url'=>array('izlaznefakture/admin')),
                    //  array('label'=>'U. Fakture','icon'=>'plus', 'url'=>array('ulaznefakture/admin')),
                    // array('label'=>'PDV evidencija','icon'=>'plus', 'url'=>array('pdvevidencija/admin')),

                    //array('label'=>'Kurs','icon'=>'book', 'url'=>array('/kurs/admin')),
                ),
                'htmlOptions' => array('class' => 'ponude'),
            ));

            $this->endWidget();
            ?>

            <div class="hidden-sm panel panel-default">
                <div class="panel-heading">Prečice</div>
                <div class="panel-body">
                    <kbd><kbd>ctrl</kbd> + O<kbd>,</kbd></kbd> Opcije<br/>
                    <kbd><kbd>ctrl</kbd> + A<kbd>,</kbd></kbd> Prvo slobodno polje u formi<br/>
                    <kbd><kbd>ctrl</kbd> + A<kbd>,</kbd></kbd> Pozicionira na filter za pretragu<br/>
                    <kbd><kbd>ctrl</kbd> + I<kbd>,</kbd></kbd> Izveštaji<br/>
                    <kbd><kbd>ctrl</kbd> + M<kbd>,</kbd></kbd> Sidebar meni<br/>
                </div>
            </div>


        </div>
        <div class="col-xs-12  col-sm-112  col-md-10">
            <?php echo $content; ?>


            <!-- footer -->
        </div>
    </div>

</div>

<!-- page -->


<!-- ram -->

</body>
</html>
