} ?> "> <label for="textArea" class="col-lg-4 control-label">Описание ссылки</label> <div class="col-lg-8"> <textarea name="link_description" id="textArea" class="form-control" rows="3" ><?php echo $object->fields['link_description']; ?> </textarea> </div> </div> </fieldset> <div class="form-group"> <div class="col-lg-10 col-lg-offset-2"> <button class="btn btn-primary" type="submit">Сохранить изменения</button> <a class="btn btn-primary" target="_blank" href="<?php echo M_Link::ToPage('post', $object->fields['post_id']); ?> ">Посмотреть страницу</a> <a class="btn btn-primary" href="<?php echo M_Link::ToAdminPosts('all'); ?> ">Вернуться к списку страниц</a> </div> </div> </form>
public function action_delete() { M_Posts::Instance()->delete($_GET['param']) === true; $url = M_Link::ToAdminPosts('all'); $this->redirect($url); }
$i++; } ?> </tbody> </table> <?php echo $object->navBar; ?> <?php } ?> <?php if ($object->check_priv('C_Posts:action_add')) { ?> <p><a class="btn btn-primary btn" href="<?php echo M_Link::ToAdminPosts('add'); ?> ">Добавить новую запись »</a></p> <?php } ?> </div>
<ul class="nav nav-sidebar"> <?php $active = $object->getCurrController(); ?> <?php if ($object->check_priv('C_Posts:action_index')) { ?> <li <?php if ($active == 'C_Posts') { echo 'class="active"'; } ?> > <a href="<?php echo M_Link::ToAdminPosts(); ?> "> Записи</a> </li> <?php } ?> <?php if ($object->check_priv('C_Users:action_index')) { ?> <li <?php if ($active == 'C_Users') { echo 'class="active"'; } ?>