<?phpinclude 'includes/dbaccess_cobaltt.php';$lessonID = filter_var($_REQUEST['lessonID'], FILTER_SANITIZE_STRING); $findCommand =& $fm->newFindCommand('web_LessonDetail'); $findCommand->addFindCriterion('_kprt_LessonID', "=".$lessonID);  $result = $findCommand->execute();if (FileMaker::isError($result)) {    echo "Error: " . $result->getMessage() . "\n";    exit;}?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>CoBaLTT Unit Plan - Lessons</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />	<link rel="stylesheet" href="/lib/css/print.css" type="text/css" media="print"><link href="/library/research/cobaltt.css" rel="stylesheet" type="text/css">	<!-- BEGIN Google Analytics code --><script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script><script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create', 'UA-6623558-1', 'auto');  ga('send', 'pageview');</script><!-- END Google Analytics code -->		</head><body class="center" style="margin:0px;"><?php$records = $result->getRecords(); ?> <div align="center"><div align="center" style="background-color:#006; width:850px; padding-bottom:5px; padding-left:5px; padding-right:5px;"> <div style="height:50px; width:850px; background-image:URL(/images/banner/cobaltt_s.gif); padding:0px; border:0; margin-bottom:0px;">	<a href="/cobaltt/"><img src="/images/banner/cobaltt_bnr.jpg" style="margin:0px; width:500px; height:50px; border:0px; float:right;"></a></div>       <div align="left" style="background-color:#FFF; margin-top:0px; padding-top:20px; padding-left:25px; padding-right:25px; width:800px; vertical-align:top;"><?phpforeach ($records as $record) {     $unittitle = htmlspecialchars_decode($record->getField('Unit::rt_Title'));    $unitID = htmlspecialchars_decode($record->getField('_kfrt_UnitID'));   $title = htmlspecialchars_decode($record->getField('rt_LessonTitle'));   $name = htmlspecialchars_decode($record->getField('Unit::rt_Name'));   $objContent = htmlspecialchars_decode($record->getField('rt_ObjectiveContent'));   $objCultural = htmlspecialchars_decode($record->getField('rt_ObjectiveCultural'));   $objCC = htmlspecialchars_decode($record->getField('rt_ObjectiveContentCompatibleLanguage'));   $objCO = htmlspecialchars_decode($record->getField('rt_ObjectiveContentObligatoryLanguage'));    $objSkills = htmlspecialchars_decode($record->getField('rt_ObjectiveSkills'));   $timeframe = htmlspecialchars_decode($record->getField('rt_Timeframe'));   $material = htmlspecialchars_decode($record->getField('rt_MaterialNeeded'));   $description = htmlspecialchars_decode($record->getField('rt_Description'));   $assessment = htmlspecialchars_decode($record->getField('rt_Assessment'));   $reference = htmlspecialchars_decode($record->getField('rt_Reference'));   $attachment = htmlspecialchars_decode($record->getField('rt_Attachment'));?>      <div><img src="../../cobaltt/gifs/cobaltt-crbutton.gif" align="left" style="border:0px;margin-top:8px;" alt="CARLA"><br /><b style="font-size:10px;"><a href="https://carla.umn.edu/cobaltt/lessonplans/detail_unit.php?unitID=<?php echo $unitID; ?>"><?php echo $unittitle; ?></a></b><br /><span class="docHead2"><?php echo $title; ?></span></div><br />		<p style="font-size:12px; margin-top:0px;"><i>Submitted by <?php echo $name; ?></i></p><p>  <?phpinclude "includes/lesson_detail.php";?>           <blockquote>		   <?php  $relatedSet = $record->getRelatedSet('Handout');  //name of the related table in parens, portal defined must be on layout used  if (is_array($relatedSet)) {  foreach ($relatedSet as $relatedRow) {    $handoutTitle = htmlspecialchars_decode($relatedRow->getField('Handout::rt_Title'));       $handoutID = $relatedRow->getField('Handout::_kprt_HandoutID');    echo "<a href=\"detail_handout.php?handoutID=".$handoutID."\">".$handoutTitle."</a><br />";     }  }  ?> </blockquote></p>	       <?php } ?>      <p align="right" class="footer">A Lesson from the CoBaLTT Project<br>        <a href="/cobaltt">/cobaltt</a><br>      Center for Advanced Research on Language Acquisition<br>    University of Minnesota </p>      <p align="right" class="footer">&nbsp;</p>    </div>    </div></div></body></html>