Login   Register  
PHP Classes
elePHPant
Icontem

File: test.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Andreas Martens  >  TabText  >  test.php  >  Download  
File: test.php
Role: ???
Content type: text/plain
Description: Test script
Class: TabText
Author: By
Last change:
Date: 2002-03-15 12:04
Size: 780 bytes
 

Contents

Class file image Download
<?php

include("class.tabtext.inc");

$text = "Pos\tArtikelnummer\tBezeichnung\tEinzelpreis\tMenge\tGesamtpreis\n";
$text .= "1\t20 500\tneue Bezeichnung\t20,10 Euro\t10\t201,00 Euro\n";
$text .= "1000\t20 501 ghhh\tneue BezBezeichnung testtest \t20,10 Euro\t1\t12,00 Euro\n";

$text .= "zzgl. Versandkosten\t\t\t\t\t6,00 Euro\n";
$text .= "Gesamtpreis\t\t\t\t\t380,00 Euro";

$neu = new TabText;
$neu->text_format($text,8,array(3,4,5));

$neu->text_line(0,"_");
$neu->text_line(1);
$neu->text_line(3,"=");
$neu->text_line(5,"-");

$test = $neu->text_output();

#	output text 
echo $test;

#	mail text
#mail("your@email.com","TabTest",$test);

#	create text doc
#@unlink("test.txt");
$fp = fopen("test.txt","w");
fputs($fp,$test);
fclose($fp);

?>