Marker for records gone; indentation used instead. For facets indentation
[pazpar2-moved-to-github.git] / www / demo / page_segments.phpi
1 <?php
2
3 /* $Id: page_segments.phpi,v 1.14 2007-01-17 09:38:50 adam Exp $
4  * ---------------------------------------------------
5  * Page segments 
6  */
7
8
9 function insert_header () {
10     echo <<<END_OF_HEADER
11 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">  
12 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
13   <head>
14     <title>Keystone Retriever</title>
15     <link rel="author" href="http://www.indexdata.dk" />
16     <link href="css/styles.css" rel="stylesheet" type="text/css"
17           media="screen, all" />
18     <script type="text/javascript" src="search.js"></script>
19   </head>
20   <body onload="initialize();">
21     <div class="container">
22       <div class="topbar">
23         <a href=".">
24           <img id="logo" src="gfx/logo3.png" width="155" height="36"
25                alt="Keystone Retriever" />
26         </a>
27
28         <div class="search">  
29           <div>
30             <form name="search" onsubmit="start_search(); return false;">
31               <input id="query" type="text" class="search" tabindex="1"
32                     maxlength="255" value="" />
33               <input type="submit" class="button" value="Search" />
34               <input type="hidden" name="startrec" id="startrec"/>
35               <input type="hidden" name="action_type" id="action_type"
36                      value="search"/>
37             </form>
38             <p>
39             <class class="sort" id="sortselect"></class>
40           </div>
41         </div>
42
43         <div class="topmenu">
44           <a href="about.php" class="topmenu">ABOUT</a>
45           <a href="help.php" class="topmenu">HELP</a>
46         </div>
47       </div>
48       <div class="main">
49         <div class="leftbar" id="termlists">
50           <b>Limit search results</b><br />
51           Narrow your search by using the keywords below:<br />
52           <br />
53           <a id="facet_subject" class="unselected"
54              onclick="toggle_facet(this)">Subject</a>
55           <span id="facet_subject_terms" class="facet"
56                style="display: block;"></span>
57           
58           <br />
59
60           <a id="facet_author" class="unselected"
61              onclick="toggle_facet(this)">Author</a>
62           <span id="facet_author_terms" class="facet"
63                style="display: block;"></span>
64           
65         </div>
66         <div class="content" id="body">
67 END_OF_HEADER;
68 }
69
70
71 function insert_footer () {
72     global $show_status;
73     
74     echo '</div>
75           <div style="display: ', ($show_status == 1 ? 'block' : 'none'),
76           ';">Status: <span id="status">Initializing</span>
77           <span id="stat"></span>
78           </div>
79           <div class="clear"></div>
80         </div>
81       </div>
82     </body>
83   </html>';
84 }