

<head>

<meta content="text/html; charset=utf-8" http-equiv="Content-Type">

</head>



<?php $this->load->view('header');?>    

        

  <?php $this->load->view('left');?>    

      

        

        

        

        

        

        

        

        <?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;

 
       $profile=$row->profile;



    endforeach;



}





?>





        

       

        

        

        

        

        

        <div id="mws-container" class="clearfix">

            <div class="container">

            

            	<div class="mws-panel grid_8">

                	<div class="mws-panel-header">

                    	<span class="mws-i-24 i-list">Settings<?php foreach($lang->result() as $rs):?> <?php $lng=$rs->lang;?> <?php endforeach;?></span>

                    </div>

                    <div class="mws-panel-body">

                    

         <form enctype="multipart/form-data" action="<?php echo base_url();?>index.php/settings/save_edite_settings" method="post" class="mws-form">

                    	

                    	

                    		<div class="mws-form-inline">

                    		 <?php if($lng=='en' or $lng=='ar_en'){?>

                    			<div class="mws-form-row">

                    				<label>Name</label>

                    				<div class="mws-form-item small">

                    				<input type="text" name="name" value="<?php echo $name?>"  class="mws-textinput" />

                    				</div>

                    			</div>

                    			<?php }?>

                          <?php if($lng=='ar' or $lng=='ar_en'){?>

                    			<div class="mws-form-row">

                    				<label>اسم الموقع</label>

                    				<div class="mws-form-item small">

                    					<input type="text" name="name_ar" value="<?php echo $name_ar?>"  class="mws-textinput" />                    				</div>

                    			</div>

                    	   <?php }?>



                    			<div class="mws-form-row">

                    				<label>E-Mail</label>

                    				<div class="mws-form-item small">

                    					<input type="text" name="email" value="<?php echo $email?>"  class="mws-textinput" />                    				</div>

                    			</div>

                    			<div class="mws-form-row">

                    				<label>Facebook Link</label>

                    				<div class="mws-form-item small">

                    					<input type="text" name="facebook" value="<?php echo $fb?>"  class="mws-textinput" /></div>

                    			</div>

                    			<div class="mws-form-row">

                    				<label>youtube link</label>

                    				<div class="mws-form-item small">

                    				

                    					<input type="text" name="youtube" value="<?php echo $yt?>"  class="mws-textinput" />                    				</div>

                    			</div>

                    			

                    			<div class="mws-form-row">

                    				<label>Twitter Link</label>

                    				<div class="mws-form-item small">

                    				

                    					<input type="text" name="twitter" value="<?php echo $tw?>"  class="mws-textinput" />                    				</div>

                    			</div>

                    			

                    		<!--	<div class="mws-form-row">

                    				<label>phone</label>

                    				<div class="mws-form-item small">

                    				

                    					<input type="text" name="phone" value="<?php echo $phone?>"  class="mws-textinput" />                    				</div>

                    			</div>

                    			<div class="mws-form-row">

                    				<label>phone2</label>

                    				<div class="mws-form-item small">

                    				

                    					<input type="text" name="phone2" value="<?php echo $phone2?>"  class="mws-textinput" />                    				</div>

                    			</div>

                    			

                    			<div class="mws-form-row">

                    				<label>Site Language</label>

                    				<div class="mws-form-item clearfix">

                    					<ul class="mws-form-list inline">

                    						<li> <input <?php if($language=='ar'){ echo ' checked="checked" ';}?> type="radio" name="lang"  value="ar" /> <label>Ar</label></li>

                    						<li> <input <?php if($language=='en'){ echo ' checked="checked" ';}?> type="radio" name="lang"  value="en" /> <label>En</label></li>

                    						<li><input <?php if($language=='ar_en'){ echo ' checked="checked" ';}?> type="radio" name="lang" id="" value="ar_en" /> <label>Ar-En</label></li>

                    					</ul>

                    				</div>

                    			</div>

                    			

                    			<div class="mws-form-row">

                    				<label>Profile</label>

                    				<div class="mws-form-item large">

                    				

                    					<input name="profile2" value="<?php echo $profile?>" type="hidden">

										<input name="profile" type="file">

                    					

                    				</div>

                    			</div>-->



                    		</div>

                    		<div class="mws-button-row">

                    		

                    			<input type="submit" value="تعديل" class="mws-button orange" />

                    			

                    		</div>

                    	</form>

                    </div>    	

                </div>

                

            </div>

            

            <div id="mws-footer">

            	Copyright Your Website 2012. All Rights Reserved.

            </div>

            

        </div>

    </div>



</body>

</html>

