<?php if($rs["s16"]==0){?>
	<style>
		.rating {
			overflow: hidden;
			display: inline-block;
			font-size: 0;
			position: relative;
		}
		.rating-input {
			float: right;
			width: 16px;
			height: 16px;
			padding: 0;
			margin: 0 0 0 -16px;
			opacity: 0;
		}
		.rating:hover .rating-star:hover,
		.rating:hover .rating-star:hover ~ .rating-star,
		.rating-input:checked ~ .rating-star {
			background-position: 0 0;
		}
		.rating-star,
		.rating:hover .rating-star {
			position: relative;
			float: right;
			display: block;
			width: 16px;
			height: 16px;
			background: url('deppo/tools/img/star.png') 0 -16px;
		}
	</style>
	<div class="v3-row" style="">
		<?php 
		$sqlk=mysqli_query($conn, "select * from genel where ne='teklif' and s1=".$id." and s2=".$_SESSION["uye_id"].""); $rsk=mysqli_fetch_assoc($sqlk);
		if(mysqli_num_rows($sqlk)==0){
			?>
			<button id="bteklif" style="float:right; margin-right:10px;" class="v3-btn v3-btn-info" onclick="show('tform');hide('bteklif');"><?php echo $sdil[94]?></button>
			<form name="teklif" method="POST" action="/" id="tform" class="fcontrol2" style="display:none;">
				<?php $sqltm=mysqli_query($conn, "select * from t5 where id=".$rsu["s19"].""); $rstm=mysqli_fetch_assoc($sqltm);?>
				<input type="hidden" name="tid" value="<?php echo $id?>">
				<input type="hidden" name="uid" value="<?php echo $rstm["id"]?>">
				<div style="clear:both;"></div>
				<div class="v3-col-md-6">
					<label style="display:block;"><?php echo $sdil[84]?> : </label>
					<input type="text" class="v3-form-control icontrol" name="n1" <?php if(empty($_SESSION["uye_id"])){?>disabled<?php }?>>
				</div>
				<div class="v3-col-md-6">
					<label style="display:block;"><?php echo $sdil[77]?> : </label>
					<input type="text" class="v3-form-control icontrol" name="n2" <?php if(empty($_SESSION["uye_id"])){?>disabled<?php }?>>
				</div>
				<div class="v3-col-md-12">
					<label style="display:block;"><?php echo $sdil[24]?> : </label>
					<textarea name="n3" class="v3-form-control" tabindex="1" <?php if(empty($_SESSION["uye_id"])){?>disabled<?php }?>></textarea>
				</div>
				<div class="v3-col-md-12" style="margin-top:10px;">
					<button type="button" class="v3-btn v3-form-controlbtn-default" data-url="islem.php?islem=teklif" data-form="#tform" style="float:right; margin-left:5px;" ><?php echo $sdil[101]?></button>
				</div>
			</form>
		<?php }else{?>
			<button id="bteklif" style="float:right; margin-right:10px;" class="v3-btn v3-btn-info" onclick="show('tform');hide('bteklif');">Teklif Düzenle</button>
			<form name="teklif" method="POST" action="/" id="tform" class="fcontrol2" style="display:none;">
				<input type="hidden" name="id" value="<?php echo $rsk["id"]?>">
				<div style="clear:both;"></div>
				<div class="v3-col-md-6">
					<label style="display:block;"><?php echo $sdil[84]?> : </label>
					<input type="text" class="v3-form-control icontrol" name="n1" value="<?php echo $rsk["n1"]?>">
				</div>
				<div class="v3-col-md-6">
					<label style="display:block;"><?php echo $sdil[77]?> : </label>
					<input type="text" class="v3-form-control icontrol" name="n2" value="<?php echo $rsk["n2"]?>">
				</div>
				<div class="v3-col-md-12">
					<label style="display:block;"><?php echo $sdil[24]?> : </label>
					<textarea name="n3" class="v3-form-control" tabindex="1"><?php echo $rsk["n3"]?></textarea>
				</div>
				<div class="v3-col-md-12" style="margin-top:10px;">
					<button type="button" class="v3-btn v3-form-controlbtn-default" data-url="islem.php?islem=dteklif" data-form="#tform" style="float:right; margin-left:5px;" ><?php echo $sdil[101]?></button>
				</div>
			</form>
		<?php }?>
	</div>
	<table style="width:100%; border-radius:1px; border:solid 1px #ccc; margin-top:20px;">
		<?php
		$sqlt=mysqli_query($conn, "select * from genel where ne='teklif' and s1=".$id." order by id desc"); while($rst=mysqli_fetch_assoc($sqlt)){
			$sqlm=mysqli_query($conn, "select * from t5 where id=".$rst["s2"].""); $rsm=mysqli_fetch_assoc($sqlm);
			?>
			<tr>
				<td style="width:10%;"><img src="<?php echo medya($rsm["id"],1,"resim","t1","");?>" style="height:65px;" /></td>
				<td>
					<div style="float:left; font-weight:bold;"><?php echo $rsm["t1"]?></div><div style="float:right;margin-right:10px; font-weight:bold; font-size:14px;"><?php if($_SESSION["uye_id"]==$rst["s2"]){?><?php echo $rst["n1"]?><br><a class="v3-btn v3-btn-warning v3-btn-xs" href="islem.php?islem=steklif&id=<?php echo $rst["id"]?>"><?php echo $sdil[73] //İptal?></a><?php }?></div><br>
					<?php if($_SESSION["uye_id"]==$rst["s2"]){?><?php echo $rst["n3"]?><?php }else{?><?php echo $sdil[78]?><?php }?><br><?php echo $rst["ts1"]?></div>
				</td>
			</tr>
		<?php }?>
	</table>
	<div style="height:10px; clear:both;"></div>
	<?php }?>