-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathargs.php
More file actions
28 lines (20 loc) · 851 Bytes
/
args.php
File metadata and controls
28 lines (20 loc) · 851 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
/*$sql = 'SELECT id, title FROM lf_pages';
$this->db->query($sql);
$pages = $this->db->fetchall();*/
$pages = (new LfPages)->cols('id, title')->getAll();
$args = '';
if(count($pages))
{
$args .= '<select name="ini">
<option value="">-- Select an article --</option>';
foreach($pages as $page)
$args .= '<option value="'.$page['id'].'">'.$page['id'].'. '.$page['title'].'</option>';
$args .= '</select> ';
$args .= '<a href="'.\lf\requestGet('AdminUrl').'apps/pages/edit/'.$save['ini'].'">Edit this Page</a> or ';
$args = str_replace('value="'.$save['ini'].'"', 'value="'.$save['ini'].'" selected="selected"', $args);
}
$args .= '<a href="'.\lf\requestGet('AdminUrl').'apps/pages/new/">Create New Page</a>';
/*$args .= '<input type="checkbox" name="ini[title]" checked="checked">
Show Title';*/
?>