Hacked By AnonymousFox
<?
include("../lib/session.php");
include("../lib/config.php");
include("../lib/connect.php");
include("../lib/function.php");
?>
<html><!-- InstanceBegin template="/Templates/WebEngine-Adminpanel-Popup.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title> <?=$System_Variable_Title?>
</title>
<!-- InstanceEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<!-- InstanceBeginEditable name="head" -->
<style type="text/css">
<!--
.style1 {color: #990000}
-->
</style>
<!-- InstanceEndEditable -->
<link href="../css/mystyle1.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#000000">
<tr valign="top">
<td align="center" valign="top" bgcolor="#FFFFFF"><!-- InstanceBeginEditable name="Programmable Region" --> <br>
<?
include("config.php");
?>
<table width="95%" height="22" border="0" cellpadding="2" cellspacing="0" class="table_header">
<tr>
<td width="30" align="center"></td>
<td>
Counter
</td>
</tr>
</table>
<table width="94%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="1" class="table_col3"><img src="../images/blank.gif" width="10" height="2"></td>
</tr>
<form action="?" method="post" name="myPageRedirectForm" id="myPageRedirectForm">
<input name="GroupID" type="hidden" id="GroupID" value="<?=$GroupID?>">
<input name="SystemModuleKey" type="hidden" id="SystemModuleKey" value="<?=$SystemModuleKey?>">
<input name="SystemMenuID" type="hidden" id="SystemMenuID" value="<?=$SystemMenuID?>">
<input name="MemberID" type="hidden" id="MemberID" value="<?=$MemberID?>">
</form>
</table>
<br>
<br>
<table width="90%" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td bgcolor="#FFFFFF" class="table_col2"> <table width="100%" border="0" cellpadding="0" cellspacing="1">
<tr>
<td height="24" colspan="2" align="center" class="menu_table_header">คะแนนสะสมของท่าน</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="1">
<tr>
<td> <table width="100%" border="0" cellpadding="2" cellspacing="1" class="table_header">
<tr>
<td height="22" colspan="2" class="table_col3"> <img src="../../webengine/images/bullet/box21.gif" width="11" height="11"> ประวัติคะแนนสะสม</td>
</tr>
<tr>
<td height="22" colspan="2" align="center" class="table_col1"><table width="90%" border="0" cellpadding="1" cellspacing="2" bordercolor="#FF9900">
<tr align="center">
<td><strong>ลำดับ</strong></td>
<td><strong>ชื่อชนิดการสะสม</strong></td>
<td><strong>จำนวนคะแนน/ครั้ง</strong></td>
<td><strong>จำนวนครั้งที่ได้</strong></td>
<td><strong>จำนวนคะแนนที่ได้</strong></td>
</tr>
<?
$sql = "SELECT * FROM ".$myModule_Table_ScoreType." ORDER BY ".$myModule_Table_ScoreType."_Ordering ASC";
$Query_ScoreType = mysql_query($sql);
$index = 0;
$sumCount = 0;
$sumScore = 0;
?>
<? while ($Row_ScoreType = mysql_fetch_array($Query_ScoreType)) { ?>
<tr>
<td>
<?=++$index?>
</td>
<td>
<?=$Row_ScoreType[$myModule_Table_ScoreType."_Name"]?>
</td>
<td align="right">
<?=$Row_ScoreType[$myModule_Table_ScoreType."_Score"]?>
</td>
<td align="right">
<?
$sql = "SELECT Count(*),Sum(".$myModule_Table_MemberScore."_Score) FROM ".$myModule_Table_MemberScore." WHERE ".$myModule_Table_MemberScore."_MemberID=".$MemberID." AND ".$myModule_Table_MemberScore."_ScoreTypeKey='".$Row_ScoreType[$myModule_Table_ScoreType."_Key"]."'";
$Query_MemberScore = mysql_query($sql);
$Row_MemberScore = mysql_fetch_array($Query_MemberScore);
$thisCount = $Row_MemberScore[0];
$sumCount += $thisCount;
$thisScore = $Row_MemberScore[1];
$sumScore += $thisScore;
echo number_format($thisCount);
?>
</td>
<td align="right">
<?=number_format($thisScore)?>
</td>
</tr>
<? } ?>
<tr>
<td> </td>
<td> </td>
<td align="right"><strong>รวม</strong></td>
<td align="right">
<?=number_format($sumCount);?>
</td>
<td align="right">
<?=number_format($sumScore)?>
</td>
</tr>
</table></td>
</tr>
<tr>
<td height="22" colspan="2" class="table_col3"> <img src="../../webengine/images/bullet/box21.gif" width="11" height="11"> ข้อมูลคะแนนสะสม</td>
</tr>
<tr>
<td width="22%" height="22" align="right" class="table_col1"><font color="#000000">คะแนนรวม</font> </td>
<td width="78%" class="table_col2">
<?=number_format($sumScore)?>
</td>
</tr>
<tr>
<td height="22" align="right" class="table_col1"><font color="#000000">คะแนนที่ใช้ไป</font> </td>
<td class="table_col2">
<?
$usedScore = ($sumScore-getAvailableScore($MemberID));
echo number_format($usedScore);
?>
</td>
</tr>
<tr>
<td height="22" align="right" class="table_col1"><font color="#000000">คะแนนที่เหลือ</font> </td>
<td class="table_col2"><? $availScore = number_format($sumScore-$usedScore); echo $availScore; ?></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" height="24" border="0" cellpadding="3" cellspacing="0">
<tr align="right">
<td height="30" colspan="4" align="center" class="table_footer">
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<br>
<br>
<!-- InstanceEndEditable --></td>
</tr>
</table>
</body>
<!-- InstanceEnd --></html>
<?
include("../lib/disconnect.php");
?>
Hacked By AnonymousFox1.0, Coded By AnonymousFox