Changeset 773 for trunk/app/views/messages
- Timestamp:
- 09/22/08 23:22:18 (2 months ago)
- Files:
-
- 1 modified
-
trunk/app/views/messages/display.ctp (modified) (3 diffs)
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();",
