Show
Ignore:
Timestamp:
05/21/08 15:27:00 (8 months ago)
Author:
aarkerio
Message:

New Try

Files:
1 modified

Legend:

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

    r330 r541  
    1 <?php echo $html->addCrumb('Control Tools', '/admin/entries/start'); ?>  
    2 <?php echo $html->getCrumbs(' / '); ?> 
    3 <p> 
    41<?php  
    5 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 echo $html->addCrumb('Control Tools', '/admin/entries/start');   
     3 echo $html->getCrumbs(' / ');  
    64 
    7 if ( $cU['User']['group_id'] == 1) // if user belongs to admin group 
    8 { 
     5  
     6 echo $html->link($html->image('admin/compose_on.gif', array("alt"=>"Compose New Message", "title"=>"Compose New Message")), '/admin/messages/add', null, false, false); 
     7 
     8if ( $session->read('Auth.User.group_id') == 1): // if user belongs to admin group 
    99   echo '<div style="position:absolute;right:300px;top:35px;">'; 
    1010   echo $html->link($html->image('admin/message_board.gif', array("alt"=>"General Message", "title"=>"General Message")), '/admin/messages/general', null, false, false); 
    1111   echo '</div>'; 
    12 } 
    13 ?> 
    14 </p> 
     12endif; 
    1513 
    16 <?php 
    17 echo $form->create('Message', array('admin_delete', 'onsubmit'=>'return chkList();', 'name'=>'privmsg_list')); 
     14 
     15echo $form->create('Message', array('action'=>'delete', 'onsubmit'=>'return chkList();', 'name'=>'privmsg_list')); 
    1816 
    1917echo $form->hidden('Message.several', array("value"=>1));