示例#1
0
    /*$racun->created_at = date('YMd hms');
      $racun->updated_at = date('YMd hms');*/
    $racun->korisnik_id = $_SESSION['user_id'];
    if ($racun->save()) {
        $session->message = "Zadatak je uspješno promjenjen !!!";
        redirect_to('create.php');
    } else {
        //Neuspješno
        $message = join("<div class=alert alert-error>{$racun->errors}</div><br>");
    }
}
if (empty($_GET['id'])) {
    $session->message("Nije zaprimljen id računa");
    redirect_to('index.php');
}
$zbrojniNalog = ZbrojniNalog::find_by_id($_GET['id']);
include '../predlosci/index.php';
?>
<div id="sucess"></div>
<div class="span15">
    <div id="responsecontainer" align="center"></div>
    <table class="table" id="dodaj">
        <thead>
        <tr>
            <th>
                <input type="hidden" value="<?php 
echo $zbrojniNalog->id;
?>
" id="znid">
                Naziv datoteke: <?php 
echo $zbrojniNalog->naziv;