Changeset 541 for trunk/app/views/messages/message.ctp
- Timestamp:
- 05/21/08 15:27:00 (8 months ago)
- Files:
-
- 1 modified
-
trunk/app/views/messages/message.ctp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/messages/message.ctp
r342 r541 1 <?php if ( isset( $cU ) ): ?>1 <?php 2 2 3 <?php 3 if ( $session->check('Auth.User') ): 4 4 5 5 echo $javascript->link('fckeditor/fckeditor'); 6 6 7 if ($blog["User"]["id"] == $cU['User']['id']) 8 { 9 echo "<p>(Will you send a message to yourself?)</p>"; 10 } 7 if ($blog["User"]["id"] == $session->read('Auth.User.id')): 8 echo $html->para(null, '(Will you send a message to yourself?)');; 9 endif; 11 10 ?> 12 11 <div id="charging" style="display:none;"><?php echo $html->image('static/loading.gif', array("alt"=>"Loading")); ?></div> … … 18 17 ?> 19 18 <fieldset> 20 <legend>Message to teacher from <?php echo $ cU['User']['username']; ?>:</legend>19 <legend>Message to teacher from <?php echo $session->read('Auth.User.username'); ?>:</legend> 21 20 <?php 22 21 echo $form->input('Message.title', array("size" => 30, "maxlength" => 50)); … … 26 25 echo $fck->load('MessageBody', 'Basic', 350, 150); 27 26 echo $form->error('Message.body', 'Body is required.'); 28 echo $ajax->submit('Send', array("url" => "/messages/deliver/",27 echo $ajax->submit('Send', array("url" => "/messages/deliver/", 29 28 "update"=>"updater", 30 29 "before" => "MyFCKObject.UpdateEditorFormValue();",
