<?php
	$path="../../";
	include("../../map.php");
	include("../../jquery.php");
	$sqlf=mysqli_query($conn, "select * from t4 where ne='furun' and id=".$_GET["fid"]." order by id desc"); $rsfu=mysqli_fetch_assoc($sqlf);
	$jsi = json_decode($rsfu["n17"], true);
?>
<div class="v3-col-md-12 v3-row">
	<?php $i=0;$sqli=mysqli_query($conn, "select * from genel where ne='inputs' and (t2='All' or t2='".$_SESSION["lang"]."') and n3='kayit' and n4<>'switch' and (n2='0' or n2='".$_GET["uid"]."') and n6='required' and s1=0 order by s10,id asc"); while($rsi=mysqli_fetch_assoc($sqli)){$i++;?>
		<fieldset class="v3-col-md-3" style="">
		<legend><i class="<?php echo $rsi["n14"]?>"></i> <?php echo $rsi["n1"];?> <span style="font-size:8px; color:#ccc;"> (i<?php echo $i;?>)</span></legend>
		<?php if($rsi["n4"]=="input"){?>
		<input class="form-control <?php echo $rsi["n13"]?>" type="<?php echo $rsi["n5"]?>" name="i<?php echo $i;?>" value="<?php echo $jsi["i".$i.""];?>" placeholder="<?php echo $rsi["n11"]?>" style="" <?php echo $rsi["n8"]?> <?php echo $rsi["n6"]?>>
		<?php }elseif($rsi["n4"]=="textarea"){?>
		<textarea class="form-control <?php echo $rsi["n13"]?>" name="i<?php echo $i;?>" placeholder="<?php echo $rsi["n11"]?>" <?php echo $rsi["n8"]?> <?php echo $rsi["n6"]?>><?php echo $jsi["i".$i.""];?></textarea>
		<?php }elseif($rsi["n4"]=="select"){?>
		<select class="form-control <?php echo $rsi["n13"]?> chosen-select" name="i<?php echo $i;?>[]" style="" <?php echo $rsi["n8"]?> <?php echo $rsi["n6"]?>>
			<option value=""><?php echo $sdil[221]; //Lütfen Seçiniz?></option>
			<?php $o=0;$sqlo=mysqli_query($conn, "select * from genel where ne='inputs' and s1=".$rsi["id"]." order by s10 asc"); while($rso=mysqli_fetch_assoc($sqlo)){$o++;?>
			<option value="<?php echo $rso["n2"]?>" <?php $q="";foreach($jsi["i".$i.""] as $q){?><?php if($q==$rso["n2"] or $rso["n3"]==1){echo "selected";}}?>><?php echo $rso["n1"]?></option>
			<?php }?>
		</select>
		<?php }elseif($rsi["n4"]=="radio"){?>
		<?php $o=0;$sqlo=mysqli_query($conn, "select * from genel where ne='inputs' and t2='".$_SESSION["lang"]."' and s1=".$rsi["id"]." order by s10 asc"); while($rso=mysqli_fetch_assoc($sqlo)){$o++;?>
		<div style="float:left; margin-right: 5px;">
			<label style="float:left; margin-right:5px;"><?php echo $rso["n1"];?>
				<input type="radio" name="i<?php echo $i;?>" value="<?php echo $rso["n2"];?>" <?php echo $rsi["n8"]?> <?php if($jsi["i".$i.""]==$rso["n2"] or $rso["n3"]==1){echo "checked";}?>></label>
		</div>
		<?php }?>
		<?php }elseif($rsi["n4"]=="checkbox"){?>
		<?php $o=0;$sqlo=mysqli_query($conn, "select * from genel where ne='inputs' and t2='".$_SESSION["lang"]."' and s1=".$rsi["id"]." order by s10 asc"); while($rso=mysqli_fetch_assoc($sqlo)){$o++;?>
		<div style="float:left; margin-right: 5px;">
			<label style="float:left; margin-right:5px;"><?php echo $rso["n1"];?>
			<input type="checkbox" name="i<?php echo $i;?>[]" value="<?php echo $rso["n2"];?>" <?php echo $rsi["n8"]?> <?php foreach($jsi["i".$i.""] as $q){?><?php if($q==$rso["n2"] or $rso["n3"]==1){echo "checked";}?><?php }?>></label>
		</div>
		<?php }?>
		<?php }?>
		<p style="font-size:10px;"><?php echo $rsi["n9"];?></p>
		</fieldset>
	<?php }?>
</div>