
<?php
if($qry != false)
{
    foreach ($qry->result() as $row) :
    $id=$row->id;
    $name = $row->name;
    $name_ar =$row->name_ar;
    $short=$row->short;
    $short_ar=$row->short_ar;
    $pic=$row->pic;
    endforeach;

}


?>


  
    
<?php foreach($lang->result() as $rs):?>
    <?php $lng=$rs->lang;?>
    <?php endforeach;?>
   
    
   <div id="mws-container" class="clearfix">
            <div class="container">
            
            
            
                     <form enctype="multipart/form-data"  action="<?php echo base_url();?>index.php/categories/save_edite_category/<?php echo $type?>/<?php echo $id?>" method="post" class="mws-form">

   <div class="mws-panel grid_4" style="width:98%">
                    <div class="mws-tabs">

                        <ul>
                            <li><a href="#tab-1">English</a></li>
                            <li><a href="#tab-2"><?php echo iconv("windows-1256","utf-8","عربي")?></a></li>
                           
                        </ul>
                        
                        <div id="tab-1">
                            <p> 
                            <div class="mws-form-inline">
                            
                    		 
                    		 
                    		 

                    			<div class="mws-form-row">
                    				<label>Title</label>
                    				<div class="mws-form-item small">
                    					<input type="text" name="name" value="<?php echo $name?>"  class="mws-textinput" />         
                    								</div>
                    			</div>
                    	  

                    			<div class="mws-form-row">
                    				<label>summary</label>
                    				<div class="mws-form-item small">
                    					<input type="text" name="short" value="<?php echo $short?>"  class="mws-textinput" />        
                    					            				</div>
                    			</div>
                    			
              
                    			<div class="mws-form-row">
                    				<label>Picture</label>
                    				<div class="mws-form-item larg">
                    				                        <input name="pic2" value="<?php echo $pic;?>" type="hidden" />

                    				<input type="file"  name="pic" class="mws-textinput" />
                    			</div>
                    			
                    		</div>
                    		
                    		

           </div>                 
                            </p>
                        </div>
                        
                        <div id="tab-2">
                           
                           <p> 
                            <div class="mws-form-inline">
                            
                    		 
              


                                 <div class="mws-form-row">
                    				<label>Title(ar)</label>
                    				<div class="mws-form-item small">
                    					<input type="text" name="name_ar" value="<?php echo $name_ar?>"  class="mws-textinput" />         
                    								</div>
                    			</div>
                    	  

                    			<div class="mws-form-row">
                    				<label>summary(ar)</label>
                    				<div class="mws-form-item small">
                    					<input type="text" name="short_ar" value="<?php echo $short_ar?>"  class="mws-textinput" />        
                    					            				</div>
                    			</div>
                    			
              
                    			
                    		








              
                             </div>
                            
                           </p>
                        </div>
                        
                       
                     <div class="mws-button-row">
                    		
                    			<input type="submit" value="<?php echo iconv("windows-1256","utf-8","تعديل")?>" class="mws-button orange" />
                    			
                    		</div>
                </div></div>
               

                </form>
                
                
                


  
  </div>

