<?php
include("CheckSession.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="馬戲團" />
<title>馬戲團</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<?php

require_once("class/DBConfig.php");
require_once("class/DBOperation.php");

$db = new DBOperation();

$db->connect_db($_DB['host'], $_DB['username'], $_DB['password'], $_DB['dbname']);
$db->query("SELECT * FROM SysConfig where SName = 'LINEVALUE'");
$row = $db->fetch_row();
$SValue = $row[1];
$db->close_db();

?>
<body>
<form method="post" action="LineSetUpDeal.php">
<table border="0" cellspacing="0" cellspadding="0" width="90%">
<tr>
<td align="left" colspan="2">
&nbsp;
</td>
</tr>
<tr>
<td align="left" colspan="2">
<span class="t14b"><b>尋寶設定</b></span>
</td>
</tr>
<tr>
<td align="left" colspan="2">
<table border="3" cellspacing="2" cellspadding="2" width="100%">
<tr>
<td align="left">
<span class="t12">尋寶狀態</span>
</td>
<td align="left">
<input type="radio" value="1" <?php if($SValue == "1") echo "checked"; elseif($SValue == null) echo "checked"; ?> name="SFlag" id="SFlag">
<span class="t12">能尋寶</span>
<input type="radio" value="0" <?php if($SValue == "0") echo "checked"; ?> name="SFlag" id="SFlag">
<span class="t12">不能尋寶</span>
</td>
</tr>
<tr>
<td  align="center" colspan="2">
<input type="submit" name="btnSub" id="btnSub" value="變更尋寶狀態" class="t12" />
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>
