Changeset 655 for trunk/app/views/messages
- Timestamp:
- 07/15/08 22:08:28 (4 months ago)
- Location:
- trunk/app/views/messages
- Files:
-
- 2 modified
-
admin_listing.ctp (modified) (5 diffs)
-
compose.ctp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/messages/admin_listing.ctp
r652 r655 1 <?php 1 <?php 2 //die(debug($data)); 2 3 echo $html->addCrumb('Control Panel', '/admin/entries/start'); 3 4 echo $html->getCrumbs(' / '); … … 12 13 13 14 echo $form->create('Message', array('action'=>'delete', 'onsubmit'=>'return chkList();', 'name'=>'privmsg_list')); 14 15 15 echo $form->hidden('Message.several', array('value'=>1)); 16 16 //exit(print_r($data)); … … 20 20 echo $html->tableHeaders($th); 21 21 22 foreach ($data as $val) 23 { 24 switch ($val['Message']['status']) 25 { 22 foreach ($data as $val): 23 switch ($val['Message']['status']) 24 { 26 25 case 0: 27 26 $status = 'New'; … … 36 35 $img = 'message_e.gif'; 37 36 break; 38 }37 } 39 38 40 $tr = array(39 $tr = array( 41 40 $html->link($html->image('admin/'.$img, array("alt"=>$status, "title"=>$status)), '/admin/messages/display/'.$val['Message']['id'], null, null, false), 42 41 $html->link($val['Message']['title'], '/admin/messages/display/'.$val['Message']['id']), … … 46 45 ); 47 46 48 echo $html->tableCells($tr, array("class"=>"altRow", "onmouseover"=>"this.className='highlight'", "onmouseout"=>"this.className='altRow'"),47 echo $html->tableCells($tr, array("class"=>"altRow", "onmouseover"=>"this.className='highlight'", "onmouseout"=>"this.className='altRow'"), 49 48 array('class'=>'evenRow',"onmouseover"=>"this.className='highlight'", "onmouseout"=>"this.className='evenRow'")); 50 49 51 } 50 endforeach; 52 51 53 52 echo '<tr><td colspan="5" style="text-align:right">'; -
trunk/app/views/messages/compose.ctp
r541 r655 37 37 echo $form->label('Message.body', 'Message:' ) . '<br />'; 38 38 echo $form->textarea('Message.body', array('cols'=>50, 'rows'=>10)); 39 echo $form->end( 'Send');39 echo $form->end(__('Send', true)); 40 40 ?> 41 41 </fieldset>
