-
Notifications
You must be signed in to change notification settings - Fork 0
/
FpResults1.php~
118 lines (106 loc) · 3.17 KB
/
FpResults1.php~
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<?php
session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Alameda County CAN</title>
<?php
include("head.html");
require("db_login.php");
include("./behavior/FpPHP.php");
//insert session information into database
if(!($_SESSION['sid'])){
recordUser($_SESSION['sid'],$_SESSION['user']);
}
//write query to get results list
echo $select;
?>
<link rel="stylesheet" type="text/css" href="FpStyles.css" />
<!--<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>-->
<script src="../accan2008.js"></script>
<script src="./behavior/FpJavascript.js"></script>
<script src="http://maps.google.com/maps?file=api&v=2&sensor=true_or_false
&key="ABQIAAAAXtN0WVWv5m8vIHBlntmQ9RT2yXp_ZAY8_ufC3CFXhHIE1NvwkxRo5FwrrjapPJbmXfiHBwHieCIkvw"
type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-697750-4";
urchinTracker();
</script>
</head>
<body>
<div id="container" style="border:solid blue">
<div align="left" style="border:solid black">
<?php
include("headernav.html");
?>
</div>
<div id="FpResults">
<?php
//Select and Write output to results list
mysql_data_seek($query,0);
$i=1;
$letter='A';
echo "<table id='ResultTable'>";
echo " <tr id='resultHeader'>
<th colspan='3'>Bank & Product</th>
<th>Direct Deposit</th>
<th>Internet Access</th>
<th>Money Transfers</th>
<th>Check Fees</th>
</tr>";
while($result=mysql_fetch_array($query, MYSQL_BOTH)){
echo '<tr id="FpSummary">
<td></td>
<td>'.$result[0].'</td>
<td ><a target="_blank" href="FpProfile.php?bank='.$result[0].'&product='.$result[1].'">'.$result[1].'</a></td>';
// stoplight colorscheme for results scoring
for($s=3;$s<=6;$s++){
switch($result[$s]){
case "1":
echo '<td><img src="red.png" /></td>';
break;
case "2":
echo '<td><img src="yellow.png" /></td>';
break;
case "3":
echo '<td><img src="green.png" /></td>';
break;
};
}
echo '</tr>';
//determines whether to display the incremental fee warning. Is there direct deposit and is the maintained balance lower than the fee waiver
$Maintfee='<tr><td colspan="3" class="alert">'.$result["Q7a"].'</td></tr>';
if($result['waive']==0){
echo $Maintfee;
}
elseif($result['waive']==1 and $result['maintain']<>null and $_POST['MAINTAIN']<=$result['maintain']){
echo $Maintfee;
}
elseif($_POST['Q7']==0 and $result['dd']==3){
echo $Maintfee;
}
else{
echo '<tr><td colspan="3" class="alert"></td>';
//<td colspan="2">Possible Account?</td><td><input id="institutionSelect" type="checkbox" value="'.$result["Product"].'"/></td></tr>';
}
echo '<tr style="border-bottom:solid thin green"><td colspan="7">'.$result['Assessment'].'</td></tr>';
}
echo "</table>";
?>
</div>
<div id="FpMap">
</div>
<div id="FpAnswers">
<div id="selectedProduct"><strong>Products of Interest</strong><hr /><ul></ul>
</div>
Please click the button below to record form data and to reset form for next client.<br />
<img src="../images/submit_button.png" />
</div>
<?php
include("footer.shtml");
?>
</div>
</body>
</html>