Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <head>
- <style type="text/css">
- tr.tit td{
- background: #9CF;
- font-weight:bold;
- background-image:url(table-shaded.png);
- }
- tr.ter td{
- }
- tr.inc td{
- }
- tr.enc td{
- }
- tr.ech td{
- }
- table tr:nth-child(odd) td {
- background-color: #F0F0F0;
- }
- caption {
- caption-side: top;
- font-weight:bold;
- font-style:italic;
- margin:4px;
- }
- table,th, td {
- border: 1px solid gray;
- }
- th, td {
- height: 24px;
- padding:4px;
- vertical-align:middle;
- }
- table {
- border-collapse:collapse;
- width:100%;
- max-width:700px;
- min-width:400px;
- text-align:center;
- }
- </style>
- <head>
- <?php
- set_time_limit(0);
- $k=0;
- $handle = fopen('footer.html', 'r');
- if ($handle)
- {
- while (!feof($handle))
- {
- $buffer = fgets($handle);
- if (strpos($buffer,'class="ech"'))
- {
- $buffer=substr_replace($buffer,'<tr class="ech"><td><img src="Rouge.jpg"></td>',0,30);
- }
- else if (strpos($buffer,'class="ter"'))
- {
- $buffer=substr_replace($buffer,'<tr class="ter"><td><img src="Vert.jpg"></td>',0,30);
- }
- else if (strpos($buffer,'class="inc"'))
- {
- $buffer=substr_replace($buffer,'<tr class="inc"><td><img src="Rose.jpg"></td>',0,30);
- }
- else if (strpos($buffer,'class="enc"'))
- {
- $buffer=substr_replace($buffer,'<tr class="enc"><td><img src="Orange.jpg"></td>',0,30);
- }
- else if (strpos($buffer,'class="tit"'))
- {
- $buffer=substr_replace($buffer,'<tr class="tit"><td></td>',0,30);
- }
- echo $buffer;
- }
- fclose($handle);
- }
- ?>
- // substr_replace
- <?php include('footer.html'); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement