Show
Ignore:
Timestamp:
09/22/08 23:22:18 (2 months ago)
Author:
aarkerio
Message:

Test Unit fixed

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/messages/display.ctp

    r684 r773  
    33 echo $html->para(null, $html->link($html->image('admin/compose_on.gif', array('alt'=>'New message','title'=>'New message')),  
    44'/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 
     6echo $html->div(null,$html->image('static/loading.gif',array('alt'=>'Loading')),array('id'=>'charging','style'=>'display:none;')); 
    87 
    98echo '<b>From</b>:'     . $data['User']['username']  . '<br />'; 
     
    1312echo '<input type="button" value="'.__('Reply', true).'" onclick="hU()" />'; 
    1413 
    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')); 
     14echo $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')); 
    1716   echo $form->hidden('Message.id', array('value'=>$data['Message']['id'])); 
    1817   echo $form->end(__('Delete', true)); 
    19 echo $ajax->divEnd("delbutton"); 
     18echo $ajax->divEnd('delbutton'); 
    2019?> 
    2120 
     
    3130?> 
    3231<fieldset> 
    33 <legend>Reply</legend> 
     32<legend><?php __('Reply'); ?></legend> 
    3433  <?php  
    3534  echo $session->read('Auth.User.username') . "  writes: <br />"; 
    3635  
    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 />"; 
    3837  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',  
    4140                                         "update"=>"formhidden", 
    4241                                          "before" => "MyFCKObject.UpdateEditorFormValue();",