    
    
    
<?php
if($qry != false)
{
    foreach ($qry->result() as $row) :

    $id=$row->id;
    $name = $row->name;
    $title = $row->title;
    $have_name=$row->have_name;
    $have_short= $row->have_short;
    $have_details= $row->have_details ;
	$have_pic=$row->have_pic;
    $have_gal= $row->have_gallery;
    $have_cats= $row->have_cats;
     $txts= $row->txts ;
	$txts_names=$row->txts_names;
    $areas= $row->areas;
    $areas_names=$row->areas_names;
    $up= $row->up;
    $up_names=$row->up_names;
    endforeach;

}


?>



  
    
    <div class="right_content">            
        
    <h2>Add New Module</h2> 
                    
                    
&nbsp;&nbsp;
     
         <div class="form">
         <form action="../save_edite_module/<?php echo $id?>" method="post" class="niceform">
         
                <fieldset>
                    <dl>
                        <dt><label for="email">Module Name:</label></dt>
                        <dd><input type="text" name="name" value="<?php echo $name?>" id="" size="54" /></dd>
                    </dl>
                    <dl>
                        <dt><label for="password">Title:</label></dt>
                        <dd><input type="text" name="title" value="<?php echo $title;?>" id="" size="54" /></dd>
                    </dl>
                    
                    
                    <dl>
                        <dt><label for="gender">Have Name:</label></dt>
                       <dd>
                            <input type="radio" name="have_name" id="" value="yes" <?php if($have_name=='yes'){echo 'checked="checked"' ;}?>  /><label class="check_label">YES</label>
                            <input type="radio" name="have_name" id="" value="no" <?php if($have_name=='no'){echo 'checked="checked"' ;}?> /><label class="check_label">NO</label>                            
                        </dd>
                    </dl>
                    <dl>
                        <dt><label for="interests">Have Summary:</label></dt>
                        <dd>
                            <input type="radio" name="have_short" id="" value="yes" <?php if($have_short=='yes'){echo 'checked="checked"' ;}?> /><label class="check_label">YES</label>
                            <input type="radio" name="have_short" id="" value="no" <?php if($have_short=='no'){echo 'checked="checked"' ;}?> /><label class="check_label">NO</label>                            
                        </dd>
                    </dl>
                    
                    <dl>
                        <dt><label for="color">Have Details</label></dt>
                        <dd>
                            <dd>
                            <input type="radio" name="have_details" id="" value="yes" <?php if($have_details=='yes'){echo 'checked="checked"' ;}?> /><label class="check_label">YES</label>
                            <input type="radio" name="have_details" id="" value="no" <?php if($have_details=='no'){echo 'checked="checked"' ;}?> /><label class="check_label">NO</label>                            
                        </dd>
                    </dl>
                    
                      <dl>
                        <dt><label for="color">Have Picture</label></dt>
                        <dd>
                            <dd>
                            <input type="radio" name="have_pic" <?php if($have_pic=='yes'){echo 'checked="checked"' ;}?> id="" value="yes" /><label class="check_label">YES</label>
                            <input type="radio" name="have_pic" id="" value="no" <?php if($have_pic=='no'){echo 'checked="checked"' ;}?> /><label class="check_label">NO</label>                            
                        </dd>
                    </dl>
  <dl>
                        <dt><label for="color">Have Gallery</label></dt>
                        <dd>
                            <dd>
                            <input type="radio" name="have_gal" id="" value="yes" <?php if($have_gal=='yes'){echo 'checked="checked"' ;}?> /><label class="check_label">YES</label>
                            <input type="radio" name="have_gal" id="" value="no" <?php if($have_gal=='no'){echo 'checked="checked"' ;}?> /><label class="check_label">NO</label>                            
                        </dd>
                    </dl>
  <dl>
                        <dt><label for="color">Have Categotries</label></dt>
                        <dd>
                            <dd>
                            <input type="radio" name="have_cats" id="" value="yes" <?php if($have_cats=='yes'){echo 'checked="checked"' ;}?> /><label class="check_label">YES</label>
                            <input type="radio" name="have_cats" id="" value="no" <?php if($have_cats=='no'){echo 'checked="checked"' ;}?> /><label class="check_label">NO</label>                            
                        </dd>
                    </dl>

                    
                      <dl>
                        <dt><label for="color">More textboxs fields</label></dt>
                        <dd>
                            <dd>
                            <input type="text" name="txts" value="<?php echo $txts?>" id="" size="20" />Fields Names
                          <input type="text" name="txts_names" value="<?php echo $txts_names?>" id="" size="54" />                           
                        </dd>
                    </dl>
                     <dl>
                        <dt><label for="color">More textareas fields</label></dt>
                        <dd>
                            <dd>
                            <input type="text" name="areas" value="<?php echo $areas?>"  id="" size="20" />Fields Names
                          <input type="text" name="areas_names" value="<?php echo $areas_names?>" id="" size="54" />                           
                        </dd>
                    </dl>
   <dl>
                        <dt><label for="color">More fileuploads fields</label></dt>
                        <dd>
                            <dd>
                            <input type="text" name="up" value="<?php echo $up?>"  id="" size="20" />Fields Names
                          <input type="text" name="up_names" value="<?php echo $up_names?>" id="" size="54" />                           
                        </dd>
                    </dl>
                    
                    
                   
                   
                    
                     <dl class="submit">
                    <input type="submit" name="submit" id="submit" value="Submit" />
                     </dl>
                     
                     
                    
                </fieldset>
                
         </form>
         </div>  
      
     
     </div><!-- end of right content-->
            
                    
  </div>