From: <vb...@us...> - 2002-09-15 05:08:07
|
Update of /cvsroot/webnotes/webnotes/themes/phpnet In directory usw-pr-cvs1:/tmp/cvs-serv17699/themes/phpnet Modified Files: theme_api.php Log Message: Some fixes as recommended by HTMLTidy. Index: theme_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/themes/phpnet/theme_api.php,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- theme_api.php 15 Sep 2002 02:25:58 -0000 1.11 +++ theme_api.php 15 Sep 2002 05:08:05 -0000 1.12 @@ -39,7 +39,7 @@ #$path = dirname ( __FILE__ ) . DIRECTORY_SEPARATOR . 'images' . DIRECTORY_SEPARATOR; #$image = $path .'notes_add.gif'; - $url = $g_web_directory . '/themes/' . $g_theme . '/images/'; + $url = $g_web_directory . 'themes/' . $g_theme . '/images/'; $add_picture = $url . 'notes_add.gif'; $help_picture = $url . 'notes_about.gif'; @@ -51,7 +51,7 @@ } echo <<<EOT - <table border="0" cellpadding="4" cellspacing="0" width="100%"> + <table summary="" border="0" cellpadding="4" cellspacing="0" width="100%"> <tr bgcolor="#d0d0d0" valign="top"> <td><small>User Contributed Notes</small><br /><strong>$p_page</strong></td> <td align="right"> @@ -70,40 +70,43 @@ if ( isset( $p_note_info_array['id'] ) && ( $p_note_info_array['id'] != 0 ) ) { $t_id = '#' . (integer)$p_note_info_array['id']; + $t_id_view = '<pre>' . $t_id . '</pre>'; + $t_id_bookmark = "<a name=\"$t_id\"></a>"; } else { - $t_id = ''; + $t_id_view = ' '; + $t_id_bookmark = ''; } if ( isset( $p_note_info_array['email'] ) ) { - $t_email = $p_note_info_array['email']; + $t_email = $p_note_info_array['email']; } else { $t_email = ''; } if ( isset( $p_note_info_array['date'] ) ) { - $t_date = $p_note_info_array['date']; + $t_date = $p_note_info_array['date']; } else { $t_date = ''; } if ( isset( $p_note_info_array['note'] ) ) { - $t_note = $p_note_info_array['note']; + $t_note = '<pre>' . $p_note_info_array['note'] . '</pre>'; } else { - $t_note = ''; + $t_note = ' '; } - + echo <<<EOT <tr valign="top"> <td bgcolor="#e0e0e0" colspan="2"> - <a name="$t_id"></a> + $t_id_bookmark - <table border="0" cellpadding="2" cellspacing="0" width="100%"> - <tr align="top" bgcolor="#e0e0e0"> - <td><b>$t_email</b><br/>$t_date</td> - <td align="right"><pre>$t_id</pre></td> + <table summary="" border="0" cellpadding="2" cellspacing="0" width="100%"> + <tr valign="top" bgcolor="#e0e0e0"> + <td><strong>$t_email</strong><br/>$t_date</td> + <td align="right">$t_id_view</td> </tr> <tr bgcolor="#f0f0f0"> - <td colspan="2"><pre>$t_note</pre></td> + <td colspan="2">$t_note</td> </tr> </table> </td> @@ -118,7 +121,7 @@ $c_url = urlencode( $p_url ); $t_page_id = page_get_id( $p_page ); - $url = $g_web_directory . '/themes/' . $g_theme . '/images/'; + $url = $g_web_directory . 'themes/' . $g_theme . '/images/'; $add_picture = $url . 'notes_add.gif'; $help_picture = $url . 'notes_about.gif'; @@ -135,7 +138,7 @@ $t_link_start<img src="$add_picture" border="0" width="13" height="13" alt="Add Notes" />$t_link_end <img src="$help_picture" border="0" width="13" height="13" alt="About Notes" /> </td> - </tr> + </tr> </table> EOT; } |