From: <vb...@us...> - 2002-10-03 03:47:53
|
Update of /cvsroot/webnotes/webnotes/core In directory usw-pr-cvs1:/tmp/cvs-serv9166/core Modified Files: css_inc.php gpc_api.php html_api.php util_api.php Log Message: comments.txt Index: css_inc.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/css_inc.php,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- css_inc.php 22 Sep 2002 02:47:16 -0000 1.10 +++ css_inc.php 3 Oct 2002 03:47:50 -0000 1.11 @@ -65,7 +65,7 @@ div.pwn address { font-family:Verdana, Arial; font-size: 8pt; } div.pwn table.box { border: solid 1px #000000; margin-top: 10px; margin-bottom: 10px; text-align: left; width: 100%; } div.pwn tr.row-1 { background-color: #d8d8d8; color: #000000; } -div.pwn tr.row-2 { background-color: #d8d8d8; color: #000000; } +div.pwn tr.row-2 { background-color: #e8e8e8; color: #000000; } div.pwn tr.title { color: #000000; font-weight: bold; } div.pwn tr.buttons { color: #000000; text-align: center; } div.pwn div.note p.title { font-weight: bold; text-align: center; } Index: gpc_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/gpc_api.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- gpc_api.php 13 Sep 2002 07:17:53 -0000 1.1 +++ gpc_api.php 3 Oct 2002 03:47:50 -0000 1.2 @@ -34,7 +34,8 @@ } else if ( func_num_args() > 1 ) { #check for a default passed in (allowing null) $t_result = $p_default; } else { - trigger_error(ERROR_GPC_VAR_NOT_FOUND, ERROR); + #trigger_error(ERROR_GPC_VAR_NOT_FOUND, ERROR); + echo "Variable '$p_var_name' not found"; $t_result = null; } @@ -54,7 +55,8 @@ } if ( is_array( $t_result ) ) { - trigger_error( ERROR_GPC_ARRAY_UNEXPECTED, ERROR ); + #trigger_error( ERROR_GPC_ARRAY_UNEXPECTED, ERROR );e + echo "Unexpected array '$p_var_name'."; } return $t_result; @@ -73,7 +75,8 @@ } if ( is_array( $t_result ) ) { - trigger_error( ERROR_GPC_ARRAY_UNEXPECTED, ERROR ); + #trigger_error( ERROR_GPC_ARRAY_UNEXPECTED, ERROR ); + echo "Unexpected array '$p_var_name'."; } return (integer)$t_result; @@ -88,7 +91,8 @@ return $p_default; } else { if ( is_array( $t_result ) ) { - trigger_error( ERROR_GPC_ARRAY_UNEXPECTED, ERROR ); + #trigger_error( ERROR_GPC_ARRAY_UNEXPECTED, ERROR ); + echo "Unexpected array '$p_var_name'."; } return gpc_string_to_bool( $t_result ); @@ -113,7 +117,8 @@ } if ( ! is_array( $t_result ) ) { - trigger_error( ERROR_GPC_ARRAY_EXPECTED, ERROR); + #trigger_error( ERROR_GPC_ARRAY_EXPECTED, ERROR); + echo "Unexpected array '$p_var_name'."; } return $t_result; @@ -132,7 +137,8 @@ } if ( ! is_array( $t_result ) ) { - trigger_error( ERROR_GPC_ARRAY_EXPECTED, ERROR); + #trigger_error( ERROR_GPC_ARRAY_EXPECTED, ERROR); + echo "Unexpected array '$p_var_name'."; } for ( $i=0 ; $i < sizeof( $t_result ) ; $i++ ) { @@ -155,7 +161,8 @@ } if ( ! is_array( $t_result ) ) { - trigger_error( ERROR_GPC_ARRAY_EXPECTED, ERROR); + #trigger_error( ERROR_GPC_ARRAY_EXPECTED, ERROR); + echo "Unexpected array '$p_var_name'."; } for ( $i=0 ; $i < sizeof( $t_result ) ; $i++ ) { @@ -185,7 +192,8 @@ } else if ( func_num_args() > 1 ) { #check for a default passed in (allowing null) $t_result = $p_default; } else { - trigger_error(ERROR_GPC_VAR_NOT_FOUND, ERROR); + #trigger_error(ERROR_GPC_VAR_NOT_FOUND, ERROR); + echo "Variable '$p_var_name' not found"; $t_result = null; } Index: html_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/html_api.php,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- html_api.php 3 Oct 2002 00:23:19 -0000 1.18 +++ html_api.php 3 Oct 2002 03:47:50 -0000 1.19 @@ -118,7 +118,7 @@ echo '<div class="menu">.: '; echo "<a title=\"Go to your home page\" href=\"$g_user_home_page\">Home</a> :: "; if ( access_check_action( ACTION_PAGES_MANAGE ) ) { - echo "<a title=\"Add or remove documents\" href=\"$g_admin_index_files\">$s_index_files</a> :: "; + echo "<a title=\"Add or remove pages\" href=\"$g_admin_index_files\">$s_index_files</a> :: "; } if ( access_check_action( ACTION_NOTES_MODERATE ) ) { echo "<a title=\"Moderate notes\" href=\"$g_admin_manage_notes\">$s_manage_notes</a> [$queue_count] :: "; Index: util_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/util_api.php,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- util_api.php 3 Oct 2002 00:23:19 -0000 1.5 +++ util_api.php 3 Oct 2002 03:47:50 -0000 1.6 @@ -38,6 +38,22 @@ } } # -------------------- + # alternate color function + function util_alternate_class( $p_num, $p_class1 = null, $p_class2 = null ) { + if ( null === $p_class1 ) { + $p_class1 = 'row-1'; + } + if ( null === $p_class2 ) { + $p_class2 = 'row-2'; + } + + if ( 1 == $p_num % 2 ) { + return $p_class1; + } else { + return $p_class2; + } + } + # -------------------- function util_header_redirect( $p_url ) { $t_use_iis = config_get( 'use_iis'); if ( OFF == $t_use_iis ) { |