16 lines
937 B
PHP
16 lines
937 B
PHP
<div class="page-head">
|
|
<div><h1>编辑单页:<?php echo e($p['title']); ?></h1><div class="desc">支持 HTML 标签</div></div>
|
|
<a class="btn-ghost" href="<?php echo site_url('admin/pages'); ?>">← 返回</a>
|
|
</div>
|
|
<div class="admin-card">
|
|
<form method="post" action="<?php echo site_url('admin/pages/update/' . $p['id']); ?>">
|
|
<?php echo csrf_field(); ?>
|
|
<div class="field"><label>标题</label><input name="title" value="<?php echo e($p['title']); ?>"></div>
|
|
<div class="field"><label>内容(可包含 <p> <b> 等标签)</label><textarea name="content" style="min-height:260px;font-family:monospace"><?php echo e($p['content']); ?></textarea></div>
|
|
<div class="form-actions">
|
|
<button class="btn-primary" type="submit">保存</button>
|
|
<a class="btn-ghost" href="<?php echo site_url('admin/pages'); ?>">取消</a>
|
|
</div>
|
|
</form>
|
|
</div>
|