<?php
/*
index.php
auth: Thomas Scherz @ University of Cincinnati
date: March 5, 2008
desc: Main application. Contains the search the catalogue, search articles, launch external links, and a brief news feed.
	
*/

// includes
require_once 'appinclude.php';
require 'dashboard.php';

?>

<div style="padding: 20px;">
	<!-- Image for the header --->
	<img src="<? echo $appcallbackurl; ?>UCLibraries_transparent_wider.gif" />
	<br />
	<h2>Hello <fb:name firstnameonly="true" uid="<?=$user?>" useyou="false"/>,  
		Welcome to the University of Cincinnati Library on Facebook.</h2>
	<br />
	<hr />
	<br/>
  	<table cellpadding="0" cellspacing="0" border="0" width="100%">
	<tr><td valign="top">
		<table cellpadding="0" cellspacing="0" border="0" width="100%">
			<tr>
				<th><img src="<? echo $appcallbackurl; ?>quicklinks.jpg" /></th>
			</tr>
			<tr>
				<td><a href="http://uclid.uc.edu/search/X" target="_new"><li> Library Catalog</li></a></td>
			</tr>
			<tr>
				<td><a href="http://www.libraries.uc.edu/" target="_new"><li> University Libraries</li></a></td>
			</tr>
			<tr>
				<td><a href="http://www.libraries.uc.edu/cj/reserves.html" target="_new"><li> Library Reserves</li></a></td>
			</tr>
			<tr>
				<td><a href="http://www.ohiolink.edu/" target="_new"><li> OhioLink</li></a></td>
			</tr>
			<tr>
				<td><a href="http://www.libraries.uc.edu/cj/offcampusinfo.html" target="_new"><li> Off Campus Access</li></a></td>
			</tr>
			<tr>
				<td><a href="https://uclid.uc.edu/patroninfo~S39" target="_new"><li>Your Library Record</li></a></td>
			</tr>
			<tr>
				<td><a href="http://www.libraries.uc.edu/cj/libhelp.html" target="_new"><li> Help</li></a></td>
			</tr>
			<tr>
				<td><a href="http://www.libraries.uc.edu/help/reference/chat.html" target="_new"><li> Chat with a Librarian</li></a></td>
			</tr>
		</table> 
		</td>
		<td valign="top">
			<table cellpadding="0" cellspacing="0" border="0" width="100%">
			<tbody>
			<tr>
				<td>
					<h3>Find Books, ebooks, DVDs, theses,...</h3>
                    <form action="http://www.libraries.uc.edu/facebook/filter.php" method="get" target="_blank">
        <select name="searchtype">
        <option value="1">Library Catalog&nbsp;</option>
		<option value="2">One Search&nbsp;</option> 
        <option value="3">Online Journal titles&nbsp;</option>
		<option value="4">Electronic Journal Center&nbsp;</option>
        <option value="5">OhioLINK Catalog&nbsp;</option>
		<option value="6">University Libraries Web Site&nbsp;</option>
        <option value="7">Google Scholar&nbsp;</option>
		<option value="8">Hamilton County Public Library</option>
		</select> for
    	<input size="16" class="inputa" name="searcharg" />
	<input type="hidden" value="D" name="SORT">
	<input type="image" name="Submit" value="Go" src="http://www.libraries.uc.edu/mainul/imgs/go_button.gif" alt="Go" 
 	class="nobbutton"onClick="" />
	</form>
                    
			</td>
			</tr>
			</tbody>
			</table>
		</td> 
	</tr>
	</table>
	<br />
	<div style="padding-right: 20px;">
	<fb:iframe src='<?=$appcallbackurl?>newsfeedDigest.php'  smartsize='true' frameborder='false' />
	</div>
  <div style="clear: both; "/>
</div>

<?php

///IN BOTH OF THESE TAGS <fb:narrow> and <fb:wide>YOU NEED TO CHANGE the Location of the Servers highlited in UPPERCASE text. 
//As well as the application directories also highlighted in UPPERCASE writing.

$fbml = '
<fb:narrow>
<fb:subtitle>Search Catalogue:</fb:subtitle> 
	<img src="http://www.libraries.uc.edu/facebook/UCLibraries_transparent.gif" />
	<form action="http://www.libraries.uc.edu/facebook/filter.php" method="get" target="_blank">
		 <select name="searchtype">
        <option value="1">Library Catalog&nbsp;</option>
		<option value="2">One Search&nbsp;</option> 
        <option value="3">Online Journal titles&nbsp;</option>
		<option value="4">Electronic Journal Center&nbsp;</option>
        <option value="5">OhioLINK Catalog&nbsp;</option>
		<option value="6">University Libraries Web Site&nbsp;</option>
        <option value="7">Google Scholar&nbsp;</option>
		<option value="8">Hamilton County Public Library</option>
		</select> for
    	<input size="16" class="inputa" name="searcharg" />
	<input type="hidden" value="D" name="SORT">
	<input type="image" name="Submit" value="Go" src="http://www.libraries.uc.edu/mainul/imgs/go_button.gif" alt="Go" 
 	class="nobbutton"onClick="" />
	</form>
	<hr />
	<a href="" clicktotoggle="cdc03" >show/hide links</a>
	<span id="cdc03"  style="display:none;" >
	<ul> Links:
	<li><a href="http://apps.facebook.com/ucresearch/index.php">Library App</a></li>
	<li><a href="http://www.libraries.uc.edu" target="_blank">Library Website</a></li>  
	</ul>
	</span>
</fb:narrow>

<fb:wide>
	<fb:subtitle>Search Catalog:</fb:subtitle> 
	<img src="http://www.libraries.uc.edu/facebook/UCLibraries_transparent.gif" />
	<form action="http://www.libraries.uc.edu/facebook/filter.php" method="get" target="_blank">
		Search 
			 <select name="searchtype">
        <option value="1">Library Catalog&nbsp;</option>
		<option value="2">One Search&nbsp;</option> 
        <option value="3">Online Journal titles&nbsp;</option>
		<option value="4">Electronic Journal Center&nbsp;</option>
        <option value="5">OhioLINK Catalog&nbsp;</option>
		<option value="6">University Libraries Web Site&nbsp;</option>
        <option value="7">Google Scholar&nbsp;</option>
		<option value="8">Hamilton County Public Library</option>
		</select> for
    	<input size="16" class="inputa" name="searcharg" />
	<input type="hidden" value="D" name="SORT">
	<input type="image" name="Submit" value="Go" src="http://www.libraries.uc.edu/mainul/imgs/go_button.gif" alt="Go" 
 	class="nobbutton"onClick="" />
	</form>
	<hr />
	<a href="" clicktotoggle="cdc03" >show/hide links</a>
	<span id="cdc03"  style="display:none;" >
	<ul> Links:
	<li><a href="http://apps.facebook.com/ucresearch/index.php">Library App</a></li>
	<li><a href="http://www.libraries.uc.edu" target="_blank">Library Website</a></li>  
	</ul>
	</span>
</fb:wide>
';
	
    $facebook->api_client->profile_setFBML($fbml, $user);

?>
