/[projects]/smsdaemon/webinterface/viewaccount.php
ViewVC logotype

Contents of /smsdaemon/webinterface/viewaccount.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 198 - (show annotations) (download)
Thu Dec 18 19:52:25 2008 UTC (15 years, 5 months ago) by torben
File size: 953 byte(s)
Add some no-caching headers and make the html pass validation

1 <?
2 require("nocache.php");
3 require("mysql.php");
4
5 $id = $_GET["id"];
6
7 $id = intval($id);
8
9 $sql = "SELECT owner,smscount,totalcount,lastsend,lastreset,enabled FROM smscount WHERE id=$id";
10
11 $res = query($sql);
12
13 $owner = $res[0]->owner;
14 $smscount = $res[0]->smscount;
15 $lastsend = $res[0]->lastsend;
16 $lastreset = $res[0]->lastreset;
17 $enabled = $res[0]->enabled;
18 $totalcount = $res[0]->totalcount;
19
20 ?>
21 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
22 <head>
23 <title>View SMS Account</title>
24 </head>
25 <body>
26 <table border=1 cellspacing=0>
27 <tr>
28 <td>Owner</td>
29 <td><?=$owner?></td>
30 </tr>
31 <tr>
32 <td>smscount</td>
33 <td><?=$smscount?></td>
34 </tr>
35 <tr>
36 <td>Total count</td>
37 <td><?=$totalcount?></td>
38 </tr>
39 <tr>
40 <td>Last sms send</td>
41 <td><?=$lastsend?></td>
42 </tr>
43 <tr>
44 <td>Last count reset</td>
45 <td><?=$lastreset?></td>
46 </tr>
47 <tr>
48 <td>Enabled</td>
49 <td><?=$enabled?></td>
50 </tr>
51 </table>
52
53 </body>
54 </html>

  ViewVC Help
Powered by ViewVC 1.1.20