You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
891 B
PHP
48 lines
891 B
PHP
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
|
"http://www.w3.org/TR/html4/loose.dtd">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
<title>Generate RTF File</title>
|
|
|
|
<style>
|
|
.rtfcol0 { color: rgb(0,0,0);}
|
|
.rtfcol1 { color: rgb(0,0,119);}
|
|
.rtfcol2 { color: rgb(0,0,255);}
|
|
.rtfcol3 { color: rgb(0,128,0);}
|
|
.rtfcol4 { color: rgb(0,153,0);}
|
|
.rtfcol5 { color: rgb(128,0,0);}
|
|
.rtfcol6 { color: rgb(128,128,128);}
|
|
.rtfcol7 { color: rgb(136,0,0);}
|
|
.rtfcol8 { color: rgb(160,0,160);}
|
|
</style>
|
|
|
|
|
|
<?php
|
|
include('rtfparser.php');
|
|
?>
|
|
|
|
|
|
</head>
|
|
<body >
|
|
|
|
<?php
|
|
|
|
echo "<h1>File test.rtf</h1>";
|
|
|
|
// parameter1: filename
|
|
// parameter2: erster teil vom classnamen
|
|
//
|
|
echo ( rtf_parsefile('test.rtf','rtfcol') );
|
|
|
|
|
|
echo "<h1>File test_wordpad.rtf</h1>";
|
|
|
|
echo ( rtf_parsefile('test_wordpad.rtf','rtfcol') );
|
|
|
|
?>
|
|
|
|
|
|
</body>
|
|
</html>
|