<?php
/************************************************************************/
/* AChecker */
/************************************************************************/
/* Copyright (c) 2008 by Greg Gay, Cindy Li */
/* Adaptive Technology Resource Centre / University of Toronto */
/* */
/* This program is free software. You can redistribute it and/or */
/* modify it under the terms of the GNU General Public License */
/* as published by the Free Software Foundation. */
/************************************************************************/
define('AC_INCLUDE_PATH', '../include/');
include(AC_INCLUDE_PATH.'vitals.inc.php');
include_once(AC_INCLUDE_PATH.'classes/DAO/GuidelinesDAO.class.php');
$gid = intval($_GET["id"]);
$guidelinesDAO = new GuidelinesDAO();
$rows = $guidelinesDAO->getGuidelineByIDs($gid);
if (!$rows)
{
global $msg;
$msg->addError('GUIDELINE_NOT_FOUND');
header('Location: index.php');
}
else
{
$savant->assign('row', $rows[0]);
$savant->assign('gid', $gid);
$savant->display('guideline/view_guideline.tmpl.php');
}
?>