imgs2.php to HTML

index

USE AT OWN RISK

Generated: Tue Jul 31 15:22:06 2007 from imgs2.php 2005/09/15 3.6 KB bytes.

<?php include ( "menuinclude.php" ); ?><html>

<head>
<meta http-equiv="Content-Language" content="en-au">
<meta name="keywords" content="friendofflowers, greenplanet, friend, of, flowers, flowerking, flower, king, sydney, australia, mobile, markets, local, produce">
<meta name="description" content="Russell Sharp - the flower king - friend of flowers - syndey, australia, vending local produce, on street, and in markets ...">

<link href="homestyle.css" rel="stylesheet" type="text/css">

<?php printJavaStuff(); ?>
<title>Friend of Flowers - Image Viewer</title>

</head>

<body>
<div align="center" style="position:absolute; top:0px; left:10px; visibility:visible;">
<?php printMenu(); ?></div>

<br><br>

<?php 
// this could be set from say a 'global.php' include ... which sets ...
$m_folder = 'images/.'; // set the images folder
$m_page = 0;
// $m_page = 8;
$m_case = 'flowers';
// $m_case = 'family'; // test family
$m_type = '*'; // '*' matches ALL (was '?'), assuming 'asterisk' allowed as param?
// $m_type = 'a'; // '*' matches ALL (was '?'), assuming 'asterisk' allowed as param?
$m_row_wrap = 3;
$m_max_out = 9;
// test ALL $m_max_out = -1;
// variables below filled in during running ...
$m_mostcnt = 0;
$m_mostrec = 0; // a file date time ... something, since the beginning of *nix!
$m_mostnam = ' ';
$m_mostarr = array();
$m_msg = ' ';
// index fo the FIRST and LAST table outputs
$m_first_out = -1;
$m_last_out = -1;

// get the page value, if any
if (isset($_GET['page'])) {
 $m_page = $_GET['page'];
}

// get the case value
if (isset($_GET['case'])) {
 $m_case = $_GET['case'];
}
if ($m_case == 'family') {
   // set DEFAULT for 'family' display
   $m_row_wrap = 5;
   $m_max_out = 10;
}

if (isset($_GET['type'])) {
 $m_type = $_GET['type'];
}
if (isset($_GET['wrap'])) {
 $m_row_wrap = $_GET['wrap'];
}
if (isset($_GET['max'])) {
 $m_max_out = $_GET['max'];
}

// menu
$m_n_case = 'family';
if ($m_case == 'family') {
 $m_n_case = 'flowers';
}

// add global $m_first_out, $m_last_out;
include ( "phpinc4.php" );

// start HTML output

if ( $m_case == 'family') {
   echo "<h1 align=center>Family Photos</h1>";
} else {
   // default flowers
   echo "<h1 align=center>Flowercam</h1>";
}

// out_the_menu2 ();
if ( $m_case == 'family' ) {
   getDirListDSC ($m_folder, &$m_mostrec, &$m_mostnam, &$m_mostcnt, &$m_mostarr, $m_type );
   echo "<center>
   <table border=0 width=500><tr><td><font size=2>
   We are creating a permanent social history of the flower buying public<br>
   to create a sense of community and reduce urban isolation.<p>
   <a href=\"forum-chron.php\">Ideas and contributions are welcome:</a> This site belongs to everybody.</td></tr></table></center>";
} else {
   // default is 'flowers'!
   getDirList2 ($m_folder, &$m_mostrec, &$m_mostnam, &$m_mostcnt, &$m_mostarr, $m_type );
}

// the directory, folder SCAN has been done ... the necessary 'files' have been collected
// sanity CHECK only - SHOULD NEVER HAPPEN ;=))
$imx = count ($m_mostarr);
$e_msg = ''; // zero an error message
if ($imx != $m_mostcnt) {
   $e_msg = "<h1 align='center'>note: imx=$imx not equal m_mostcnt=$m_mostcnt sanity exceeded!</h1>\r\n";
}

$m_msg = add_g_span(add_p_center(getPageMenu () ));
print "$m_msg\r\n";

$d_msg = ordDirList2 (); // add the 'chosen' array of images, in a TABLE
print "$d_msg\r\n"; // add the information line

?>

<br><br>
<?php printFooterMenu(); ?></body>
</html>

<!-- 26 August 2005 imgs2.php - km -->
<!-- 13 August 2005 - imgs.php Version 0.0.3 - friendofflowers.com - grm macpcfirstaid.com -->

index

Valid HTML 4.01 Transitional