Changeset 773 for trunk/app/views
- Timestamp:
- 09/22/08 23:22:18 (2 months ago)
- Location:
- trunk/app/views
- Files:
-
- 3 modified
-
messages/display.ctp (modified) (3 diffs)
-
vclassrooms/chat.ctp (modified) (3 diffs)
-
vclassrooms/show.ctp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/messages/display.ctp
r684 r773 3 3 echo $html->para(null, $html->link($html->image('admin/compose_on.gif', array('alt'=>'New message','title'=>'New message')), 4 4 '/messages/compose', null, false, false)); 5 ?> 6 <div id="charging" style="display:none;"><?php echo $html->image('static/loading.gif', array("alt"=>"Loading")); ?></div> 7 <?php 5 6 echo $html->div(null,$html->image('static/loading.gif',array('alt'=>'Loading')),array('id'=>'charging','style'=>'display:none;')); 8 7 9 8 echo '<b>From</b>:' . $data['User']['username'] . '<br />'; … … 13 12 echo '<input type="button" value="'.__('Reply', true).'" onclick="hU()" />'; 14 13 15 echo $ajax->div( "delbutton", array("style"=>"text-align:right"));16 echo $form->create('Message', array('onsubmit'=>'return confirm(\' Are you sure to delete?\')','action'=>'delete'));14 echo $ajax->div('delbutton', array('style'=>'text-align:right')); 15 echo $form->create('Message', array('onsubmit'=>'return confirm(\''.__('Are you sure to want to delete this?', true).'\')','action'=>'delete')); 17 16 echo $form->hidden('Message.id', array('value'=>$data['Message']['id'])); 18 17 echo $form->end(__('Delete', true)); 19 echo $ajax->divEnd( "delbutton");18 echo $ajax->divEnd('delbutton'); 20 19 ?> 21 20 … … 31 30 ?> 32 31 <fieldset> 33 <legend> Reply</legend>32 <legend><?php __('Reply'); ?></legend> 34 33 <?php 35 34 echo $session->read('Auth.User.username') . " writes: <br />"; 36 35 37 echo $form->input('Message.title', array( "size" => 35, "maxlength" => 50, "value"=> 'Re: ' . $data["Message"]["title"])) . "<br />";36 echo $form->input('Message.title', array('size'=>35,'maxlength'=>50,'value'=> 'Re: ' . $data['Message']['title'])) . "<br />"; 38 37 echo $form->label('Message.body', 'Message:').'<br />'; 39 echo $form->textarea('Message.body', array( "cols"=>50, "rows"=>10, "value"=>"\n\n".'>> '.$data["User"]["username"] .' wrote: ' . $data["Message"]["body"]));40 echo $ajax->submit(__('Reply', true), array( "url" => "/messages/add",38 echo $form->textarea('Message.body', array('cols'=>50,'rows'=>10,'value'=>"\n\n".'>> '.$data['User']['username'] .' wrote: ' . $data["Message"]["body"])); 39 echo $ajax->submit(__('Reply', true), array('url' => '/messages/add', 41 40 "update"=>"formhidden", 42 41 "before" => "MyFCKObject.UpdateEditorFormValue();", -
trunk/app/views/vclassrooms/chat.ctp
r761 r773 30 30 //<![CDATA[ 31 31 32 setTimeout("getChatText(<?php echo $data['Vclassroom']['id']; ?>);", 2000);32 setTimeout("getChatText(<?php echo $data['Vclassroom']['id']; ?>);",3000); 33 33 34 34 // Get student total points … … 43 43 {method: 'get', parameters: params, onFailure: reportError}); 44 44 45 setTimeout("getChatText("+vclassroom_id+")",4000); 46 } 47 48 function reportError(request) 49 { 50 alert('Sorry. There was an error.'); 45 51 } 46 52 … … 52 58 } 53 59 54 function ping() { 60 function ping() 61 { 55 62 // Send ping, to let the server know I'm still here 56 63 var url = base_url + 'ping.php'; -
trunk/app/views/vclassrooms/show.ctp
r760 r773 19 19 $t="javascript:window.open('/vclassrooms/chat/".$blog['User']['id']."/".$data['Vclassroom']['id']."', 'blank', 'toolbar=no, scrollbars=yes,width=700,height=400')"; 20 20 echo $html->link( 21 $html->image('static/ feature_chatroom.jpg', array('alt'=>'Chatroom','title'=>'Chatroom','style'=>'margin-right:12px')21 $html->image('static/chat-icon.jpg', array('alt'=>'Chatroom','title'=>'Chatroom','style'=>'margin-right:12px') 22 22 ), '#', array("onclick"=>$t), null, null, false); 23 23
