
<?php
if($qry != false)
{
    foreach ($qry->result() as $row) :
    $id=$row->id;
    $name = $row->site_name;
    $name_ar =$row->site_name_ar;
    $fb=$row->facebook;
    $tw=$row->twitter;
    $yt=$row->youtube;
     $language=$row->lang;
     $email=$row->email;
    endforeach;

}


?>


  
    
    <div class="right_content">            
        
    <h2>Settings
<?php foreach($lang->result() as $rs):?>
    <?php $lng=$rs->lang;?>
    <?php endforeach;?>
   
     </h2> 
                    
                    
&nbsp;&nbsp;
     
         <div class="form">
         <form enctype="multipart/form-data" action="<?php echo base_url();?>index.php/settings/save_edite_settings" method="post" class="niceform">
         
  
		  <fieldset>
		

               <?php if($lng=='en' or $lng=='ar_en'){?>
                    <dl>
                        <dt><label for="email">Site Name:</label></dt>
                        <dd><input type="text" name="name" value="<?php echo $name?>"  id="" size="54" /></dd>
                    </dl>
                    <?php }?>
               <?php if($lng=='ar' or $lng=='ar_en'){?>
                    <dl>
                        <dt><label for="email">Site Name (ar):</label></dt>
                        <dd><input type="text" name="name_ar" value="<?php echo $name_ar?>"  id="" size="54" /></dd>
                    </dl>
                    <?php }?>
             
                   
                    <dl>
                        <dt><label for="password">E-Mail:</label></dt>
                        <dd><input type="text" name="email" value="<?php echo $email?>"  id="" size="54" /></dd>
                    </dl>
                 <dl>
                        <dt><label for="password">Facebook Link:</label></dt>
                        <dd><input type="text" name="facebook" value="<?php echo $fb?>"  id="" size="54" /></dd>
                    </dl>
                      <dl>
                        <dt><label for="password">Youtube Link:</label></dt>
                        <dd><input type="text" name="youtube" value="<?php echo $yt?>"  id="" size="54" /></dd>
                    </dl>
                    
                      <dl>
                        <dt><label for="password">Twitter Link:</label></dt>
                        <dd><input type="text" name="twitter" value="<?php echo $tw?>"  id="" size="54" /></dd>
                    </dl>
                    <dl>
                        <dt><label for="password">Site Language:</label></dt>
                        <dd>
                        <input <?php if($language=='ar'){ echo ' checked="checked" ';}?> type="radio" name="lang" id="" value="ar" /><label class="check_label">Ar</label>
                            <input <?php if($language=='en'){ echo ' checked="checked" ';}?> type="radio" name="lang" id="" value="en" /><label class="check_label">En</label>
                             <input <?php if($language=='ar_en'){ echo ' checked="checked" ';}?> type="radio" name="lang" id="" value="ar_en" /><label class="check_label">AR-En</label>

</dd>
                    </dl>
                   
                    
                </fieldset>
		

	             
	


         
         
              
                
                <dl class="submit">
                    <input type="submit" name="submit" id="submit" value="Submit" />
                     </dl>
         </form>
         </div>  
      
     
     </div><!-- end of right content-->
            
                    
  </div>