<?php
require 'include/configurations.php'; // ITECHBIDS Configuration File
if(isset($_POST['btn_Activate'])) {
$style=$_POST['chkStyle'];
$sel_res=mysql_query("select * from css");
while($sel_row=mysql_fetch_array($sel_res)) {
	if($style==$sel_row['css_id'])
	$act_res=mysql_query("update css set status='active' where css_id=$style");
	else 
	$act_res=mysql_query("update css set status='inactive' where css_id=".$sel_row['css_id']);
}
}
?>
>
<style type="text/css">
<!--
.style1 {
	color: #666666;
	font-weight: bold;
}
.style3 {color: #666666; font-size: 11px; font-family:Arial, Helvetica, sans-serif}
-->
</style>
<table align="center" width="80%" class="ft" cellpadding="2">
<form name="frm" method="post"  action="<? $_SERVER['PHP_SELF']?>">
  <tr class="ct" height="25"> 
    <td height="24" colspan="3">Contact Seller Settings</td>
  </tr>
  <tr > 
    <td colspan="2">Giving anybody the option to contact sellers through your website is not recommended.</td>
  </tr>
  <?
  $ask_tab=mysql_query("select * from genaralsettings where set_id=45");
  $ask_row=mysql_fetch_array($ask_tab);
  
   ?>
  <tr > 
    <td width="10%" align="center">
	<input type="radio" class="noborder" name="chkStyle" <? if($ask_row['set_value']==1){ ?> checked="checked" <? } ?> value=1>
	</td>
    <td width="89%"> Any visitor can contact the seller 
    </td>
  </tr>
  <tr > 
    <td width="5%"  align="center">
	<input type="radio" class="noborder" name="chkStyle"  <? if($ask_row['set_value']==2){ ?> checked="checked" <? } ?> value=2>
	</td>
    <td width="89%">Only logged in users can contact the seller  
    </td>
  </tr>
  <tr > 
    <td width="5%"  align="center">
	<input type="radio" class="noborder" name="chkStyle"  <? if($ask_row['set_value']==3){ ?> checked="checked" <? } ?> value=3>
	</td>
    <td width="89%"> Nobody can contact the seller 
    </td>
  </tr>
  <tr> 
    <td align="center" colspan="3"><input type="submit" class="button"   name="btn_ask" value="Activate" ></td>
  </tr>
</form></table>

