From 594ed5bd57866e6b9c4588d0b8c27799486a403c Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 29 Jun 2003 23:02:34 +0000 Subject: [PATCH] app-header for delete --- infolog/inc/class.uiinfolog.inc.php | 4 +++- infolog/setup/etemplates.inc.php | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/infolog/inc/class.uiinfolog.inc.php b/infolog/inc/class.uiinfolog.inc.php index f92a586eb9..3ba83f5b77 100644 --- a/infolog/inc/class.uiinfolog.inc.php +++ b/infolog/inc/class.uiinfolog.inc.php @@ -137,7 +137,7 @@ } $rows = array( $total ); $readonlys = array(); - while (list($id,$info) = each($ids)) + foreach($ids as $id => $info) { $rows[] = $this->get_info($info,$readonlys,$query['action'],$query['action_id']); } @@ -256,6 +256,8 @@ $values['main']['no_actions'] = True; $persist['info_id'] = $info_id; $persist['referer'] = $referer; + + $GLOBALS['phpgw_info']['flags']['app_header'] = lang('InfoLog').' - '.lang('Delete'); $this->tmpl->exec('infolog.uiinfolog.delete',$values,'',$readonlys,$persist); } diff --git a/infolog/setup/etemplates.inc.php b/infolog/setup/etemplates.inc.php index dc3d3703e0..407e52253f 100644 --- a/infolog/setup/etemplates.inc.php +++ b/infolog/setup/etemplates.inc.php @@ -1,10 +1,12 @@ 'infolog.delete','template' => '','lang' => '','group' => '0','version' => '0.9.15.001','data' => 'a:6:{i:0;a:1:{s:2:\"h4\";s:3:\"100\";}i:1;a:1:{s:1:\"A\";a:4:{s:4:\"type\";s:5:\"label\";s:4:\"span\";s:11:\",headertext\";s:5:\"label\";s:16:\"InfoLog - Delete\";s:4:\"name\";s:9:\"appheader\";}}i:2;a:1:{s:1:\"A\";a:1:{s:4:\"type\";s:5:\"hrule\";}}i:3;a:1:{s:1:\"A\";a:4:{s:4:\"type\";s:8:\"template\";s:4:\"size\";s:4:\"main\";s:5:\"align\";s:6:\"center\";s:4:\"name\";s:18:\"infolog.index.rows\";}}i:4;a:1:{s:1:\"A\";a:4:{s:4:\"type\";s:5:\"label\";s:4:\"span\";s:11:\",headertext\";s:5:\"label\";s:45:\"Are you shure you want to delete this entry ?\";s:5:\"align\";s:6:\"center\";}}i:5;a:1:{s:1:\"A\";a:6:{s:4:\"type\";s:4:\"hbox\";s:4:\"size\";s:4:\"3,20\";s:5:\"align\";s:6:\"center\";i:1;a:5:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:12:\"Yes - Delete\";s:5:\"align\";s:5:\"right\";s:4:\"name\";s:6:\"delete\";s:4:\"help\";s:16:\"Delete the entry\";}i:2;a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:11:\"No - Cancel\";s:4:\"name\";s:6:\"cancel\";s:4:\"help\";s:22:\"Abort without deleting\";}i:3;a:1:{s:4:\"type\";s:5:\"label\";}}}}','size' => '100%,,0,,0,0','style' => '.headertext { color: black; font-size: 120%; }','modified' => '1034538934',); +$templ_data[] = array('name' => 'infolog.delete','template' => '','lang' => '','group' => '0','version' => '0.9.15.002','data' => 'a:5:{i:0;a:1:{s:2:\"h3\";s:3:\"100\";}i:1;a:1:{s:1:\"A\";a:1:{s:4:\"type\";s:5:\"label\";}}i:2;a:1:{s:1:\"A\";a:4:{s:4:\"type\";s:8:\"template\";s:4:\"size\";s:4:\"main\";s:5:\"align\";s:6:\"center\";s:4:\"name\";s:18:\"infolog.index.rows\";}}i:3;a:1:{s:1:\"A\";a:4:{s:4:\"type\";s:5:\"label\";s:4:\"span\";s:11:\",headertext\";s:5:\"label\";s:45:\"Are you shure you want to delete this entry ?\";s:5:\"align\";s:6:\"center\";}}i:4;a:1:{s:1:\"A\";a:6:{s:4:\"type\";s:4:\"hbox\";s:4:\"size\";s:4:\"3,20\";s:5:\"align\";s:6:\"center\";i:1;a:5:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:12:\"Yes - Delete\";s:5:\"align\";s:5:\"right\";s:4:\"name\";s:6:\"delete\";s:4:\"help\";s:16:\"Delete the entry\";}i:2;a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:11:\"No - Cancel\";s:4:\"name\";s:6:\"cancel\";s:4:\"help\";s:22:\"Abort without deleting\";}i:3;a:1:{s:4:\"type\";s:5:\"label\";}}}}','size' => '100%,,0,,0,0','style' => '.headertext { color: black; font-size: 120%; }','modified' => '1056918737',); + $templ_data[] = array('name' => 'infolog.edit','template' => '','lang' => '','group' => '0','version' => '0.9.15.001','data' => 'a:13:{i:0;a:11:{s:1:\"A\";s:3:\"103\";s:1:\"B\";s:3:\"300\";s:1:\"C\";s:3:\"100\";s:2:\"c3\";s:2:\"th\";s:2:\"c4\";s:3:\"row\";s:2:\"c5\";s:3:\"row\";s:2:\"c6\";s:3:\"row\";s:2:\"c8\";s:2:\"th\";s:2:\"c9\";s:3:\"row\";s:3:\"c10\";s:3:\"row\";s:3:\"c11\";s:2:\"th\";}i:1;a:4:{s:1:\"A\";a:4:{s:4:\"type\";s:5:\"label\";s:4:\"size\";s:1:\"b\";s:4:\"span\";s:12:\"3,headertext\";s:4:\"name\";s:9:\"appheader\";}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: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:37:\"Edit or create categories for IngoLog\";}}i:2;a:4:{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\";}}i:3;a:4:{s:1:\"A\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:4:\"Type\";}s:1:\"B\";a:5:{s:4:\"type\";s:6:\"select\";s:4:\"span\";s:3:\"all\";s:4:\"name\";s:9:\"info_type\";s:8:\"onchange\";s:1:\"1\";s:4:\"help\";s:46:\"Type of the log-entry: Note, Phonecall or ToDo\";}s:1:\"C\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"D\";a:1:{s:4:\"type\";s:5:\"label\";}}i:4;a:4:{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:8:\"info_cat\";s:4:\"help\";s:32:\"select a category for this entry\";}s:1:\"C\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"D\";a:1:{s:4:\"type\";s:5:\"label\";}}i:5;a:4:{s:1:\"A\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:7:\"Contact\";}s:1:\"B\";a:4:{s:4:\"type\";s:4:\"text\";s:4:\"size\";s:5:\"40,64\";s:4:\"name\";s:9:\"info_from\";s:4:\"help\";s:80:\"Custom contact-information, leave emtpy to use information from most recent link\";}s:1:\"C\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:11:\"Phone/Email\";}s:1:\"D\";a:4:{s:4:\"type\";s:4:\"text\";s:4:\"size\";s:5:\"40,64\";s:4:\"name\";s:9:\"info_addr\";s:4:\"help\";s:76:\"Custom contact-address, leave empty to use information from most recent link\";}}i:6;a:4:{s:1:\"A\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:7:\"Subject\";}s:1:\"B\";a:6:{s:4:\"type\";s:4:\"text\";s:4:\"size\";s:5:\"64,64\";s:4:\"span\";s:3:\"all\";s:4:\"name\";s:12:\"info_subject\";s:6:\"needed\";s:1:\"1\";s:4:\"help\";s:29:\"a short subject for the entry\";}s:1:\"C\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"D\";a:1:{s:4:\"type\";s:5:\"label\";}}i:7;a:4:{s:1:\"A\";a:5:{s:4:\"type\";s:3:\"tab\";s:4:\"span\";s:3:\"all\";s:5:\"label\";s:28:\"Description|Links|Delegation\";s:4:\"name\";s:28:\"description|links|delegation\";s:4:\"help\";s:78:\"longer textual description|Links of this entry|responsible user, priority, ...\";}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\";}}i:8;a:4:{s:1:\"A\";a:3:{s:4:\"type\";s:5:\"label\";s:4:\"span\";s:3:\"all\";s:5:\"label\";s:21:\"Dates, Status, Access\";}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\";}}i:9;a:4:{s:1:\"A\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:9:\"Startdate\";}s:1:\"B\";a:3:{s:4:\"type\";s:4:\"date\";s:4:\"name\";s:14:\"info_startdate\";s:4:\"help\";s:115:\"when should the ToDo or Phonecall be started, it shows up from that date in the filter open or own open (startpage)\";}s:1:\"C\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:7:\"Enddate\";}s:1:\"D\";a:3:{s:4:\"type\";s:4:\"date\";s:4:\"name\";s:12:\"info_enddate\";s:4:\"help\";s:49:\"til when should the ToDo or Phonecall be finished\";}}i:10;a:4:{s:1:\"A\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:6:\"Status\";}s:1:\"B\";a:3:{s:4:\"type\";s:6:\"select\";s:4:\"name\";s:11:\"info_status\";s:4:\"help\";s:12:\"@status_help\";}s:1:\"C\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:7:\"Private\";}s:1:\"D\";a:4:{s:4:\"type\";s:8:\"checkbox\";s:4:\"size\";s:14:\"private,public\";s:4:\"name\";s:11:\"info_access\";s:4:\"help\";s:87:\"should this entry only be visible to you and people you grant privat access via the ACL\";}}i:11;a:4:{s:1:\"A\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:5:\"Owner\";}s:1:\"B\";a:4:{s:4:\"type\";s:14:\"select-account\";s:4:\"size\";s:3:\",,2\";s:4:\"name\";s:10:\"info_owner\";s:8:\"readonly\";s:1:\"1\";}s:1:\"C\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:13:\"Last modified\";}s:1:\"D\";a:3:{s:4:\"type\";s:4:\"date\";s:4:\"name\";s:17:\"info_datemodified\";s:8:\"readonly\";s:1:\"1\";}}i:12;a:4:{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:16:\"Saves this entry\";}s:1:\"B\";a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:6:\"Cancel\";s:4:\"name\";s:6:\"cancel\";s:4:\"help\";s:31:\"leave without saveing the entry\";}s:1:\"C\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"D\";a:5:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:6:\"Delete\";s:5:\"align\";s:5:\"right\";s:4:\"name\";s:6:\"delete\";s:4:\"help\";s:17:\"delete this entry\";}}}','size' => '100%','style' => '.headertext { color: black; font-size: 120%; }','modified' => '1034157948',); $templ_data[] = array('name' => 'infolog.edit','template' => '','lang' => '','group' => '0','version' => '0.9.15.002','data' => 'a:13:{i:0;a:11:{s:1:\"A\";s:3:\"103\";s:1:\"B\";s:3:\"300\";s:1:\"C\";s:3:\"100\";s:2:\"c3\";s:2:\"th\";s:2:\"c4\";s:3:\"row\";s:2:\"c5\";s:3:\"row\";s:2:\"c6\";s:3:\"row\";s:2:\"c8\";s:2:\"th\";s:2:\"c9\";s:3:\"row\";s:3:\"c10\";s:3:\"row\";s:3:\"c11\";s:2:\"th\";}i:1;a:4:{s:1:\"A\";a:4:{s:4:\"type\";s:5:\"label\";s:4:\"size\";s:1:\"b\";s:4:\"span\";s:12:\"3,headertext\";s:4:\"name\";s:9:\"appheader\";}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: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:37:\"Edit or create categories for IngoLog\";}}i:2;a:4:{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\";}}i:3;a:4:{s:1:\"A\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:4:\"Type\";}s:1:\"B\";a:5:{s:4:\"type\";s:6:\"select\";s:4:\"span\";s:3:\"all\";s:4:\"name\";s:9:\"info_type\";s:8:\"onchange\";s:1:\"1\";s:4:\"help\";s:46:\"Type of the log-entry: Note, Phonecall or ToDo\";}s:1:\"C\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"D\";a:1:{s:4:\"type\";s:5:\"label\";}}i:4;a:4:{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:8:\"info_cat\";s:4:\"help\";s:32:\"select a category for this entry\";}s:1:\"C\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"D\";a:1:{s:4:\"type\";s:5:\"label\";}}i:5;a:4:{s:1:\"A\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:7:\"Contact\";}s:1:\"B\";a:4:{s:4:\"type\";s:4:\"text\";s:4:\"size\";s:5:\"40,64\";s:4:\"name\";s:9:\"info_from\";s:4:\"help\";s:80:\"Custom contact-information, leave emtpy to use information from most recent link\";}s:1:\"C\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:11:\"Phone/Email\";}s:1:\"D\";a:4:{s:4:\"type\";s:4:\"text\";s:4:\"size\";s:5:\"40,64\";s:4:\"name\";s:9:\"info_addr\";s:4:\"help\";s:76:\"Custom contact-address, leave empty to use information from most recent link\";}}i:6;a:4:{s:1:\"A\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:7:\"Subject\";}s:1:\"B\";a:6:{s:4:\"type\";s:4:\"text\";s:4:\"size\";s:5:\"64,64\";s:4:\"span\";s:3:\"all\";s:4:\"name\";s:12:\"info_subject\";s:6:\"needed\";s:1:\"1\";s:4:\"help\";s:29:\"a short subject for the entry\";}s:1:\"C\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"D\";a:1:{s:4:\"type\";s:5:\"label\";}}i:7;a:4:{s:1:\"A\";a:5:{s:4:\"type\";s:3:\"tab\";s:4:\"span\";s:3:\"all\";s:5:\"label\";s:28:\"Description|Links|Delegation\";s:4:\"name\";s:28:\"description|links|delegation\";s:4:\"help\";s:78:\"longer textual description|Links of this entry|responsible user, priority, ...\";}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\";}}i:8;a:4:{s:1:\"A\";a:3:{s:4:\"type\";s:5:\"label\";s:4:\"span\";s:3:\"all\";s:5:\"label\";s:21:\"Dates, Status, Access\";}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\";}}i:9;a:4:{s:1:\"A\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:9:\"Startdate\";}s:1:\"B\";a:4:{s:4:\"type\";s:4:\"hbox\";s:4:\"size\";s:5:\"2,0,0\";i:1;a:3:{s:4:\"type\";s:4:\"date\";s:4:\"name\";s:14:\"info_startdate\";s:4:\"help\";s:115:\"when should the ToDo or Phonecall be started, it shows up from that date in the filter open or own open (startpage)\";}i:2;a:4:{s:4:\"type\";s:8:\"checkbox\";s:5:\"label\";s:8:\"%s Today\";s:4:\"name\";s:9:\"set_today\";s:4:\"help\";s:21:\"check to set startday\";}}s:1:\"C\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:7:\"Enddate\";}s:1:\"D\";a:3:{s:4:\"type\";s:4:\"date\";s:4:\"name\";s:12:\"info_enddate\";s:4:\"help\";s:49:\"til when should the ToDo or Phonecall be finished\";}}i:10;a:4:{s:1:\"A\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:6:\"Status\";}s:1:\"B\";a:3:{s:4:\"type\";s:6:\"select\";s:4:\"name\";s:11:\"info_status\";s:4:\"help\";s:12:\"@status_help\";}s:1:\"C\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:7:\"Private\";}s:1:\"D\";a:4:{s:4:\"type\";s:8:\"checkbox\";s:4:\"size\";s:14:\"private,public\";s:4:\"name\";s:11:\"info_access\";s:4:\"help\";s:87:\"should this entry only be visible to you and people you grant privat access via the ACL\";}}i:11;a:4:{s:1:\"A\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:5:\"Owner\";}s:1:\"B\";a:4:{s:4:\"type\";s:14:\"select-account\";s:4:\"size\";s:3:\",,2\";s:4:\"name\";s:10:\"info_owner\";s:8:\"readonly\";s:1:\"1\";}s:1:\"C\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:13:\"Last modified\";}s:1:\"D\";a:3:{s:4:\"type\";s:4:\"date\";s:4:\"name\";s:17:\"info_datemodified\";s:8:\"readonly\";s:1:\"1\";}}i:12;a:4:{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:16:\"Saves this entry\";}s:1:\"B\";a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:6:\"Cancel\";s:4:\"name\";s:6:\"cancel\";s:4:\"help\";s:31:\"leave without saveing the entry\";}s:1:\"C\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"D\";a:5:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:6:\"Delete\";s:5:\"align\";s:5:\"right\";s:4:\"name\";s:6:\"delete\";s:4:\"help\";s:17:\"delete this entry\";}}}','size' => '100%','style' => '.headertext { color: black; font-size: 120%; }','modified' => '1034875600',);