<div id="createautomaticgroupingform" class="popupwide">
<h3><?php print_string('createautomaticgrouping', 'group'); ?></h3>
<form name="automaticgroupingform" action="">
    
<table cellpadding="10">
    <tr>
    	<td valign="top">
	        <p><?php print_string('groupingname', 'group'); ?></p>
	        <p><input id="automaticgroupingname" type="text" size="40" value="<?php print_string('defaultgroupingname', 'group'); ?>" /></p>
	        <p><?php print_string('groupingdescription', 'group'); ?></p>
	        <p><?php print_textarea($usehtmleditor,  4, 45, 150, 400, 'automaticgroupingdescription'); ?></p>
	        <p> <?php print_string('prefixforgroupnames', 'group'); ?> </p>
	        <p><input id="groupprefix" type="text" size="40 " value="<?php print_string('defaultgroupname', 'group'); ?> " /></p>
	        <p><?php print_string('defaultgroupdescription', 'group'); ?></p>
	        <p><?php print_textarea($usehtmleditor,  4, 45, 150, 400, 'defaultgroupdescription'); ?></p>
	    </td>
		<td valign="top">
	        <p><input type="checkbox" id="alphabetical" /> <?php print_string('distributealphabetically', 'group'); ?></p>
	        <table>
	            <tr>
	                <td><input type="radio" name ="generationtype" id="nostudents" value="nostudents" checked />
	                </td>
	                <td> <?php print_string('selectnumberineachgroup', 'group'); ?>
	                </td>
	            </tr>
	            <tr>
	                <td>&nbsp;</td>
	                <td>
	                	<p><?php print_string('numberofstudents', 'group'); ?> </p><p><input id="noofstudents" type="text" size="5" /></p>
	                    <p><input type="checkbox" id="distribevenly" checked /> <?php print_string('distributeevenly', 'group'); ?></p>
	                </td>
	            </tr>
	        </table>
	        
	        <table>
	            <tr>
	                <td><input type="radio" name ="generationtype" id="nogroups" value="nogroups" /></td>
	                <td><?php print_string('selectnumberofgroups', 'group'); ?></td>
	            </tr>
	            <tr>
	                <td>&nbsp;</td>
	                <td>
	                	<p><?php print_string('numberofgroups', 'group'); ?></p><p> <input id="noofgroups" type="text" size="5" /></p>
	                </td>
	            </tr>
	        </table>
	        
	        <p><input type="button" id="createautomaticgrouping" value=" <?php print_string('creategrouping', 'group'); ?>" />&nbsp;
	        <input type="button" id="cancelcreateautomaticgrouping" value=" <?php print_string('cancel', 'group'); ?>" /></p>
	    </td>
    </tr>
</table>
</form>
</div>
