<?php
/**
 * survey_view.php - View Page Survey.
 *
 * @author $Author: wichai $
 * @version $Id: survey_view.php,v 1.11 2011/05/16 07:59:06 wichai Exp $
 * @copyright Copyright (c) ${year}, Tiller Software Co., Ltd.
*/
?>
<html>
<head>
<?php
	osa_appcss_include();
	$this->load->view('template/jscript_globalvars_view');
	$this->load->view('template/dhtmlxwindows_js_view')
?>
<script type="text/javascript" src="<?php echo osa_include_path()?>js/sys.js"></script>
<script type="text/javascript" src= "<?php echo osa_include_path()?>js/app.js"></script>
<script type="text/javascript">
survey_check_session();
</script>
</head>
<body>
<?php
 	$this->load->view('survey/survey_header_view');
?>
	<center>
		<div class="survey_creator"><?php $this->load->view('survey/survey_displays_creator_view')?></div>
		<div class="survey_table"><form method="POST" name="frm_survey"><?php echo $unitbody?></form></div>
		<br />
		<input type="button" <?php echo $done_btn_disabled;?> value="<?php echo lang('survey_result_done_btn');?>" <?php osa_btn();?>
			onClick="return survey_done('<?php echo base_url() . "survey/survey/complete/{$resultid}/"?>',
				'<?php echo base_url() . "$surveyid/"?>','frm_survey',
				'<?php echo lang('survey_done_success_msg')?>','<?php echo lang('survey_done_failed_msg')?>',
				'<?php echo lang('survey_done_incomplete_msg')?>');" />
	</center>
</body>
</html>