Ignore:
Timestamp:
06/29/07 15:18:52 (17 years ago)
Author:
niltonneto
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/calendar/inc/class.uicalendar.inc.php

    r29 r36  
    11811181                                $endmin    = $startmin + (int)$this->bo->prefs['calendar']['defaultlength']; 
    11821182                                $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                                 
    11841193                                $this->bo->set_start($this->bo->year,$this->bo->month,$this->bo->day,$starthour,$startmin,0); 
    11851194                                $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); 
    11881198                                $this->bo->set_ex_participants(''); 
    1189                                 $this->bo->add_attribute('location',''); 
    11901199                                $this->bo->add_attribute('uid',''); 
    11911200                                $this->bo->add_attribute('priority',2); 
     
    40054014                                                                                $user_context[] = $dn_part; 
    40064015                                                                } 
    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))); 
    40094021                                                                $footer_ext_participantes = lang("Tip: To search in the <b>Global Catalog</b>, type the <b>F9</b> key, like the ExpressoMail."); 
    40104022                                                                 
     
    40454057                                                                                        "<script type='text/javascript'>var DEFAULT_URL = '".$module_name."/controller.php?action=';</script> ".                                                                                         
    40464058                                                                                        "<script type='text/javascript'>" . 
    4047                                                                                         "setTimeout('get_available_users(\"".$module_name."\",\'".$user_context."\')',1000);" . 
     4059                                                                                        "setTimeout('get_available_users(\"".$module_name."\",\'".$user_context."\')',1000);".  
    40484060                                                                                        "</script> " 
    40494061                                                                                                 
     
    46304642                } 
    46314643 
    4632                 function get_organizations($context, $selected='') 
     4644                function get_sectors($selected='') 
    46334645                { 
    46344646                        $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); 
    46364648                        return $sectors_info; 
    46374649                } 
     4650                 
    46384651                /* 
    46394652                function get_organizations($context, $selected='') 
Note: See TracChangeset for help on using the changeset viewer.