Changeset 5110 for branches/2.2
- Timestamp:
- 10/10/11 18:43:03 (13 years ago)
- Location:
- branches/2.2/calendar
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/calendar/inc/class.uicalendar.inc.php
r4700 r5110 1129 1129 function export_all() 1130 1130 { 1131 //UserCurrent 1132 $exportUserId = $_POST['exportUserId']; 1133 1131 1134 $temp_path = $GLOBALS['phpgw_info']['server']['temp_dir'] . SEP; 1132 1135 srand((double)microtime()*1000000); … … 1136 1139 $attach_fd = fopen($filename,"w+"); 1137 1140 $event_ids = $this->bo->search_keywords($_POST['keywords']); 1141 1138 1142 foreach($event_ids as $key => $id) 1139 1143 { 1140 1144 $event[$key]=$this->bo->read_entry($id); 1141 1145 } 1146 1147 if( is_array($event) ) 1148 { 1149 foreach( $event as $key => $ev ) 1150 { 1151 if( $ev['owner'] != $exportUserId ) 1152 unset( $event[$key] ); 1153 } 1154 } 1155 1142 1156 include_once('class.bocalendar.inc.php'); 1143 1157 $cal = new bocalendar; … … 3127 3141 3128 3142 function footer() 3129 { 3143 { 3130 3144 $menuaction = $_GET['menuaction']; 3131 3145 list(,,$method) = explode('.',$menuaction); … … 3141 3155 Array( 3142 3156 'footer' => 'footer.tpl', 3143 'form_button' => 'form_button_script.tpl' 3157 'form_button_1' => 'form_button_script.tpl', 3158 'form_button_2' => 'form_button_script_2.tpl' 3144 3159 ) 3145 3160 ); … … 3339 3354 'action_extra_field' => '' 3340 3355 ); 3341 $this->output_template_array($p,'b_row','form_button ',$var);3356 $this->output_template_array($p,'b_row','form_button_1',$var); 3342 3357 3343 3358 $var = Array( 3344 3359 'submit_button' => lang('Submit'), 3345 'action_url' => $this->page($method,''), 3360 'action_url' => $this->page($method,''), 3361 'onclick_export' => "onclick='getUserSelect()';", 3346 3362 'action_url_button' => $GLOBALS['phpgw']->link('/index.php','menuaction=calendar.uicalendar.export_all'), 3347 3363 'action_text_button' => lang('Export all'), … … 3349 3365 'action_extra_field' => '' 3350 3366 ); 3351 $this->output_template_array($p,'b_row2','form_button ',$var);3367 $this->output_template_array($p,'b_row2','form_button_2',$var); 3352 3368 3353 3369 $p->parse('table_row','blank_row',True); -
branches/2.2/calendar/templates/default/form_button_dropdown.tpl
r663 r5110 2 2 <td width="{form_width}%" align="center" valign="top" style="padding-top:16px"> 3 3 <span style="font-size:10px"><b>{title}:</b> 4 {hidden_vars} 5 <select name="{form_name}" onchange="document.{form_name}form.submit()">4 {hidden_vars} 5 <select {id_form_select} name="{form_name}" onchange="document.{form_name}form.submit()"> 6 6 {form_options} 7 7 </select>
Note: See TracChangeset
for help on using the changeset viewer.