<?php 	if(! function_exists('check_session')){ die(); } ?>
    <style type="text/css">
	.style4 {
		border-collapse: collapse;
		border: 1px solid #c0c0c0;
	}
	.style5 {
		font-family: Tahoma;
		font-size: 9pt;
	}
	.style6 {
		font-size: 9pt;
		border-left: 0px solid #C0C0C0;
		border-right-style: solid;
		border-right-width: 0px;
		border-top: 0px solid #C0C0C0;
		border-bottom-style: solid;
		border-bottom-width: 0px;
	}
	.style7 {
		font-family: Tahoma;
		font-size: 8pt;
		border-left: 0px solid #C0C0C0;
		border-right-style: solid;
		border-right-width: 1px;
		border-top: 0px solid #C0C0C0;
		border-bottom-style: solid;
		border-bottom-width: 0px;
		height: 30px;
	}
	.style8 {
		border-collapse: collapse;
		border-left-style: solid;
		border-left-width: 1px;
		border-right: 1px solid #C0C0C0;
		border-top-style: solid;
		border-top-width: 1px;
		border-bottom: 1px solid #C0C0C0;
	}
	.style9 {
		font-size: 8pt;
	 color:silver;
	}
	.style10 {
		font-size: 8pt;
	}
	.style11 {
		color: #C0C0C0;
	}
	</style>

	<center>
	<?php 
	$rows	= $GLOBALS['rows'];
	?>
    <form method="post" action="reply.php?step=update&id=<?= $rows['id']; ?>&to=<?= $_GET['to']; ?>">

	  <table style="width: 90%">
		  <tr>
			  <td class="head">تعديل رد</td>
		  </tr>
	  </table>
	  <table cellspacing="1" class="style4" style="width: 90%">
		  <tr>
			  <td class="right_table" >&nbsp;العنوان :-&nbsp;</td>
			  <td class="left_table">
				  <input name="subject" type="text" value="<?= $rows['subject']; ?>" />
			</td>
		  </tr>
		  <tr>
			  <td class="right_table" >&nbsp;نص التذكرة:-&nbsp;</td>
			  <td class="left_table">
				  <textarea name="text"><?= str_replace('<br />','
				  ',$rows['text']); ?></textarea>
			</td>
		  </tr>
				  <?php if($rows['user_id'] == 0){
				  ?><input name="change_name" type="hidden" value="1" />
		  <tr>
			  <td class="right_table" >&nbsp;الإسم:-&nbsp;</td>
			  <td class="left_table">
				  <input name="name" type="text" value="<?= $rows['name']; ?>" />
			</td>
		  </tr>
		  <tr>
			  <td class="right_table" >&nbsp;البريد الإلكتروني:-&nbsp;</td>
			  <td class="left_table">
				  <input name="email" type="text" value="<?= $rows['email']; ?>" />
			</td>
		  </tr>		  
				  
				  <?php }else{ ?>
				  <input name="change_name" type="hidden" value="2" />
				  <?php } ?>

		  </table>

	  
  <br/>
  <br/>
  <div align="center">
		<input type="submit" value="تحديث التعليق" class="button" />
		</div>
			</form>

