<!-- start page -->
<div id="page">
	<!-- start sidebar -->
	<!-- end sidebar -->
    <!-- start content -->
<div id="content">
		<div class="post">
		
		 <form action="find_group" method="post"  >
		   <div class="title">
				<h2><a href="#">Type group name! </a></h2>
				<p>&nbsp;</p>
				<p>
			
				  <textarea name="textarea" cols="70"></textarea>
				</p>
			<p>&nbsp;</p>
		    <p>&nbsp;</p>
		  
                <p>
                  <input name="submit" type="submit" class="button_base" id="Submit2" value="Search" align="right" />
                </p>
	     
	      </div>
		     </form>
		  <div class="entry">
		    <ol>
			<?  $userid = $this->session->userdata('id'); ?>
		    <?php if($query->num_rows() > 0 )
			{
			 foreach($query->result() as $row)
			 {
			
			   ?>  
			   
			<a href="<?=base_url();?>welcome/group/<?=$row->id;?>/<?=$userid?>" style="text-decoration:none; color:#<? if($row->type==0) {?>006600<? } else { ?>FF0000<? }?>"><li><strong><?=$row->name;?></strong> <em><? if($row->type==0) {?>(Public)<? } else { ?>(Private)<? }?></em></li> </a>
			  <?php 
			  
			  }
			 }
			  
			  ?>
		    </ol>
	
	      </div>
			<p class="links">&nbsp;</p>
	  </div>
  </div>
	<!-- end content -->
	<br style="clear: both;" />
</div>
<!-- end page -->