<html>
<head>
<title>{$site_name}</title>
<mets http-equiv=Content-Type content="text/html; charset=utf-8">
<link href="{$cssurl}/administrator.css" type=text/css rel=stylesheet>
</head>
<body>
<br>

<table width="90%" align="center" cellpadding="5" cellspacing="5">
<tr>
	<td>
    	<h3>Edit Administrator</h3>
    </td>
</tr>
<tr>
    <td colspan="2" height="1" bgcolor="#dfdfdf"></td>
</tr>
<table>

<form action="listadsedit.php" method="POST" enctype="multipart/form-data" name="form">
<table width="90%" align="center" cellpadding="5" cellspacing="5">
<tr>
	<td width="40%"><b>Description</b></td>
    <td>
    	<input type="text" id="description" name="description" value='{$advert.description}' size="40"><br>
    </td>
</tr>
<tr>
    <td width="40%" valign="top"><b>Code</b></td>
    <td>
    	<textarea name='code' rows=3 cols=40>{$advert.code}</textarea><br>
    </td>
</tr>
<tr>
    <td width="40%" valign="top"><b>Active</b></td>
    <td>
    	<input type="radio" value="1" name="active" id="active" {if $advert.active eq "1"}checked{/if}>Yes&nbsp;&nbsp;&nbsp;
        <input type="radio" value="0" name="active" id="active" {if $advert.active eq "0"}checked{/if}>No
    </td>
</tr>
<tr>
        <td colspan="2" align='center'>
        <input type="hidden" id="AID" name="AID" value='{$advert.AID}' size="40">
        <input type='submit' name='edit_ad' value='Submit'></td>
</tr>
<tr>
        <td colspan="2">&nbsp;</td>
</tr>
</table>
</form>

</body>
</head>
</html>