Changeset 36 for trunk/calendar/inc/class.uicalendar.inc.php
- Timestamp:
- 06/29/07 15:18:52 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/calendar/inc/class.uicalendar.inc.php
r29 r36 1181 1181 $endmin = $startmin + (int)$this->bo->prefs['calendar']['defaultlength']; 1182 1182 $endhour = $starthour + $this->bo->normalizeminutes($endmin); 1183 ; 1183 1184 $subject = (string)(get_var('title',array('GET'),0)); 1185 if ($subject != '0') 1186 { 1187 $description = (string)(get_var('description',array('GET'),0)); 1188 $location = (string)(get_var('location',array('GET'),0)); 1189 } 1190 else 1191 unset($subject); 1192 1184 1193 $this->bo->set_start($this->bo->year,$this->bo->month,$this->bo->day,$starthour,$startmin,0); 1185 1194 $this->bo->set_end($this->bo->year,$this->bo->month,$this->bo->day,$endhour,$endmin,0); 1186 $this->bo->set_title(''); 1187 $this->bo->set_description(''); 1195 $this->bo->set_title($subject); 1196 $this->bo->set_description($description); 1197 $this->bo->add_attribute('location',$location); 1188 1198 $this->bo->set_ex_participants(''); 1189 $this->bo->add_attribute('location','');1190 1199 $this->bo->add_attribute('uid',''); 1191 1200 $this->bo->add_attribute('priority',2); … … 4005 4014 $user_context[] = $dn_part; 4006 4015 } 4007 $user_context = implode(",",$user_context); 4008 $combo_org = $this->get_organizations($context, trim(strtolower($user_context))); 4016 // Prepara o contexto do usuario com sua OU raiz, pois ele pode pertencer a uma OU de nivel N. 4017 $user_ou = explode(",",str_replace($context,"",implode(",",$user_context))); 4018 $user_context = trim(strtolower($user_ou[count($user_ou) - 2].",".$context)); 4019 // Fim 4020 $combo_org = $this->get_sectors(trim(strtolower($user_context))); 4009 4021 $footer_ext_participantes = lang("Tip: To search in the <b>Global Catalog</b>, type the <b>F9</b> key, like the ExpressoMail."); 4010 4022 … … 4045 4057 "<script type='text/javascript'>var DEFAULT_URL = '".$module_name."/controller.php?action=';</script> ". 4046 4058 "<script type='text/javascript'>" . 4047 "setTimeout('get_available_users(\"".$module_name."\",\'".$user_context."\')',1000);" .4059 "setTimeout('get_available_users(\"".$module_name."\",\'".$user_context."\')',1000);". 4048 4060 "</script> " 4049 4061 … … 4630 4642 } 4631 4643 4632 function get_ organizations($context,$selected='')4644 function get_sectors($selected='') 4633 4645 { 4634 4646 $s = CreateObject('phpgwapi.sector_search_ldap'); 4635 $sectors_info = $s->get_ organizations($context,$selected, false, false);4647 $sectors_info = $s->get_sectors($selected, false, false); 4636 4648 return $sectors_info; 4637 4649 } 4650 4638 4651 /* 4639 4652 function get_organizations($context, $selected='')
Note: See TracChangeset
for help on using the changeset viewer.