echo "<::subject::>{$data['subject']}<::description::>{$data['description']}";
    exit;
}
//********************
// This is an Ajax call.
// Get the list of ids
// ids=1
// where=where arguments. optional
// returns the list of ids
if ($_GET['ids']) {
    Header("Content-type: text/plain");
    $ar = $ss->GetImageIds($_GET['where']);
    error_log("AR: " . print_r($ar, true));
    $ids = "";
    foreach ($ar as $id) {
        $ids .= "{$id},";
    }
    echo rtrim($ids, ',');
    exit;
}
//********************
// This is an Ajax call.
// Display a <table> containing all of the rows of the database table
// table=1
if ($_GET['table']) {
    Header("Content-type: text/plain");
    $ret = $ss->displayAllImageInfo();
    error_log("ret: " . print_r($ret, true));
    echo $ret;
    exit;
}
示例#2
0
// Get all the images
// For NON IE browsers we can cache the images.
if (!$isIe) {
    $images = array();
    for ($i = 0; $i < count($ids); ++$i) {
        $images[$i] = $ss->getImage($ids[$i]);
    }
    $_SESSION['images'] = $images;
}
// Here is the example of a slide show.
// We have two buttons "Start" and "Stop"
// and the table with the slideshow mysqlslideshow table displayed (not everything just some).
//
// The style is to add borders and padding to the table.
//
$display = $ss->displayAllImageInfo();
echo <<<EOF
<html>
<head>
<style type="text/css">
#displayAllImageInfo * {
  border: 1px solid black;
  padding: 0 10px;
}
</style>
</head>

<body>
<h1 id="maintitle">Slide Show Example: Server Side Version</h1>
{$ieMsg}
<div id="startstop">