Changeset 583 for trunk/calendar/inc/class.uicalendar.inc.php
- Timestamp:
- 01/08/09 16:11:54 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/calendar/inc/class.uicalendar.inc.php
r362 r583 4394 4394 $var['category'] = Array( 4395 4395 'field' => lang('Category'), 4396 'data' => '<select name="categories[]" multiple size="5">'.$this->cat->formated_list('select','all',$check_cats,True).'</select>'4396 'data' => '<select name="categories[]" onchange="javascript:updateTitleField(this)" multiple size="5">'.$this->cat->formated_list('select','all',$check_cats,True).'</select>' 4397 4397 ); 4398 4398 … … 4460 4460 ); 4461 4461 4462 // Access4462 // Access 4463 4463 $var['access'] = Array( 4464 'field' => lang(' Private'),4465 'data' => '< input type="checkbox" name="cal[private]" value="private"'.(!$event['public']?' checked':'').'>'4466 ); 4464 'field' => lang('Type'), 4465 'data' => '<select onchange="javascript:changeViewMode(this.value);" id="cal[type]" name="cal[type]"><option value="normal">'.lang('Normal').'</option><option value="private" '.(!$event['public']?'SELECTED':'').' >'. lang('Private').'</option><option value="hourAppointment" '.($event['type'] == 'H'?'SELECTED':'').' >'.lang('Hours Appointment').'</option></select>' 4466 ); //event['public'] 4467 4467 4468 4468 // Participants … … 4751 4751 'data' => '<input name="cal[recur_interval]" size="4" maxlength="4" value="'.$event['recur_interval'].'">' 4752 4752 ); 4753 // $this->output_template_array($p,'row','list',Array('data' => '<script src="simple_show_hide.js" type="text/javascript"></script>')); 4753 4754 4754 4755 if (!isset($this->fields)) … … 4758 4759 $this->stock_fields = &$this->custom_fields->stock_fields; 4759 4760 } 4761 $this->output_template_array($p,'row','list',$var['access']); 4762 unset($var['access']); 4763 4760 4764 $preserved = False; 4761 4765 foreach($this->fields as $field => $data) … … 4777 4781 case 'recure_type': 4778 4782 $p->set_var('tr_color',$this->theme['th_bg']); 4779 $p->set_var('hr_text','<center ><b>'.lang('Repeating Event Information').'</b></center>');4783 $p->set_var('hr_text','<center name="cal[rpt_label]"><b>'.lang('Repeating Event Information').'</b></center>'); 4780 4784 $p->parse('row','hr',True); 4781 4785 $this->output_template_array($p,'row','list',$var['recure_type']); … … 4869 4873 $p->set_var('cancel_button',$cancel_button); 4870 4874 $p->pparse('out','edit_entry'); 4875 echo "<script src='calendar/templates/celepar/js/edit.js' type='text/javascript'></script>"; 4876 echo "<script>var type=document.getElementById('cal[type]'); changeViewMode(type.value);</script>"; 4877 4871 4878 4872 4879 }
Note: See TracChangeset
for help on using the changeset viewer.