imgs2old.php to HTML

index

USE AT OWN RISK

Generated: Tue Jul 31 15:22:06 2007 from imgs2old.php 2005/08/29 5.5 KB bytes.


<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 ...">

<style type="text/css">
<!--body {
   background-color: #0066cc;
   background-image: url('bg5.jpg');
   background-repeat: no-repeat;
   background-position: fixed;
   background-attachment: fixed;
   
   text-align: center;
   font-family: Verdana, Arial, Helvetica, sans-serif;
   color: #ffffff;
   
   table-layout:auto;
   
   scrollbar-base-color: #0066cc;
   scrollbar-face-color: #0066cc;
   scrollbar-track-color: #0066cc;
   scrollbar-arrow-color: #ffffff;
   scrollbar-3dlight-color: #ffffff;
   scrollbar-darkshadow-color: #ffffff;
   scrollbar-highlight-color: #ffffff;
   scrollbar-shadow-color: #ffffff;
}

-->
</style>


<title>Friend of Flowers - Image Viewer</title>

</head>

<body>

<table cellpadding="0" cellspacing="0" style="background-color: transparent" width="800" height="45" border=0>
   <tr valign="middle">
   <td width="59">
   <a href="index.php"><img src="menu_lotus.jpg" border=0 alt="Home to the Kingdom"></a>
   </td><td align="center" style="background-color: #ffffff;" width=170>
   <a href="imgs.php" style="color: #0066cc; text-decoration: none;">Live Flowercam</a>
   </td><td align="center" style="background-color: #ffffff;" width=170>
   <a href="imgs2.php?case=family" style="color: #0066cc; text-decoration: none;">Family & Friends Photos</a>
   </td><td align="center" style="background-color: #ffffff;" width=170>
   <A HREF="forum-chron.php" style="color: #0066cc; text-decoration: none;"> Forum</a>
   </td><td align="center" style="background-color: #ffffff;" width=170>
   <A HREF="links.php" style="color: #0066cc; text-decoration: none;">Friendly Links</a>
   </td><td width="59">
   <a href="index.php"><img src="menu_lotus.jpg" border=0 alt="Home to the Kingdom"></a>
   </td>
   </tr>
</table>
<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 ( "phpinc42.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 "
   <table border=0 width=500><tr><td><font size=2>
   Our intention is to create a permanent social history of the flower buying public.<br>
   In due course we would like to create a sense of community for the flower buying public, so urban dwellers can be less isolated.<br>
   We welcome ideas and contributions.<br>
   This site belongs to everybody.</td></tr></table>";
} 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

$m_msg = add_g_span(add_p_center(get_array_menu () .'<br>'. get_day_menu() .'<br>'. get_case_menu() ));
print "$m_msg\r\n";

$m_msg = add_g_span(add_p_center( get_curr_link(add_bold('Refresh')) . add_bounds(get_index_link()) ));
print "$m_msg\r\n";

out_the_menu2 (); // give access to the alternate menu system

// $m_msg = get_latest_txt(); // should get more than the 'latest', but latest is good
print "$d_msg\r\n"; // add the information line


if ( strlen($e_msg) ) {
   print add_r_span( $e_msg )."\r\n";
}

?>



</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