Changeset 779 for trunk/app/views

Show
Ignore:
Timestamp:
09/24/08 15:20:15 (8 weeks ago)
Author:
aarkerio
Message:

Test Unit fixed

Location:
trunk/app/views
Files:
1 added
5 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/layouts/basic.ctp

    r765 r779  
    1010          echo $javascript->link('prototype'); 
    1111          echo $javascript->link('myfunctions'); 
     12          // echo $javascript->link('jsapi');  // Google apihttp://www.google.com/jsapi 
    1213          echo $javascript->link('scriptaculous.js?load=effects'); 
    1314     endif; 
     15     //google.load("gdata", "1"); // load Google Data client library 
     16     //   google.setOnLoadCallback(getMyFeed); // wait until the page finishes loading and then call your code 
    1417?> 
    1518<meta http-equiv="content-type" content="text/html; charset=utf-8" />  
  • trunk/app/views/vclassrooms/admin_add.ctp

    r724 r779  
    1919  
    2020 echo $html->para(null, '<br />'); 
     21 
     22  echo $form->input('Vclassroom.gcalendar_id', array('size' => 50, 'maxlength' => 70)); 
    2123 
    2224 echo $form->input('Vclassroom.fdate',array('type'=>'date','label'=>__('Finishing date', true), 'dateFormat'=>'DMY')); 
  • trunk/app/views/vclassrooms/admin_edit.ctp

    r725 r779  
    1717 
    1818 echo $form->input('Vclassroom.fdate',array('type'=>'date','label'=>__('Finishing date', true), 'dateFormat'=>'DMY')); 
     19 
     20 echo $form->input('Vclassroom.gcalendar_id', array('size' => 50, 'maxlength' => 70)); 
    1921 
    2022 echo $form->label('Vclassroom.status', __('Published', true)); 
  • trunk/app/views/vclassrooms/chat.ctp

    r773 r779  
    1111 endforeach; 
    1212 echo  $ajax->divEnd('updater'); 
     13 echo  $ajax->div('chatters').$ajax->divEnd('chatters'); 
     14 
    1315 echo $html->div(null, $session->read('Auth.User.username') .' '. __('writes', true)); 
    1416 echo $ajax->div('charging',array('style'=>'display:none')).$html->image('static/loading.gif', array('alt'=>'Loading')).$ajax->divEnd('charging'); 
  • trunk/app/views/vclassrooms/show.ctp

    r773 r779  
    77if ( $belongs === true ): 
    88  echo  $html->para(null, __('Welcome', true) . '!<b> '. $session->read('Auth.User.username') .'</b>'); 
    9   echo  $html->para(null, '<b>'.__('Created', true). '</b>:' . $data['Vclassroom']['created']); 
     9  echo  $html->para(null, '<b>'.__('Start date', true). '</b>:' . $data['Vclassroom']['sdate']); 
     10  echo  $html->para(null, '<b>'.__('Finish date', true). '</b>:' . $data['Vclassroom']['fdate']); 
    1011  echo  $html->para(null, '<b>'.__('Subject', true).'</b>: ' . $data['Ecourse']['title']); 
     12 
     13  if ( strlen($data['Vclassroom']['gcalendar_id']) > 8): 
     14     echo $this->element('google_calendar', array('gcalendar_id'=>$data['Vclassroom']['gcalendar_id']));   
     15  endif; 
     16 
    1117  echo  $html->para(null, '<b>'.__('Course description', true).'</b>'. $ajax->link($html->image('static/arrow_down.png',array('alt'=>__('Course description',true), 'title'=>__('Course description',true))),'/vclassrooms/description/'.$data['Vclassroom']['ecourse_id'], array('update' => 'qn','loading'=>"Element.show('loading3');",'complete'=>"Element.hide('loading3');Effect.Appear('qn')"), null,false)); 
    1218 
     
    100106 
    101107     // empty ajax div 
    102  
    103108     echo $ajax->div('updater') . $ajax->divEnd('updater');  
    104109endif; 
     
    111116     echo $html->image('static/loading.gif', array('alt'=>'Loading'));  
    112117echo $ajax->divEnd('charging'); 
     118 
     119// get Google calendar for this vgroup 
     120//$feedUrl = (string) 'http://www.google.com/calendar/feeds/'.$blog['User']['email'].'/public/full'; 
     121 
    113122?> 
    114123 
     
    116125//<![CDATA[ 
    117126 
     127var myService; 
     128// var feedUrl = '<?php echo $feedUrl; ?>'; 
     129 
     130function setupMyService() { 
     131  myService = new google.gdata.calendar.CalendarService('exampleCo-exampleApp-1'); 
     132} 
     133 
     134function getMyFeed() { 
     135  setupMyService(); 
     136  
     137  myService.getEventsFeed(feedUrl, handleMyFeed, handleError); 
     138} 
    118139function chkPart() 
    119140{