<?php
/**
 * ENTER_FILENAME - ENTER_DESCRIPTION
 *
 * @author $Author: dtong $
 * @version $Id: listuser_view.php,v 1.11 2009/12/04 05:55:34 dtong Exp $
 * @copyright Copyright (c) 2009, Tiller Software Co., Ltd.
*/
?>
<center>
<form name="editorsel_form" method="post">
<input type="hidden" id="cur_code" name="cur_code" />

<table>
  <tr>
    <td nowrap="nowrap" align='center'>
    	<div style="margin-top:10px;margin-bottom:10px;font-weight:bold;"><?php echo lang('desc_chguser_header');?>:</div>
    	<div>
    		<?php if ( !$is_allusers ) {?>
    		<input type="button" value="<?php echo lang('desc_selectallusers');?>"
	      	onClick="newDhtmlWindow('<?php echo base_url()."course/desc/seleditorall/"?>'
       			+ document.editcouresdes_form.editorid.value + '/<?php @osa_echo($courseid);?>',
       		'<?php echo lang('desc_seleditor_wintitle');?>','320','310','changeteacher_div');"
	      	<?php osa_btn();?>>
	      <?php } else {?>
	      <input type="button" value="<?php echo lang('desc_selectcourseusers');?>"
	      	onclick="JavaScript:newDhtmlWindow('<?php echo base_url()."course/desc/seleditor/"?>'
       			+ document.editcouresdes_form.editorid.value + '/<?php @osa_echo($courseid);?>',
       			  '<?php echo lang('desc_seleditor_wintitle');?>','320','310','changeteacher_div');"
	      	<?php osa_btn();?>>
	      <?php } ?>
    	</div>
    </td>
  </tr>
  <tr>
    <td nowrap="nowrap" align='center'>
    <div style="margin-bottom:10px;">
		<?php
		//$cur_editorid is an array then multiple selections are allowed
			echo form_dropdown('editor_sel', $userarray, $cur_editorid, "size=14");
		?>
	</div>
	</td>
  </tr>
  <tr>
    <td nowrap="nowrap" align='center' >
	    <input type="button" value="<?php echo lang('desc_chguser_button_close');?>"
	      onClick="closeDhtmlWindow('changeteacher_div');" <?php osa_btn();?>>
	     <input type="button" value="<?php echo lang('desc_chguser_button_copy');?>"
	      onClick="setNewCourseOwner();" <?php osa_btn();?>>
	      &nbsp;
	</td>

  </tr>
</table>
</form>
</center>


