Пример #1
0
<?php

@session_start();
require_once 'Api.php';
$books = array();
if (strtoupper($_SERVER['REQUEST_METHOD']) == 'POST') {
    //nothing to do here
} else {
    $api = new Api();
    $response = $api->listItem('book');
    $books = $response['data'];
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

    <head>
        <?php 
include 'htmlhead.php';
?>
    </head>
    
    <body>
        <div id ="topContentWrap">
            <?php 
include 'header.php';
?>
            
            <br/>
            
Пример #2
0
<?php

@session_start();
require_once 'Api.php';
$house = array();
if (strtoupper($_SERVER['REQUEST_METHOD']) == 'POST') {
    //nothing to do here
} else {
    $api = new Api();
    $response = $api->listItem('house');
    $houses = $response['data'];
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

    <head>
        <?php 
include 'htmlhead.php';
?>
    </head>
    
    <body>
        <div id ="topContentWrap">
            <?php 
include 'header.php';
?>
            
            <br/>