version 0.0.4
[fms.git] / admin / identitytrust.php
1 <?php\r
2 \r
3         include_once('config.php');\r
4         include_once('linkbar.php');\r
5         \r
6 function content()\r
7 {\r
8         \r
9         global $dblocation;\r
10         \r
11         $db=new PDO('sqlite:'.$dblocation);\r
12         $st=$db->prepare("SELECT IdentityID,Name,LocalMessageTrust,PeerMessageTrust,LocalTrustListTrust,PeerTrustListTrust FROM tblIdentity ORDER BY Name;");\r
13         $st->execute();\r
14         ?>\r
15         <h2>Identity Trust</h2>\r
16         <table>\r
17                 <tr>\r
18                         <th>Peer</th>\r
19                         <th>Local Message Trust</th>\r
20                         <th>Peer Message Trust</th>\r
21                         <th>Local Trust List Trust</th>\r
22                         <th>Peer Trust List Trust</th>\r
23                 </tr>\r
24                 <?php\r
25                 while($record=$st->fetch())\r
26                 {\r
27                 ?>\r
28                 <tr>\r
29                         <td><?php print($record[1]) ?></td>\r
30                         <td><?php print($record[2]) ?></td>\r
31                         <td><?php print($record[3]) ?></td>\r
32                         <td><?php print($record[4]) ?></td>\r
33                         <td><?php print($record[5]) ?></td>\r
34                 </tr>\r
35                 <?php   \r
36                 }\r
37                 ?>\r
38         </table>\r
39         <?php\r
40 }\r
41         \r
42         include_once('template.php');\r
43 \r
44 ?>