Update of /cvsroot/webnotes/webnotes/themes/phpnet
In directory usw-pr-cvs1:/tmp/cvs-serv10100/themes/phpnet
Modified Files:
theme_api.php
Removed Files:
theme_note_add_page.php theme_note_preview_page.php
Log Message:
- Added url field into page table.
- Added code to auto-set the url when the page is viewed.
- Some updates to the installation document (still needs a lot of work).
- Added some images to the phpnet theme (previous, next, spacer)
- Started working on the support for previous / next page.
- Started the implementation of the Manage Notes page.
- Removed the admin menu link to the admin_pending.php (will be removed soon).
- Removed theme_note_add_page.php (never used)
- Removed theme_note_preview_page.php (never used)
Index: theme_api.php
===================================================================
RCS file: /cvsroot/webnotes/webnotes/themes/phpnet/theme_api.php,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- theme_api.php 19 Sep 2002 05:15:47 -0000 1.14
+++ theme_api.php 19 Sep 2002 21:51:02 -0000 1.15
@@ -36,12 +36,9 @@
$c_url = urlencode( $p_url );
$t_page_id = page_get_id( $p_page );
- #$path = dirname ( __FILE__ ) . DIRECTORY_SEPARATOR . 'images' . DIRECTORY_SEPARATOR;
- #$image = $path .'notes_add.gif';
-
- $url = $g_web_directory . 'themes/' . $g_theme . '/images/';
- $add_picture = $url . 'notes_add.gif';
- $help_picture = $url . 'notes_about.gif';
+ $t_images_base = $g_web_directory . 'themes/' . $g_theme . '/images/';
+ $add_picture = $t_images_base . 'notes_add.gif';
+ $help_picture = $t_images_base . 'notes_about.gif';
if ( !$p_preview ) {
$t_link_start = "<a href=\"$g_note_add_page?f_page_id=$t_page_id&f_url=$c_url\">";
@@ -147,10 +144,12 @@
$c_url = urlencode( $p_url );
$t_page_id = page_get_id( $p_page );
- $url = $g_web_directory . 'themes/' . $g_theme . '/images/';
- $add_picture = $url . 'notes_add.gif';
- $help_picture = $url . 'notes_about.gif';
-
+ $t_images_base = $g_web_directory . 'themes/' . $g_theme . '/images/';
+ $add_picture = $t_images_base . 'notes_add.gif';
+ $help_picture = $t_images_base . 'notes_about.gif';
+ $prev_picture = $t_images_base . 'caret_left.gif';
+ $next_picture = $t_images_base . 'caret_right.gif';
+
if ( !$p_preview ) {
$t_link_start = "<a href=\"$g_note_add_page?f_page_id=$t_page_id&f_url=$c_url\">";
$t_link_end = '</a>';
@@ -166,7 +165,16 @@
</td>
</tr>
</table>
+ <table border="0" width="100%" bgcolor="#e0e0e0" cellpadding="0" cellspacing="4">
+ <tr><td><img src="$prev_picture" border="0" width="11" height="7" alt="Previous" />Previous</td>
+ <td align="right">Next<img src="$next_picture" border="0" width="11" height="7" alt="Next" /></td></tr>
+ <tr bgcolor="#cccccc"><td colspan="2"></td></tr>
+ <tr><td align="right" colspan="2"><small>Last updated: Tue, 17 Sep 2002</small></td></tr>
+ </table>
EOT;
+# </td></tr></table></td></tr></table>
+# <img src="/gifs/caret-r.gif" border="0" width="11" height="7" ALT="next" />
+# <img src="/gifs/spacer.gif" width="1" height="1" border="0" alt="" />
}
# This function is called if the current page has no notes associated
--- theme_note_add_page.php DELETED ---
--- theme_note_preview_page.php DELETED ---
|