<!-- start page -->
<div id="page">

	<!-- start content -->
	<div id="content">
		<div class="post">
		  <div class="title">
				<h2><a href="#">Edit Group </a></h2>
				<p>&nbsp;</p>
				<p>&nbsp;</p>
	      </div>
		  	  <?php echo validation_errors(); ?>
		  <div class="entry">
		
<?
	$sql = mysql_query("select * from groups where id = '$id'") or die(mysql_error());
	$row = mysql_fetch_array($sql);
?>
<?php echo form_open_multipart('welcome/edit_group_details/'); ?>
<input type="hidden" name="id" value="<?=$id?>" />

		    <p class="create_group_box">Name: <?=$row['name']?></p>

		    <p class="create_group_box">Type: </p>
		    <p>
		      <select name="type">
		        <option value="0" <? if($row['type']==0) { ?>selected="selected"<? }?>>Public</option>
				<option value="1" <? if($row['type']==1) { ?>selected="selected"<? }?>>Private</option>
	          </select>
		    </p>
		    <p class="create_group_box">Logo: </p>
		    <p>
		      <input type="file" name="userfile"> 
		    </p>
		  </div>
		  <div style="width:16%; text-align:right;">

              <p>
                <input name="submit" type="submit" class="button_base"  value="Edit "  />
              </p>
		  </form>
		  </div>
			<p class="links">&nbsp;</p>
	  </div>
  </div>
	<!-- end content -->
	<br style="clear: both;" />
</div>
<!-- end page -->