| <?php |
| /* |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you under the Apache License, Version 2.0 (the |
| * "License"); you may not use this file except in compliance |
| * with the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, |
| * software distributed under the License is distributed on an |
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| * KIND, either express or implied. See the License for the |
| * specific language governing permissions and limitations |
| * under the License. |
| */ |
| |
| namespace TodoList; |
| |
| use \TodoList\Model\Todo; |
| use \TodoList\Util\Utils; |
| |
| //~ Template for index.php |
| // variables: |
| // $template - page to be displayed (included) |
| // $flashes - flash messages |
| |
| ?> |
| <!DOCTYPE html> |
| <html> |
| <head> |
| <title>TODO List - sample application for NetBeans IDE</title> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" > |
| <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" > |
| <meta name="description" content="TODO List - sample application for NetBeans IDE" > |
| <meta name="keywords" content="NetBeans, PHP" > |
| <meta name="author" content="NetBeans PHP team" > |
| |
| <link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/redmond/jquery-ui.css" > |
| <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" > |
| <link href="css/style.css" rel="stylesheet" type="text/css" > |
| <link href="css/layout.css" rel="stylesheet" type="text/css" > |
| |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> |
| <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script> |
| <script type="text/javascript" src="js/script.js"></script> |
| |
| </head> |
| <body id="page"> |
| <div class="tail-top-right"></div> |
| <div id="main"> |
| <!-- header --> |
| <div id="header"> |
| <i class="material-icons logo">assignment</i> |
| <div class="title"> |
| <h1>TODO List</h1> |
| <h2>NetBeans PHP Sample Application</h2> |
| </div> |
| <div class="nb"> |
| <a href="https://netbeans.org/features/php/" target="_blank" title="NetBeans PHP Support"><img src="img/NB-IDE-logo.png" alt="NetBeans logo"></a> |
| </div> |
| </div> |
| <!-- content --> |
| <div id="content"> |
| <div class="wrapper"> |
| <div class="col-1"> |
| <div class="box"> |
| <div class="inner"> |
| <ul class="list"> |
| <li><span><a href="<?php echo Utils::createLink('home'); ?>">Home</a></span></li> |
| <li><span><a href="<?php echo Utils::createLink('list', ['status' => Todo::STATUS_PENDING]); ?>" title="Pending TODOs" |
| ><?php echo Utils::iconStatus(Todo::STATUS_PENDING); ?>Pending TODOs</a></span></li> |
| <li><span><a href="<?php echo Utils::createLink('list', ['status' => Todo::STATUS_DONE]); ?>" title="Done TODOs" |
| ><?php echo Utils::iconStatus(Todo::STATUS_DONE); ?>Done TODOs</a></span></li> |
| <li><span><a href="<?php echo Utils::createLink('list', ['status' => Todo::STATUS_VOIDED]); ?>" title="Voided TODOs" |
| ><?php echo Utils::iconStatus(Todo::STATUS_VOIDED); ?>Voided TODOs</a></span></li> |
| <li class="last"><span><a href="<?php echo Utils::createLink('add-edit'); ?>" title="Add TODO" |
| ><i class="material-icons new">insert_invitation</i>Add TODO</a></span></li> |
| </ul> |
| </div> |
| </div> |
| </div> |
| <div class="col-2"> |
| <div class="indent"> |
| <?php if ($flashes): ?> |
| <ul id="flashes"> |
| <?php foreach ($flashes as $flash): ?> |
| <li><?php echo $flash; ?></li> |
| <?php endforeach; ?> |
| </ul> |
| <?php endif; ?> |
| |
| <?php require $template; ?> |
| </div> |
| </div> |
| </div> |
| </div> |
| <!-- footer --> |
| <div id="footer"> |
| <div class="indent"> |
| <div class="fleft">2019 © Copyright The Apache Software Foundation, All rights reserved</div> |
| </div> |
| </div> |
| </div> |
| </body> |
| </html> |