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

New Try

Location:
trunk/app/views/galleries
Files:
2 modified

Legend:

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

    r344 r541  
    22   window.onload = timedMsg; 
    33</script> 
    4 <?php $session->flash(); ?> 
    5 <?php echo $html->addCrumb('Control Tools', '/admin/entries/start'); ?>  
    6 <?php echo $html->getCrumbs(' / '); ?> 
    7  
    8 <p><?php echo $html->link($html->image('actions/new.png', array("alt"=>"Add new page", "title"=>"Add new page")), '/admin/galleries/add', null, false, false) ?></p> 
     4<?php  
     5  $session->flash();  
     6  echo $html->addCrumb('Control Tools', '/admin/entries/start');   
     7  echo $html->getCrumbs(' / '); 
     8  echo $html->para(null, $html->link($html->image('actions/new.png', array("alt"=>"Add new page", "title"=>"Add new page")), '/admin/galleries/add', null, false, false));  
     9?> 
    910 
    1011<table class="tbadmin"> 
     
    2122        $gags->sendEdit($val['Gallery']['id'], 'galleries'), 
    2223        $html->link($html->image('admin/eye_icon.gif', array("alt"=>"See ". $val['Gallery']['title'], "title"=>"See ". $val['Gallery']['title'])), '#',  
    23                     array("onclick"=>"window.open('/galleries/display/". $cU['User']['username'].", null, 'status=1,toolbar=1,scrollbars=1,height=600,width=800';)"), null, null, false), 
     24                    array("onclick"=>"window.open('/galleries/display/". $session->read('Auth.User.username') .", null, 'status=1,toolbar=1,scrollbars=1,height=600,width=800';)"), null, null, false), 
    2425        $html->link($val['Gallery']['title'], '/admin/photos/listing/'.$val['Gallery']['id']), 
    2526        $gags->setStatus($val['Gallery']['status']), 
  • trunk/app/views/galleries/display.ctp

    r344 r541  
    6363<p> 
    6464  <?php  
    65   if ( $cU['User']['username'] )  
     65  if ( $session->check('Auth.User') )  
    6666  { 
    67      echo $cU['User']['username'] . "  escribe:"; 
     67     echo $session->read('Auth.User.username') . "  write:"; 
    6868      
    6969  }