updated: show announcement on textarea
This commit is contained in:
parent
79543c77c1
commit
8496cb7593
1 changed files with 8 additions and 0 deletions
|
@ -25,6 +25,14 @@ if(isset($_POST['update']))
|
||||||
$msg = e("Announcement has been updated",'m');
|
$msg = e("Announcement has been updated",'m');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
global $db;
|
||||||
|
$ann_array = $db->_select('SELECT * FROM '.tbl("global_announcement"));
|
||||||
|
|
||||||
|
if(is_array($ann_array))
|
||||||
|
assign('an', $ann_array[0]['announcement']);
|
||||||
|
else
|
||||||
|
assign('an', '');
|
||||||
|
|
||||||
subtitle("Annoucment Manager");
|
subtitle("Annoucment Manager");
|
||||||
template_files('edit_announcemnent.html');
|
template_files('edit_announcemnent.html');
|
||||||
display_it();
|
display_it();
|
||||||
|
|
Loading…
Add table
Reference in a new issue