diff --git a/etemplate/doc/et_notes/inc/class.bo.inc.php b/etemplate/doc/et_notes/inc/class.bo.inc.php deleted file mode 100644 index aa28487958..0000000000 --- a/etemplate/doc/et_notes/inc/class.bo.inc.php +++ /dev/null @@ -1,277 +0,0 @@ - True, - 'read_single' => True, - 'save' => True, - 'delete' => True, - 'check_perms' => True, - 'set_font' => True, - 'set_font_size' => True, - 'read_preferences' => True, - 'save_preferences' => True, - 'get_rows' => True - ); - - var $soap_functions = array( - 'list' => array( - 'in' => array('int','int','struct','string','int'), - 'out' => array('array') - ), - 'read' => array( - 'in' => array('int','struct'), - 'out' => array('array') - ), - 'save' => array( - 'in' => array('int','struct'), - 'out' => array() - ), - 'delete' => array( - 'in' => array('int','struct'), - 'out' => array() - ) - ); - - function bo($session=False) - { - $this->so = CreateObject('et_notes.so'); - $this->account = $GLOBALS['phpgw_info']['user']['account_id']; - $this->grants = $GLOBALS['phpgw']->acl->get_grants('et_notes'); - $this->grants[$this->account] = PHPGW_ACL_READ + PHPGW_ACL_ADD + PHPGW_ACL_EDIT + PHPGW_ACL_DELETE; - - if ($session) - { - $this->read_sessiondata(); - $this->use_session = True; - } - - global $start, $search, $filter, $cat_id; - - if(isset($start)) { $this->start = $start; } - if(isset($search)) { $this->search = $search; } - if(!empty($filter)) { $this->filter = $filter; } - if(isset($cat_id)) { $this->cat_id = $cat_id; } - } - - function list_methods($_type='xmlrpc') - { - /* - This handles introspection or discovery by the logged in client, - in which case the input might be an array. The server always calls - this function to fill the server dispatch map using a string. - */ - if (is_array($_type)) - { - $_type = $_type['type'] ? $_type['type'] : $_type[0]; - } - switch($_type) - { - case 'xmlrpc': - $xml_functions = array( - 'read' => array( - 'function' => 'read', - 'signature' => array(array(xmlrpcInt,xmlrpcStruct)), - 'docstring' => lang('Read a single entry by passing the id and fieldlist.') - ), - 'save' => array( - 'function' => 'save', - 'signature' => array(array(xmlrpcStruct,xmlrpcStruct)), - 'docstring' => lang('Update a single entry by passing the fields.') - ), - 'delete' => array( - 'function' => 'delete', - 'signature' => array(array(xmlrpcBoolean,xmlrpcInt)), - 'docstring' => lang('Delete a single entry by passing the id.') - ), - 'list' => array( - 'function' => '_list', - 'signature' => array(array(xmlrpcStruct,xmlrpcStruct)), - 'docstring' => lang('Read a list of entries.') - ), - 'list_methods' => array( - 'function' => 'list_methods', - 'signature' => array(array(xmlrpcStruct,xmlrpcString)), - 'docstring' => lang('Read this list of methods.') - ) - ); - return $xml_functions; - break; - case 'soap': - return $this->soap_functions; - break; - default: - return array(); - break; - } - } - - function save_sessiondata($data) - { - if ($this->use_session) - { - $GLOBALS['phpgw']->session->appsession('session_data','et_notes',$data); - } - } - - function read_sessiondata() - { - $data = $GLOBALS['phpgw']->session->appsession('session_data','et_notes'); - - $this->start = $data['start']; - $this->search = $data['search']; - $this->filter = $data['filter']; - $this->cat_id = $data['cat_id']; - } - - function check_perms($has, $needed) - { - return (!!($has & $needed) == True); - } - - function read($start = '', $search = '', $filter = '', $cat_id = '') - { - if (is_array($start)) - { - $params = $start; - } - else - { - $params['start'] = $start; - $params['search'] = $search; - $params['filter'] = $filter; - $params['cat_id'] = $cat_id; - } - - $notes = $this->so->read($params['start'],$params['search'],$params['filter'],$params['cat_id']); - $this->total_records = $this->so->total_records; - - for ($i=0; $icommon->show_date($notes[$i]['date']); - $notes[$i]['owner'] = $GLOBALS['phpgw']->accounts->id2name($notes[$i]['owner']); - } - - return $notes; - } - - function read_single($note_id) - { - return $this->so->read_single($note_id); - } - - function save($note) - { - if ($note['access']) - { - $note['access'] = 'private'; - } - else - { - $note['access'] = 'public'; - } - - if ($note['id']) - { - if ($note['id'] != 0) - { - $this->so->edit($note); - } - } - else - { - $this->so->add($note); - } - } - - function delete($params) - { - if (is_array($params)) - { - $this->so->delete($params[0]); - } - else - { - $this->so->delete($params); - } - } - - function read_preferences() - { - $GLOBALS['phpgw']->preferences->read_repository(); - - $prefs = array(); - - if ($GLOBALS['phpgw_info']['user']['preferences']['notes']) - { - $prefs['notes_font'] = $GLOBALS['phpgw_info']['user']['preferences']['notes']['notes_font']; - $prefs['notes_font_size'] = $GLOBALS['phpgw_info']['user']['preferences']['notes']['notes_font_size']; - } - return $prefs; - } - - function save_preferences($prefs) - { - $GLOBALS['phpgw']->preferences->read_repository(); - - if ($prefs) - { - $GLOBALS['phpgw']->preferences->change('notes','notes_font',$prefs['notes_font']); - $GLOBALS['phpgw']->preferences->change('notes','notes_font_size',$prefs['notes_font_size']); - $GLOBALS['phpgw']->preferences->save_repository(True); - } - } - - function get_rows($query,&$rows,&$readonlys) - { - //echo "

notes.ui.get_rows(start=$query[start],search='$query[search]',filter='$query[filter]',cat_id=$query[cat_id]): notes_list ="; - - $rows = $this->read($query['start'],$query['search'],$query['filter'],$query['cat_id']); - if (!is_array($rows)) - { - $rows = array( ); - } - else - { - array_unshift($rows,0); each($rows); // first entry is not used - //_debug_array($notes_list); - } - $readonlys = array( ); - while (list($n,$note) = each($rows)) - { - if (!$this->check_perms($this->grants[$note['owner_id']],PHPGW_ACL_EDIT)) - { - $readonlys["edit[$note[id]]"] = True; - } - if (!$this->check_perms($this->grants[$note['owner_id']],PHPGW_ACL_DELETE)) - { - $readonlys["delete[$note[id]]"] = True; - } - $rows[$n]['access'] = $note['access'] == 'private' ? 'private' : 'public'; - } - reset($rows); - - return $this->total_records; - } - } -?> diff --git a/etemplate/doc/et_notes/inc/class.so.inc.php b/etemplate/doc/et_notes/inc/class.so.inc.php deleted file mode 100644 index a084eb9eb4..0000000000 --- a/etemplate/doc/et_notes/inc/class.so.inc.php +++ /dev/null @@ -1,138 +0,0 @@ -db = $GLOBALS['phpgw']->db; - $this->db2 = $this->db; - $this->grants = $GLOBALS['phpgw']->acl->get_grants('et_notes'); - $this->owner = $GLOBALS['phpgw_info']['user']['account_id']; - } - - function read($start, $search = '', $filter = '',$cat_id = '') - { - if (! $filter) - { - $filter = 'all'; - } - - if ($filter == 'all') - { - $filtermethod = " ( note_owner=" . $this->owner; - if (is_array($this->grants)) - { - $grants = $this->grants; - while (list($user) = each($grants)) - { - $public_user_list[] = $user; - } - reset($public_user_list); - $filtermethod .= " OR (note_access='public' AND note_owner IN(" . implode(',',$public_user_list) . ")))"; - } - else - { - $filtermethod .= ' )'; - } - } - elseif ($filter == 'public') - { - $filtermethod = " note_owner='" . $this->owner . "'"; - } - else - { - $filtermethod = " note_owner='" . $this->owner . "' AND note_access='private'"; - } - - if ($cat_id) - { - $filtermethod .= " AND note_category='$cat_id' "; - } - - if($search) - { - $search = ereg_replace("'",'',$search); - $search = ereg_replace('"','',$search); - - $searchmethod = " AND note_content LIKE '%$search%'"; - } - - $sql = "SELECT * FROM phpgw_et_notes WHERE $filtermethod $searchmethod ORDER BY note_date DESC"; - - $this->db2->query($sql,__LINE__,__FILE__); - $this->total_records = $this->db2->num_rows(); - $this->db->limit_query($sql,$start,__LINE__,__FILE__); - - while ($this->db->next_record()) - { - $ngrants = (int)$this->grants[$this->db->f('note_owner')]; - $notes[] = array - ( - 'id' => (int)$this->db->f('note_id'), - 'owner' => $this->db->f('note_owner'), - 'owner_id' => (int)$this->db->f('note_owner'), - 'access' => $this->db->f('note_access'), - 'date' => $this->db->f('note_date'), - 'cat' => (int)$this->db->f('note_category'), - 'content' => $this->db->f('note_content'), - 'grants' => $ngrants - ); - } - return $notes; - } - - function read_single($note_id) - { - $this->db->query("select * from phpgw_et_notes where note_id='$note_id'",__LINE__,__FILE__); - - if ($this->db->next_record()) - { - $note['id'] = (int)$this->db->f('note_id'); - $note['owner'] = $this->db->f('note_owner'); - $note['content'] = $this->db->f('note_content'); - $note['access'] = $this->db->f('note_access'); - $note['date'] = $this->db->f('note_date'); - $note['cat'] = (int)$this->db->f('note_category'); - - return $note; - } - } - - function add($note) - { - $note['content'] = $this->db->db_addslashes($note['content']); - - $this->db->query("INSERT INTO phpgw_et_notes (note_owner,note_access,note_date,note_content,note_category) " - . "VALUES ('" . $this->owner . "','" . $note['access'] . "','" . time() . "','" . $note['content'] - . "','" . $note['cat'] . "')",__LINE__,__FILE__); - //return $this->db->get_last_insert_id('phpgw_et_notes','note_id'); - } - - function edit($note) - { - $note['content'] = $this->db->db_addslashes($note['content']); - - $this->db->query("UPDATE phpgw_et_notes set note_content='" . $note['content'] . "', note_date='" . time() . "', note_category='" - . $note['cat'] . "', note_access='" . $note['access'] . "' WHERE note_id=" . intval($note['id']),__LINE__,__FILE__); - } - - function delete($note_id) - { - $this->db->query('DELETE FROM phpgw_et_notes WHERE note_id=' . intval($note_id),__LINE__,__FILE__); - } - } -?> diff --git a/etemplate/doc/et_notes/inc/class.ui.inc.php b/etemplate/doc/et_notes/inc/class.ui.inc.php deleted file mode 100644 index e41e6432c7..0000000000 --- a/etemplate/doc/et_notes/inc/class.ui.inc.php +++ /dev/null @@ -1,210 +0,0 @@ - True, - 'view' => True, - 'add' => True, - 'edit' => True, - 'delete' => True, - 'preferences' => True - ); - - function ui() - { - $this->cats = CreateObject('phpgwapi.categories'); - $this->account = $GLOBALS['phpgw_info']['user']['account_id']; - $this->tpl = CreateObject('etemplate.etemplate','et_notes.edit'); - $this->bo = CreateObject('et_notes.bo',True); - - $this->session_data = array( - 'start' => $this->bo->start, - 'search' => $this->bo->search, - 'filter' => $this->bo->filter, - 'cat_id' => $this->bo->cat_id - ); - $this->data = $this->bo->data; - } - - function save_sessiondata() - { - $this->bo->save_sessiondata($this->session_data); - } - - function index($values = 0) - { - //echo "

notes.ui.index: values = "; _debug_array($values); - - if (!is_array($values)) - { - $values = array('nm' => $this->session_data); - } - if ($values['add'] || $values['cats'] || isset($values['nm']['rows'])) - { - $this->session_data = $values['nm']; - unset($this->session_data['rows']); - $this->save_sessiondata(); - - if ($values['add']) - { - return $this->edit(); - } - elseif ($values['cats']) - { - Header('Location: ' .$GLOBALS['phpgw']->link('/index.php?menuaction=preferences.uicategories.index&cats_app=et_notes&cats_level=True&global_cats=True')); - $GLOBALS['phpgw']->common->phpgw_exit(); - } - elseif (isset($values['nm']['rows']['view'])) - { - list($id) = each($values['nm']['rows']['view']); - return $this->view($id); - } - elseif (isset($values['nm']['rows']['edit'])) - { - list($id) = each($values['nm']['rows']['edit']); - return $this->edit($id); - } - elseif (isset($values['nm']['rows']['delete'])) - { - list($id) = each($values['nm']['rows']['delete']); - return $this->delete($id); - } - } - $this->tpl->read('et_notes.index'); - - $values['nm']['options-filter'] = array - ( - 'all' => 'Show all', - 'public' => 'Only yours', - 'private' => 'Private' - ); - $values['nm']['get_rows'] = 'et_notes.bo.get_rows'; - $values['nm']['no_filter2'] = True; - $values['user'] = $GLOBALS['phpgw_info']['user']['fullname']; - - $this->tpl->exec('et_notes.ui.index',$values); - } - - function edit($values=0,$view=False) - { - //echo "

notes.ui.edit():"; _debug_array($values); - - if (!is_array($values)) - { - $id = $values > 0 ? $values : get_var('id',array('POST','GET')); - $values = array( ); - } - else - { - $id = $values['id']; - } - if ($id > 0) - { - $content = $this->bo->read_single($id); - } - else - { - $content = array(); - } - if ($this->debug) - { - echo '

edit: id=$id, values = ' . _debug_array($values); - } - if ($values['save']) - { - $this->bo->save($values); - return $this->index(); - } - elseif($values['done']) - { - return $this->index(); - } - elseif($values['delete']) - { - return $this->delete($values['id']); - } - elseif($values['reset']) - { - $content = array(); - } - elseif($values['cats']) - { - Header('Location: ' .$GLOBALS['phpgw']->link('/index.php?menuaction=preferences.uicategories.index&cats_app=et_notes&cats_level=True&global_cats=True')); - $GLOBALS['phpgw']->common->phpgw_exit(); - } - if ($view) - { - $content['header'] = 'Notes - View note for'; - $this->tpl->read('et_notes.view'); - $no_button['content'] = $no_button['cat_id'] = $no_button['access'] = True; // make the tpl readonly - $no_button['delete'] = !$this->bo->check_perms($this->bo->grants[$content['owner']],PHPGW_ACL_DELETE); - $no_button['edit'] = !$this->bo->check_perms($this->bo->grants[$content['owner']],PHPGW_ACL_EDIT); - } - else - { - if ($content['id'] <= 0) - { - $no_button['delete'] = True; - $content['header'] = 'Notes - Add note for'; - $content['owner'] = $GLOBALS['phpgw_info']['user']['account_id']; - } - else - { - $no_button['reset'] = True; - $no_button['delete'] = !$this->bo->check_perms($this->bo->grants[$content['owner']],PHPGW_ACL_DELETE); - $content['header'] = 'Notes - Edit note for'; - } - } - $content['user'] = $GLOBALS['phpgw_info']['user']['fullname']; - - $this->tpl->exec('et_notes.ui.edit',$content,'',$no_button,array('id' => $id)); - } - - function view($id) - { - $this->edit($id,True); - } - - function delete($values=0) - { - if (!is_array($values)) - { - if (!$values) - { - $values = get_var('id',array('POST','GET')); - } - if ($values > 0) - { - $content = $this->bo->read_single($values); - $this->tpl->read('et_notes.delete'); - $this->tpl->exec('et_notes.ui.delete',$content,'','',array('id' => $values)); - return; - } - } - elseif ($values['confirm']) - { - $this->bo->delete($values['id']); - } - $this->index(); - } - } -?> diff --git a/etemplate/doc/et_notes/inc/hook_add_def_pref.inc.php b/etemplate/doc/et_notes/inc/hook_add_def_pref.inc.php deleted file mode 100644 index e353bf5f4d..0000000000 --- a/etemplate/doc/et_notes/inc/hook_add_def_pref.inc.php +++ /dev/null @@ -1,16 +0,0 @@ -change('notes','notes_font','Verdana,Arial,Helvetica,sans-serif'); - $pref->change('notes','notes_font_size','3'); -?> diff --git a/etemplate/doc/et_notes/inc/hook_admin.inc.php b/etemplate/doc/et_notes/inc/hook_admin.inc.php deleted file mode 100644 index d4f11e3430..0000000000 --- a/etemplate/doc/et_notes/inc/hook_admin.inc.php +++ /dev/null @@ -1,23 +0,0 @@ - * - * -------------------------------------------- * - * This program is free software; you can redistribute it and/or modify it * - * under the terms of the GNU General Public License as published by the * - * Free Software Foundation; either version 2 of the License, or (at your * - * option) any later version. * - \**************************************************************************/ - // $Id$ - // $Source$ - - { - $values = array - ( - 'Global Categories' => $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uicategories.index&appname=' . $appname . '&global_cats=True') - ); - - display_section($appname,$appname,$values); - } -?> diff --git a/etemplate/doc/et_notes/inc/hook_deleteaccount.inc.php b/etemplate/doc/et_notes/inc/hook_deleteaccount.inc.php deleted file mode 100644 index b4064c96f9..0000000000 --- a/etemplate/doc/et_notes/inc/hook_deleteaccount.inc.php +++ /dev/null @@ -1,32 +0,0 @@ - * - * -------------------------------------------- * - * This program is free software; you can redistribute it and/or modify it * - * under the terms of the GNU General Public License as published by the * - * Free Software Foundation; either version 2 of the License, or (at your * - * option) any later version. * - \**************************************************************************/ - - /* $Id$ */ - - // Delete all records for a user - $table_locks = Array('phpgw_et_notes'); - $db2 = $GLOBALS['phpgw']->db; - $db2->lock($table_locks); - - $new_owner = intval(get_var('new_owner',Array('POST'))); - $account_id = intval(get_var('account_id',Array('POST'))); - if($new_owner==0) - { - $db2->query('DELETE FROM phpgw_et_notes WHERE note_owner='.$account_id,__LINE__,__FILE__); - } - else - { - $db2->query('UPDATE phpgw_et_notes SET note_owner='.$new_owner - . ' WHERE note_owner='.$account_id,__LINE__,__FILE__); - } - $db2->unlock(); -?> diff --git a/etemplate/doc/et_notes/index.php b/etemplate/doc/et_notes/index.php deleted file mode 100644 index 04042cb485..0000000000 --- a/etemplate/doc/et_notes/index.php +++ /dev/null @@ -1,25 +0,0 @@ - 'et_notes', - 'noheader' => True, - 'nonavbar' => True - ); - include('../header.inc.php'); - - header('Location: '.$GLOBALS['phpgw']->link('/index.php','menuaction=et_notes.ui.index')); - $GLOBALS['phpgw']->common->phpgw_exit(); -?> diff --git a/etemplate/doc/et_notes/setup/etemplates.inc.php b/etemplate/doc/et_notes/setup/etemplates.inc.php deleted file mode 100644 index 3ef9f749dd..0000000000 --- a/etemplate/doc/et_notes/setup/etemplates.inc.php +++ /dev/null @@ -1,15 +0,0 @@ - 'et_notes.index.rows','template' => '','lang' => '','group' => '0','version' => '0.9.15.003','data' => 'a:3:{i:0;a:2:{s:2:\"c1\";s:2:\"th\";s:2:\"c2\";s:7:\"row,top\";}i:1;a:7:{s:1:\"A\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:4:\"Date\";}s:1:\"B\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:4:\"Note\";}s:1:\"C\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:5:\"Owner\";}s:1:\"D\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:6:\"Access\";}s:1:\"E\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:4:\"View\";}s:1:\"F\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:4:\"Edit\";}s:1:\"G\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:6:\"Delete\";}}i:2;a:7:{s:1:\"A\";a:3:{s:4:\"type\";s:5:\"label\";s:7:\"no_lang\";s:1:\"1\";s:4:\"name\";s:12:\"${row}[date]\";}s:1:\"B\";a:3:{s:4:\"type\";s:5:\"label\";s:7:\"no_lang\";s:1:\"1\";s:4:\"name\";s:15:\"${row}[content]\";}s:1:\"C\";a:3:{s:4:\"type\";s:5:\"label\";s:7:\"no_lang\";s:1:\"1\";s:4:\"name\";s:13:\"${row}[owner]\";}s:1:\"D\";a:2:{s:4:\"type\";s:5:\"label\";s:4:\"name\";s:14:\"${row}[access]\";}s:1:\"E\";a:5:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:4:\"View\";s:4:\"name\";s:19:\"view[$row_cont[id]]\";s:8:\"onchange\";s:1:\"1\";s:4:\"help\";s:14:\"view this note\";}s:1:\"F\";a:5:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:4:\"Edit\";s:4:\"name\";s:19:\"edit[$row_cont[id]]\";s:8:\"onchange\";s:1:\"1\";s:4:\"help\";s:14:\"edit this note\";}s:1:\"G\";a:5:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:6:\"Delete\";s:4:\"name\";s:21:\"delete[$row_cont[id]]\";s:8:\"onchange\";s:1:\"1\";s:4:\"help\";s:16:\"delete this note\";}}}','size' => '','style' => '','modified' => '1049327127',); - -$templ_data[] = array('name' => 'et_notes.edit','template' => '','lang' => '','group' => '0','version' => '0.9.15.003','data' => 'a:10:{i:0;a:8:{s:1:\"A\";s:3:\"10%\";s:1:\"B\";s:3:\"10%\";s:1:\"C\";s:3:\"10%\";s:1:\"D\";s:3:\"10%\";s:2:\"c4\";s:3:\"nmr\";s:2:\"c5\";s:7:\"nmr,top\";s:2:\"c6\";s:3:\"nmr\";s:2:\"c7\";s:3:\"nmr\";}i:1;a:5:{s:1:\"A\";a:6:{s:4:\"type\";s:5:\"label\";s:4:\"size\";s:1:\"b\";s:4:\"span\";s:1:\"4\";s:5:\"label\";s:21:\"Notes - Edit Note for\";s:7:\"no_lang\";s:1:\"1\";s:4:\"name\";s:4:\"user\";}s:1:\"B\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"C\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"D\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"E\";a:5:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:10:\"Categories\";s:5:\"align\";s:5:\"right\";s:4:\"name\";s:4:\"cats\";s:4:\"help\";s:28:\"add, edit, delete categories\";}}i:2;a:5:{s:1:\"A\";a:2:{s:4:\"type\";s:5:\"hrule\";s:4:\"span\";s:3:\"all\";}s:1:\"B\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"C\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"D\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"E\";a:1:{s:4:\"type\";s:5:\"label\";}}i:3;a:5:{s:1:\"A\";a:4:{s:4:\"type\";s:5:\"label\";s:4:\"span\";s:3:\"all\";s:5:\"align\";s:6:\"center\";s:4:\"name\";s:3:\"msg\";}s:1:\"B\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"C\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"D\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"E\";a:1:{s:4:\"type\";s:5:\"label\";}}i:4;a:5:{s:1:\"A\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:8:\"Category\";}s:1:\"B\";a:5:{s:4:\"type\";s:10:\"select-cat\";s:4:\"size\";s:4:\"None\";s:4:\"span\";s:3:\"all\";s:4:\"name\";s:6:\"cat_id\";s:4:\"help\";s:19:\"select the category\";}s:1:\"C\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"D\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"E\";a:1:{s:4:\"type\";s:5:\"label\";}}i:5;a:5:{s:1:\"A\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:7:\"Content\";}s:1:\"B\";a:5:{s:4:\"type\";s:8:\"textarea\";s:4:\"size\";s:5:\"10,60\";s:4:\"span\";s:3:\"all\";s:4:\"name\";s:7:\"content\";s:4:\"help\";s:23:\"the content of the note\";}s:1:\"C\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"D\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"E\";a:1:{s:4:\"type\";s:5:\"label\";}}i:6;a:5:{s:1:\"A\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:6:\"Privat\";}s:1:\"B\";a:5:{s:4:\"type\";s:8:\"checkbox\";s:4:\"size\";s:16:\"private,public,x\";s:4:\"span\";s:3:\"all\";s:4:\"name\";s:6:\"access\";s:4:\"help\";s:19:\"access for the note\";}s:1:\"C\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"D\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"E\";a:1:{s:4:\"type\";s:5:\"label\";}}i:7;a:5:{s:1:\"A\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:5:\"Owner\";}s:1:\"B\";a:6:{s:4:\"type\";s:14:\"select-account\";s:4:\"size\";s:11:\",accounts,2\";s:4:\"span\";s:3:\"all\";s:7:\"no_lang\";s:1:\"1\";s:4:\"name\";s:5:\"owner\";s:8:\"readonly\";s:1:\"1\";}s:1:\"C\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"D\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"E\";a:1:{s:4:\"type\";s:5:\"label\";}}i:8;a:5:{s:1:\"A\";a:2:{s:4:\"type\";s:5:\"label\";s:4:\"span\";s:3:\"all\";}s:1:\"B\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"C\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"D\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"E\";a:1:{s:4:\"type\";s:5:\"label\";}}i:9;a:5:{s:1:\"A\";a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:4:\"Save\";s:4:\"name\";s:4:\"save\";s:4:\"help\";s:14:\"saves the note\";}s:1:\"B\";a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:6:\"Cancel\";s:4:\"name\";s:4:\"done\";s:4:\"help\";s:38:\"back to the notes list without saveing\";}s:1:\"C\";a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:12:\"deletes the \";s:4:\"name\";s:5:\"reset\";s:4:\"help\";s:15:\"clears the form\";}s:1:\"D\";a:6:{s:4:\"type\";s:6:\"button\";s:4:\"span\";s:3:\"all\";s:5:\"label\";s:6:\"Delete\";s:5:\"align\";s:5:\"right\";s:4:\"name\";s:6:\"delete\";s:4:\"help\";s:16:\"deletes the note\";}s:1:\"E\";a:1:{s:4:\"type\";s:5:\"label\";}}}','size' => '100%','style' => '','modified' => '1049328517',); - -$templ_data[] = array('name' => 'et_notes.view','template' => '','lang' => '','group' => '0','version' => '0.9.15.003','data' => 'a:10:{i:0;a:8:{s:1:\"A\";s:3:\"10%\";s:1:\"B\";s:3:\"10%\";s:1:\"C\";s:3:\"10%\";s:1:\"D\";s:3:\"10%\";s:2:\"c4\";s:3:\"row\";s:2:\"c5\";s:7:\"row,top\";s:2:\"c6\";s:3:\"row\";s:2:\"c7\";s:3:\"row\";}i:1;a:5:{s:1:\"A\";a:6:{s:4:\"type\";s:5:\"label\";s:4:\"size\";s:1:\"b\";s:4:\"span\";s:1:\"4\";s:5:\"label\";s:7:\"@header\";s:7:\"no_lang\";s:1:\"1\";s:4:\"name\";s:4:\"user\";}s:1:\"B\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"C\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"D\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"E\";a:5:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:10:\"Categories\";s:5:\"align\";s:5:\"right\";s:4:\"name\";s:4:\"cats\";s:4:\"help\";s:28:\"add, edit, delete categories\";}}i:2;a:5:{s:1:\"A\";a:2:{s:4:\"type\";s:5:\"hrule\";s:4:\"span\";s:3:\"all\";}s:1:\"B\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"C\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"D\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"E\";a:1:{s:4:\"type\";s:5:\"label\";}}i:3;a:5:{s:1:\"A\";a:4:{s:4:\"type\";s:5:\"label\";s:4:\"span\";s:3:\"all\";s:5:\"align\";s:6:\"center\";s:4:\"name\";s:3:\"msg\";}s:1:\"B\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"C\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"D\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"E\";a:1:{s:4:\"type\";s:5:\"label\";}}i:4;a:5:{s:1:\"A\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:8:\"Category\";}s:1:\"B\";a:6:{s:4:\"type\";s:10:\"select-cat\";s:4:\"size\";s:4:\"None\";s:4:\"span\";s:3:\"all\";s:7:\"no_lang\";s:1:\"1\";s:4:\"name\";s:6:\"cat_id\";s:8:\"readonly\";s:1:\"1\";}s:1:\"C\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"D\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"E\";a:1:{s:4:\"type\";s:5:\"label\";}}i:5;a:5:{s:1:\"A\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:7:\"Content\";}s:1:\"B\";a:5:{s:4:\"type\";s:8:\"textarea\";s:4:\"size\";s:5:\"10,60\";s:4:\"span\";s:3:\"all\";s:4:\"name\";s:7:\"content\";s:8:\"readonly\";s:1:\"1\";}s:1:\"C\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"D\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"E\";a:1:{s:4:\"type\";s:5:\"label\";}}i:6;a:5:{s:1:\"A\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:7:\"Private\";}s:1:\"B\";a:5:{s:4:\"type\";s:8:\"checkbox\";s:4:\"size\";s:16:\"private,public,x\";s:4:\"span\";s:3:\"all\";s:4:\"name\";s:6:\"access\";s:8:\"readonly\";s:1:\"1\";}s:1:\"C\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"D\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"E\";a:1:{s:4:\"type\";s:5:\"label\";}}i:7;a:5:{s:1:\"A\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:5:\"Owner\";}s:1:\"B\";a:5:{s:4:\"type\";s:14:\"select-account\";s:4:\"size\";s:10:\",account,2\";s:4:\"span\";s:3:\"all\";s:4:\"name\";s:5:\"owner\";s:8:\"readonly\";s:1:\"1\";}s:1:\"C\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"D\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"E\";a:1:{s:4:\"type\";s:5:\"label\";}}i:8;a:5:{s:1:\"A\";a:2:{s:4:\"type\";s:5:\"label\";s:4:\"span\";s:3:\"all\";}s:1:\"B\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"C\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"D\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"E\";a:1:{s:4:\"type\";s:5:\"label\";}}i:9;a:5:{s:1:\"A\";a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:4:\"Done\";s:4:\"name\";s:4:\"done\";s:4:\"help\";s:22:\"back to the notes list\";}s:1:\"B\";a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:4:\"Edit\";s:4:\"name\";s:4:\"edit\";s:4:\"help\";s:13:\"edit the note\";}s:1:\"C\";a:6:{s:4:\"type\";s:6:\"button\";s:4:\"span\";s:3:\"all\";s:5:\"label\";s:6:\"Delete\";s:5:\"align\";s:5:\"right\";s:4:\"name\";s:6:\"delete\";s:4:\"help\";s:16:\"deletes the note\";}s:1:\"D\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"E\";a:1:{s:4:\"type\";s:5:\"label\";}}}','size' => '100%','style' => '','modified' => '1049328134',); - -$templ_data[] = array('name' => 'et_notes.delete','template' => '','lang' => '','group' => '0','version' => '0.9.15.003','data' => 'a:10:{i:0;a:6:{s:1:\"A\";s:3:\"10%\";s:2:\"h8\";s:2:\"50\";s:2:\"c4\";s:3:\"row\";s:2:\"c5\";s:7:\"row,top\";s:2:\"c6\";s:3:\"row\";s:2:\"c7\";s:3:\"row\";}i:1;a:2:{s:1:\"A\";a:3:{s:4:\"type\";s:5:\"label\";s:4:\"span\";s:3:\"all\";s:5:\"label\";s:19:\"Notes - Delete note\";}s:1:\"B\";a:1:{s:4:\"type\";s:5:\"label\";}}i:2;a:2:{s:1:\"A\";a:2:{s:4:\"type\";s:5:\"hrule\";s:4:\"span\";s:3:\"all\";}s:1:\"B\";a:1:{s:4:\"type\";s:5:\"label\";}}i:3;a:2:{s:1:\"A\";a:4:{s:4:\"type\";s:5:\"label\";s:4:\"span\";s:3:\"all\";s:5:\"align\";s:6:\"center\";s:4:\"name\";s:3:\"msg\";}s:1:\"B\";a:1:{s:4:\"type\";s:5:\"label\";}}i:4;a:2:{s:1:\"A\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:8:\"Category\";}s:1:\"B\";a:5:{s:4:\"type\";s:10:\"select-cat\";s:4:\"size\";s:4:\"None\";s:4:\"span\";s:3:\"all\";s:4:\"name\";s:6:\"cat_id\";s:8:\"readonly\";s:1:\"1\";}}i:5;a:2:{s:1:\"A\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:7:\"Content\";}s:1:\"B\";a:5:{s:4:\"type\";s:8:\"textarea\";s:4:\"size\";s:5:\"10,60\";s:4:\"span\";s:3:\"all\";s:4:\"name\";s:7:\"content\";s:8:\"readonly\";s:1:\"1\";}}i:6;a:2:{s:1:\"A\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:6:\"Access\";}s:1:\"B\";a:3:{s:4:\"type\";s:5:\"label\";s:4:\"span\";s:3:\"all\";s:4:\"name\";s:6:\"access\";}}i:7;a:2:{s:1:\"A\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:5:\"Owner\";}s:1:\"B\";a:5:{s:4:\"type\";s:14:\"select-account\";s:4:\"size\";s:10:\",account,2\";s:4:\"span\";s:3:\"all\";s:4:\"name\";s:5:\"owner\";s:8:\"readonly\";s:1:\"1\";}}i:8;a:2:{s:1:\"A\";a:4:{s:4:\"type\";s:5:\"label\";s:4:\"size\";s:1:\"b\";s:4:\"span\";s:3:\"all\";s:5:\"label\";s:17:\"Delete this note?\";}s:1:\"B\";a:1:{s:4:\"type\";s:5:\"label\";}}i:9;a:2:{s:1:\"A\";a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:3:\"Yes\";s:4:\"name\";s:7:\"confirm\";s:4:\"help\";s:16:\"deletes the note\";}s:1:\"B\";a:5:{s:4:\"type\";s:6:\"button\";s:4:\"span\";s:3:\"all\";s:5:\"label\";s:2:\"No\";s:4:\"name\";s:4:\"done\";s:4:\"help\";s:16:\"back to the list\";}}}','size' => '100%','style' => '','modified' => '1049325129',); - -$templ_data[] = array('name' => 'et_notes.index','template' => '','lang' => '','group' => '0','version' => '0.9.15.002','data' => 'a:5:{i:0;a:2:{s:1:\"A\";s:3:\"40%\";s:1:\"C\";s:2:\"5%\";}i:1;a:3:{s:1:\"A\";a:5:{s:4:\"type\";s:5:\"label\";s:4:\"size\";s:1:\"b\";s:5:\"label\";s:22:\"Notes - List notes for\";s:7:\"no_lang\";s:1:\"1\";s:4:\"name\";s:4:\"user\";}s:1:\"B\";a:5:{s:4:\"type\";s:5:\"label\";s:4:\"size\";s:1:\"i\";s:7:\"no_lang\";s:1:\"1\";s:5:\"align\";s:6:\"center\";s:4:\"name\";s:3:\"msg\";}s:1:\"C\";a:5:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:10:\"Categories\";s:5:\"align\";s:5:\"right\";s:4:\"name\";s:4:\"cats\";s:4:\"help\";s:30:\"add, edit or delete categories\";}}i:2;a:3:{s:1:\"A\";a:2:{s:4:\"type\";s:5:\"hrule\";s:4:\"span\";s:3:\"all\";}s:1:\"B\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"C\";a:1:{s:4:\"type\";s:5:\"label\";}}i:3;a:3:{s:1:\"A\";a:4:{s:4:\"type\";s:9:\"nextmatch\";s:4:\"size\";s:19:\"et_notes.index.rows\";s:4:\"span\";s:3:\"all\";s:4:\"name\";s:2:\"nm\";}s:1:\"B\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"C\";a:1:{s:4:\"type\";s:5:\"label\";}}i:4;a:3:{s:1:\"A\";a:5:{s:4:\"type\";s:6:\"button\";s:4:\"span\";s:3:\"all\";s:5:\"label\";s:8:\"Add note\";s:4:\"name\";s:3:\"add\";s:4:\"help\";s:17:\"to add a new note\";}s:1:\"B\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"C\";a:1:{s:4:\"type\";s:5:\"label\";}}}','size' => '100%','style' => '','modified' => '1049328379',); - diff --git a/etemplate/doc/et_notes/setup/phpgw_de.lang b/etemplate/doc/et_notes/setup/phpgw_de.lang deleted file mode 100644 index d15994397b..0000000000 --- a/etemplate/doc/et_notes/setup/phpgw_de.lang +++ /dev/null @@ -1,30 +0,0 @@ -access et_notes de Zugriff -access for the note et_notes de Zugriffsberechtigung für diese Notiz -add note et_notes de Notiz hinzfügen -add, edit or delete categories et_notes de Hinzufügen, bearbeiten oder löschen von Kategorien -add, edit, delete categories et_notes de Hinzufügen, bearbeiten oder löschen von Kategorien -back to the list et_notes de zurück zur Liste -back to the notes list et_notes de zurück zur Liste der Notizen -back to the notes list without saveing et_notes de zurück zur Liste der Notizen ohne zu speichern -categories et_notes de Kategorien -category et_notes de Kategorie -clears the form et_notes de löscht das Formular -content et_notes de Inhalt -delete this note et_notes de Diese Notiz löschen? -delete this note? et_notes de Diese Notiz löschen? -deletes the note et_notes de löscht diese Notiz -edit the note et_notes de bearbeitet diese Notiz -edit this note et_notes de bearbeitet diese Notiz -et_notes common de eTemplate Notizen -note et_notes de Notiz -notes - delete note et_notes de Notiz - Löschen -notes - edit note et_notes de Notiz - Bearbeiten -notes - list notes for et_notes de Notiz - Anzeigen für -notes - view note et_notes de Notiz - Anzeigen -privat et_notes de Privat -private et_notes de Private -saves the note et_notes de speichert diese Notiz -select the category et_notes de eine Kategorie auswählen -the content of the note et_notes de der Inhalt dieser Notiz -to add a new note et_notes de um eine neue Notiz zuzufügen -view this note et_notes de diese Notiz anzeigen diff --git a/etemplate/doc/et_notes/setup/phpgw_en.lang b/etemplate/doc/et_notes/setup/phpgw_en.lang deleted file mode 100644 index 9d81db99dd..0000000000 --- a/etemplate/doc/et_notes/setup/phpgw_en.lang +++ /dev/null @@ -1,30 +0,0 @@ -access et_notes en Access -access for the note et_notes en access for the note -add note et_notes en Add note -add, edit or delete categories et_notes en add, edit or delete categories -add, edit, delete categories et_notes en add, edit, delete categories -back to the list et_notes en back to the list -back to the notes list et_notes en back to the notes list -back to the notes list without saveing et_notes en back to the notes list without saveing -categories et_notes en Categories -category et_notes en Category -clears the form et_notes en clears the form -content et_notes en Content -delete this note et_notes en delete this note -delete this note? et_notes en Delete this note? -deletes the note et_notes en deletes the note -edit the note et_notes en edit the note -edit this note et_notes en edit this note -et_notes common en eTemplate Notes -note et_notes en Note -notes - delete note et_notes en Notes - Delete note -notes - edit note et_notes en Notes - Edit Note -notes - list notes for et_notes en Notes - List notes for -notes - view note et_notes en Notes - View Note -privat et_notes en Privat -private et_notes en Private -saves the note et_notes en saves the note -select the category et_notes en select the category -the content of the note et_notes en the content of the note -to add a new note et_notes en to add a new note -view this note et_notes en view this note diff --git a/etemplate/doc/et_notes/setup/phpgw_fr.lang b/etemplate/doc/et_notes/setup/phpgw_fr.lang deleted file mode 100644 index 35128683ec..0000000000 --- a/etemplate/doc/et_notes/setup/phpgw_fr.lang +++ /dev/null @@ -1,30 +0,0 @@ -access et_notes fr Accès -access for the note et_notes fr Accès pour la note -add note et_notes fr Ajouter une note -add, edit or delete categories et_notes fr Ajouter, modifier ou effacer les catégories -add, edit, delete categories et_notes fr Ajouter, modifier, effacer les catégories -back to the list et_notes fr Retour à la liste -back to the notes list et_notes fr Retour à la liste des notes -back to the notes list without saveing et_notes fr Retour à la liste des notes sans enregistrer -categories et_notes fr Catégories -category et_notes fr Catégorie -clears the form et_notes fr Vide le formulaire -content et_notes fr Contenu -delete this note et_notes fr Effacer cette note -delete this note? et_notes fr Effacer cette note? -deletes the note et_notes fr Efface la note -edit the note et_notes fr Modifier la note -edit this note et_notes fr Modifier cette note -et_notes common fr Notes eTemplate -note et_notes fr Note -notes - delete note et_notes fr Notes - Effacer la Note -notes - edit note et_notes fr Notes - Modifier la Note -notes - list notes for et_notes fr Notes - Lister les notes pour -notes - view note et_notes fr Notes - Voir la note -privat et_notes fr Privé -private et_notes fr Privé -saves the note et_notes fr Enregistre la Note -select the category et_notes fr Sélectionner la catégorie -the content of the note et_notes fr Le contenu de la note -to add a new note et_notes fr Pour ajouter une nouvelle note -view this note et_notes fr Voir cette note diff --git a/etemplate/doc/et_notes/setup/setup.inc.php b/etemplate/doc/et_notes/setup/setup.inc.php deleted file mode 100644 index 99d93c288f..0000000000 --- a/etemplate/doc/et_notes/setup/setup.inc.php +++ /dev/null @@ -1,43 +0,0 @@ - 'phpgwapi', - 'versions' => Array('0.9.13','0.9.14','1.0.0','1.0.1') - - ); - $setup_info['et_media']['depends'][] = array( // this is only necessary as long the etemplate-class is not in the api - 'appname' => 'etemplate', - 'versions' => Array('0.9.13','0.9.14','0.9.15','1.0.0') - ); diff --git a/etemplate/doc/et_notes/setup/tables_current.inc.php b/etemplate/doc/et_notes/setup/tables_current.inc.php deleted file mode 100644 index b48e0afeac..0000000000 --- a/etemplate/doc/et_notes/setup/tables_current.inc.php +++ /dev/null @@ -1,30 +0,0 @@ - array( - 'fd' => array( - 'note_id' => array('type' => 'auto', 'nullable' => false), - 'note_owner' => array('type' => 'int', 'precision' => 4), - 'note_access' => array('type' => 'varchar', 'precision' => 7), - 'note_date' => array('type' => 'int', 'precision' => 4), - 'note_category' => array('type' => 'int', 'precision' => 4), - 'note_content' => array('type' => 'text') - ), - 'pk' => array('note_id'), - 'fk' => array(), - 'ix' => array(), - 'uc' => array() - ) - ); -?> diff --git a/etemplate/doc/et_notes/templates/default/delete.xet b/etemplate/doc/et_notes/templates/default/delete.xet deleted file mode 100644 index 35c44418e3..0000000000 --- a/etemplate/doc/et_notes/templates/default/delete.xet +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -