3 require('includes/header.php');
7 add_error('You are not wise enough.', true);
10 $page_title = 'Content management';
13 <p
>This feature can be used to edit
and create non
-dynamic pages
.</p
>
25 $table->define_columns($columns, 'Content snippet');
26 $table->add_td_class('Content snippet', 'snippet');
28 $result = $link->query('SELECT id, url, page_title, content FROM pages');
30 while( $row = $result->fetch_assoc() )
34 '<a href="/' . $row['url'] . '">' . $row['url'] . '</a>',
36 snippet($row['content']),
37 '<a href="/edit_page/' . $row['id'] . '">✎</a>',
38 '<a href="/delete_page/' . $row['id'] . '">✘</a>'
44 echo $table->output('pages');
49 <li
><a href
="/new_page">New page
</a
></li
>
54 require('includes/footer.php');