<div class="panel-body"> <table class="table table-striped"> <thead> <tr> <th>#</th> <th>Naslov</th> <th>Podnaslov</th> <th>Autori</th> <th>Uredi</th> <th>Obriši</th> </tr> </thead> <tbody> <?php starteach($array['books']); ?> <tr> <td>{{IDBook}}</td> <td>{{Title}}</td> <td>{{Subtitle}}</td> <td>Pero Perić</td> <td><a href="/admin/knjiga/edit/{{IDBook}}/">Uredi</a></td> <td><a href="/admin/knjiga/delete/{{IDBook}}/">Obriši</a></td> </tr> <?php endeach(); ?> </tbody> </table>
<script> $(function () { $('.form-group.categories input[type="text"]').attr('list', 'CategoriesList').attr('id', 'Categories'); }); </script> </div> </div> <div class="form-group authors"> <label for="Authors" class="col-md-2 control-label">Autori:</label> <div class="col-md-10"> <select multiple class="form-control" name="Authors[]" placeholder="Autori (enter za unos nove)" data-role="tagsinput"></select> <datalist id="AuthorList"> <?php starteach($array['allAuthors']); ?> <option value="{{Name}}"></option> <?php endeach(); ?> </datalist> <script> $(function () { $('.form-group.authors input[type="text"]').attr('list', 'AuthorList').attr('id', 'Authors'); }); </script> </div> </div>
<div id="menu"> <ul> <?php starteach($data, 'text'); ?> <li><a href="#">{{text}}</a></li> <?php endeach(); ?> </ul> </div>
?> <li{{3}}><a href="{{2}}">{{0}}</a></li> <?php endeach(); ?> </ul> <footer> <small>© Bojan Došen, 2015.</small> </footer> </div> <div class="navbar-categories"> <h3>Kategorije</h3> <ul class="nav nav-pills nav-stacked"> <?php starteach($array['categories']); ?> <li><a href="/biblioteke/{{IDCategory}}/" data-href="{{IDCategory}}">{{Name}}</a></li> <?php endeach(); ?> </ul> </div> {{content}} </div> </div> </body> </html>
<link rel="stylesheet" href="//{{root}}/css/bootstrap.min.css" /> <link rel="stylesheet" href="//{{root}}/css/jumbotron-narrow.css" /> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script src="//{{root}}/js/bootstrap.min.js"></script> <script src="//{{root}}/js/String.format.js"></script> <script src="//{{root}}/js/script.js"></script> </head> <body> <div class="container"> <div class="header clearfix"> <nav> <ul class="nav nav-pills pull-right"> <?php starteach(Menu()); ?> <li role="presentation" {{active}}><a href="//{{root}}{{href}}">{{text}}</a></li> <?php endeach(); ?> </ul> </nav> <h3 class="text-muted">{{app-name}}{{subtitle}}</h3> </div> {{content}} <footer class="footer"> <p>© 2015 Company, Inc.</p> </footer>
<div class="panel-heading">Obavijesti <a href="/admin/obavijest/new/" class="btn btn-primary btn-xs pull-right">Dodaj obavijest</a></div> <div class="panel-body"> <table class="table table-striped"> <thead> <tr> <th>#</th> <th>Vrijeme izmjene</th> <th>Naslov</th> <th>Uredi</th> <th>Obriši</th> </tr> </thead> <tbody> <?php starteach($array['notices']); ?> <tr> <td>{{IDNotice}}</td> <td>{{Time}}</td> <td>{{Title}}</td> <td><a href="/admin/obavijest/edit/{{IDNotice}}/">Uredi</a></td> <td><a href="/admin/obavijest/delete/{{IDNotice}}/">Obriši</a></td> </tr> <?php endeach(); ?> </tbody> </table> <nav>