Update of /cvsroot/webnotes/webnotes/themes/phpnet
In directory usw-pr-cvs1:/tmp/cvs-serv4968/themes/phpnet
Modified Files:
theme_api.php
Log Message:
- Fixed a problem when the width of the note is too big. The last updated part
had 100% width while the rest had more than 100%.
- Used <tt> .. </tt> while preserving spaces and calling nl2br() to avoid
having the notes gets too big when long lines are entered (ie. to enable
wrapping). This is to replace the <pre> ... </pre>
- Fixed a problem where cookies were not set on the root path, and hence, there
were not effective for paths that are not below the login.php.
Index: theme_api.php
===================================================================
RCS file: /cvsroot/webnotes/webnotes/themes/phpnet/theme_api.php,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- theme_api.php 20 Sep 2002 05:00:36 -0000 1.20
+++ theme_api.php 20 Sep 2002 06:57:44 -0000 1.21
@@ -116,7 +116,7 @@
if ( NOTE_VISIBLE_ACCEPTED != $t_note_info['visible'] ) {
$t_visibility = '(' . note_get_visibility_str( $t_note_info['visible'] ) . ') - ';
}
- $t_id_view = "<pre>$t_visibility$t_id<br />$t_moderation</pre>";
+ $t_id_view = "<tt>$t_visibility$t_id<br />$t_moderation</tt>";
$t_id_bookmark = "<a name=\"$t_id\"></a>";
} else {
$t_id_view = ' ';
@@ -136,7 +136,7 @@
}
if ( isset( $t_note_info['note'] ) ) {
- $t_note = '<pre>' . $t_note_info['note'] . '</pre>';
+ $t_note = nl2br(string_preserve_spaces('<tt>' . $t_note_info['note'] . '</tt>'));
} else {
$t_note = ' ';
}
@@ -200,14 +200,16 @@
<img src="$help_picture" border="0" width="13" height="13" alt="About Notes" />
</td>
</tr>
- </table>
EOT;
}
echo <<<EOT
+ <tr bgcolor="#d0d0d0" valign="top"><td colspan="2">
<table border="0" width="100%" bgcolor="#e0e0e0" cellpadding="0" cellspacing="4">
$t_navigation_row
<tr><td align="right" colspan="2"><small>Last updated: Tue, 17 Sep 2002</small></td></tr>
+ </table>
+</td></tr>
</table>
EOT;
}
|