Google
Web alhem.net
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

html.h File Reference

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Functions

void error (char *s)
void header_top (char *, long)
void header0 (char *, long, Cookies *)
void header (char *s, long)
void nullheader (char *s, long)
void footer ()
void iplus ()
void iplusend ()
void iclosed ()
void iminus ()
void iminusend ()
void iopen ()
void ivertline ()
void ibranchcont ()
void ibranchend ()
void iglobe ()
void iglobe0 ()
void ithumbsup ()
void ithumbsdown ()
void ipascal ()
void iempty ()
void iexpanded ()
void inotexpanded ()


Function Documentation

void error char *  s  ) 
 

Definition at line 36 of file html.cpp.

References out.

Referenced by run().

00037 { 00038 fprintf(out,"\n"); // End of http header 00039 00040 fprintf(out,"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd\">\n"); 00041 fflush(out); 00042 fprintf(out,"<html><head><title>Error</title>"); 00043 fprintf(out,"<link rel=\"STYLESHEET\" href=\"/style/dbd.css\" type=\"text/css\">"); 00044 fprintf(out,"<link rel='SHORTCUT ICON' href='/favicon.ico'>"); 00045 fprintf(out,"</head>\n"); 00046 fprintf(out,"<body> <h1>Error</h1> This is the text of the error message: '%s' </body></html>\n",s); 00047 fflush(out); 00048 #ifndef WIN32 00049 exit(-1); 00050 #endif 00051 }

void footer  ) 
 

Definition at line 295 of file html.cpp.

References out.

00296 { 00297 fprintf(out,"<br><br>[\n"); 00298 fprintf(out,"<a target=_top href=\"/cgi-bin/dbd/dbd?repair=0\">repair frames</a>\n]<br>"); 00299 fprintf(out,"<br>"); 00300 fprintf(out,"</div>"); // padding 5px 00301 fprintf(out,"</body></html>\n"); 00302 }

void header char *  s,
long 
 

Definition at line 163 of file html.cpp.

References out, and TITLE.

Referenced by ExecSocket::Exec().

00164 { 00165 fprintf(out,"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd\">\n"); 00166 fflush(out); 00167 fprintf(out,"<html><head><base target=rf><title>%s</title>",s); 00168 // if (*s) 00169 // fprintf(out,"<title>%s: %s</title>",TITLE,s); 00170 // else 00171 // fprintf(out,"<title>%s</title>",TITLE); 00172 fprintf(out,"<link rel=\"STYLESHEET\" href=\"/style/dbd.css\" type=\"text/css\">"); 00173 fprintf(out,"<link rel='SHORTCUT ICON' href='/favicon.ico'>"); 00174 fprintf(out,"</head>\n"); 00175 fprintf(out,"<body>"); // bgcolor=\"#66ddfe\">"); 00176 fprintf(out,"<table width=\"100%%\" cellpadding=0 cellspacing=0><tr><td valign=middle>"); 00177 if (*s) 00178 fprintf(out,"<h1>%s: %s</h1>",TITLE,s); 00179 else 00180 fprintf(out,"<h1>%s</h1>",TITLE); 00181 // fprintf(out,"<img src=/image/dbdlogo.gif>"); 00182 fprintf(out,"</td>"); 00183 fprintf(out,"<td valign=top align=right>"); 00184 // fprintf(out,"<form action=/cgi-bin/dbd/dbd method=post>"); 00185 // fprintf(out,"<input type=submit name=logout value=\" Logout \">"); 00186 // fprintf(out,"</form>"); 00187 00188 // useronline = 1 design 00189 // 2 db access 00190 // 3 user info 00191 // 4 - 00192 // 5 edit data 00193 // 6 generate sql 00194 // 00195 00196 if (useronline) 00197 { 00198 useronline = 999; 00199 fprintf(out,"[\n"); 00200 if (useronline == 1) 00201 fprintf(out,"design\n"); 00202 else 00203 fprintf(out,"<a href=\"/cgi-bin/dbd/dbd?design=0\">design</a>\n"); 00204 fprintf(out,"|\n"); 00205 fprintf(out,"<a href=\"/cgi-bin/dbd/dbd?ed=0\">edit&nbsp;data</a>\n"); 00206 fprintf(out,"|\n"); 00207 fprintf(out,"<a href=\"/cgi-bin/dbd/dbd?sql=1\">generate&nbsp;sql</a>\n"); 00208 fprintf(out,"|\n"); 00209 fprintf(out,"<a href=\"/cgi-bin/dbd/dbd?diagram=0\">diagram</a>\n"); 00210 fprintf(out,"|\n"); 00211 if (useronline == 2) 00212 fprintf(out,"db&nbsp;access\n"); 00213 else 00214 fprintf(out,"<a href=\"/cgi-bin/dbd/dbd?dba=0\">db&nbsp;access</a>\n"); 00215 fprintf(out,"|\n"); 00216 if (useronline == 3) 00217 fprintf(out,"user&nbsp;info\n"); 00218 else 00219 fprintf(out,"<a href=\"/cgi-bin/dbd/dbd?ui=0\">user&nbsp;info</a>\n"); 00220 fprintf(out,"|\n"); 00221 fprintf(out,"<a target=_top href=\"/cgi-bin/dbd/dbd?logout=0\">logout</a>\n"); 00222 fprintf(out,"]"); 00223 fprintf(out,"<br>"); 00224 fprintf(out,"[ <a href=\"/cgi-bin/dbd/dbd?ls=0\">live&nbsp;sync</a> ]"); 00225 } 00226 fprintf(out,"</td></tr></table>"); 00227 }

void header0 char *  ,
long  ,
Cookies * 
 

Definition at line 69 of file html.cpp.

References out.

00070 { 00071 char slask[100]; 00072 00073 fprintf(out,"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd\">\n"); 00074 fflush(out); 00075 fprintf(out,"<html><head><base target=rf><title>%s</title>",s); 00076 fprintf(out,"<link rel=\"STYLESHEET\" href=\"/style/dbd.css\" type=\"text/css\">"); 00077 fprintf(out,"<link rel='SHORTCUT ICON' href='/favicon.ico'>"); 00078 fprintf(out,"</head>\n"); 00079 fprintf(out,"<body>"); // background=/image/dbdinnehall.gif BGPROPERTIES=fixed>\n"); 00080 // new menu 00081 std::string td_class = "x"; 00082 std::string a_class = "x"; 00083 /* 00084 set_cookie(cs,"ui",0L); 00085 set_cookie(cs,"dba","0"); 00086 set_cookie(cs,"ed","0"); 00087 */ 00088 /* 00089 bool design = false; 00090 bool ui = (cs -> getvalue("ui",slask,100) && *slask && atoi(slask)) ? true : false; 00091 bool dba = (cs -> getvalue("dba",slask,100) && *slask && atoi(slask)) ? true : false; 00092 bool ed = (cs -> getvalue("ed",slask,100) && *slask && atoi(slask)) ? true : false; 00093 cs -> getvalue("show_page",slask,100); 00094 int show_page = atoi(slask); 00095 bool sql = show_page == 20; 00096 bool diagram = show_page == 38; 00097 bool ls = show_page == 22; 00098 if (sql || diagram || ls) 00099 { 00100 ui = dba = ed = false; 00101 } 00102 if (!ui && !dba && !ed && !sql && !diagram && !ls) 00103 { 00104 design = true; 00105 } 00106 */ 00107 cs -> getvalue("flik",slask,20); 00108 int flik = atoi(slask); 00109 fprintf(out,"<table cellpadding=0 cellspacing=0><tr>"); 00110 fprintf(out,"<td class=mbeg>&nbsp;</td>"); 00111 00112 // flik 2 00113 // td_class = design ? "y" : "x"; 00114 td_class = (flik == 2) ? "y" : "x"; 00115 fprintf(out,"<td class=%s><a class=%s href=\"/cgi-bin/dbd/dbd?design=0\">design</a></td>",td_class.c_str(),a_class.c_str()); 00116 // flik 3 - edit data 00117 // td_class = ed ? "y" : "x"; 00118 td_class = (flik == 3) ? "y" : "x"; 00119 fprintf(out,"<td class=%s><a class=%s href=\"/cgi-bin/dbd/dbd?ed=0\">edit</a></td>",td_class.c_str(),a_class.c_str()); 00120 // flik 4 00121 // td_class = diagram ? "y" : "x"; 00122 td_class = (flik == 4) ? "y" : "x"; 00123 fprintf(out,"<td class=%s><a class=%s href=\"/cgi-bin/dbd/dbd?diagram=0\">diagram</a></td>",td_class.c_str(),a_class.c_str()); 00124 // flik 5 - generate sql 00125 // td_class = sql ? "y" : "x"; 00126 td_class = (flik == 5) ? "y" : "x"; 00127 fprintf(out,"<td class=%s><a class=%s href=\"/cgi-bin/dbd/dbd?sql=1\">code</a></td>",td_class.c_str(),a_class.c_str()); 00128 // flik 7 - db access 00129 // td_class = dba ? "y" : "x"; 00130 td_class = (flik == 7) ? "y" : "x"; 00131 fprintf(out,"<td class=%s><a class=%s href=\"/cgi-bin/dbd/dbd?dba=0\">share</a></td>",td_class.c_str(),a_class.c_str()); 00132 // flik 8 00133 // td_class = ls ? "y" : "x"; 00134 // td_class = (flik == 8) ? "y" : "x"; 00135 // fprintf(out,"<td class=%s><a class=%s href=\"/cgi-bin/dbd/dbd?ls=0\">live&nbsp;sync</a></td>",td_class.c_str(),a_class.c_str()); 00136 // flik 10 00137 td_class = (flik == 10) ? "y" : "x"; 00138 fprintf(out,"<td class='%s'><a class='%s' href='/cgi-bin/dbd/dbd?import=0'>import</a></td>",td_class.c_str(),a_class.c_str()); 00139 00140 // flik 6 - user info 00141 // td_class = ui ? "y" : "x"; 00142 td_class = (flik == 6) ? "y" : "x"; 00143 fprintf(out,"<td class=%s><a class=%s href=\"/cgi-bin/dbd/dbd?ui=0\">settings</a></td>",td_class.c_str(),a_class.c_str()); 00144 // flik 9 00145 td_class = "x"; 00146 fprintf(out,"<td class=%s><a target=_top class=%s href=\"/cgi-bin/dbd/dbd?logout=0\">logout</a></td>",td_class.c_str(),a_class.c_str()); 00147 00148 fprintf(out,"</tr></table>"); 00149 fprintf(out,"<div style=\"width: 100%; height: 8px; background: #c0c0c0\">"); 00150 fprintf(out,"</div>"); 00151 fprintf(out,"<div style=\"width: 100%; height: 4px; background: #ffffff\">"); 00152 fprintf(out,"</div>"); 00153 // end of new menu 00154 fprintf(out,"<div style=\"padding: 5px;\">"); 00155 00156 if (*s) 00157 fprintf(out,"<h3>%s</h3>",s); 00158 }

void header_top char *  ,
long 
 

Definition at line 53 of file html.cpp.

References out.

00054 { 00055 fprintf(out,"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd\">\n"); 00056 fflush(out); 00057 fprintf(out,"<html><head><base target=rf><title>%s</title>",s); 00058 fprintf(out,"<link rel=\"STYLESHEET\" href=\"/style/dbd.css\" type=\"text/css\">"); 00059 fprintf(out,"<link rel='SHORTCUT ICON' href='/favicon.ico'>"); 00060 fprintf(out,"</head>\n"); 00061 fprintf(out,"<body>"); // background=/image/dbdinnehall.gif BGPROPERTIES=fixed>\n"); 00062 if (*s) 00063 fprintf(out,"<h3>%s</h3>",s); 00064 }

void ibranchcont  ) 
 

Definition at line 351 of file html.cpp.

References out.

00352 { 00353 fprintf(out,"<img src='/image/ibranch-cont-0.gif' width=19 height=16 align=texttop border=0>"); 00354 }

void ibranchend  ) 
 

Definition at line 356 of file html.cpp.

References out.

00357 { 00358 fprintf(out,"<img src='/image/ibranch-end-0.gif' width=19 height=16 align=texttop border=0>"); 00359 }

void iclosed  ) 
 

Definition at line 326 of file html.cpp.

References out.

00327 { 00328 fprintf(out,"<img src='/image/ifolder-closed-0.gif' width=16 height=16 align=texttop border=0>"); 00329 }

void iempty  ) 
 

Definition at line 386 of file html.cpp.

References out.

00387 { 00388 fprintf(out,"<img src='/image/iempty.gif' height=16 align=texttop border=0>"); 00389 }

void iexpanded  ) 
 

Definition at line 316 of file html.cpp.

References out.

00317 { 00318 fprintf(out,"<img src='/image/iminus-cont-0.gif' width=19 height=16 align=texttop border=0>"); 00319 }

void iglobe  ) 
 

Definition at line 361 of file html.cpp.

References out.

00362 { 00363 fprintf(out,"<img src='/image/globe.gif' width=16 height=16 align=texttop border=0>"); 00364 }

void iglobe0  ) 
 

Definition at line 366 of file html.cpp.

References out.

00367 { 00368 fprintf(out,"<img src='/image/iglobe-0.gif' width=16 height=16 align=texttop border=0>"); 00369 }

void iminus  ) 
 

Definition at line 331 of file html.cpp.

References out.

00332 { 00333 fprintf(out,"<img src='/image/iminus-cont-0.gif' width=19 height=16 align=texttop border=0>"); 00334 }

void iminusend  ) 
 

Definition at line 336 of file html.cpp.

References out.

00337 { 00338 fprintf(out,"<img src='/image/iminus-end-0.gif' width=19 height=16 align=texttop border=0>"); 00339 }

void inotexpanded  ) 
 

Definition at line 321 of file html.cpp.

References out.

00322 { 00323 fprintf(out,"<img src='/image/iplus-cont-0.gif' width=19 height=16 align=texttop border=0>"); 00324 }

void iopen  ) 
 

Definition at line 341 of file html.cpp.

References out.

00342 { 00343 fprintf(out,"<img src='/image/ifolder-open-0.gif' width=16 height=16 align=texttop border=0>"); 00344 }

void ipascal  ) 
 

Definition at line 381 of file html.cpp.

References out.

00382 { 00383 fprintf(out,"<img src='/image/pascal.gif' height=16 align=texttop border=0>"); 00384 }

void iplus  ) 
 

Definition at line 306 of file html.cpp.

References out.

00307 { 00308 fprintf(out,"<img src='/image/iplus-cont-0.gif' width=19 height=16 align=texttop border=0>"); 00309 }

void iplusend  ) 
 

Definition at line 311 of file html.cpp.

References out.

00312 { 00313 fprintf(out,"<img src='/image/iplus-end-0.gif' width=19 height=16 align=texttop border=0>"); 00314 }

void ithumbsdown  ) 
 

Definition at line 376 of file html.cpp.

References out.

00377 { 00378 fprintf(out,"<img src='/image/thumbsdn2.gif' height=16 align=texttop border=0>"); 00379 }

void ithumbsup  ) 
 

Definition at line 371 of file html.cpp.

References out.

00372 { 00373 fprintf(out,"<img src='/image/thumbsup2.gif' height=16 align=texttop border=0>"); 00374 }

void ivertline  ) 
 

Definition at line 346 of file html.cpp.

References out.

00347 { 00348 fprintf(out,"<img src='/image/ivert-line-0.gif' width=19 height=16 align=texttop border=0>"); 00349 }

void nullheader char *  s,
long 
 

Definition at line 229 of file html.cpp.

References out, and TITLE.

00230 { 00231 fprintf(out,"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd\">\n"); 00232 fflush(out); 00233 fprintf(out,"<html><head><title>%s</title>",s); 00234 // if (*s) 00235 // fprintf(out,"<title>%s: %s</title>",TITLE,s); 00236 // else 00237 // fprintf(out,"<title>%s</title>",TITLE); 00238 fprintf(out,"<link rel=\"STYLESHEET\" href=\"/style/dbd.css\" type=\"text/css\">"); 00239 fprintf(out,"<link rel='SHORTCUT ICON' href='/favicon.ico'>"); 00240 fprintf(out,"</head>\n"); 00241 fprintf(out,"<body style=\"padding: 10px;\">"); // bgcolor=\"#66ddfe\">"); 00242 fprintf(out,"<table width=\"100%%\" cellpadding=0 cellspacing=0><tr><td valign=middle>"); 00243 if (*s) 00244 fprintf(out,"<h1>%s: %s</h1>",TITLE,s); 00245 else 00246 fprintf(out,"<h1>%s</h1>",TITLE); 00247 // fprintf(out,"<img src=/image/dbdlogo.gif>"); 00248 fprintf(out,"</td>"); 00249 fprintf(out,"<td valign=top align=right>"); 00250 // fprintf(out,"<form action=/cgi-bin/dbd/dbd method=post>"); 00251 // fprintf(out,"<input type=submit name=logout value=\" Logout \">"); 00252 // fprintf(out,"</form>"); 00253 00254 // useronline = 1 design 00255 // 2 db access 00256 // 3 user info 00257 // 4 - 00258 // 5 edit data 00259 // 6 generate sql 00260 // 00261 00262 if (useronline) 00263 { 00264 useronline = 999; 00265 fprintf(out,"[\n"); 00266 if (useronline == 1) 00267 fprintf(out,"design\n"); 00268 else 00269 fprintf(out,"<a href=\"/cgi-bin/dbd/dbd?design=0\">design</a>\n"); 00270 fprintf(out,"|\n"); 00271 fprintf(out,"<a href=\"/cgi-bin/dbd/dbd?ed=0\">edit&nbsp;data</a>\n"); 00272 fprintf(out,"|\n"); 00273 fprintf(out,"<a href=\"/cgi-bin/dbd/dbd?sql=1\">generate&nbsp;sql</a>\n"); 00274 fprintf(out,"|\n"); 00275 fprintf(out,"<a href=\"/cgi-bin/dbd/dbd?diagram=0\">diagram</a>\n"); 00276 fprintf(out,"|\n"); 00277 if (useronline == 2) 00278 fprintf(out,"db&nbsp;access\n"); 00279 else 00280 fprintf(out,"<a href=\"/cgi-bin/dbd/dbd?dba=0\">db&nbsp;access</a>\n"); 00281 fprintf(out,"|\n"); 00282 if (useronline == 3) 00283 fprintf(out,"user&nbsp;info\n"); 00284 else 00285 fprintf(out,"<a href=\"/cgi-bin/dbd/dbd?ui=0\">user&nbsp;info</a>\n"); 00286 fprintf(out,"|\n"); 00287 fprintf(out,"<a target=_top href=\"/cgi-bin/dbd/dbd?logout=0\">logout</a>\n"); 00288 fprintf(out,"]"); 00289 fprintf(out,"<br>"); 00290 fprintf(out,"[ <a href=\"/cgi-bin/dbd/dbd?ls=0\">live&nbsp;sync</a> ]"); 00291 } 00292 fprintf(out,"</td></tr></table>"); 00293 }


Generated on Thu Feb 10 22:42:36 2005 for Distributed URL Classification Tool by doxygen 1.3.7