root/alternc-awstats/branches/r0/bureau/admin/aws_list.php

Revision 1030, 2.7 kB (checked in by anonymous, 4 years ago)

Initial revision

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 <?php
2 /*
3  $Id$
4  ----------------------------------------------------------------------
5  AlternC - Web Hosting System
6  Copyright (C) 2002 by the AlternC Development Team.
7  http://alternc.org/
8  ----------------------------------------------------------------------
9  Based on:
10  Valentin Lacambre's web hosting softwares: http://altern.org/
11  ----------------------------------------------------------------------
12  LICENSE
13
14  This program is free software; you can redistribute it and/or
15  modify it under the terms of the GNU General Public License (GPL)
16  as published by the Free Software Foundation; either version 2
17  of the License, or (at your option) any later version.
18
19  This program is distributed in the hope that it will be useful,
20  but WITHOUT ANY WARRANTY; without even the implied warranty of
21  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22  GNU General Public License for more details.
23
24  To read the license please visit http://www.gnu.org/copyleft/gpl.html
25  ----------------------------------------------------------------------
26  Original Author of file:
27  Purpose of file:
28  ----------------------------------------------------------------------
29 */
30 require_once("../class/config.php");
31
32 $nosta=false;
33 if (!$r=$stats->get_list()) {
34     $error=$err->errstr();
35     $nosta=true;
36 }
37
38 include("head.php");
39 ?>
40 </head>
41 <body>
42 <h3><?php __("Statistics List"); ?></h3>
43 <?php
44     if ($quota->cancreate("stats")) { ?>
45 <p>
46         - <a href="sta_add.php"><?php __("Create new Statistics"); ?></a><br />
47 </p>
48 <?php      }
49
50     if ($error) {
51         echo "<p class=\"error\">$error</p>";
52     }
53
54 if (!$nosta) {
55 ?>
56
57 <p>
58 <?php __("help_sta_list"); ?>
59 </p>
60 <form method="post" action="sta_del.php">
61 <table cellspacing="0" cellpadding="4">
62 <tr><th colspan="2">&nbsp;</th><th><?php __("Domain name"); ?></th><th><?php __("Language"); ?></th><th><?php __("Folder"); ?></th><th><?php __("View"); ?></th></tr>
63 <?php
64 reset($r);
65 $col=1;
66 while (list($key,$val)=each($r))
67     {
68     $col=3-$col;
69 ?>
70     <tr class="lst<?php echo $col; ?>">
71         <td><input type="checkbox" class="inc" id="del_<?php echo $val["id"]; ?>" name="del_<?php echo $val["id"]; ?>" value="<?php echo $val["id"]; ?>" /></td>
72         <td><a href="sta_edit.php?id=<?php echo $val["id"] ?>"><?php __("Edit"); ?></a></td>
73         <td><label for="del_<?php echo $val["id"]; ?>"><?php echo $val["hostname"] ?></label></td>
74         <td><?php echo _($stats->langname[$val["lang"]]); ?></td>
75         <td><code>/<?php echo $val["dir"] ?></code></td>
76         <td><?php
77     if ($uv=$bro->viewurl($val["dir"],"")) echo "<a href=\"$uv\">"._("View")."</a>";
78 ?>&nbsp;</td>
79     </tr>
80 <?php
81     }
82
83 ?>
84
85 <tr><td colspan="5"><input type="submit" class="inb" name="submit" value="<?php __("Delete the checked Statistics"); ?>" /></td></tr>
86 </table>
87 </form>
88
89 <?php $mem->show_help("sta_list");
90
91 }
92
93 ?>
94 </body>
95 </html>
96
Note: See TracBrowser for help on using the browser.