Assembla home | Assembla project page
 

Changeset 76

Show
Ignore:
Timestamp:
06/23/07 23:05:17 (1 year ago)
Author:
digitalspaghetti
Message:

Added gMail Map & Points system

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branch/views/elements/js_include.ctp

    r72 r76  
    1111<?php e($javascript->link('jquery.thickbox'));?> 
    1212<?php e($javascript->link('webrocket'));?> 
     13<?php e($javascript->link('gmap'));?> 
  • branch/views/events/view.ctp

    r55 r76  
    1 <div class="event"> 
    21<h2>View Event</h2> 
    3  
    4         <dl> 
    5                 <dt>Id</dt> 
    6                 <dd>&nbsp;<?php echo $event['Event']['id']?></dd> 
    7                 <dt>Venue</dt> 
    8                 <dd>&nbsp;<?php echo $event['Event']['venue']?></dd> 
    9                 <dt>Address</dt> 
    10                 <dd>&nbsp;<?php echo $event['Event']['address']?></dd> 
    11                 <dt>City</dt> 
    12                 <dd>&nbsp;<?php echo $event['Event']['city']?></dd> 
    13                 <dt>Country</dt> 
    14                 <dd>&nbsp;<?php echo $html->link($event['Country']['name'], array('controller'=> 'countries', 'action'=>'view', $event['Country']['id'])); ?></dd> 
    15                 <dt>Postcode</dt> 
    16                 <dd>&nbsp;<?php echo $event['Event']['postcode']?></dd> 
    17                 <dt>Event Type</dt> 
    18                 <dd>&nbsp;<?php echo $html->link($event['EventType']['title'], array('controller'=> 'event_types', 'action'=>'view', $event['EventType']['id'])); ?></dd> 
    19                 <dt>Event Date</dt> 
    20                 <dd>&nbsp;<?php echo $event['Event']['event_date']?></dd> 
    21                 <dt>Event Time</dt> 
    22                 <dd>&nbsp;<?php echo $event['Event']['event_time']?></dd> 
    23                 <dt>Event Url</dt> 
    24                 <dd>&nbsp;<?php echo $event['Event']['event_url']?></dd> 
    25                 <dt>Notes</dt> 
    26                 <dd>&nbsp;<?php echo $event['Event']['notes']?></dd> 
    27                 <dt>Tags</dt> 
    28                 <dd>&nbsp;<?php echo $event['Event']['tags']?></dd> 
    29                 <dt>User</dt> 
    30                 <dd>&nbsp;<?php echo $html->link($event['User']['name'], array('controller'=> 'users', 'action'=>'view', $event['User']['id'])); ?></dd> 
    31                 <dt>Subject</dt> 
    32                 <dd>&nbsp;<?php echo $html->link($event['Subject']['title'], array('controller'=> 'subjects', 'action'=>'view', $event['Subject']['id'])); ?></dd> 
    33                 <dt>Published</dt> 
    34                 <dd>&nbsp;<?php echo $event['Event']['published']?></dd> 
    35         </dl> 
     2<div class="vevent" id="hcalendar-<?php e($event['EventType']['title']);?>-<?php e($event['Subject']['title']);?>"> 
     3  <a class="url" href="<?php e($event['Event']['event_url']);?>"> 
     4    <abbr class="dtstart" title="20070623T2200Z"><?php echo $event['Event']['event_date']?> : <?php echo $event['Event']['event_time']?></abbr>&mdash; 
     5    <abbr class="dtend" title="20070623"></abbr> 
     6    <span class="summary"><?php e($event['EventType']['title']);?>: <?php e($event['Subject']['title']);?></span>&mdash; at  
     7    <span class="location"><?php echo $event['Event']['venue']?></span> 
     8  </a> 
     9  <div class="description"><?php echo $event['Event']['body']?></div> 
     10  <div class="tags">Tags:  
     11        <?php foreach($event['Tag'] as $tag):?> 
     12    <a href="http://eventful.com/events/tags/<?php echo $tag['tag'];?>"><?php echo $tag['tag'];?></a> 
     13        <?php endforeach; ?> 
     14  </div> 
     15  <p style="font-size: smaller;">This  
     16    <a href="http://microformats.org/wiki/hcalendar">hCalendar event</a> brought to you by the  
     17    <a href="http://microformats.org/code/hcalendar/creator">hCalendar Creator</a>. 
     18  </p> 
    3619</div> 
    37 <div class="actions"> 
    38         <ul> 
    39                 <li><?php echo $html->link('Edit Event',   array('action'=>'edit', $event['Event']['id'])); ?> </li> 
    40                 <li><?php echo $html->link('Delete Event', array('action'=>'delete', $event['Event']['id']), null, 'Are you sure you want to delete #' . $event['Event']['id'] . '?'); ?> </li> 
    41                 <li><?php echo $html->link('List Events', array('action'=>'index')); ?> </li> 
    42                 <li><?php echo $html->link('New Event', array('action'=>'add')); ?> </li> 
    43                 <li><?php echo $html->link('List Country', array('controller'=> 'countries', 'action'=>'index')); ?> </li> 
    44                 <li><?php echo $html->link('New Countries', array('controller'=> 'countries', 'action'=>'add')); ?> </li> 
    45                 <li><?php echo $html->link('List Event Type', array('controller'=> 'event_types', 'action'=>'index')); ?> </li> 
    46                 <li><?php echo $html->link('New Event Types', array('controller'=> 'event_types', 'action'=>'add')); ?> </li> 
    47                 <li><?php echo $html->link('List User', array('controller'=> 'users', 'action'=>'index')); ?> </li> 
    48                 <li><?php echo $html->link('New Users', array('controller'=> 'users', 'action'=>'add')); ?> </li> 
    49                 <li><?php echo $html->link('List Subject', array('controller'=> 'subjects', 'action'=>'index')); ?> </li> 
    50                 <li><?php echo $html->link('New Subjects', array('controller'=> 'subjects', 'action'=>'add')); ?> </li> 
    51         </ul> 
    52  
    53 </div> 
    54 <div class="related"> 
    55 <h3>Related Tags</h3> 
    56 <?php if(!empty($event['Tag'])):?> 
    57 <table cellpadding="0" cellspacing="0"> 
    58         <tr> 
    59                 <th>Id</th> 
    60                 <th>Tag</th> 
    61                 <th>Actions</th> 
    62         </tr> 
    63 <?php foreach($event['Tag'] as $tag):?> 
    64         <tr> 
    65                 <td><?php echo $tag['id'];?></td> 
    66                 <td><?php echo $tag['tag'];?></td> 
    67                 <td class="actions"> 
    68                         <?php echo $html->link('View', array('controller'=> 'tags', 'action'=>'view', $tag['id'])); ?> 
    69                         <?php echo $html->link('Edit', array('controller'=> 'tags', 'action'=>'edit', $tag['id'])); ?> 
    70                         <?php echo $html->link('Delete', array('controller'=> 'tags', 'action'=>'delete', $tag['id']), null, 'Are you sure you want to delete #' . $tag['id'] . '?'); ?> 
    71                 </td> 
    72         </tr> 
    73 <?php endforeach; ?> 
    74 </table> 
    75 <?php endif; ?> 
    76  
    77         <div class="actions"> 
    78                 <ul> 
    79                         <li><?php echo $html->link('New Tag', array('controller'=> 'tags', 'action'=>'add'));?> </li> 
    80                 </ul> 
    81         </div> 
    82 </div>