Free > ZIHSfree / Upload / IMI HTMLcode.php

Questions? Need Help? Want to share? » PHP Forum
Script Name:
Free

Download:
free.zip

Category:
Image Galleries

Archive Content:

ZIHSfree

ZIHSfree > Upload

ZIHSfree > Upload > Smarty > Templates

ZIHSfree > Upload > Smartyfiles > Smarty

ZIHSfree > Upload > Smartyfiles > Smarty > Demo > Configs

ZIHSfree > Upload > Smartyfiles > Smarty > Demo

ZIHSfree > Upload > Smartyfiles > Smarty > Demo > Templates

ZIHSfree > Upload > Smartyfiles > Smarty > Demo > Templates C

ZIHSfree > Upload > Smartyfiles > Smarty

ZIHSfree > Upload > Smartyfiles > Smarty > Libs

ZIHSfree > Upload > Smartyfiles > Smarty > Libs > Internals

ZIHSfree > Upload > Smartyfiles > Smarty > Libs > Plugins

ZIHSfree > Upload > Smartyfiles > Smarty > Libs

ZIHSfree > Upload > Smartyfiles > Smarty > Misc

ZIHSfree > Upload > Smartyfiles > Smarty

ZIHSfree > Upload > Smartyfiles > Smarty > Unit Test

ZIHSfree > Upload > Smartyfiles > Smarty > Unit Test > Configs

ZIHSfree > Upload > Smartyfiles > Smarty > Unit Test

ZIHSfree > Upload > Smartyfiles > Smarty > Unit Test > Templates

ZIHSfree > Upload > Smartyfiles > Smarty > Unit Test

ZIHSfree > Upload > Templateimages

ZIHSfree > Upload

IMI HTMLcode.php:


<?php
//IMI-HTMLcode.php
//Created on: September 18th,  2005,  Version 1.0918
//Created by:  Michael J. Muff,  Iron Muskie,  Inc.,  customer_service <at> iron-muskie-inc <dot> com
//All Rights Reserved!


//Create Table Features

function table_html($attributes,  $data) {
    print 
"<table $attributes>\n";
    print 
"$data";
    print 
"</table>\n";
}

function 
tr_html($attributes,  $data){
    print 
"<tr $attributes>\n";    
    print 
"$data";
    print 
"</tr>\n";
}

function 
td_html($attributes,  $data){
    print 
"<td $attributes>\n";
    print 
"$data";
    print 
"</td>\n";
}

function 
th_html($attributes,  $data){
    print 
"<th $attributes>\n";
    print 
"$data";
    print 
"</th>\n";
}

// Date Conversion

function mys2us($value){
    
$ret="";
    if(
ereg("-", $value)){
        
$ret substr($value, 5, 2)."/".substr($value, 8, 2)."/".substr($value, 0, 4);
    }
    return 
$ret;
}

function 
us2mys($value){
    
$ret="";
    if(
ereg("\/", $value)){
        
$ret substr($value, 6, 4)."-".substr($value, 0, 2)."-".substr($value, 3, 2);
    }
    return 
$ret;
}



//Images

function displayImage($image, $width, $height){
    print 
"<img src=\"{$image}\" width=\"{$width}\" height=\"{$height}\">";
}

//Layer Tags

function div_css_html($class,  $data){
    print 
"<div class=\"{$class}\">\n";
    print 
"$data";
    print 
"</div>\n";

}

function 
div_html($data){
        print 
"<div>\n";
        print 
"$data";
        print 
"</div>\n";
}

//File Handlers
function strip_ext($name) { 
     
$ext strrchr($name,  '.'); 
     if(
$ext !== false
     { 
         
$name substr($name,  0,  -strlen($ext)); 
     } 
     return 
$name


function 
get_ext($name) { 
     
$ext strrchr($name,  '.'); 
     
     return 
$ext
}

?>



Other Image Galleries Scripts:

WebMaster Resources Home

©RingsWorld.com