cvs: pearweb /templates/notes note-manage-admin.tpl.php view-full-note.tpl.php

From: Date: Fri, 23 Mar 2007 16:14:05 +0000
Subject: cvs: pearweb /templates/notes note-manage-admin.tpl.php view-full-note.tpl.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-45375@lists.php.net to get a copy of this message
davidc Fri Mar 23 16:14:05 2007 UTC Added files: /pearweb/templates/notes view-full-note.tpl.php Modified files: /pearweb/templates/notes note-manage-admin.tpl.php Log: - Added links to manage notes (view notes) and added the template to see them with js and logic for no js http://cvs.php.net/viewvc.cgi/pearweb/templates/notes/note-manage-admin.tpl.php?r1=1.9&r2=1.10&diff_format=u Index: pearweb/templates/notes/note-manage-admin.tpl.php diff -u pearweb/templates/notes/note-manage-admin.tpl.php:1.9 pearweb/templates/notes/note-manage-admin.tpl.php:1.10 --- pearweb/templates/notes/note-manage-admin.tpl.php:1.9 Fri Mar 23 05:07:32 2007 +++ pearweb/templates/notes/note-manage-admin.tpl.php Fri Mar 23 16:14:05 2007 @@ -1,4 +1,12 @@ <?php response_header($title); ?> + +<script src="/javascript/jquery.js"></script> +<script src="/javascript/thickbox.js"></script> + +<style type="text/css"> +@import "/css/thickbox.css"; +</style> + <h1>Notes Management Area</h1> <?php include dirname(dirname(dirname(__FILE__))) . '/templates/notes/note-manage-links.tpl.php'; ?> <?php if (strlen(trim($error)) > 0): // {{{ error ?> @@ -26,8 +34,12 @@ <th class="form-label_left">Status</th> <td class="form-input">Comment</td> <td class="form-input">Name/Email</td> + <td class="form-input">View Note</td> </tr> <?php foreach ($pendingComments as $pendingComment): ?> + <div id="noteView<?php echo $pendingComment['note_id'] ?>" style="visibility: hidden; display: none;"> + <?php echo htmlspecialchars($pendingComment['note_text']); ?> + </div> <tr> <th class="form-label_left"> <input type="checkbox" name="noteIds[]" value="<?php echo $pendingComment['note_id']; ?>" /> @@ -43,6 +55,10 @@ <td class="form-input"> <?php echo htmlspecialchars($pendingComment['user_name']); ?> </td> + <td class="form-input"> + <a class="thickbox" href="view-note.php?height=300&width=300&ajax=yes&noteId=<?php echo $pendingComment['note_id'] ?>" + title="Seeing full comment">View</a> + </tr> </tr> <?php endforeach; ?> <tr> @@ -51,6 +67,7 @@ <input type="submit" name="<?php echo $name ?>" value="<?php echo $button ?>" /> </td> <td class="form-input"></td> + <td class="form-input"></td> </tr> <tr> <th class="form-label_left">Delete</th> @@ -58,7 +75,8 @@ <input type="submit" name="delete" value="Delete selected comments" /> </td> <td class="form-input"></td> - </tr> + <td class="form-input"></td> + </table> </form> <?php response_footer(); ?> http://cvs.php.net/viewvc.cgi/pearweb/templates/notes/view-full-note.tpl.php?view=markup&rev=1.1 Index: pearweb/templates/notes/view-full-note.tpl.php +++ pearweb/templates/notes/view-full-note.tpl.php <?php if (!$ajax) { response_header('View Full Comment'); echo '<h1>View Comment</h1>'; ?> <div style="width: 80%; wrap: virtual; background: #C0C0C0; border: 1px dashed black;"> <?php } ?> <p> <?php if (PEAR::isError($noteContent)) { echo 'Problem retrieving the note'; } else { echo htmlspecialchars($noteContent['note_text']); } ?> </p> <?php if (!$ajax) { ?> </div> <?php response_footer(); exit; } ?>

« previous php.pear.cvs (#45375) next »