<?php session_start();  //Developed by ITechScripts
$username=$_SESSION['adminuser'];
	require 'include/configurations.php'; // ITECHBIDS Configuration File
      require 'include/header.php';
	$typee=$_GET['typee'];
if($typee=="edit")
{
$rdmodes=$_POST['rdmodes'];
$sql="update admin_commission set site_mode='$rdmodes' where auto=1";
$sqll=mysql_query($sql);
}
	$canChange=$_POST['canChange'];
	$mode_query="select * from admin_commission where auto=1";
	$mode_result=mysql_query($mode_query);
	$mode_row=mysql_fetch_array($mode_result);
	$defaultmode =$mode_row['site_mode'];
?>
<table border="0" align="center" width="80%" cellpadding="5" cellspacing="2" class="ft">

<tr class="ct" height="25"><td colspan="3"> Site Mode Manager</td></tr>

<tr>

  <td colspan="3">

  Here you can Set your site mode.

  </td>

</tr>

<tr height="25"><td align="center"><b></b></td>

<td align="center" colspan="2"><b></b></td>

</tr>

<form name="frmLevel1" action="site_mode.php?typee=edit" method="post" onSubmit="this.canChange.value=1;">
<?
?>
<tr ><td align="left"><input type="radio" name="rdmodes" value="account" <? if($defaultmode=="account") echo 'checked';?>>Account Mode</td>
<td align="left"><input type="radio" name="rdmodes" value="live" <? if($defaultmode=="live") echo 'checked';?>>Live Payment Mode</td>
</tr>
<tr height="25"><td align="center"><b></b></td>
<td align="center" colspan="2"><b></b></td>
</tr>
<tr class="ct" height="25">
<td align="center" colspan="3"><input type="hidden" name="canChange" size="20" value="0"><input name="Submit" type="submit" class="button" value="Update" /></td>

</tr>
<tr height="25">

<td align="left" colspan="3"><BR><B>Account Mode:</B> Every user has to add funds into his/her account and the
fund will be deducted whenever he/she will purchase any service or
product. Every transaction is executed from the user’s account balance.<BR><BR>

<B>Live Payment Mode:</B> Every transaction will involve live payments using
payment gateways chosen by the admin. Viz Paypal, 2CO etc.
</td>

</tr>

</form>
</table>
<?
require 'include/footer.php';
?>