interface.html 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <!---
  2. /**
  3. * Zend Framework
  4. *
  5. * LICENSE
  6. *
  7. * This source file is subject to the new BSD license that is bundled
  8. * with this package in the file LICENSE.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://framework.zend.com/license/new-bsd
  11. * If you did not receive a copy of the license and are unable to
  12. * obtain it through the world-wide-web, please send an email
  13. * to license@zend.com so we can send you a copy immediately.
  14. *
  15. * @category Zend
  16. * @package Zend_Gdata
  17. * @subpackage Demos
  18. * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
  19. * @license http://framework.zend.com/license/new-bsd New BSD License
  20. *
  21. */
  22. -->
  23. <html>
  24. <head>
  25. <title>Books Data API Browser in PHP</title>
  26. <link href="books_browser.css" type="text/css" rel="stylesheet"/>
  27. <script type="text/javascript" src="http://www.google.com/jsapi">
  28. </script>
  29. <script type="text/javascript">
  30. function load_viewport(identifier, viewport_div_id) {
  31. var viewport_div = document.getElementById(viewport_div_id);
  32. var rightpane_div = viewport_div.parentNode;
  33. rightpane_div.style.display = 'table-cell';
  34. viewport_div.innerHTML = 'Loading...';
  35. var viewer = new google.books.DefaultViewer(viewport_div);
  36. viewer.load(identifier, handle_not_found);
  37. }
  38. function on_load() {
  39. }
  40. function handle_not_found() {
  41. var viewport_div = document.getElementById(viewport_div_id);
  42. viewport_div.parentNode.style.display = 'none';
  43. }
  44. google.load('books', '0');
  45. google.setOnLoadCallback(on_load);
  46. </script>
  47. </head>
  48. <body>
  49. <script>
  50. </script>
  51. <div id="titleBar">
  52. <div id="titleText"><h1>Books Data API Browser in PHP</h1></div>
  53. <br />
  54. </div>
  55. <br clear="all" />
  56. <div id="mainSearchBox">
  57. <h2>Search Books:</h2>
  58. <form id="mainSearchForm" action="index.php">
  59. <select name="queryType">
  60. <option value="all" selected="true">All Books</option>
  61. <option value="partial_view">Limited preview and full view</option>
  62. <option value="full_view">Full view books only</option>
  63. </select>
  64. <input name="maxResults" type="hidden" value="6">
  65. <input name="searchTerm" type="text" value="">
  66. <input type="submit" value="Search">
  67. <a href="http://www.google.com"><img
  68. src="http://books.google.com/googlebooks/images/poweredby.png"
  69. border="0" width="62" height="30" align="absbottom"
  70. style="position:relative; top: 6px; padding-left: 10px"></a>
  71. </form>
  72. </div>
  73. <br>
  74. <br clear="all" />