public static function getTreePages($pages) { self::$pages = $pages; foreach (self::$pages as $item) { if ($item['parent_id'] == '0') { self::$tree[$item['id']] = self::pereborchild(self::recurs($item, self::$pages)); } } return self::$tree; }
?> <?php echo Htmlhelper::formGroupInput([], 'Фамилия', 'lastname', TRUE); ?> <?php echo Htmlhelper::formGroupInput([], 'Email', 'email', TRUE); ?> <?php echo Htmlhelper::formGroupInput([], 'Телефон', 'phone', TRUE); ?> <?php echo Htmlhelper::formGroupInput([], 'Должность', 'job', TRUE); ?> <?php echo Htmlhelper::formGroupInput([], 'Пароль', 'password', TRUE); ?> <?php echo Htmlhelper::formGroupSelectEmpty([], 'Тип пользователя', 'type', Users_model::$types); ?> <?php echo Htmlhelper::formGroupCheckbox([], 'Блокирован', 'blocked'); ?> </div> </div> </div> <?php echo Htmlhelper::formGroupButton('Сохранить', 'class="btn btn-primary"'); ?> </form> </div> </div>
echo $news['id']; ?> </th> <td><a href="#" onclick="admin.getNews(<?php echo $news['id']; ?> )"><?php echo $news['name']; ?> </a></td> <td><?php echo $news['slug']; ?> </td> <td><?php echo Htmlhelper::getStatus($news['is_published']); ?> </td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> <div class="col-md-7 content-ajax"></div> </div> </section> </div>
<div class="content-wrapper"> <section class="content-header"> <h1>Каталог</h1> </section> <section class="content"> <div class="row"> <div class="col-md-5"> <div class="box box-info"> <div class="box-header with-border"> <h3 class="box-title">Редактирование каталога</h3> <div class="box-tools pull-right"> <button class="btn btn-primary btn-sm" onclick="admin.addCat()"><i class="fa fa-plus"></i> Добавить элемент</button> </div> </div> <div class="box-body"> <?php echo Htmlhelper::getTreeCatalogBuildMenu($data['catalog']); ?> </div> </div> </div> <div class="col-md-7 content-ajax"></div> </div> </section> </div>
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"> <link rel="stylesheet" href="/assets/dops/bootstrap/css/bootstrap.min.css"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css"> <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css"> <link rel="stylesheet" href="/assets/dops/dist/css/AdminLTE.min.css"> <link rel="stylesheet" href="/assets/dops/plugins/iCheck/square/blue.css"> </head> <body class="hold-transition login-page"> <div class="login-box"> <div class="login-logo"> <a href='/'><b>St</b>Cms v2.0</a> </div> <div class="login-box-body"> <p class="login-box-msg">Вход в панель управленпия</p> <?php echo Htmlhelper::checkError($data); ?> <form action="/login" method="post"> <div class="form-group has-feedback"> <input type="email" required="true" name="email" class="form-control" placeholder="Email"> <span class="glyphicon glyphicon-envelope form-control-feedback"></span> </div> <div class="form-group has-feedback"> <input type="password" required="true" name="password" class="form-control" placeholder="Пароль"> <span class="glyphicon glyphicon-lock form-control-feedback"></span> </div> <div class="row"> <div class="col-xs-8"></div> <div class="col-xs-4"> <button type="submit" class="btn btn-primary btn-block btn-flat">Войти</button> </div>
<div class="content-wrapper"> <section class="content-header"> <h1>Страницы</h1> </section> <section class="content"> <div class="row"> <div class="col-md-5"> <div class="box box-info"> <div class="box-header with-border"> <h3 class="box-title">Редактирование страницы</h3> <div class="box-tools pull-right"> <button class="btn btn-primary btn-sm" onclick="admin.addPage()"><i class="fa fa-plus"></i> Добавить страницу</button> </div> </div> <div class="box-body"> <?php echo Htmlhelper::getTreePagesBuildMenu($data['pages']); ?> </div> </div> </div> <div class="col-md-7 content-ajax"></div> </div> </section> </div>
echo $art['id']; ?> </th> <td><a href="#" onclick="admin.getArticles(<?php echo $art['id']; ?> )"><?php echo $art['name']; ?> </a></td> <td><?php echo $art['slug']; ?> </td> <td><?php echo Htmlhelper::getStatus($art['is_published']); ?> </td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> <div class="col-md-7 content-ajax"></div> </div> </section> </div>
echo $user['id']; ?> )"><?php echo $user['firstname']; ?> </a></td> <td><?php echo Users_model::$types[$user['type']]; ?> </td> <td><?php echo $user['email']; ?> </td> <td><?php echo Htmlhelper::getStatusBlocked($user['blocked']); ?> </td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> <div class="col-md-7 content-ajax"></div> </div> </section> </div>