<?php echo $header; ?><?php echo $column_right; ?>
<div id="content"><?php echo $content_top; ?>
  <?php if ($error_warning) { ?>
  <div class="warning"><?php echo $error_warning; ?></div>
  <?php } ?>
  <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="edit">
    <h3><?php echo 'FEEDBACK & CONVERSATION'; ?></h3>
	<hr>

	<div style="width:900px;">
		<div style="width:400px;float:left;">
		<?php foreach ($passing_sketchids as $passing_sketchid) { ?>
		<div style="float:left;color:grey;font-family:calibri;">Design Id: &nbsp;&nbsp;#<?php echo $selected_sketchid; ?>  </div>
		<div style="text-align:right;color:grey;font-family:calibri;">Designer: &nbsp;&nbsp;<span style="color:#3381FF;"><?php echo $passing_sketchid['designer_name']; ?></span></div>
			<?php if ($passing_sketchid['thumb']) { ?>
					<div class="image"><img style="border:2px solid #EBEAEA;" src="<?php echo $passing_sketchid['thumb']; ?>"  /></div>
				<?php } ?>
				<input type="hidden" name="sketch_assignment_id" value="<?php echo $passing_sketchid['sketch_assg_id']; ?>" />
				<input type="hidden" name="name" value="<?php echo $designer_name; ?>" />
				<input type="hidden" name="des_email" value="<?php echo $designer_email; ?>" />
				<?php } ?> 
		</div>
		<div style="width:490px;float:left;">
		
			<div style="text-align:center;position:relative;left:60px;margin-left: -22px;" class="textareastyle">
				 <textarea rows="4" cols="40" name="comment" onclick="this.value = '';" style="font-style: italic;color:green;border:none;background: none;" class="textareastyle1"> Write your feedback/ message  </textarea> 
				<a style="position:relative;left: 218px;top: 10px;" onclick="$('#edit').submit();doalert();" class="button"><span>Submit</span></a>
			</div>
			
	<!--	<div class="feedback_comments_top">
		<?php foreach ($passing_comments as $passing_comment) { ?>
			<div class="feedback_comments"><span style="margin-left:10px;margin-top:10px;"><?php echo $passing_comment['comment']; ?></span></div>
			<?php $originalDate = $passing_comment['creation_date_time']; ?>
			<?php $newDate = date("d-M-Y H:i", strtotime($originalDate)); ?>
			<div style="text-align:right;position:relative;top:10px;right:20px;"><span style="color:#3381FF;"><?php echo $passing_comment['name']; ?></span> on <?php echo $newDate; ?></div>
			<br>
		<?php } ?> 
	    </div> -->
		

	 <div class="scrollbar" id="style-1">
	 <div class="force-overflow">
		<div class="feedback_comments_top">
		<?php foreach ($passing_comments as $passing_comment) { ?>
		<?php $is_cus = $passing_comment['is_customer']; 
			if($is_cus==2) { ?>
			<div class="feedback_comments_designer"><span style="position: absolute;max-width: 456px;top: 16px;left: 26px;"><?php echo $passing_comment['comment']; ?></span></div>
			<?php } else { ?>
			<div class="feedback_comments"><span style="position: absolute;max-width: 456px;top: 16px;left: 26px;"><?php echo $passing_comment['comment']; ?></span></div>
			<?php } ?>
			<?php $originalDate = $passing_comment['creation_date_time']; ?>
			<?php $newDate = date("d-M-Y H:i", strtotime($originalDate)); ?>
			<div style="text-align:right;position:relative;top:-6px; margin-bottom: -20px;margin-right: 16px;"><i><span style="font-size: 12px;color:#3381FF;"><?php echo $passing_comment['name']; ?></span> <b> on <?php echo $newDate; ?></b></i></div>
			<br>
		<?php } ?> 
	    </div> 
	    </div> 
	    </div> 
		
	
	
			
		</div>
		
	
		
	</div>
	
	
	
		</div>
		

		

	
  </form>
  <?php echo $content_bottom; ?>
<?php echo $footer; ?>
<script type="text/javascript"><!--
$('#tabs a').tabs();
//--></script> 
<script type="text/javascript"><!--
function doalert()
{
alert('Your comment has been successfully posted');
}
//--></script> 
