Show
Ignore:
Timestamp:
05/13/08 21:45:10 (8 months ago)
Author:
aarkerio
Message:

Messages system

Files:
1 modified

Legend:

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

    r480 r483  
    11<?php  
    2 echo $html->link($html->image('admin/compose_on.gif', array("alt"=>"Compose New Message", "title"=>"Compose New Message")), '/admin/messages/add', null, false, false); 
     2// die(debug($data)); 
     3echo $html->link($html->image('admin/compose_on.gif', array("alt"=>"Compose New Message", "title"=>"Compose New Message")), '/messages/add', null, false, false); 
    34 
    4 if ( $cU['User']['group_id'] == 1) // if user belongs to admin group 
    5 { 
    6    echo '<div style="position:absolute;right:300px;top:35px;">'; 
    7    echo $html->link($html->image('admin/message_board.gif', array("alt"=>"General Message", "title"=>"General Message")), '/admin/messages/general', null, false, false); 
    8    echo '</div>'; 
    9 } 
    10  
    11 echo $form->create('Message', array('admin_delete', 'onsubmit'=>'return chkList();', 'name'=>'privmsg_list')); 
     5echo $form->create('Message', array('delete', 'onsubmit'=>'return chkList();', 'name'=>'privmsg_list')); 
    126 
    137echo $form->hidden('Message.several', array("value"=>1)); 
     
    159 
    1610$th = array('Flag', 'Subject', 'From', 'Date', 'Mark'); 
    17 echo '<table class="tbadmin">'; 
     11 
     12e('<table style="width:100%;border:1px dotted orange;padding:3px;">'); 
     13 
    1814echo $html->tableHeaders($th); 
    1915 
     
    3834       $tr = array( 
    3935        $html->link($html->image('admin/'.$img, array("alt"=>$status, "title"=>$status)), '/admin/messages/display/'.$val['Message']['id'], null, null, false), 
    40         $html->link($val['Message']['title'], '/admin/messages/display/'.$val['Message']['id']), 
    41         $val['User']['username'], 
     36        $html->link($val['Message']['title'], '/messages/display/'.$val['Message']['id']), 
     37        $html->link($val['User']['username'], '/vclassrooms/aboutme/'.$val['User']['username']), 
    4238        $val['Message']['created'] . "\n", 
    4339        $form->checkbox('Message.id', array('value'=>$val['Message']['id'], 'id'=>'fieldid'.$val['Message']['id'])) . "\n"