Login   Register  
PHP Classes
elePHPant
Icontem

File: errOut-SourceDisplay.html

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Srinivasan Ramakrishnan  >  csvtohtml  >  errOut-SourceDisplay.html  >  Download  
File: errOut-SourceDisplay.html
Role: ???
Content type: text/plain
Description: HTML formatted source - makes easier reading :0)
Class: csvtohtml
Converts a CSV file into a HTML table
Author: By
Last change:
Date: 13 years ago
Size: 7,737 bytes
 

Contents

Class file image Download
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0068)http://127.1/code/source.php?url=./projects/csv-htmltable/errOut.inc -->
<HTML><HEAD><TITLE>Source Display</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 5.50.4522.1800" name=GENERATOR></HEAD>
<BODY>
<TABLE width="100%" align=center bgColor=#6699cc>
  <TBODY>
  <TR>
    <TD align=middle><B>Source listing for <PRE>errOut.inc</PRE></B></TD></TR></TBODY></TABLE><CODE><FONT 
color=#000000><FONT color=#0000bb>&lt;?php <BR></FONT><FONT 
color=#ff8000>/**************************************************************************************** 
<BR>*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CSV2HTML&nbsp;-&nbsp;PHP&nbsp;code&nbsp;by&nbsp;Srinivasan&nbsp;Ramakrishnan,&nbsp;cheeni@bigfoot.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 
<BR>*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;http://www.sriniram.com,&nbsp;03/FEB/2001&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 
<BR>*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Free&nbsp;for&nbsp;non-commercial&nbsp;use.&nbsp;For&nbsp;commercial&nbsp;use&nbsp;please&nbsp;contact&nbsp;author.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 
<BR>*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;No&nbsp;warranties&nbsp;of&nbsp;correctness&nbsp;are&nbsp;extended&nbsp;for&nbsp;non-commercial&nbsp;usage.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 
<BR>****************************************************************************************/ 
<BR>/*&nbsp;&nbsp;This&nbsp;is&nbsp;the&nbsp;error&nbsp;output&nbsp;function&nbsp;of&nbsp;CSV2HTML 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;Change&nbsp;this&nbsp;as&nbsp;desired&nbsp;to&nbsp;manipulate&nbsp;output&nbsp;errors. 
<BR>*/&nbsp; <BR></FONT><FONT color=#007700>function&nbsp;</FONT><FONT 
color=#0000bb>errOut</FONT><FONT color=#007700>(</FONT><FONT 
color=#0000bb>$errMsg</FONT><FONT color=#007700>,</FONT><FONT 
color=#0000bb>$priority</FONT><FONT color=#007700>){ 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;switch(</FONT><FONT 
color=#0000bb>$priority</FONT><FONT color=#007700>){ 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;</FONT><FONT color=#0000bb>0</FONT><FONT 
color=#007700>:&nbsp;</FONT><FONT color=#0000bb>$start&nbsp;</FONT><FONT 
color=#007700>=&nbsp;</FONT><FONT color=#dd0000>"&lt;h1&gt;"</FONT><FONT 
color=#007700>; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT><FONT 
color=#0000bb>$end&nbsp;</FONT><FONT color=#007700>=&nbsp;</FONT><FONT 
color=#dd0000>"&lt;/h1&gt;"</FONT><FONT color=#007700>; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT><FONT 
color=#0000bb>$errLevel&nbsp;</FONT><FONT color=#007700>=&nbsp;</FONT><FONT 
color=#dd0000>"FATAL&nbsp;ERROR:&nbsp;(0)"</FONT><FONT color=#007700>; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT><FONT 
color=#0000bb>$color&nbsp;</FONT><FONT color=#007700>=&nbsp;</FONT><FONT 
color=#dd0000>"#FF0000"</FONT><FONT color=#007700>; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;</FONT><FONT color=#0000bb>1</FONT><FONT 
color=#007700>:&nbsp;</FONT><FONT color=#0000bb>$start&nbsp;</FONT><FONT 
color=#007700>=&nbsp;</FONT><FONT color=#dd0000>"&lt;h2&gt;"</FONT><FONT 
color=#007700>; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT><FONT 
color=#0000bb>$end&nbsp;</FONT><FONT color=#007700>=&nbsp;</FONT><FONT 
color=#dd0000>"&lt;/h2&gt;"</FONT><FONT color=#007700>; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT><FONT 
color=#0000bb>$errLevel&nbsp;</FONT><FONT color=#007700>=&nbsp;</FONT><FONT 
color=#dd0000>"ERROR:&nbsp;(1)"</FONT><FONT color=#007700>; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT><FONT 
color=#0000bb>$color&nbsp;</FONT><FONT color=#007700>=&nbsp;</FONT><FONT 
color=#dd0000>"#cc3300"</FONT><FONT color=#007700>; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;</FONT><FONT color=#0000bb>2</FONT><FONT 
color=#007700>:&nbsp;</FONT><FONT color=#0000bb>$start&nbsp;</FONT><FONT 
color=#007700>=&nbsp;</FONT><FONT color=#dd0000>"&lt;h3&gt;"</FONT><FONT 
color=#007700>; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT><FONT 
color=#0000bb>$end&nbsp;</FONT><FONT color=#007700>=&nbsp;</FONT><FONT 
color=#dd0000>"&lt;/h3&gt;"</FONT><FONT color=#007700>; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT><FONT 
color=#0000bb>$errLevel&nbsp;</FONT><FONT color=#007700>=&nbsp;</FONT><FONT 
color=#dd0000>"WARNING:&nbsp;(2)"</FONT><FONT 
color=#007700>;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT><FONT 
color=#0000bb>$color&nbsp;</FONT><FONT color=#007700>=&nbsp;</FONT><FONT 
color=#dd0000>"#ff9900"</FONT><FONT color=#007700>; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;</FONT><FONT color=#0000bb>3</FONT><FONT 
color=#007700>:&nbsp;</FONT><FONT color=#0000bb>$start&nbsp;</FONT><FONT 
color=#007700>=&nbsp;</FONT><FONT color=#dd0000>"&lt;h4&gt;"</FONT><FONT 
color=#007700>; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT><FONT 
color=#0000bb>$end&nbsp;</FONT><FONT color=#007700>=&nbsp;</FONT><FONT 
color=#dd0000>"&lt;/h4&gt;"</FONT><FONT color=#007700>; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT><FONT 
color=#0000bb>$errLevel&nbsp;</FONT><FONT color=#007700>=&nbsp;</FONT><FONT 
color=#dd0000>"NOTE:&nbsp;(3)"</FONT><FONT 
color=#007700>;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT><FONT 
color=#0000bb>$color&nbsp;</FONT><FONT color=#007700>=&nbsp;</FONT><FONT 
color=#dd0000>"Yellow"</FONT><FONT color=#007700>; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;} <BR>&nbsp;&nbsp;&nbsp;&nbsp; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</FONT><FONT 
color=#0000bb>$start&nbsp;</FONT><FONT color=#007700>.&nbsp;</FONT><FONT 
color=#dd0000>'&lt;font&nbsp;color="'&nbsp;</FONT><FONT 
color=#007700>.&nbsp;</FONT><FONT color=#0000bb>$color&nbsp;</FONT><FONT 
color=#007700>.</FONT><FONT color=#dd0000>'"&gt;'&nbsp;</FONT><FONT 
color=#007700>.&nbsp;</FONT><FONT color=#dd0000>"&lt;b&gt;"&nbsp;</FONT><FONT 
color=#007700>.&nbsp;</FONT><FONT color=#0000bb>$errLevel&nbsp;</FONT><FONT 
color=#007700>.</FONT><FONT 
color=#dd0000>"&lt;/b&gt;&lt;br&gt;&lt;i&gt;"</FONT><FONT 
color=#007700>.&nbsp;</FONT><FONT color=#0000bb>$errMsg&nbsp;</FONT><FONT 
color=#007700>.</FONT><FONT color=#dd0000>"&lt;/i&gt;&lt;/font&gt;"</FONT><FONT 
color=#007700>.&nbsp;</FONT><FONT color=#0000bb>$end</FONT><FONT color=#007700>; 
<BR>} <BR></FONT><FONT color=#0000bb>?&gt;</FONT> </FONT></CODE>
<TABLE width="100%" align=center bgColor=#6699cc>
  <TBODY>
  <TR>
    <TD align=middle><STRONG>Last modified: Saturday 
    03/February/2001</STRONG></TD></TR></TBODY></TABLE></BODY></HTML>