Пример #1
0
 public function view()
 {
     $note_id = phpgw::get_var('note_id', 'int', 'GET');
     $action = phpgw::get_var('action', 'string', 'GET');
     $GLOBALS['phpgw_info']['flags']['app_header'] = lang('notes') . ': ' . lang('view note');
     $note = $this->bonotes->read_single($note_id);
     $note['content'] = phpgw::clean_html($note['content']);
     $cat = lang('unfiled');
     if ($note['cat_id']) {
         $cat = lang('filed under: %1', $this->cats->id2name($note['cat_id']));
     }
     $date = $GLOBALS['phpgw']->common->show_date($note['date']);
     $done = $GLOBALS['phpgw']->link('/index.php', array('menuaction' => 'notes.uinotes.index'));
     $data = array('done_action' => $done, 'lang_category' => $cat, 'lang_created' => lang('created at %1', $date), 'lang_done' => lang('done'), 'value_content' => $note['content']);
     $GLOBALS['phpgw']->xslttpl->set_var('phpgw', array('view' => $data));
 }