<?php 	if(! function_exists('check_session')){ die(); } ?>

	<center>
	<?php 
	$what	= $GLOBALS['what'];
	$rows	= $GLOBALS['rows'];
	switch($what){
	case 'add':
		$link	= 'services.php?step=insert';
		$w1		= 'إضافة';
	break;
	case 'edit':
		$link	= 'services.php?step=update&id='.$rows['id'].'&to='.$_GET['to'];
		$w1		= 'تعديل';
	break;
	}
	?>
    <form method="post" action="<?= $link; ?>">

	  <table style="width: 90%">
		  <tr>
			  <td class="head"><?= $w1; ?> خدمة</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="title" type="text" value="<?= $rows['title']; ?>" />
			</td>
		  </tr>
		  <tr>
			  <td class="right_table" >&nbsp;وصف قصير :-&nbsp;</td>
			  <td class="left_table">
				  <input name="desc" type="text" value="<?= $rows['desc']; ?>" />
			</td>
		  </tr>
		  <tr>
			  <td class="right_table" >&nbsp;ملاحظات إضافية:-&nbsp;</td>
			  <td class="left_table">
				  <textarea name="text" style="width: 43 0px;height: 100px;font-size:9pt;font-family:Tahoma"><?= $rows['text']; ?></textarea>
				  <br />
				 
			</td>
		  </tr>
	


		  </table>

	  
  <br/>
  <br/>
  <div align="center">
		<input type="submit" value="<?= $w1; ?> الخدمة" class="button" />
		</div>
			</form>

</center>