
>
<form name="frm" method="post">
<table border="0" align="center" cellpadding="0" cellspacing="0" width="70%" class="ft">
<tr><td>
<table border="0" align="center" cellpadding="5" cellspacing="2" width="100%">
            <tr class="ct" height="25"> 
              <td height="24" colspan="2">Template Manager</td>
            </tr>
<tr>
  <td colspan="2">You can choose the site site default template</td>
  </tr>
<tr >
  <td><strong>Template Name</strong></td>
  <td><strong>Select</strong></td>
</tr>
<?
	require 'include/configurations.php'; // ITECHBIDS Configuration File
	
	if(isset($_POST['submit']))
{
$rdarr=$_POST['rdVal'];
$selsql="update templates set template='yes' where t_id=$rdarr";
$selres=mysql_query($selsql);
$selsql2="update templates set template='no' where t_id!=$rdarr";
$selres2=mysql_query($selsql2);
}
	$sql="select * from templates order by t_id";
	$result=mysql_query($sql);
	$i=1;
	while($row=mysql_fetch_array($result)) {
?>

<tr >
  <td><?=$row['folder'];?></td>
  <td><?php 
    if($row['template']=='yes') 
  {
$ttname=$row['t_id'];
  ?>
  <input type="radio" name="rdVal" value=<?=$row['t_id']?> checked>
  <?php
   }
   else
    { ?>
<input type="radio" name="rdVal" value=<?=$row['t_id']?>>
<?
}
?>
</td>
</tr>
<?
$i++;
	}
?>
<tr><td colspan="3" align="center"><input type="submit" class="button"   name="submit" value="Modify" ></td></tr>
</table></td>
</tr>
</table>
</form>