/** * Created by PhpStorm. * User: crosscomp * Date: 22.01.2015 * Time: 11:54 */ ?> <div class="container-fluid"> <div class="panel panel-primary"> <div class="panel-heading"> <h3>Categories List</h3> </div> <div class="panel-body"> <a class="btn btn-primary" href="<?php echo Helpers\Uri::makeUriFromId('Admin/Menus/Add/' . $id); ?> ">Add Menu</a> <button name="menu-node-save" class="btn btn-primary">Save</button> <div> <label for="show-invisible-items">Show Invisible Menus</label> <input class="checkbox-inline" type="checkbox" id="show-invisible-items"/> </div> <?php if ($items->count()) { ?> <?php echo $items::getMenuSortableNode(); ?> <?php }
<td><a href="<?php echo Helpers\Uri::makeUri('Admin/Entities/Edit') . '/' . $item->id . App::URI_EXT; ?> "><?php echo $item->text; ?> </a></td> <td> <a href="<?php echo Helpers\Uri::makeUri('Admin/Entities/Edit') . '/' . $item->id . App::URI_EXT; ?> "><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></a> </td> <td> <a class="remove-confirm" href="<?php echo Helpers\Uri::makeUri('Admin/Entities/Delete') . '/' . $item->id . App::URI_EXT; ?> "><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></a> </td> </tr> <?php } ?> </table> </div> <?php } ?> </div> </div> </div>
removeClass: "btn btn-danger", removeLabel: "Delete", removeIcon: "<i class=\"glyphicon glyphicon-trash\"></i> ", uploadClass: "btn btn-info", uploadLabel: "Upload", uploadIcon: "<i class=\"glyphicon glyphicon-upload\"></i> ", allowedFileTypes: ["image"], previewClass: "bg-warning", initialPreview: [ <?php echo $item->icon ? '\'<img style="height:160px" src="' . File::getImagePath($item->icon) . '">\'' : ''; ?> ], initialPreviewConfig: [{ caption: '<?php echo $item->text() . ' Icon'; ?> ', width: "120px", url: '<?php echo Helpers\Uri::makeRouteUri("back.menus.image.delete"); ?> ', key: <?php echo $item->id; ?> }] }); }); </script>
<?php namespace App; require_once __DIR__ . '/Helpers/Uri.php'; require_once __DIR__ . "/FinderFactory.php"; // generate app uri $uri = new \Helpers\Uri(); $appUri = $uri->getAppUri(); // construct a new factory $finderFactory = new FinderFactory(); $finder = $finderFactory->getFinder($appUri); // call the specific function based on query string input if (isset($_GET['f'])) { #eg: area/arealist $finder->find($_GET['f']); } else { // default return $data = ["status" => 500, "message" => "Invalid Request"]; header('Content-Type: application/json'); echo json_encode($data); }
browseIcon: "<i class=\"glyphicon glyphicon-picture\"></i> ", removeClass: "btn btn-danger", removeLabel: "Delete", removeIcon: "<i class=\"glyphicon glyphicon-trash\"></i> ", uploadClass: "btn btn-info", uploadLabel: "Upload", uploadIcon: "<i class=\"glyphicon glyphicon-upload\"></i> ", allowedFileTypes: ["image"], previewClass: "bg-warning", initialPreview: [ <?php echo $item->flag ? '\'<img style="height:160px" src="' . File::getImagePath($item->flag) . '">\'' : ''; ?> ], initialPreviewConfig: [{ caption: '<?php echo $item->name . ' Flag'; ?> ', width: "120px", url: '<?php echo Helpers\Uri::makeRouteUri("back.languages.image.delete"); ?> ', key: <?php echo $item->id; ?> }] }); }); </script>
<li><a href="<?php echo Helpers\Uri::makeRouteUri('back.languages.add'); ?> ">Add</a></li> <li><a href="<?php echo Helpers\Uri::makeRouteUri('back.languages.list'); ?> ">List</a></li> </ul> </li> <li><a href="<?php echo Helpers\Uri::makeRouteUri('back.quiz'); ?> ">Quiz</a></li> <li><a href="<?php echo Helpers\Uri::makeRouteUri('back.settings'); ?> ">Settings</a></li> </ul> <!-- <ul class="nav navbar-nav navbar-right">--> <!-- <li>--> <!-- <a href="--><?php //=Helpers\Uri::makeRouteUri('auth.logout') ?> <!--">Logout <span class="glyphicon glyphicon-log-out" aria-hidden="true"></span></a>--> <!-- </li>--> <!-- </ul>--> </div><!-- /.nav-collapse --> </div><!-- /.container --> </nav><!-- /.navbar -->