<div class="v8-tabs-adress">
	<div id="tab-locales">
		<div id="tab-ext0">
			<fieldset class="grey-bg row">
				<legend><?php echo translate("Adres(ler)")?><button style="position: absolute; right: 8px; z-index: 9999; margin-top: -38px;" onclick="toggle('#fadress0')" class="v3-btn v3-btn-warning mbtn" type="button"><i class="fa fa-plus "></i> <?php echo $sdil[200].$sdil["103"].$sdil[201]; //ekle?></button></legend>
				<div class="v3-row" style="padding:10px; width:100%;">
					<form action="?ne=<?php echo $_GET["ne"]?>&islem=<?php echo $_GET["islem"]?>&id=<?php echo $_GET["id"];?>&durum=adress" method="post" id="fadress0" class="nfx0" name="nfx0" autocomplete="off" style="<?php if($_GET["islem"]=="yeni"){}else{?>display:none;<?php }?>">
						<div class="v3-col-md-12" style="margin-bottom: 10px; border:1px solid #ccc; border-radius:5px;" id="ntr">
							<div class="v3-row mt5" style="margin-bottom:3px;">
								<div class="v3-col-md-6 mb3 mmb3" style="padding-right: 0px;">
									<div class="input-group">
										<span class="input-group-addon" id="basic-addon1" style="padding: 0px;">
											<label class="container">
												<input type="checkbox" value="1" name="sx10" style="" <?php if($dadress==1){echo "checked";}?>>
												<span class="checkmark"></span>
											</label>
										</span>
										<input type="text" name="nx1" style="padding-left: 35px;" value="<?php echo $nx["n1"];?>" data-alert="<?php echo translate("Adres Tanımı Bırakılamaz")?>" class="ox1 v3-form-control v3-input-sm icontrol" title="" placeholder="<?php echo translate("Adres Tanımı (Ev,Ofis) *");?>" required>
									</div>
								</div>
								<div class="v3-col-md-6 mb3 mmb3" style="">
									<label for="add0" style="margin-bottom: 0px"><input id="add0" type="radio" name="type" value="bireysel" style="float:left;" onclick="hide('#kurumsal')" checked> <span style="float: left; margin-top: -5px; margin-left: 10px; margin-right: 10px;">Bireysel</span></label>
									<label for="add1" style="margin-bottom: 0px"><input id="add1" type="radio" name="type" value="kurumsal" style="float:left;" onclick="show('#kurumsal')"> <span style="float: left; margin-top: -5px; margin-left: 10px;">Kurumsal</span></label>
								</div>
							</div>
							<div class="v3-row" style="margin-bottom:3px;">
								<div class="v3-col-sm-6 v3-col-xs-12" style="padding-right: 0px;">
									<input type="text" name="nx2" style="" class="v3-form-control v3-input-sm icontrol" data-alert="<?php echo translate("Ad Soyad Boş Bırakılamaz")?>" title="" placeholder="<?php echo translate("Ad Soyad");?> *" value="<?php echo $rsu["t1"]?>">
								</div>
								<div class="v3-col-sm-3 v3-col-xs-4" style="padding-right: 0px;">
									<input type="text" name="nx7" style="" class="v3-form-control v3-input-sm icontrol" data-alert="<?php echo translate("Gsm No Boş Bırakılamaz")?>" title="" placeholder="<?php echo translate("Gsm No");?> *" value="<?php echo $rsu["t4"]?>">
								</div>
								<div class="v3-col-sm-3 v3-col-xs-4">
									<input type="text" name="nx15" style="" class="v3-form-control v3-input-sm icontrol" data-alert="<?php echo translate("Mail Adresi Boş Bırakılamaz")?>" title="" placeholder="<?php echo translate("Email");?> *" value="<?php echo v3d($rsu["t2"])?>">
								</div>
							</div>
							<div class="v3-row" style="margin-bottom:3px;">
								<?php $lsql="and s1=".$module["countrycode"]."";?>
								<div class="v3-col-sm-3 v3-col-xs-6"  style="<?php if($module["loc"]=="sis" or $module["loc"]=="si"){?>display:none;<?php }?>">
									<select id="ulke0" name="nx3" class="v3-form-control v3-input-sm" style="">
										<option value=""><?php echo $sdil["119"]; //Seçiniz?></option>
									</select>
								</div>
								<?php if($module["loc"]=="sis" or $module["loc"]=="si"){$lsql="and s1=".$module["countrycode"]."";}?>
								<div class="v3-col-sm-3 v3-col-xs-6" style="<?php if($module["loc"]=="u"){?>display:none;<?php }?>">
									<select id="il0" name="nx4" class="v3-form-control v3-input-sm" style="">
										<option value=""><?php echo translate("Lütfen Seçiniz");?></option>
									</select>
									<input type="text" name="" id="iil0" class="v3-form-control v3-input-sm" placeholder="<?php echo translate("Şehir")?>" value="" style="display:none;">
								</div>
								<div class="v3-col-sm-3 v3-col-xs-6" style="<?php if($module["loc"]=="u" or $module["loc"]=="us"){?>display:none;<?php }?>">
									<select id="ilce0" name="nx5" class="v3-form-control v3-input-sm" style="">
										<option value=""><?php echo translate("Lütfen Seçiniz");?></option>
									</select>
									<input type="text" name="" id="iilce0" class="v3-form-control v3-input-sm" placeholder="<?php echo translate("İlçe")?>" style="display:none;">
								</div>
								<div class="v3-col-sm-3 v3-col-xs-6" style="<?php if($module["loc"]=="u" or $module["loc"]=="us" or $module["loc"]=="usi" or $module["loc"]=="si"){?>display:none;<?php }?>">
									<select id="semt0" name="nx11" class="v3-form-control v3-input-sm" style="">
										<option value=""><?php echo translate("Lütfen Seçiniz");?></option>
									</select>
									<input type="text" name="" id="isemt0" class="v3-form-control v3-input-sm" placeholder="<?php echo translate("Semt")?>" style="display:none;">
								</div>
							</div>
							<div class="v3-row mb3 mmb3" style="margin-bottom:3px; display:none;" id="kurumsal">
								<div class="v3-col-sm-6 v3-col-xs-12" style="<?php if($mobile==""){echo "padding-right: 0px;";}?>">
									<input type="text" name="nx8" style="" class="v3-form-control v3-input-sm" title="" placeholder="<?php echo translate("Firma Adı")?>">
								</div>
								<div class="v3-col-sm-3 v3-col-xs-6" style="<?php if($mobile==""){echo "padding-right: 0px;";}?>">
									<input type="text" name="nx12" style="" class="v3-form-control v3-input-sm" title="" placeholder="<?php echo translate("Vergi / Tc No")?>">
								</div>
								<div class="v3-col-sm-3 v3-col-xs-6" style="">
									<input type="text" name="nx13" style="" class="v3-form-control v3-input-sm" title="" placeholder="<?php echo translate("Vergi Dairesi")?>">
								</div>
							</div>
							<div class="mb3 mmb3" style="margin-bottom:3px;">
								<textarea name="nx6" class="v3-form-control v3-input-sm icontrol" style="height:50px;" data-alert="<?php echo translate("Adres Boş Bırakılamaz")?>" title="" placeholder="<?php echo translate("Adres");?> *"></textarea>
							</div>
							<div class="mb3  mmb3 tar mtar" style="margin-bottom:3px;">
								<button type="button" tabindex="-1" style="padding: 6px 7px 4px 9px;" onclick="document.getElementById('fadress0').submit();" class="v3-btn v3-btn-warning mbtn" type="submit"><i class="fa fa-plus "></i> <?php echo translate("Ekle");?></button>
							</div>
							<input type="submit" style="display:none;" />
						</div>
					</form>
					<script type="text/javascript">
						jQuery('#ulke0').on('change', function(){
							var ID = jQuery('#ulke0 option:selected').attr('ID');
							if(ID!=<?php echo $module["countrycode"]?>){
								jQuery("#iil0").attr("required", "true");
								jQuery("#iilce0").attr("required", "true");
								jQuery("#isemt0").attr("required", "true");
								jQuery('#il0').attr('name', '_nx4'); jQuery('#iil0').attr('name', 'nx4');
								jQuery('#ilce0').attr('name', '_nx5'); jQuery('#iilce0').attr('name', 'nx5');
								jQuery('#semt0').attr('name', '_nx11'); jQuery('#iilce0').attr('name', 'nx11');
								jQuery('#iil0').show(); $('#il0').attr("style", "display: none !important");
								jQuery('#iilce0').show(); jQuery('#ilce0').attr("style", "display: none !important");
								jQuery('#isemt0').show(); jQuery('#isemt0').attr("style", "display: none !important");
							}else{
								jQuery("#il0").attr("required", "true");
								jQuery("#ilce0").attr("required", "true");
								jQuery("#semt0").attr("required", "true");
								jQuery('#iil0').attr('name', '_nx4'); jQuery('#il0').attr('name', 'nx4');
								jQuery('#iilce0').attr('name', '_nx5'); jQuery('#ilce0').attr('name', 'nx5');
								jQuery('#isemt0').attr('name', '_nx11'); jQuery('#isemt0').attr('name', 'nx11');
								jQuery('#iil0').hide(); jQuery('#il0').show();
								jQuery('#iilce0').hide(); jQuery('#ilce0').show();
								jQuery('#isemt0').hide(); jQuery('#semt0').show();
								jQuery('#il0').load('../<?php echo $path?>deppo/tools/script/location.php?ne=il&ID=<?php echo $module["countrycode"]?>');
							}
						})
						jQuery(document).ready(function() {
							jQuery('#ulke0').load('../<?php echo $path;?>deppo/tools/script/location.php?ne=ulke&sID=<?php echo $module["countrycode"];?>');
							jQuery('#il0').load('../<?php echo $path;?>deppo/tools/script/location.php?ne=il&ID=<?php echo $module["countrycode"]?>');
						});
						jQuery('#ulke0').on('change', function(){
							var ID = jQuery('#ulke0 option:selected').attr('ID');
							jQuery('#il0').load('../<?php echo $path?>deppo/tools/script/location.php?ne=il&ID='+ID);
						});
						jQuery('#il0').on('change', function(){
							var ID = jQuery('#il0 option:selected').attr('ID');
							jQuery('#ilce0').load('../<?php echo $path?>deppo/tools/script/location.php?ne=ilce&ID='+ID);
						});
						jQuery('#ilce0').on('change', function(){
							var ID = jQuery('#ilce0 option:selected').attr('ID');
							jQuery('#semt0').load('../<?php echo $path?>deppo/tools/script/location.php?ne=semt&ID='+ID);
						});
					</script>
					<?php $sql=mysqli_query($conn, "select * from t1 where ne='adress' and t1='uye' and s1=".$_GET["id"].""); while($nx=mysqli_fetch_assoc($sql)){ ?>
						<div class="v3-col-md-12" data-id="<?php echo $nx["id"];?>" style=" width:100%; margin-bottom: 10px; border:1px solid #ccc; border-radius:5px;padding: 10px;">
							<form action="?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&id=<?php echo $_GET["id"];?>&durum=adress&adress_id=<?php echo $nx["id"];?>" method="post" autocomplete="off" id="gadress<?php echo $nx["id"];?>" class="gfx1">
								<input type="hidden" name="sx2" value="<?php echo $nx["s2"];?>">
								<div class="v3-row mt5" style="margin-bottom:3px;">
									<div class="v3-col-md-6 mb3 mmb3" style="padding-right: 0px;">
										<div class="input-group">
											<span class="input-group-addon" id="basic-addon1" style="padding: 0px;">
												<label class="container">
													<input type="checkbox" onclick="document.getElementById('gadress<?php echo $nx["id"];?>').submit();" value="1" name="sx10" style="" <?php if($nx["s10"]==1){echo "checked";}?>>
													<span class="checkmark"></span>
												</label>
											</span>
											<input type="text" name="nx1" style="padding-left: 35px;" value="<?php echo $nx["n1"];?>" class="ox1 v3-form-control v3-input-sm" title="" placeholder="" onclick="toggle('#c<?php echo $nx["id"];?>')">
										</div>
									</div>
									<div class="v3-col-md-6 mb3 mmb3" style="">
										<label for="add_<?php echo $nx["id"]?>" style="margin-bottom: 0px"><input id="add_<?php echo $nx["id"]?>" type="radio" name="type" value="bireysel" style="float:left;" onclick="hide('#kurumsal_<?php echo $nx["id"]?>')" <?php if($nx["t3"]=="bireysel"){echo "checked";}?>> <span style="float: left; margin-top: -5px; margin-left: 10px; margin-right: 10px;">Bireysel</span></label>
										<label for="add_<?php echo $nx["id"]?>" style="margin-bottom: 0px"><input id="add_<?php echo $nx["id"]?>" type="radio" name="type" value="kurumsal" style="float:left;" onclick="show('#kurumsal_<?php echo $nx["id"]?>')" <?php if($nx["t3"]=="kurumsal"){echo "checked";}?>> <span style="float: left; margin-top: -5px; margin-left: 10px;">Kurumsal</span></label>
									</div>
								</div>
								<div style="display:none;" id="c<?php echo $nx["id"];?>">
									<div class="v3-row" style="margin-bottom:3px;">
										<div class="v3-col-sm-6 v3-col-xs-12" style="<?php if($mobile==""){echo "padding-right: 0px;";}?>">
											<input type="text" name="nx2" style="" class="v3-form-control v3-input-sm" title="" placeholder="<?php echo translate("Ad Soyad");?>" value="<?php echo $nx["n2"]?>">
										</div>
										<div class="v3-col-sm-3 v3-col-xs-4" style="<?php if($mobile==""){echo "padding-right: 0px;";}?>">
											<input type="text" name="nx7" style="" value="<?php echo $nx["n7"];?>"  data-mask="<?php echo $module["pmask"]?>" class="ox1 v3-form-control v3-input-sm" title="" placeholder="<?php echo translate("Gsm No");?>">
										</div>
										<div class="v3-col-sm-3 v3-col-xs-4">
											<input type="text" name="nx15" style="" class="v3-form-control v3-input-sm" title="" placeholder="<?php echo translate("Email");?>" value="<?php echo $nx["n15"]?>">
										</div>
									</div>
									<div class="v3-row"  style="margin-bottom:3px;">
										<?php $ls1ql="and s1=".$nx["n3"]."";?>
										<div class="v3-col-sm-3 v3-col-xs-6" style="<?php if($module["loc"]=="sis" or $module["loc"]=="si"){$lsql="and s1=".$module["countrycode"]."";?>display:none;<?php }?>">
											<select id="ulke<?php echo $nx["id"];?>" name="nx3" class="v3-form-control v3-input-sm" style="">
												<option value=""><?php echo translate("Lütfen Seçiniz");?></option>
											</select>
										</div>
										<?php $ls2ql="and s2=".$nx["n4"]."";?>
										<div class="v3-col-sm-3 v3-col-xs-6" style="<?php if($module["loc"]=="u"){?>display:none;<?php }?>">
											<select id="il<?php echo $nx["id"];?>" name="nx4" class="v3-form-control v3-input-sm" style="<?php if($module["loc"]=="ml" and $nx["n3"]<>$module["countrycode"]){echo "display:none;";}?>">
												<option value=""><?php echo translate("Lütfen Seçiniz");?></option>
											</select>
											<input type="text" name="<?php if($nx["n3"]==$module["countrycode"]){echo "_";}?>nx4" id="iil<?php echo $nx["id"];?>" class="v3-form-control v3-input-sm" placeholder="<?php echo translate("Şehir")?>" value="<?php echo loc($nx["n4"])?>" style="<?php if($module["loc"]<>"ml"){?>display:none;<?php }?>">
										</div>
										<div class="v3-col-sm-3 v3-col-xs-6" style="<?php if($module["loc"]=="u" or $module["loc"]=="us"){?>display:none;<?php }?>">
											<select id="ilce<?php echo $nx["id"];?>" name="nx5" class="v3-form-control v3-input-sm" style="<?php if($module["loc"]=="ml"){?>display:none;<?php }?>">
											</select>
											<input type="text" name="<?php if($nx["n3"]==$module["countrycode"]){echo "_";}?>nx5" id="iilce<?php echo $nx["id"];?>" class="v3-form-control v3-input-sm" placeholder="<?php echo translate("İlçe")?>" value="<?php echo loc($nx["n5"])?>" style="<?php if($module["loc"]<>"ml"){?>display:none;<?php }?>">
										</div>
										<div class="v3-col-sm-3v3-col-xs-6" style="<?php if($module["loc"]=="u" or $module["loc"]=="us" or $module["loc"]=="usi" or $module["loc"]=="si"){echo "display:none;";}?>">
											<select id="semt<?php echo $nx["id"];?>" name="nx11" class="v3-form-control v3-input-sm" style="<?php if($module["loc"]=="ml"){?>display:none;<?php }?>">
											</select>
											<input type="text" name="<?php if($nx["n3"]==$module["countrycode"]){echo "_";}?>nx11" id="isemt<?php echo $nx["id"];?>" class="v3-form-control v3-input-sm" placeholder="<?php echo translate("Semt")?>" value="<?php echo loc($nx["n11"])?>" style="<?php if($module["loc"]<>"ml"){?>display:none;<?php }?>">
										</div>
									</div>
									<div class="v3-row mb3 mmb3" style="margin-bottom:3px; <?php if($nx["t3"]=="bireysel"){echo "display:none;";}?>" id="kurumsal_<?php echo $nx["id"]?>">
										<div class="v3-col-sm-6 v3-col-xs-6" style="padding-right: 0px;">
											<input type="text" name="nx8" style="" class="v3-form-control v3-input-sm" title="" placeholder="<?php echo translate("Firma Adı")?>" value="<?php echo $nx["n8"];?>">
										</div>
										<div class="v3-col-sm-3 v3-col-xs-6" style="padding-right: 0px;">
											<input type="text" name="nx12" style="" class="v3-form-control v3-input-sm" title="" placeholder="<?php echo translate("Vergi/Tc No")?>" value="<?php echo $nx["n12"];?>">
										</div>
										<div class="v3-col-sm-3 v3-col-xs-6" style="">
											<input type="text" name="nx13" style="" class="v3-form-control v3-input-sm" title="" placeholder="<?php echo translate("Vergi Dairesi")?>" value="<?php echo $nx["n13"];?>">
										</div>
									</div>
									<div class="mb3 mmb3" style="margin-bottom:3px;">
										<textarea name="nx6" class="ox1 v3-form-control v3-input-sm" title="" placeholder="<?php echo translate("Adres");?>" style="height:50px;"><?php echo $nx["n6"];?></textarea>
									</div>
									<div  class="mb3 mmb3 tar mtar" style="margin-bottom:3px;">
										<button type="button" tabindex="-1" style="padding: 6px 7px 4px 9px;" class="v3-btn v3-btn-warning mbtn" onclick="document.getElementById('gadress<?php echo $nx["id"];?>').submit();" style="cursor:pointer;"><i class="fa fa-refresh"></i> <?php echo translate("Düzenle");?></button>
										<button type="button" style="margin-left: 1px; padding: 6px 7px 4px 9px;" tabindex="-1" class="v3-btn v3-btn-danger mbtn" onclick="location.href='?ne=<?php echo $_GET["ne"]?>&islem=<?php echo $_GET["islem"]?>&id=<?php echo $_GET["id"];?>&adress_id=<?php echo $nx["id"];?>&durum=adress_s'" style="cursor:pointer;"><i class="fa fa-times"></i> <?php echo translate("Sil");?></button>
									</div>
								</div>
								<input type="submit" style="display:none;" />								
							</form>
							</div>
							<script type="text/javascript">
								jQuery(document).ready(function() {
									jQuery('#ulke<?php echo $nx["id"];?>').load('../<?php echo $path;?>deppo/tools/script/location.php?ne=ulke&sID=<?php if($nx["n3"]<>""){echo $nx["n3"];}else{echo $module["countrycode"];}?>');
									jQuery('#il<?php echo $nx["id"];?>').load('../<?php echo $path;?>deppo/tools/script/location.php?ne=il&ID=<?php if($nx["n3"]<>""){echo $nx["n3"];}else{echo $module["countrycode"];}?>&sID=<?php echo $nx["n4"]?>');
									jQuery('#ilce<?php echo $nx["id"];?>').load('../<?php echo $path;?>deppo/tools/script/location.php?ne=ilce&ID=<?php echo $nx["n4"]?>&sID=<?php echo $nx["n5"]?>');
									jQuery('#semt<?php echo $nx["id"];?>').load('../<?php echo $path;?>deppo/tools/script/location.php?ne=semt&ID=<?php echo $nx["n5"]?>&sID=<?php echo $nx["n11"]?>');
								});
								jQuery('#ulke<?php echo $nx["id"];?>').on('change', function(){
									var ID = jQuery('#ulke<?php echo $nx["id"];?> option:selected').attr('ID');
									if(ID!=<?php echo $module["countrycode"]?>){
										jQuery("#iil<?php echo $nx["id"];?>").attr("required", "true");
										jQuery("#iilce<?php echo $nx["id"];?>").attr("required", "true");
										jQuery("#isemt<?php echo $nx["id"];?>").attr("required", "true");
										jQuery('#il<?php echo $nx["id"];?>').attr('name', '_nx4'); jQuery('#iil<?php echo $nx["id"];?>').attr('name', 'nx4');
										jQuery('#ilce<?php echo $nx["id"];?>').attr('name', '_nx5'); jQuery('#iilce<?php echo $nx["id"];?>').attr('name', 'nx5');
										jQuery('#semt<?php echo $nx["id"];?>').attr('name', '_nx11'); jQuery('#isemt<?php echo $nx["id"];?>').attr('name', 'nx11');
										jQuery('#iil<?php echo $nx["id"];?>').show(); $('#il<?php echo $nx["id"];?>').attr("style", "display: none !important");
										jQuery('#iilce<?php echo $nx["id"];?>').show(); jQuery('#ilce<?php echo $nx["id"];?>').attr("style", "display: none !important");
										jQuery('#isemt<?php echo $nx["id"];?>').show(); jQuery('#semt<?php echo $nx["id"];?>').attr("style", "display: none !important");
									}else{
										jQuery("#il<?php echo $nx["id"];?>").attr("required", "true");
										jQuery("#ilce<?php echo $nx["id"];?>").attr("required", "true");
										jQuery("#semt<?php echo $nx["id"];?>").attr("required", "true");
										jQuery('#iil<?php echo $nx["id"];?>').attr('name', '_nx4'); jQuery('#il<?php echo $nx["id"];?>').attr('name', 'nx4');
										jQuery('#iilce<?php echo $nx["id"];?>').attr('name', '_nx5'); jQuery('#ilce<?php echo $nx["id"];?>').attr('name', 'nx5');
										jQuery('#isemt<?php echo $nx["id"];?>').attr('name', '_nx11'); jQuery('#isemt<?php echo $nx["id"];?>').attr('name', 'nx11');
										jQuery('#iil<?php echo $nx["id"];?>').hide(); jQuery('#il<?php echo $nx["id"];?>').show();
										jQuery('#iilce<?php echo $nx["id"];?>').hide(); jQuery('#ilce<?php echo $nx["id"];?>').show();
										jQuery('#isemt<?php echo $nx["id"];?>').hide(); jQuery('#semt<?php echo $nx["id"];?>').show();
										jQuery('#il<?php echo $nx["id"];?>').load('../<?php echo $path?>deppo/tools/script/location.php?ne=il&ID=<?php echo $module["countrycode"]?>');
									}
								})
								jQuery('#ulke<?php echo $nx["id"];?>').on('change', function(){
									var ID = jQuery('#ulke<?php echo $nx["id"];?> option:selected').attr('ID');
									jQuery('#il<?php echo $nx["id"];?>').load('../<?php echo $path?>deppo/tools/script/location.php?ne=il&ID='+ID);
								});
								jQuery('#il<?php echo $nx["id"];?>').on('change', function(){
									var ID = jQuery('#il<?php echo $nx["id"];?> option:selected').attr('ID');
									jQuery('#ilce<?php echo $nx["id"];?>').load('../<?php echo $path?>deppo/tools/script/location.php?ne=ilce&ID='+ID);
								});
								jQuery('#ilce<?php echo $nx["id"];?>').on('change', function(){
									var ID = jQuery('#ilce<?php echo $nx["id"];?> option:selected').attr('ID');
									jQuery('#semt<?php echo $nx["id"];?>').load('../<?php echo $path?>deppo/tools/script/location.php?ne=semt&ID='+ID);
								});
							</script>
						<?php }?>
					</div>
				</fieldset>
			</div>
		</div>
	</div>
	<?php
	if($_GET["durum"]=="adress"){
//-------------------------------------------------------------------------------->
		if(!empty($_GET["adress_id"])){
			$Rsq = mysqli_query($conn, "update t1 set t3='".$_POST['type']."', n1='".$_POST['nx1']."', n2='".$_POST['nx2']."', n3='".$_POST['nx3']."', n4='".$_POST['nx4']."', n5='".$_POST['nx5']."', n6='".$_POST['nx6']."', n7='".$_POST['nx7']."', n8='".$_POST['nx8']."', n9='".$_POST['nx9']."', n10='".$_POST['nx10']."', s10='".$_POST['sx10']."' Where t1='".$_GET['ne']."' and id='".$_GET['adress_id']."' ");
		}else{
			$conn->query("insert INTO t1(t1,t2,t3,ne,n1,n2,n3,n4,n5,n6,n7,n8,n9,n10,s1,s2,s10) VALUES ('".$_GET['ne']."', '".$_SESSION['lang']."', '".$_POST['type']."', 'adress', '".$_POST['nx1']."', '".$_POST['nx2']."', '".$_POST['nx3']."', '".$_POST['nx4']."', '".$_POST['nx5']."', '".$_POST['nx6']."', '".$_POST['nx7']."', '".$_POST['nx8']."', '".$_POST['nx9']."', '".$_POST['nx10']."', '".$_GET['id']."', '".$_POST['sx2']."', '".$_POST['sx10']."');");
		}
		echo location("?ne=".$_GET["ne"]."&islem=".$_GET["islem"]."&id=".$_GET["id"]."&durum=ok&#tab-adress&tab-ext".$_POST["sx2"]."",self,500,1);
//------------------------------------------------------------------------------------------------>
	}elseif($_GET["durum"]=="adress_s"){
		$sql = mysqli_query($conn, "delete from t1 where id=".$_GET["adress_id"]);	
		echo location("?ne=".$_GET["ne"]."&islem=".$_GET["islem"]."&id=".$_GET["id"]."&durum=ok&#tab-adress&tab-ext".$_POST["sx2"]."",self,500,1);
//------------------------------------------------------------------------------------------------>
	}
	?>