eliminating possible xss
[anyfivecardpokerhand.git] / style / tpl / index.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>Anyfivecardpokerhand - demo</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script type="text/javascript" src="https://www.google.com/jsapi"></script>
    <script type="text/javascript">
        google.load("jquery", "1.7.1");
        google.load("jqueryui", "1.8.16");
    </script>

    <link type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.17/themes/black-tie/jquery-ui.css" rel="stylesheet" media="all" />
    <link type="text/css" href="style/css/colors-classic.css" rel="stylesheet" />
    <link type="text/css" href="style/css/colors-fresh.css" rel="stylesheet" />
    <link type="text/css" href="style/css/global.css" rel="stylesheet" />
</head>
<body class="wp-admin">
<div id="wrapper">

	<table class="widefat post fixed">
		<tr>
			<th class="manage-column">Filters</th>
		</tr>
		<tr>
			<td>
				<form id="filterform" method="get" action="">
	    			<select name="hand" id="hand">
	    				<option value="">all - {$stats.all}</option>
						{foreach key=k item=v from=$hands}
						<option value="{$k}"{if $smarty.get.hand && $smarty.get.hand == $k} selected="selected"{/if}>{$v} - {$stats.$k}</option>
						{/foreach}
					</select>
					<select name="card" id="card">
	    				<option value="">all</option>
						{foreach key=k item=card from=$cards}
							{foreach key=k2 item=type from=$types}
							<option value="{$card} {$type}"{if $smarty.get.card && $smarty.get.card == "$card $type"} selected="selected"{/if}>{$card} {$type}</option>
							{/foreach}
						{/foreach}
					</select>
					<input type="submit" name="sub" value="Filter" />
				</form>
			</td>
		</tr>
	</table>

	<div id="content">
		{include file="table.tpl"}
	</div>

</div>

{literal}
<script type="text/javascript">
	/*
	$("#hand").change (function (){
		$("#content").load ("index.php?hand="+encodeURIComponent($(this).val())+"&ajax=true");
	});
	*/
	$("#filterform").submit (function (){
		$("#content").load ("index.php?hand="+encodeURIComponent($("#hand").val())+"&card="+encodeURIComponent($("#card").val())+"&ajax=true");
		return false;
	});
</script>
{/literal}

</body>
</html>
comments