PHP Classes

File: Example.php

Recommend this page to a friend!
  Classes of Tufan Baris YILDIRIM   D3Css   Example.php   Download  
File: Example.php
Role: Example script
Content type: text/plain
Description: Example Evulator using
Class: D3Css
Evaluate CSS styles with inheritance support
Author: By
Last change: header
Date: 13 years ago
Size: 651 bytes
 

Contents

Class file image Download
<?php
   
include 'D3Css.php';
    if(isset(
$_GET['file']) && is_file($file=$_GET['file'].".css"))
    {
       
header("Conten-Type:text/css");
       
$css=new D3Css($file,true);
       
$css->compressed=false;
        echo
$css;
    }
/*
   Output
BODY,.body {
    color:#666;
    font-size:12px;
    height:100%;
    font-family:'Segoe UI';
    background:#eff7ff url('deneme_bg.png') fixed;
}

table {
    color:#1f1f1f;
    font-weight:700;
}

overriden-table {
    color:red;
    font-weight:700;
    width:100%;
    height:100%;
}

full-style-table {
    color:red;
    font-weight:700;
    width:100%;
    height:100%;
    border:1px solid;
}

*/
?>