PHP Classes

File: picture.html

Recommend this page to a friend!
  Classes of nanou morgan  >  noticeboard  >  picture.html  >  Download  
File: picture.html
Role: ???
Content type: text/plain
Description: Page used if picture is needed
Class: noticeboard
Author: By
Last change:
Date: 15 years ago
Size: 2,209 bytes


Class file image Download

include  ('');
include  ('');

* Nanou Morgan                  Web            
* NoticeBoard version 1.1		Personal Web
* January 2001					Email:


$title ="Uploading a picture";
$content .="<P><font face=\"Helvetica,Arial,Geneva\"><font size=\"2\"><b>$title</b></font><br>

<P><font face=\"Helvetica,Arial,Geneva\"><font size=\"2\"> You can upload a picture from your PC to this site but:
<ul><li> It needs to be no bigger than <b>$pix_filesize bytes</b>
<li> No more than <b>$pix_wide pixel wide</b>
<li> No more than <b>$pix_high pixel long</b>
<li>Your file name must not have any blank space and not be more than 26 characters long, including the extension(.jpg or .gif)
You will need to respect those guidelines or your picture will not be displayed properly.

 <INPUT TYPE=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"$pix_filesize\">
<p><center><font face=\"Helvetica,Arial,Geneva\"><font size=\"2\">Choose a picture stored on you PC<input type=\"FILE\" name=\"userfile\" size=\"35\"><br>
<input type=\"submit\" name=\"submit\" value=\"Send File\"></P></FORM>

/*  parse to template */ 

$t = new Template( $path);
                                  // create a template object named $t 

$t->set_file( "MyFileHandle", "$template");
                                  // set MyFileHandle = our template file 
$t->set_var(array( "TITLE" => $title,
					"FOOTER" => $bot,
				   "CONTENT" =>  $content));

                                  // set template variable 
$t->parse( "MyOutput", "MyFileHandle"); 
                                  // set template variable MyOutput = parsed file 
$t->p( "MyOutput");  // output the value of MyOutput (our parsed data)