From 210f1c930825f872aa6003f37a8908a63c2c91f5 Mon Sep 17 00:00:00 2001
From: Mika Havela
Date: Tue, 6 May 2008 15:11:55 +0000
Subject: Changing buttons to be cfe's (coming from controller) rather than
created by the view-file. Reorganized the view-files so they look a bit more
like other ACF's.
git-svn-id: svn://svn.alpinelinux.org/acf/dansguardian/trunk@1108 ab2d0c66-481e-0410-8bed-d214d4d58bed
---
dansguardian-general-html.lsp | 88 +++++++++++++++++++++++++++++--------------
1 file changed, 59 insertions(+), 29 deletions(-)
(limited to 'dansguardian-general-html.lsp')
diff --git a/dansguardian-general-html.lsp b/dansguardian-general-html.lsp
index 10ea6b7..2a4ca5c 100644
--- a/dansguardian-general-html.lsp
+++ b/dansguardian-general-html.lsp
@@ -1,4 +1,5 @@
+require("viewfunctions")
local form = ...
local data = form.option
local service = form.service
@@ -6,7 +7,7 @@
local srv1fill = ""
local srv2fill = "disabled"
- if form.info.status.value == "running" then
+ if form.info.status.value == "Enabled" then
srv1fill = "disabled"
srv2fill = ""
end
@@ -18,7 +19,24 @@
end
?>
-Content Filter
+
+
+--[[ DEBUG INFORMATION
+io.write("DEBUGGING
DEBUG INFO: CFE
")
+io.write(html.cfe_unpack(form))
+io.write("")
+--]]
+?>
+
+SYSTEM INFO
+
+
+local myform = form.info
+local tags = { "status", "version", "autostart", }
+displayinfo(myform,tags,"viewonly")
+?>
+
+
General Information
DansGuardian is web content filtering software. It works as a web proxy,
@@ -31,52 +49,64 @@ generally not necessary. DansGuardian must be used in combination with a
This page defines the basic network configuration settings for DansGuardian.
-Status
-- Program version
- io.write( form.info.version.value ) ?>
-- Process status
- io.write( form.info.status.value ) ?>
-- Process information
- This process runs as a service. When you make
-and save changes, the configuration files for the service are changed.
-However, the changes will not be applied until you restart the service.
-
-
-
-
io.write( service.message ) ?>
-
+MANAGEMENT
+
--
cgit v1.2.3