<?php
/**
 * course_summary_view.php - course_summary_view
 *
 * @author $Author: dtong $
 * @version $Id: course_summary_view.php,v 1.11 2011/04/14 16:33:36 dtong Exp $
 * @copyright Copyright (c) 2009, Tiller Software Co., Ltd.
*/
	$url  = base_url() . 'pdf/pdfgen/index/' . 'pdf_render_'.'url_course-desc-coursesumsess-' .
			  $courseid.'-PHPSESSIONID/CourseSummary';
	$jscript_pdf="onClick=\"return openBrowserWindow('$url')\"";
?>
<table  style="margin-left:25px;margin-right:15px" width="96%"  border="0">
<tr>
	<td colspan="2" width="100%">
	<div style="vertical-align:middle;font-size:120%;font-weight:bold;float:left;margin-left:300px">
	<?php echo lang('course_sum_head');?>
	</div>
	<div style="vertical-align:middle; margin-right:50px;float:right">
		<input type="button" value="<?php echo lang('desc_button_pdf'); ?>"
			name="pdf" <?php osa_btn()?><?php echo $jscript_pdf;?>  /></div>
	<?php
		$html = $this->load->view('course/desc_ro_view',$course,true);
		echo str_replace('type="button"','type="hidden"',$html );
	?>
	</td>
</tr>
<tr>
	<td>
	<?php
	if (is_array($course_sum)== FALSE){
		return;
	}
	?>
	<table style="margin-left:13px;margin-right:30px" width="96%"  border="0">
		<tr>
			<td class="course_summary_head" colspan="2">
			<?php echo lang('course_sum_title'); ?>
			</td>
		</tr>
		<?php

			foreach ($course_sum as $row) {
				$startdate = lang('course_sum_startdate').' : <span class="course_summary_date" >'.osa_date_format($row->startdate).'</span>';
				$enddate = lang('course_sum_enddate').' : <span class="course_summary_date" >'.osa_date_format($row->enddate).'</span>';
				$modifydate = lang('course_sum_lastdate').' : <span class="course_summary_date">'.osa_date_format($row->modifydate).'</span>';
		?>
				<tr class="course_summary_title">
					<td  class="course_summary_data_title" colspan="2" ><?php echo $row->title; ?></td>
				</tr>
				<tr>
					<td align="left"  >
						<?php echo $startdate; ?>
						<?php echo $enddate; ?>
					</td>
					<td align="right"  >
						<?php echo $modifydate; ?>
						<?php echo lang('course_sum_editor'); ?> : <?php echo $row->displayname; ?>
					</td>
				</tr>

				<tr>
					<td  class="course_summary_des" colspan="2" ><?php echo $row->description; ?></td>
				</tr>
		<?php
			}
		?>
	</table>
	</td>
</tr>
</table>