Skip to content

Instantly share code, notes, and snippets.

@pcdinh
Created July 30, 2009 11:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pcdinh/158654 to your computer and use it in GitHub Desktop.
Save pcdinh/158654 to your computer and use it in GitHub Desktop.
<?php
/**
* This class provides page controller service for handling requests to the index page.
*
* @author pcdinh
* @since June 18, 2009
* @version $Id: IndexController.php 250 2009-07-02 10:40:22Z pcdinh $
*/
class IndexController
{
/**
* Constructs an object of <code>IndexController</code>.
*/
public function __construct()
{
}
/**
* Renders index page template output.
*
* @return string
*/
public function execute()
{
return include_once 'template/index.tpl.php';
}
}
?>
<?php
/**
* The home page of the application.
*
* @author pcdinh
* @since June 18, 2009
* @version $Id: index.php 250 2009-07-02 10:40:22Z pcdinh $
*/
include_once 'etc/init.php';
include_once 'lib/ifile/functions.php';
include_once 'lib/ifile/controller/IndexController.php';
try
{
checkAccess();
$controller = new IndexController();
$controller->execute();
}
catch (AuthenticationRequiredException $e)
{
handleAccessException($e);
}
catch (InsufficientPrivilegeException $e)
{
handleAccessException($e);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<?php include 'fragment/head_main.tpl.php'; ?>
<body>
<!-- Loading panel -->
<!-- End loading panel -->
<div class="wrapper">
<?php include 'fragment/header.tpl.php'; ?>
<div id="main">
<div class="body1">
<?php include 'fragment/search_form.tpl.php'; ?>
<div id="navBox">
<ul id="features">
<li>
<h3><a href="learn.php">Learn to use</a></h3>
<img src="public/image/icon_learn.png" alt="Quick Start" height="48" width="48" />
<p>Master the rule and correct way to use this system.</p>
</li>
<li>
<h3><a href="managefiles.php">Manage files</a></h3>
<img src="public/image/wrench.png" alt="Manage files" height="48" width="55" />
<p>You can <a class="icon" href="browsedoctype.php">browse</a> all files and possibly <a class="icon" href="renamefiles.php">rename</a>,
<a class="icon" href="renamefiles.php">relocate</a>, <a class="icon" href="upload.php">replace</a>,
<a class="icon" href="deletefiles.php">delete</a> an existing file you want.
You can <a class="icon" href="publicdocument.php">view public document</a> or
<a class="icon" href="privatedocument.php">view private document</a>. And
manipulation on <a class="icon" href="invaliddocument.php"> invalid document</a>
</p>
</li>
<li>
<h3><a href="upload.php">Upload a file</a></h3>
<img src="public/image/icon_upload.png" alt="Upload a file" height="48" width="48" />
<p>Upload a file to FTP directory for indexing or directly to file repository.</p>
</li>
<li>
<h3><a href="browsefilesbyuser.php">Browse your files</a></h3>
<img src="public/image/icon_fileview.png" alt="Browse your files" height="48" width="48" />
<p>Browse your own indexed files.</p>
</li>
<li>
<h3><a href="browsedoctype.php">Browse files by document type</a></h3>
<img src="public/image/microformats_2.png" alt="Browse files by document type" height="46" width="55" />
<p>Browse all files that belongs to a given document type.</p>
</li>
<li>
<h3><a href="browsereportperiod.php">Browse files by report period</a></h3>
<img src="public/image/alarmclock.png" alt="Quick Start" height="48" width="55" />
<p>Browse all files that belongs to a given report period.</p>
</li>
<li>
<h3><a href="browsewarnings.php">File upload and indexing warnings</a></h3>
<img src="public/image/icon_bug.png" alt="File upload and indexing warnings" height="48" width="48" />
<p>Browse wrongly named file, corrupted files which are uploaded to FTP server. You may rename and delete them as well.</p>
</li>
<li>
<h3><a href="recentupload.php">Recent upload files</a></h3>
<img src="public/image/nut_and_bolt.png" alt="Recent upload files" height="48" width="55" />
<p>Browse recent upload files.</p>
</li>
<li>
<h3><a href="manageftpdirectories.php">Manage FTP directories</a></h3>
<img src="public/image/icon_ftp.png" alt="Manage FTP directories" height="48" width="48" />
<p>You can browse per office FTP directory and execute indexing process.</p>
</li>
<li>
<h3><a href="managenotification.php">Manage notification system</a></h3>
<img src="public/image/icon_message2.png" alt="Manager messages to users" height="48" width="55" />
<p>Send notification to users.</p>
</li>
<li>
<h3><a href="managedisk.php">Disk and server report</a></h3>
<img src="public/image/server_earth.png" alt="Disk and server report" height="48" width="55" />
<p>Read reports on file server disk usage, number of files and directories, keeping control of your data.</p>
</li>
<li>
<h3><a href="trash.php">Trash</a></h3>
<img src="public/image/icon_trash.png" alt="View your deleted or renamed files" height="48" width="48" />
<p>View your deleted or renamed files. You can undo those actions as well</p>
</li>
</ul>
<div class="clear">&nbsp;</div>
</div>
</div>
<div class="body2"></div>
</div>
<?php include 'fragment/footer.tpl.php'; ?>
</div>
<!--[if IE]>
<link rel="stylesheet" href="public/widget/modalwindows/modalwindows.css" type="text/css" media="screen" />
<![endif]-->
<script src="public/js/ifile.js" type="text/javascript"></script>
<script src="public/widget/modalwindows/modalwindows.js" type="text/javascript"></script>
<script type="text/javascript">
/* <![CDATA[ */
jQuery(document).bind('ready', function() {
var option = {
'anchorSelector' : '#bigSearch .tab a',
'containerSelector' : '#bigSearch .tab'
};
var searchTabs = new ifile.SearchTabs();
searchTabs.listenOnClick(option);
if (window.navigator.userAgent.toLowerCase().indexOf("msie") >= 0) {
var iebox = new ifile.ModalWindow();
iebox.windowId = "warningWindow";
iebox.content = '<div class="title"><h2>Did you know that your web browser Internet Explorer is out of date and unsupported?</h2></div> \
<div class="content"> \
<p>We noticed that your current browser, Internet Explorer, is out of date. To get the best possible experience using our website we recommend \
that you upgrade to a faster web browser. </p> \
<p>Just <strong>click on the icon</strong> to get to the download page.</p> \
<p><a target="_blank" href="http://www.getfirefox.net/"><img src="public/image/125x125FF3.png" style="float:left; margin:0px 10px 10px 0px; "/></a> Firefox the award winning Web browser is absolutely \
free and easy to use. Join the over 500.000.000 million people worldwide enjoying a better and faster web browsing.</p> \
<ul> \
<li>"<em>Beware of spyware. If you can, use the Firefox browser.</em>" - USA Today</li> \
<li>"<em>Better than Internet Explorer by leaps and bounds.</em>" - FORBES</li> \
<li>"<em>Firefox 3.5 beta 450% faster than IE8</em>" - BetaNews</li> \
<li>"<em>Firefox 3.0 Becomes Most Popular Web Browser in Europe</em>" - StatCounter</li> \
</div>';
iebox.open();
}
});
/* ]]> */
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment