<title>Hesabım</title>
<meta name="keywords" content="<?php echo $ayar['sitekey']; ?>">
<meta name="description" content="<?php echo $ayar['sitedesc']; ?>">
<meta property="og:url" content="<?php echo $url; ?>"/>
<meta property="og:title" content="Hesabım"/>
<meta property="og:description" content="<?php echo $ayar['sitedesc']; ?>"/>
<?php if ($_SESSION['uyegirisdurumu'] == 'true') { ?>

	<div class="page-container clearfix" id="PageContainer">
   <main id="MainContent">
      <link href="<?php echo $sitetemasi;?>/cdn/shop/t/4/assets/customer.css?v=171324467707446939211681116947" rel="stylesheet" type="text/css" media="all">
      <div class="main-content shop-page-account">
         <div class="container">
            <div class="container block-page-login" style="margin: 32px 0;background: white;
  border-radius: 6px;">
               <div id="primary">
                  <h1 class="page-title">
                     Hesabım
                  </h1>
                  <div class="row">
                     <div class="col-lg-auto col-xs-12 col-sm-4 col-md-3 col-lg-3 ">
                        <div class="wrapper_tabcontent customer">
                         
						    <a class="btn btn--full view-address" href="hesabim/">
                           <i class="icon-menu"></i>
                           Üyelik Bilgilerim
                           </a>
						   
						   
						   <a href="usiparislerim/" class="btn btn--full checkout">
						   <i class="icon-check-circle"></i>Siparişlerim</a>
                        
						  <h3><i class="icon-map-pin"></i>Adreslerim</h3>
						   
						   
                           <a target="_blank" class="btn btn--full view-address" href="favorilerim/">
                           <i class="icon-heart"></i>
                           Favorilerim
                          
                           </a>
						   
						   
						 <a class="btn btn--full view-address" href="uhediyeceklerim/">
                           <i class="fa fa-gift"></i>
                         Hediye Çeklerim
                          
                           </a>
						   
						   
						   <a class="btn btn--full view-address" href="utalepolustur/">
                           <i class="fa fa-question-circle"></i>
                           Talep Oluştur
                          
                           </a>
						   
						    <a class="btn btn--full view-address" href="udestekmerkezi/">
                           <i class="fa fa-life-ring"></i>
                          Destek Merkezi
                          
                           </a>
						   
						   
						   
                           <a href="cikis/" class="btn  btn-link">
                           <i class="icon-log-out"></i>
                           Çıkış
                           </a>
                        </div>
                     </div>
                     <div class="account-content col ">
                       
                        <div class="account_details">
                           <h3>ADRESLERİM</h3>
						   
						  
						  <div class="row">
										
									
								    		<div class="col-lg-6">
								    			<div class="card card-dashboard">
												<h3 class="baslik">Adres Ekle</h3><!-- End .card-title -->
								    				<div class="card-body" style="padding:2px !important;">
								    					
                            <form action="" method="POST">
						
							<div class="col-sm-12">			
						    <div class="md-form md-outline">
							 <label for="form15" class="active">Adres Adı</label>
                            <input name="adi" type="text" class="form-control" required>
                           
                            </div>
				            </div>
							
							
							<div class="col-sm-12">			
						    <div class="md-form md-outline">
							 <label for="form15" class="active">Adresiniz</label>
                            <textarea name="adres" style="min-height:150px;" class="form-control" cols="30" rows="4" placeholder="" required></textarea>
                           
                            </div>
				            </div>
							
							<div class="col-sm-12">			
						    <div class="md-form md-outline" style="width: 48%;float: left;">
							 <label for="form15" class="active">İl</label>
                            <select name="il" id="sehir" class="form-control" required>
							<?php foreach($sehir as $key => $val){?>
                            <option value="<?=$val;?>"><?=$val;?></option>
                            <?php }?>
							</select>
                           
                            </div>
							<div class="md-form md-outline" style="width: 48%;float: left;margin-left: 4%;">
                            <label for="form15" class="active">İlçe</label>
						   <input name="ilce" type="text"   class="form-control" required>
                           
                            </div>
				            </div>
									   								   
									
														
							</div><!-- End .card-body -->
							
							<div class="col-sm-12">		
							<button type="submit" style="margin-top: 100px;" name="adresekle" class="btn btn-primary">
                            <span>ADRES EKLE</span>
                            <i class="icon-long-arrow-right"></i>
                            </button>
                            </div><!-- End .card-body -->

							
							</form>
													
													
								    			</div><!-- End .card-dashboard -->
								    		</div><!-- End .col-lg-6 -->
												
										
										
										
										
										
										
										
										
										
										
		<?php 
		$adresoku = $ozy->query("select * from adreslerim where uyeid='{$uyeid}' order by id DESC")->fetchAll(PDO::FETCH_ASSOC);
		$__ADRES__ = false;
        foreach ($adresoku as $adres) {
        $__ADRES__ = true;
		
		
	
		?>				
 
										
								    		<div class="col-lg-6">
								    			<div class="card card-dashboard">
								    				<div class="card-body" style="border: 1px solid #e7e7e7;border-radius:5px;">
								    					<h3 class="baslik"><?php echo $adres['adi'];?></h3><!-- End .card-title -->
														<?php echo $adres['adres'];?><br>
														<?php echo $adres['il'];?><br>
														<?php echo $adres['ilce'];?><br>
														<a style="background: red;
  color: white;
  padding: 4px;
  border-radius: 5px;" onclick="return confirm('Silmek istediğinize emin misiniz ?')" href="<?php echo $url;?>/hesabim/?adressil=<?php echo $adres['id'];?>">Adresi Sil <i class="icon-edit"></i></a></p>
								    				</div><!-- End .card-body -->
								    			</div><!-- End .card-dashboard -->
								    		</div><!-- End .col-lg-6 -->
											
											
				   <?php }
							
                            if (!$__ADRES__){
								
                            echo "&nbsp;&nbsp;Malesef hesabınıza tanımlı herhangi bir adres bulunamadı :(";
							
							}
							?>								
											

											
											
											
								    	</div><!-- End .row -->
										
										
										
						  
						  
						   
                        </div>
						
						
                     </div>
                  </div>
               </div>
            </div>
         </div>
      </div>
   </main>
   <div></div>
</div>

<style>
.form-control {
  background-color: #f1f5f6;
  margin-bottom: 10px;
  padding: 0 15px;
  outline: 0;
  font-weight: 400;
  font-size: 14px;
  border: 1px solid #e5e8ec;
  width: 100%;
  line-height: 50px;
  height: 50px;
  border-radius: 6px;
  margin-bottom: 0px !important;
}

label
{
  display: inline-block;
  font-weight: 500;
  font-size: 13px;
  position: relative;
  top: 12px;
  background: white;
  left: 9px;
  color: #535251;
  letter-spacing: -0.5px;
}

.checkout-title{
  padding: 5px !important;
  margin-bottom: 0px !important;
  font-weight: 500 !important;
  border-radius: 5px !important;
  border: none !important;
  background: #ffd369 !important; !important;
  color:white !important;
}

.okey {
  box-shadow: 0 1px 3px rgba(37, 35, 35, 0.14);
  padding-top: 20px;
  border-radius: 5px;
}
.kutu {
  margin-top: 15px;
  background: #f1f5f6;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #e7e7e7 !important;
}

.btn  {
background-color: #fff;
  color: var(--color-main);
  border: 2px solid var(--color-btn);
  text-transform: uppercase;
  line-height: 46px;
  text-align: center;
  margin: 0;
    margin-top: 0px;
    margin-bottom: 0px;
  margin-top: 0px;
  cursor: pointer;
  display: block;
  border-radius: 6px;
  -webkit-transition: all 200ms linear 0ms;
  -khtml-transition: all 200ms linear 0ms;
  -moz-transition: all 200ms linear 0ms;
  -ms-transition: all 200ms linear 0ms;
  -o-transition: all 200ms linear 0ms;
  transition: all 200ms linear 0ms;
  font-weight: 700;
  font-size: 12px;
  margin-top: 15px;
  width: 100%;
  text-decoration: none;
  margin-bottom: 30px;
}


@media screen and (max-device-width: 480px) and (orientation: portrait){
	
.cart-container-right{
	
 margin-left: 0% !important;
 width: 100% !important;
 margin-top: 10px;
 
}
.cart-summary{
 margin-top: 10px;
 padding: 10px !important;
}



}


.odemetablo{
background: #f1f5f6;
  text-align: left !important;
  padding: 10px;
  border-radius: 5px;
  border-bottom: 4px solid #fff;
}
.custom-control-inline{

top:0px !important;
background: #f1f5f6;
}

.custom-control-label{
float: right;
  position: relative;
  top: 8px;
  left: 5px;
}

.mesafe{
margin-bottom: 30px;
  margin-top: 10px;
}

input[type="checkbox"]{
  height: 20px;
  width: 20px;
}


input[type="radio"]{
  margin-right: 5px;
  height: 30px;
  width: 30px;
}

.radio-label{
  top: -8px !important;
  position: relative;
  font-weight: 500;
  letter-spacing: -0.5px;
}


label
{
  display: inline-block;
  font-weight: 500;
  font-size: 13px;
  position: relative;
  top: 12px;
  background: #ffffff6e;
  left: 9px;
  color: #535251;
  letter-spacing: -0.5px;
}

.checkout-title{
  padding: 15px !important;
  margin-bottom: 0px !important;
  font-weight: 500 !important;
  border-radius: 5px !important;
  border: none !important;
  background: <?php echo $tema['t37'];?> !important;
  color:white !important;
}

.okey {
  box-shadow: 0 1px 3px rgba(37, 35, 35, 0.14);
  padding-top: 20px;
  border-radius: 5px;
}
.kutu {
  margin-top: 15px;
  background: #f1f5f6;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #e7e7e7 !important;
}


   .bossepet {
   display:flex;
   justify-content:center;
   align-items:center;
   flex-direction:column;
   min-height:300px;
   font-size:14px;
   width: 100%;
   padding-bottom: 100px;
   padding-top: 20px;
   }
   .bossepet img{
   width: 200px;
   margin-bottom: 10px;
   }
   .bossepet .btn {
   font-size: 16px;
   margin-top: 15px;
   font-weight: 500;
   border-radius: 5px;
   background: <?php echo $tema['t37'];?> !important;
   border: none;
   padding: 10px;
   padding-right: 30px;
   padding-left: 30px;
   }
   .cart-container {
   padding:0
   }
   .cart-container,
   .cart-container-title {
   width:100%;
   height:auto
   }
   .cart-container-title h1 {
   font-size:22px;
   color:#555
   }
   .cart-container-left {
   position:relative;
   float:left;
   width:100%;
   height:auto
   }
   .cart-container-right {
   height:auto;
   border-radius:10px;
   }
   .cart-product-container {
   position:relative;
   float:left;
   width:100%;
   height:auto;
   border:2px solid #f5f5f5;
   background-color:#fff;
   border-radius:5px;
   padding:15px;
   margin-bottom:15px;
   z-index: 99999999999;
   }
   .cart-product-container-left {
   position:relative;
   float:left;
   width:100px;
   height:auto
   }
   .cart-product-container-left img {
   width:100%;
   height:120px;
   -o-object-fit:cover;
   object-fit:cover;
   border-radius:5px
   }
   .cart-product-container-middle {
   position:relative;
   float:left;
   width:calc(100% - 140px);
   height:auto;
   padding-left:20px
   }
   .cart-product-container-right {
   position:relative;
   float:left;
   width:40px;
   height:auto;
   margin-top: 2% !important;
   }
   .cart-product-title>a {
   text-decoration:none
   }
   .cart-product-title h2 {
   font-size:15px;
   margin-bottom:3px;
   color:#555;
   font-weight:500;
   }
   .cart-product-variant-title h3 {
   color:#555;
   font-weight:400;
   font-size:12px;
   margin-bottom:0;
   line-height: 16px;
   }
   .cart-product-quantity-changer {
   width:100%;
   height:100px;
   border:1px solid <?php echo $tema['t37'];?> !important;
   border-radius:10px
   }
   .cart-product-quantity-changer-decreaser,
   .cart-product-quantity-changer-increaser,
   .cart-product-quantity-changer-quantity {
   height:40px;
   text-align:center;
   font-size:10px;
   color:#777;
   width:100%;
   cursor:pointer
   }
   .cart-product-quantity-changer-quantity {
   height:20px
   }
   .cart-product-quantity-changer-decreaser:hover,
   .cart-product-quantity-changer-increaser:hover {
   color:#000
   }
   .cart-product-quantity-changer-decreaser,
   .cart-product-quantity-changer-increaser {
   line-height:40px
   }
   .cart-product-quantity-changer-quantity input[type=text] {
   width: 100%;
   height: 20px !important;
   text-align: center;
   border: none;
   font-size: 13px;
   font-weight: 500;
   color: #555 !important;
   padding: 0px !important;
   }
   .cart-product-remove {
   width:40px;
   height:40px;
   line-height:40px;
   text-align:center;
   border:1px solid #e0e0e0;
   border-radius:5px;
   margin-top:5px;
   font-size:14px;
   color:#777;
   cursor:pointer;
   line-height: 0px;
   display: block !important;
   }
   .cart-product-remove:hover {
   border:1px dashed var(--themeColor);
   color:var(--themeColor)
   }
   .cart-product-quantity {
   font-size:12px;
   color:#555;
   font-weight:400
   }
   .text-end {
   font-size: 14px;
   font-weight: 500;
   }	
   .product-card-min {
   position:relative;
   float:left;
   display:block;
   width:150px;
   height:auto;
   background:#fff;
   border-radius:10px;
   margin-right:0;
   transition:transform .3s
   }
   .product-card-min:hover {
   transform:scale(1)
   }
   .product-card-min a {
   text-decoration:none
   }
   .product-card-min>img {
   vertical-align:baseline!important;
   width:100%;
   height:245px;
   border-radius:5px;
   -o-object-fit:cover;
   object-fit:cover;
   -o-object-position:50% 50%;
   object-position:50% 50%
   }
   .product-card-min-image {
   width:100%
   }
   .product-card-min-image img {
   width:100%;
   height:200px;
   -o-object-fit:cover;
   object-fit:cover;
   border-radius:5px
   }
   .product-card-min-image img:first-child {
   display:block
   }
   .product-card-min-image img:last-child {
   display:none
   }
   .product-card-min:hover>.product-card-min-image img:last-child {
   display:block
   }
   .product-card-min:hover>.product-card-min-image img:first-child {
   display:none
   }
   .product-card-min-title {
   width:100%;
   height:25px;
   line-height:25px;
   margin-top:5px;
   padding:0 10px;
   color:#777;
   font-size:13px;
   word-wrap:break-word;
   overflow-wrap:break-word;
   white-space:nowrap;
   overflow:hidden;
   text-overflow:ellipsis
   }
   .product-card-min-price {
   width:100%;
   height:25px;
   position:relative;
   padding:0 10px
   }
   .product-card-min-price1 {
   font-weight:500;
   color:var(--themeColor)
   }
   .product-card-min-price1,
   .product-card-min-price2 {
   float:left;
   height:25px;
   line-height:25px;
   font-size:14px
   }
   .product-card-min-price2 {
   text-decoration:line-through;
   color:#999;
   margin-right:5px
   }
   .message-container {
   position:fixed;
   top:10px;
   right:10px;
   width:250px;
   height:auto;
   z-index:15
   }
   .message-box {
   height:auto;
   background:#fff;
   font-size:12px;
   box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24);
   margin-bottom:10px
   }
   .cart-confirm,
   .message-box {
   width:100%;
   padding:10px 15px;
   border-radius:5px;
   color:#fff;
   font-weight:500
   }
   .cart-confirm {
   background: <?php echo $tema['t37'];?>;
   text-align: center;
   font-size: 16px;
   cursor: pointer;
   margin-bottom: 30px;
   }
   .cart-confirm-disabled {
   background:#bdbdbd;
   cursor:not-allowed
   }
   .cart-gift-certificate-container {
   width:100%;
   height:auto;
   padding:15px;
   background:#f5f5f5;
   box-shadow:0 1px 3px rgb(0 0 0/20%);
   border-radius:3px
   }
   .cart-gift-certificate-container h2 {
   font-size:14px;
   color:#555;
   font-weight:400;
   padding-bottom:10px
   }
   .cart-summary {
   width: 100%;
   height: auto;
   padding: 15px 20px;
   background: #fff;
   box-shadow: 0 1px 3px rgba(37, 35, 35, 0.14);
   border-radius: 3px;
   padding-top:5px;
   }
   .cart-summary h2 {
   font-size: 14px;
   color: #555;
   margin-bottom: 10px;
   margin-top: 10px;
   border-bottom: 1px solid black;
   text-align: center;
   padding-bottom: 10px;
   font-weight: 600;
   }
   .cart-summary table {
   width:100%;
   height:auto
   }
   .cart-summary table tr {
   height: 30px;
   line-height: 1px;
   font-size: 15px;
   color: #555;
   margin-top: 14px;
   }
    .cart-summary-total-price, .cart-product-prices span {
   text-align: right;
   color: var(--color-current-product);
   font-size: 17px;
   font-weight: bold !important;
   }
   .cart-recommended-products-container,
   .cart-recommended-products-title {
   width:100%;
   height:auto
   }
   .cart-recommended-products-title h2 {
   font-size:20px;
   color:#555
   }
   .cart-recommended-products {
   width:100%;
   height:auto;
   overflow-x:auto;
   overflow-y:hidden;
   white-space:nowrap;
   -webkit-overflow-scrolling:touch;
   padding-bottom:10px
   }
   .link-block {
   width: 120px;
   text-decoration: none;
   color: #fff;
   font-size: 12px;
   }
.badge {
 width: 16%;
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: #1f1d1d;
  text-align: center;
  white-space: nowrap;
  letter-spacing: -0.8px;
  border: 1px solid #e6e0e0;
  padding: 12px;
  border-radius: 5px;
  background: #f7f9fc;
  margin-right: 8px;
}

.kuponbuton {
width: 32% !important;	
}

@media screen and (max-device-width: 480px) and (orientation: portrait){
	
.kuponbuton {
width: 32% !important;	
}	
	
	
  .badge {
  width: 75% !important;  
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: #1f1d1d;
  text-align: center;
  white-space: nowrap;
  letter-spacing: -0.8px;
  border: 1px solid #eaeaea;
  padding: 12px;
  border-radius: 5px;
  background: #dddada;
  margin-right: 8px;
}
}		
.form-control {
  border: none;
  height: 50px;
  padding: 0 20px;
  min-width: 100%;
  background: #F1F5F6;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  color: var(--color-text-body);
}	
   
   
   
   .black {
   font-weight: bold;
    }
	
	.yazim {
position: relative;
  top: -7px;
    font-weight: 600;
}

	.account_details {
border: 1px solid #f1f5f6;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 50px;
}
.account_details h3, .order-history h3 {
color: var(--color-main);
  margin: 0 0 10px;
  position: relative;
  letter-spacing: -.03em;
  font-weight: 600;
  font-size: 18px;
  line-height: 45px;
  text-align: center;
  border-bottom: 1px solid #cdcdd1 !important;
  display: flex;
}

.baslik {
  border: none !important;
  background: <?php echo $tema['t37'];?>;
  color: white !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  border-radius:6px;
  display: block !important;
  
}



.card-body {
 padding: 10px;
  
}


</style>

		 
<?php } else { ?>	
<meta http-equiv="refresh" content="0; url='<?php echo $url;?>">
<?php } ?>
