version 0.0.4
[fms.git] / admin / identitytrust.php
diff --git a/admin/identitytrust.php b/admin/identitytrust.php
new file mode 100644 (file)
index 0000000..51803f0
--- /dev/null
@@ -0,0 +1,44 @@
+<?php\r
+\r
+       include_once('config.php');\r
+       include_once('linkbar.php');\r
+       \r
+function content()\r
+{\r
+       \r
+       global $dblocation;\r
+       \r
+       $db=new PDO('sqlite:'.$dblocation);\r
+       $st=$db->prepare("SELECT IdentityID,Name,LocalMessageTrust,PeerMessageTrust,LocalTrustListTrust,PeerTrustListTrust FROM tblIdentity ORDER BY Name;");\r
+       $st->execute();\r
+       ?>\r
+       <h2>Identity Trust</h2>\r
+       <table>\r
+               <tr>\r
+                       <th>Peer</th>\r
+                       <th>Local Message Trust</th>\r
+                       <th>Peer Message Trust</th>\r
+                       <th>Local Trust List Trust</th>\r
+                       <th>Peer Trust List Trust</th>\r
+               </tr>\r
+               <?php\r
+               while($record=$st->fetch())\r
+               {\r
+               ?>\r
+               <tr>\r
+                       <td><?php print($record[1]) ?></td>\r
+                       <td><?php print($record[2]) ?></td>\r
+                       <td><?php print($record[3]) ?></td>\r
+                       <td><?php print($record[4]) ?></td>\r
+                       <td><?php print($record[5]) ?></td>\r
+               </tr>\r
+               <?php   \r
+               }\r
+               ?>\r
+       </table>\r
+       <?php\r
+}\r
+       \r
+       include_once('template.php');\r
+\r
+?>
\ No newline at end of file