Location: PHPKode > projects > TelDaBase > teldabase-1.4/teldabase/tel_default.php
<?
/***************************************************************/
/*                                                             */
/* TelDaBase                                                   */
/* =========                                                   */
/*                                                             */
/* Copyright (C) 2004 Wolfgang Barthel                         */
/*                                                             */
/*                    http://www.teldabase.de                  */
/*                    hide@address.com */
/*                                                             */
/* see index.php and LICENSE                                   */
/*                                                             */
/***************************************************************/

/***************************************************************/
/* tel_default.php                                             */
/* ===============                                             */
/* allgemeine Funktionen zur Generierung der .html-Datei       */
/***************************************************************/

setlocale(LC_TIME, "de_DE.ISO8859-1");

function htmlheader($script="")
{
echo("<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>TelDaBase: Telefonrechnung von Rechnung Online automatisch auswerten</title>
<link rel="stylesheet" type="text/css" href="teldabase.css" />
<meta name="description" content="Auswertung der Telefonrechnung von Rechnung Online" />
<meta name="keywords" content="Teldabase, Rechnung Online, Telefonrechnung, Auswertung, Asterisk" />
<meta name="author" content="W. Barthel, hide@address.com" />
<meta name="resource-type" content="document" />
<meta name="distribution" content="global" />
<? if(!empty($script))
{
echo("<script src=\"dhtml.js\" type=\"text/javascript\">\n</script>\n");
echo("<script src=\"$script\" type=\"text/javascript\">\n</script>\n");
}
echo("<script src=\"sorttable.js\" type=\"text/javascript\">\n</script>\n");
?>
</head>
<body>
<div class="db">
<?
}

function htmlfooter()
{
?>
</div>
</body>
</html>
<?
}

function stripquotes($string)
{
   /* entfernt doppelte Anführungszeichen */
   return preg_replace("/\"(.*)\"/", "$1", $string);
}

function my_mysql_query($query, $link)
{
    $result = mysql_query($query, $link)
      or die ("Query |$query| failed:" . mysql_error());
    return $result;
}

function kommazupunkt(&$string)
{
    $string = str_replace(",",".", $string);
}
?>
Return current item: TelDaBase