<?php 
$this->load->view('site/templates/header'); 
$this->load->model('product_model');
$this->load->model('category_model');
?>

<link rel="stylesheet" href="css/jquery.ptTimeSelect.css" type="text/css" />
<script language="javascript" src="js/jquery.ptTimeSelect.js"></script>
<link href="css/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="js/1.8.24-jquery-ui.js"></script>
<script type="text/javascript">
    $(document).ready(function(){
	    $("#registryDate").datepicker({ dateFormat: "yy-mm-dd", changeMonth: true, changeYear: true,}).val()
		$('#registryDate').click();
		$('#confirmDelete').click(function(e) {  
           $('#sure_btn').css('display','block'); 
        }); 
		$('#cancel_regis-delete').click(function(e) {  
           $('#sure_btn').css('display','none'); 
        });  
    });
	
	
	
	
</script>
<style>
#cboxLoadedContent{background:none;}

</style>


<div style='display:none;'>

<div id="make_reg1" style="float: left; border-radius: 17px; padding: 10px; background: none repeat scroll 0px 0px rgba(0, 0, 0, 0.26);">
  <form action="site/market/updateRegistry" method="post"> 
	<div style="background:#EAF7FD;heigth:400px; margin:0px" class="sign_in_form">
        <div style="border:none; margin:0; padding:0" class="sign_in_form-inner">
            <div style="float:left; width:93%;" class="sign_head5">
                <h2><?php if($this->lang->line('seller_wedding') != '') { echo stripslashes($this->lang->line('seller_wedding')); } else echo 'When is your wedding'; ?>?</h2> 
                
                 <input type="text" class="payment_txt datepicker required" name="registryDate" id="registryDate" style="width:85px !important" value="<?php echo $registryVals->wedding_date; ?>">
                 <input type="button" class="submit_btn" value="<?php if($this->lang->line('seller_change') != '') { echo stripslashes($this->lang->line('seller_change')); } else echo 'Change Your Registry'; ?>" onclick="javascript:$('#registryDate').trigger('focus'); " style=" border-radius: 2px;
    font-size: 12px;
    height: 25px;
    line-height: 15px;
    margin: 5px 5px 0 0;
    padding: 0;
    text-align: center;
    width: 168px;
" />
                 
            </div> 
            
       <div class="sign_head5" style="float: left; background: none repeat scroll 0% 0% rgb(245, 245, 241); padding: 6px 13px; width: 93%;">
           <a href="javascript: void(0);" style="float:right" id="confirmDelete" class="delete-registry-link"><span></span><?php if($this->lang->line('seller_delete') != '') { echo stripslashes($this->lang->line('seller_delete')); } else echo 'Delete your registry'; ?></a>
           
           
           
           
           <div class="confirm-detail" id="sure_btn" style="display:none">
<span><?php if($this->lang->line('seller_areusure') != '') { echo stripslashes($this->lang->line('seller_areusure')); } else echo 'Are you sure'; ?>?</span>
<a class="confirm-detail-delete" href="site/market/deleteRegistry">
<span><?php if($this->lang->line('seller_deleteregistry') != '') { echo stripslashes($this->lang->line('seller_deleteregistry')); } else echo 'Yes, delete my registry'; ?></span>
</a>
<a class="confirm-detail-cancel" href="javascript:void(0);" id="cancel_regis-delete">
<span><?php if($this->lang->line('user_no') != '') { echo stripslashes($this->lang->line('user_no')); } else echo 'No'; ?></span>
</a>
<span class="arrow-toped"></span>
</div>
           
            </div>
          
          <div style="background:#E9F6FC; padding: 7px 0 7px 22px;" class="sign_head5">
          <div style="float:right">
           <input class="submit_btn" type="submit" value="<?php if($this->lang->line('user_save') != '') { echo stripslashes($this->lang->line('user_save')); } else echo 'Save'; ?>" name="submitRegistry" />
           <input type="button" class="cancelresg" id="CancelRegisBtn" value="<?php if($this->lang->line('user_cancel') != '') { echo stripslashes($this->lang->line('user_cancel')); } else echo 'Cancel'; ?>">
           </div>
          </div> 
          
         </div>
         
         
        
    </div>
    </form>
 </div>
 
</div>



<section style="background:#fff; border-bottom:1px solid #ccc">

    
    
    
    
    <div class="registary_landing_top">
        <div class="main">
        <div class="registary-left1">
            <div id="registary_landing_top-title">
            <a href="category-list/68-weddings"><?php if($this->lang->line('user_weddings') != '') { echo stripslashes($this->lang->line('user_weddings')); } else echo 'Weddings'; ?></a>
            </div>
        <h1>
         <div id="feed-header"><?php if($this->lang->line('seller_registry') != '') { echo stripslashes($this->lang->line('seller_registry')); } else echo 'Your Registry'; ?> </div>
        </h1>
        </div>
        <div class="registary-right1">
       <!-- <form>
        <h3>Find a Registry</h3>
          <div class="registry-search-input-wrapper">
              <input class="text" type="text" autocomplete="off" placeholder="Lauren and Jason" value="" maxlength="40" name="q">
              <div class="find-suggestions" style="top: 45px; left: 92px; width: 281px; display: none;"></div>
          </div>
        </form>-->
        </div>
        </div>
    </div><div class="clear"></div>
    <div class="registary_top">
    <div class="main">
    <h3 class="headline-top"><?php if($this->lang->line('seller_fun') != '') { echo stripslashes($this->lang->line('seller_fun')); } else echo 'Let the fun begin'; ?>!</h3>
<h3><?php if($this->lang->line('seller_explore') != '') { echo stripslashes($this->lang->line('seller_explore')); } else echo 'Explore our gift ideas below'; ?>.</h3>
<span class="downarrow"></span>
    </div>
    </div>
    
    	<div class="main">
        
        <div class="registery-left">
       <?php foreach($registryMainList->result() as $mainList){  
	     if ($mainList->cat_name != ''){ $commentData = $this->category_model->get_all_counts($mainList->id,''); if($commentData[0]['disp']>0){
		 
		 ?>
         
          <ul class="registary_list">
            <li class="list-header">
            <h3><?php echo $mainList->cat_name;?></h3>
            </li>
            <a href="browse/62-home-living/<?php echo $mainList->id.'-'.$mainList->seourl;?>">
            <li class="restary-footr">
                <div class="image-container">
                 <?php $sucCatdetails=$this->product_model->get_all_details(CATEGORY,array('rootID' => $mainList->id));    $i=1;
				 if($sucCatdetails->num_rows() > 0) {
			  foreach($sucCatdetails->result() as $subList){
			  ?>
                <?php if($i < 5){ if($subList->image != ''){?>
                <img src="images/category/<?php echo $subList->image;?>" />
                <?php }} $i++; } ?>
                </div>
            <p class="registary-text"><?php  foreach($sucCatdetails->result() as $subList){ echo $subList->cat_name.', ';  } echo '...';?>
           </p>  <?php }?>
            <span class="leftarow"></span>
            </li> </a>
        </ul> 
        
        
        <?php  } } }?>
        
        
        <ul class="registary_list">
            <li class="list-header">
            <form action="search/all" method="get" id="sbmtSform">
              <input class="list-header-text" type="text" placeholder="<?php if($this->lang->line('seller_looking') != '') { echo stripslashes($this->lang->line('seller_looking')); } else echo 'Looking for something else'; ?>?" name="item" value="">
             <a class="asubscribe_btn" style="margin-top:0px;margin-left:10px;    padding: 6px 10px; float:none; font-family: Arial,Helvetica,sans-serif; color:#fff" href="javascript:void(0);" onclick="document.getElementById('sbmtSform').submit();"><?php if($this->lang->line('seller_srch') != '') { echo stripslashes($this->lang->line('seller_srch')); } else echo 'Search'; ?></a>
         </form>
          
            </li>
          
        </ul>
        </div>
       
       
        <div class="registery-right">
        
        <ul class="registary_list">
        
         <li class="list-header">
       
        <h3><?php if($this->lang->line('seller_info') != '') { echo stripslashes($this->lang->line('seller_info')); } else echo 'Info'; ?></h3>
       <!--<input type="text" class="payment_txt datepicker required" name="registryDate" id="registryDate" value="">-->
      <a class="edit-button make-popup1" href="javascript: void(0);"><?php if($this->lang->line('user_edit') != '') { echo stripslashes($this->lang->line('user_edit')); } else echo 'Edit'; ?></a> 
       
        </li>
        <li style="padding:10px" class="restary-footr">
       
        <h3 class="content-date"><?php if($this->lang->line('seller_weddate') != '') { echo stripslashes($this->lang->line('seller_weddate')); } else echo 'Wedding Date'; ?></h3>
<p class="content-time"><?php echo date("d M, Y",strtotime($registryVals->wedding_date)); ?></p>
        </li>
        </ul>
        
        <ul class="registary_list">
        
         <li class="list-header">
       
      <p class="plannig"><?php if($this->lang->line('seller_planning') != '') { echo stripslashes($this->lang->line('seller_planning')); } else echo 'Planning a wedding'; ?>?</p>
<a href="category-list/68-weddings"><?php if($this->lang->line('seller_inspiration') != '') { echo stripslashes($this->lang->line('seller_inspiration')); } else echo 'Get inspiration'; ?></a>
       
        </li>
        
        </ul>
       
        </div>
        
        </div>
        
        </div>
    </section>


<script>
$(document).ready(function(){

		$(".cboxClose1").click(function(){
			$("#cboxOverlay,#colorbox").hide();
			});
		
			
			$(".reg-popup").colorbox({width:"380px", height:"auto", inline:true, href:"#inline_reg"});
			$(".make-popup1").colorbox({width:"340px", height:"auto",scrolling: true,innerWidth: true, inline:true, href:"#make_reg1"});
		    		
		
		//Example of preserving a JavaScript event for inline calls.
			$("#onLoad").click(function(){ 
				$('#onLoad').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
				return false;
			});
			
			$("#CancelRegisBtn").click(function(){
			$('#cboxClose').trigger('click');
			});
});
</script>
    
    
<style>
#cboxLoadedContent {
    border-radius: 5px;}

</style>



<?php 
$this->load->view('site/templates/footer');
?>	