Changeset 663 for trunk


Ignore:
Timestamp:
02/06/09 08:40:06 (15 years ago)
Author:
niltonneto
Message:

Alteração que não impacta na Agenda atual, mas será utilizado pelo expressoCalendar (nova agenda).

Location:
trunk/calendar
Files:
3 edited

Legend:

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

    r638 r663  
    357357 
    358358                function printer_friendly($body,$app_header='') 
    359                 {        
     359                { 
    360360                        $_SESSION['calendar']['categories'] = $this->cat->formated_list('select','all',$this->bo->cat_id,'True'); 
    361361                        if((!isset($GLOBALS['phpgw_info']['server']['deny_user_grants_access']) || !$GLOBALS['phpgw_info']['server']['deny_user_grants_access']) && count($this->bo->grants) > 0) 
     
    10351035                                        $event['recur_exception'] = array(); 
    10361036                                } 
     1037                                $plain = $_GET['plain']; 
     1038 
    10371039                                $this->edit_form( 
    10381040                                        Array( 
    10391041                                                'event' => $event, 
    1040                                                 'cd'    => $cd 
     1042                                                'cd'    => $cd, 
     1043                                                'plain' => $plain 
    10411044                                        ) 
    10421045                                ); 
     
    12881291                                Array( 
    12891292                                        'event' => $event, 
    1290                                         'cd' => $cd 
     1293                                        'cd' => $cd, 
     1294                                        'plain' => $_GET['plain'] 
    12911295                                ) 
    12921296                        ); 
     
    32463250                                'action_text_button'    => lang('Ignore Conflict'), 
    32473251                                'action_confirm_button' => '', 
    3248                                 'action_extra_field'    => '' 
     3252                                'action_extra_field'    => '', 
     3253                                'button_id'             => 'ignore_button' 
    32493254                        ); 
    32503255                        $this->output_template_array($p,'resubmit_button','form_button',$var); 
     
    32543259                                'action_text_button'    => lang('Re-Edit Event'), 
    32553260                                'action_confirm_button' => '', 
    3256                                 'action_extra_field'    => '' 
     3261                                'action_extra_field'    => '', 
     3262                                'button_id'             => 'redit_button' 
    32573263                        ); 
    32583264                        $this->output_template_array($p,'reedit_button','form_button',$var); 
     
    43474353                        $GLOBALS['phpgw_info']['flags']['noappfooter'] = True; 
    43484354                        $GLOBALS['phpgw_info']['flags']['app_header'] = $event['id'] ? lang('Editing event') : lang('Adding event'); 
    4349                         $GLOBALS['phpgw']->common->phpgw_header(); 
     4355                        if ($param['plain'] != "True"){ 
     4356                                $GLOBALS['phpgw']->common->phpgw_header(); 
     4357                        } 
     4358                        else{ 
     4359                                $GLOBALS['phpgw_info']['theme']['row_on'] = "F8F8F8"; 
     4360                                $GLOBALS['phpgw_info']['theme']['row_off'] = "F8F8F8"; 
     4361                        } 
    43504362 
    43514363                        $p = &$GLOBALS['phpgw']->template; 
     
    48744886                                        'action_text_button'    => lang('Delete'), 
    48754887                                        'action_confirm_button' => "onClick=\"return confirm('".lang('Are you sure want to delete this entry?\\nThis will delete this entry for all users.')."')\"", 
    4876                                         'action_extra_field'    => '' 
     4888                                        'action_extra_field'    => '', 
     4889                                        'button_id'     =>      'delete_button' 
    48774890                                ); 
    48784891                                $p->set_var($var); 
     
    48884901                                        'action_text_button'    => lang('Cancel'), 
    48894902                                        'action_confirm_button' => '', 
    4890                                         'action_extra_field'    => '' 
     4903                                        'action_extra_field'    => '', 
     4904                                        'button_id'     =>      'cancel_button' 
    48914905                                ); 
    48924906                                $p->set_var($var); 
  • trunk/calendar/templates/celepar/edit.tpl

    r602 r663  
    2121<form action="{action_url}" method="post" name="app_form"> 
    2222{common_hidden} 
    23 <table border="0" width="90%"> 
     23<table id="editFormTable" border="0" width="90%"> 
    2424 <tr> 
    2525  <td colspan="2"> 
    26    <center><font size="+1"><b>{errormsg}</b></font></center> 
     26   <center><font size="+1"><b id="formStatus">{errormsg}</b></font></center> 
    2727  </td> 
    2828 </tr> 
     
    3636                var alert_field = '{alert_msg}'; 
    3737        </script> 
    38         <input style="font-size:10px" type="submit" value="{submit_button}" onClick="return submitValues(alert_field);"></div></form> 
     38        <input id="submit_button" style="font-size:10px" type="submit" value="{submit_button}" onClick="return submitValues(alert_field);"></div></form> 
    3939  </td> 
    4040  <td>{cancel_button}</td> 
  • trunk/calendar/templates/default/form_button_script.tpl

    r2 r663  
    55<div style="padding-top:15px; padding-right: 2px"> 
    66        {action_extra_field}  
    7         <input style="font-size:10px" type="submit" value="{action_text_button}" {action_confirm_button}> 
     7        <input id="{button_id}" style="font-size:10px" type="submit" value="{action_text_button}" {action_confirm_button}> 
    88</div> 
    99</form> 
Note: See TracChangeset for help on using the changeset viewer.