function get_tac_html() { $tac_data = get_tac_data(); $tac = ""; $tac .= info_table() . '<br />'; $tac .= overview_table($tac_data) . '<br />'; $tac .= health_meters($tac_data); //added health meters -MG 4/23/11 $tac .= hosts_table($tac_data) . '<br />'; $tac .= services_table($tac_data) . '<br />'; $tac .= features_table($tac_data); $tac .= search_box() . '<br />'; return $tac; }
} else { if ($haystack == "polls") { $title = $row[$i]["question"]; $link = "/poll/" . $row[$i]["qid"]; $body = ""; $zid = $row[$i]["zid"]; } } } } search_result($title, $link, $zid, $row[$i]["time"], $body); } writeln('</main>'); writeln('</td>'); writeln('</tr>'); writeln('</table>'); print_footer(); die; } print_header("Search"); writeln('<table class="fill">'); writeln('<tr>'); writeln('<td class="left_col">'); print_left_bar("main", "search"); writeln('</td>'); writeln('<td class="fill">'); search_box(); writeln('</td>'); writeln('</tr>'); writeln('</table>'); print_footer();
global $want; # It's in the template, yucky, sorry $want['gid'] = $gid; $want['file'] = $file; if ($search = get_http_var('s')) { search_box($file); day_speeches($search, $gid_type, $gid_date); } else { ?> <p>If the playing speech appears to be in completely the wrong place, enter the speaking MP's name and/or something they're saying in this search box to search the day's speeches. Find the correct speech and it will say how many speeches out the video is – you can then either reposition the video or follow the link to switch to matching that speech instead.</p> <?php search_box($file); } function search_box($file) { global $want; ?> <form action="distance.php" method="get" target="video_person_search"> <label for="vid_search">MP name or spoken word(s):</label> <input id="vid_search" type="text" name="s" value=""> <input type="hidden" name="gid" value="<?php echo $want['gid']; ?> "> <input type="hidden" name="file" value="<?php echo $file; ?>