function showImage($dir, $file, $title, $galleryId, $price, $instock)
{
$dispatch = "dispatch.php?path=";
echo '
';
echo '
';
echo '

';
echo '';
if ($instock == "b")
{
}
else if ($instock)
{
echo '
цена: '.$price.' лева
';
echo '
';
}
else
{
echo '
цена: '.$price.' лева
';
echo '
продадена
';
}
echo '
';
}
function createGalleries($dir, $id, $ime)
{
$dispatch = "dispatch.php?path=";
echo '
';
echo '';
echo '| ';
echo $ime;
echo ' | ';
echo '
';
echo '';
echo '| ';
//Open images directory
$dir2 = dir($dir);
while (($file = $dir2->read()) !== false)
{
if ($file != "small" && $file != '.' && $file != '..')
{
echo '';
}
}
$dir2->close();
echo ' | ';
echo '
';
echo '
';
//List files in images directory
}
function getFiles($dir)
{
//Open images directory
$dir2 = dir($dir);
// create an array to hold directory list
$results = array();
//List files in images directory
while (($file = $dir2->read()) !== false)
{
if ($file != '.' && $file != '..')
{
echo $file;
$results[] = $file;
}
}
$dir2->close();
// done!
return $results;
/*
// create an array to hold directory list
$results = array();
// create a holder for the directory
$handler = opendir($dir);
echo $dir;
// keep going until all files in directory have been read
while (($file = readdir($handler))!== false) {
// if $file isn't this directory or its parent,
// add it to the results array
if ($file != '.' && $file != '..')
{
echo $file;
$results[] = $file;
}
echo "bobo";
}
// tidy up: close the handler
closedir($handler);
// done!
return $results;
*/
}
?>
*Цените са ориентировачни и подлежат на коментар
|
Илина Консулова - Буцѝ |
Fatal error: Call to undefined function showImage() in /home/helpelio/public_html/dexhibition.php on line 320
|