Differences From:
File
src/db.c
part of check-in
[97ff24dec7]
- Better error message when attempting to create a new repository in
a directory that does not exist.
by
drh on
2008-02-04 13:14:45.
[view]
To:
File
src/db.c
part of check-in
[0095e24ba9]
- Added style info to db_generic_query_view(), so it can be styled via css
by
stephan on
2008-02-04 23:14:15.
[view]
@@ -1174,10 +1174,10 @@
@ db_generic_query_view(): Error processing SQL: [%s(sql)]
return;
}
int colc = db_column_count(&st);
- @ <table cellpadding='4px' border='1'><tbody>
- @ <tr>
+ @ <table class='fossil_db_generic_query_view'><tbody>
+ @ <tr class='header'>
for( i = 0; i < colc; ++i ) {
if( coln )
{
@ <th>%s(coln[i] ? coln[i] : db_column_name(&st,i))</th>
@@ -1188,10 +1188,11 @@
}
}
@ </tr>
+ int row = 0;
while( SQLITE_ROW == db_step(&st) ){
- @ <tr>
+ @ <tr class='%s( (row++%2) ? "odd" : "even")'>
for( i = 0; i < colc; ++i ) {
char * xf = 0;
char const * xcf = 0;
xcf = (xform && xform[i])