Changeset 3976
- Timestamp:
- 04/11/11 15:57:01 (12 years ago)
- Location:
- branches/2.2.0.1/calendar
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.0.1/calendar/inc/class.bocalendar.inc.php
r3973 r3976 1120 1120 $event['title'] = stripslashes($event['title']); 1121 1121 $event['description'] = stripslashes($event['description']); 1122 $event['observations'] = stripslashes($event['observations']); 1122 1123 $event['ex_participants'] = stripslashes($event['ex_participants']); 1123 1124 $datetime_check = $this->validate_update($event); … … 1187 1188 $this->so->set_title($l_cal['title']); 1188 1189 $this->so->set_description($l_cal['description']); 1190 $this->so->set_observations($l_cal['observations']); 1189 1191 $this->so->set_attachment($l_cal['attachment']); 1190 1192 $this->so->set_ex_participants($l_cal['ex_participants']); … … 3963 3965 ); 3964 3966 3967 $var['observations'] = Array( 3968 'field' => $this->translate('Observations'), 3969 'data' => $event['observations'] 3970 ); 3971 3965 3972 $var['attachment'] = Array( 3966 3973 'field' => $this->translate('Attachment'), -
branches/2.2.0.1/calendar/inc/class.bocustom_fields.inc.php
r3968 r3976 32 32 'alarm' => 'Alarm', 33 33 'recure_type' => 'Repetition', 34 'observations' => 'Observations', 34 35 'alter_by' => 'Alter by', 35 36 'attachment' => 'attachment' -
branches/2.2.0.1/calendar/inc/class.socalendar.inc.php
r3966 r3976 369 369 $this->cal->set_description($description); 370 370 } 371 372 function set_observations($observations='') 373 { 374 $this->cal->set_observations($observations); 375 } 376 371 377 function set_attachment($attachment='') 372 378 { 373 379 $this->cal->set_attachment($attachment); 374 380 } 381 375 382 function set_ex_participants($ex_participants='') 376 383 { -
branches/2.2.0.1/calendar/inc/class.socalendar__.inc.php
r3968 r3976 102 102 } 103 103 104 function set_observations($observations='') 105 { 106 $this->add_attribute('observations',$observations); 107 } 108 104 109 function set_alter_by($alter_by='') 105 110 { -
branches/2.2.0.1/calendar/inc/class.socalendar_sql.inc.php
r3968 r3976 569 569 $this->set_title(stripslashes($GLOBALS['phpgw']->strip_html($this->stream->f('title')))); 570 570 $this->set_description(stripslashes($GLOBALS['phpgw']->strip_html($this->stream->f('description')))); 571 $this->set_observations(stripslashes($GLOBALS['phpgw']->strip_html($this->stream->f('observations')))); 571 572 $this->set_alter_by(stripslashes($GLOBALS['phpgw']->strip_html($this->stream->f('alter_by')))); 572 573 $this->set_attachment(stripslashes($GLOBALS['phpgw']->strip_html($this->stream->f('attachment')))); … … 978 979 . "title='".$this->stream->db_addslashes($event['title'])."', " 979 980 . "description='".$this->stream->db_addslashes($event['description'])."', " 981 . "observations='".$this->stream->db_addslashes($event['observations'])."', " 980 982 . "attachment='".$this->stream->db_addslashes(serialize($event['attachment']))."', " 981 983 . "alter_by='".$this->stream->db_addslashes($GLOBALS['phpgw_info']['user']['fullname'])."', " -
branches/2.2.0.1/calendar/inc/class.uicalendar.inc.php
r3966 r3976 4988 4988 'tr_color' => $this->theme['th_bg'], 4989 4989 'field' => lang('Title'), 4990 'data' => '<input name="cal[title]" size=" 45" maxlength="80" value="'.$event['title'].'">'4990 'data' => '<input name="cal[title]" size="103" maxlength="300" value="'.$event['title'].'">' 4991 4991 ); 4992 4992 … … 4994 4994 $var['description'] = Array( 4995 4995 'field' => lang('Full Description'), 4996 'data' => '<textarea name="cal[description]" rows="5" cols=" 40" wrap="virtual" maxlength="2048">'.$event['description'].'</textarea>'4996 'data' => '<textarea name="cal[description]" rows="5" cols="88" wrap="virtual" maxlength="2048">'.$event['description'].'</textarea>' 4997 4997 ); 4998 4998 … … 5422 5422 // $this->output_template_array($p,'row','list',Array('data' => '<script src="simple_show_hide.js" type="text/javascript"></script>')); 5423 5423 5424 // Observations 5425 $var['observations'] = Array( 5426 'field' => lang('Observations'), 5427 'data' => '<textarea name="cal[observations]" rows="5" cols="88" wrap="virtual" maxlength="2048">'.$event['observations'].'</textarea>' 5428 ); 5429 5424 5430 if ($event['attachment'] == '' || $event['attachment'] == 'ERROR' || is_array($event['attachment'])) 5425 5431 $data = '<a onClick="javascript:addAttach()" href="#divFiles" >Anexos: adicionar+</a><div id="divFiles"</div>'; -
branches/2.2.0.1/calendar/setup/tables_current.inc.php
r3972 r3976 27 27 'title' => array('type' => 'varchar','precision' => '80','nullable' => False,'default' => '1'), 28 28 'description' => array('type' => 'text','nullable' => True), 29 'observations' => array('type' => 'text','nullable' => True), 29 30 'attachment' => array('type' => 'text','nullable' => True), 30 31 'location' => array('type' => 'varchar','precision' => '255','nullable' => True), -
branches/2.2.0.1/calendar/setup/tables_update.inc.php
r3973 r3976 83 83 function calendar_upgrade2_2_000() 84 84 { 85 $GLOBALS['phpgw_setup']->db->query("ALTER TABLE phpgw_cal ADD COLUMN observations text"); 85 86 $GLOBALS['phpgw_setup']->db->query("ALTER TABLE phpgw_cal ADD COLUMN alter_by varchar(160)"); 86 87 $GLOBALS['phpgw_setup']->db->query("ALTER TABLE phpgw_cal ADD COLUMN attachment text");
Note: See TracChangeset
for help on using the changeset viewer.