30 lines
1.3 KiB
PHP
30 lines
1.3 KiB
PHP
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>Добавление страницы</title>
|
|
<meta charset="utf-8">
|
|
<link rel="stylesheet" type="text/css" media="screen" href="/assets/css/admin.css">
|
|
<?php $editor = Editor::factory()->set('width', '')->set('height', 300);
|
|
if ($editor->css() != NULL) foreach($editor->css() as $css) echo html::style($css);
|
|
if ($editor->js() != NULL) foreach($editor->js() as $js) echo html::script($js);
|
|
?>
|
|
</head>
|
|
<body>
|
|
<div id="error"><?php if(!empty($error)) echo $error;?></div>
|
|
<div id="message"><?php if(!empty($message)) echo $message;?></div>
|
|
<p>Существующие страницы:</p>
|
|
<?php echo Request::factory('navigation/standard')->execute() ?>
|
|
<hr>
|
|
<h3>Добавление страницы</h3>
|
|
<?php echo form::open('admin/pages/add') ?>
|
|
<p><?php echo form::label('name','Короткое имя: '); echo form::input('name','') ?></p>
|
|
<p><?php echo form::label('content','Содержимое страницы:'); //echo Form::textarea('content');?></p>
|
|
<textarea name="content" id="content"></textarea>
|
|
<p><?php echo form::label('order','Порядок (0 по умолчанию): '); echo form::input('order','0') ?></p>
|
|
<p><?php echo form::submit('submit','Сохранить страницу') ?>
|
|
<?php $editor->render(TRUE, FALSE); ?>
|
|
</p>
|
|
<?php echo form::close() ?>
|
|
</body>
|
|
</html>
|