<?php
/**
 * unit_change_view.php.php - Unit change type to Integrate or Unifiy
 *
 * @author $Author: dtong $
 * @version $Id: unit_change_view.php,v 1.8 2009/12/25 09:53:11 dtong Exp $
 * @copyright Copyright (c) 2009, Tiller Software Co., Ltd.
*/
?>
<?php
	$divid    = 'changetype_div';
	$formname = 'form_changeunit';
	$post_url = base_url()."unit/unit/updatetype/".$unitid;
	$back_url = base_url()."unit/unit/edit/".$unitid;

?>
<form name='form_changeunit' style="margin:0px" method="post" >
<div style="margin-top:10px;" >
	<div class="chgunit_title"><?php echo $title; ?></div>
	<div class="chgunit_body"><?php echo $body; ?>:<div style="margin: 10px;"></div><span class="chgunit_start">&nbsp;</span>
		<?php
			foreach ($radios as $key => $value) {
				$checked = '';
				if ($default == $key)
					$checked = 'checked="checked"';
				echo "<input name='unittype' value='$key' type='radio' $checked alt='$comfirm[$key]'>$value</input><span class='chgunit_space'>&nbsp;</span>";
			}
		?>
		<!--
		<input name="unittype" value="1" type="radio" checked="checked" >Normal&nbsp;&nbsp;
		<input name="unittype" value="2" type="radio">Meta Unit&nbsp;&nbsp;
		<input name="unittype" value="3" type="radio">Integrated Unit&nbsp;&nbsp;
		<input name="unittype" value="5" type="radio">Unified Unit
 -->
		 <div id="show_select"><?php //@osa_echo($coursenames); ?></div><br />
		 <div class="chgunit_buttons">
			<input value="Cancel" name="close" <?php osa_btn()?>
				onclick="cancelIframe('<?php echo $divid; ?>');" type="button" />
			<span style="margin-left: 30px;">&nbsp;</span>
			<input value="Save" name="save" <?php osa_btn()?>
				onclick="getRadioButton('unittype','<?php echo $divid; ?>','<?php echo $courseids; ?>','<?php echo $post_url; ?>','<?php echo $formname; ?>','<?php echo $back_url; ?>'); return false;"
				type="button" />
		</div>
	</div>
</div>
</form>