summaryrefslogtreecommitdiff
path: root/zend/demos/Zend/Gdata/BooksBrowser/interface.html
blob: 55530c97d64037658e10c77857659f67ba35837f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!---
/**
 * Zend Framework
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://framework.zend.com/license/new-bsd
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@zend.com so we can send you a copy immediately.
 *
 * @category   Zend
 * @package    Zend_Gdata
 * @subpackage Demos
 * @copyright  Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
 *
 */
-->
<html>
<head>
  <title>Books Data API Browser in PHP</title>
  <link href="books_browser.css" type="text/css" rel="stylesheet"/>
  <script type="text/javascript" src="http://www.google.com/jsapi">
  </script>
  <script type="text/javascript">
    function load_viewport(identifier, viewport_div_id) {
      var viewport_div = document.getElementById(viewport_div_id);
      var rightpane_div = viewport_div.parentNode;
      rightpane_div.style.display = 'table-cell';
      viewport_div.innerHTML = 'Loading...';

      var viewer = new google.books.DefaultViewer(viewport_div);
      viewer.load(identifier, handle_not_found);
    }

    function on_load() {
    }

    function handle_not_found() {
      var viewport_div = document.getElementById(viewport_div_id);
      viewport_div.parentNode.style.display = 'none';
    } 

    google.load('books', '0');
    google.setOnLoadCallback(on_load);
  </script>

</head>
<body>
  <script>
  </script>
<div id="titleBar">
  <div id="titleText"><h1>Books Data API Browser in PHP</h1></div>
  <br />
</div>
<br clear="all" />
<div id="mainSearchBox">
  <h2>Search Books:</h2>
  <form id="mainSearchForm" action="index.php">
    <select name="queryType">
      <option value="all" selected="true">All Books</option>
      <option value="partial_view">Limited preview and full view</option>
      <option value="full_view">Full view books only</option>
    </select>
    <input name="maxResults" type="hidden" value="6">
    <input name="searchTerm" type="text" value="">
    <input type="submit" value="Search">
    <a href="http://www.google.com"><img 
      src="http://books.google.com/googlebooks/images/poweredby.png"
      border="0" width="62" height="30" align="absbottom"
      style="position:relative; top: 6px; padding-left: 10px"></a>
  </form>
</div>
<br>
<br clear="all" />