Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Panos Kyriakakis  >  Image File Browser  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example of usage
Class: Image File Browser
Browse and choose images without page reloading
Author: By
Last change: Fixed to work on windows
Date: 8 years ago
Size: 1,166 bytes
 

Contents

Class file image Download
<html>
    <body>
    <style>
body {
    background-color: #FFFFFF;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    margin: 8px;
}

td {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
}

input {
    background: #FFFFFF;
    border: 1px solid #cccccc;
}

td, input, select, textarea {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
}
fieldset {
    border: 1px solid #919B9C;
    font-family: Verdana, Arial;
    font-size: 10px;
    padding: 0px;
    margin: 0px;
    padding: 4px;
}

legend {
    color: #2B6FB6;
    font-weight: bold;
}
input, select, textarea {
    border: 1px solid #808080;
}
    </style>
    <h2>Image File Browser Demo</h2>
<?php
    error_reporting
(E_ALL);
    include(
"file_browser.class.php");    
    
$abs_path str_replace('\\','/',dirname(__FILE__)).'/';
    
$o = new File_browser();
    
$o->init('file_browser.class.php',
                
$abs_path."demo_images/",
                
$abs_path."demo_images/",
                
0,4,10);
    
$o->add_browser_jscripts('http://www.salix.gr/ifb_demo/');
    
$o->place_browser();
?>

    </body>
</html>