summaryrefslogtreecommitdiff
path: root/manager/public
diff options
context:
space:
mode:
authorMarkus Warg <markus@mawaunix.mawa.sls>2010-03-31 16:43:49 +0200
committerMarkus Warg <markus@mawaunix.mawa.sls>2010-03-31 16:43:49 +0200
commit4f4c5ce3ccf0370f926d75e700e8b0bd2208f3f6 (patch)
tree82cb017ac68772ea36c0f522ec019bf14fbdc77a /manager/public
parent8398c9048d34a1f51212ae770998fc082fc93b69 (diff)
downloadcacert-mgr-4f4c5ce3ccf0370f926d75e700e8b0bd2208f3f6.tar.gz
cacert-mgr-4f4c5ce3ccf0370f926d75e700e8b0bd2208f3f6.tar.xz
cacert-mgr-4f4c5ce3ccf0370f926d75e700e8b0bd2208f3f6.zip
initial setup of framework code
enabled features * login * crt login * top / left menu * logging * db layer
Diffstat (limited to 'manager/public')
-rw-r--r--manager/public/.htaccess10
-rw-r--r--manager/public/css/form_dl.css23
-rw-r--r--manager/public/css/form_dl_wide.css24
-rw-r--r--manager/public/css/global.css123
-rw-r--r--manager/public/css/login.css11
-rw-r--r--manager/public/favicon.icobin0 -> 1406 bytes
-rw-r--r--manager/public/img/cacert4.pngbin0 -> 6421 bytes
-rw-r--r--manager/public/index.php51
-rw-r--r--manager/public/js/center.js10
-rw-r--r--manager/public/js/positionUserInfo.js17
10 files changed, 269 insertions, 0 deletions
diff --git a/manager/public/.htaccess b/manager/public/.htaccess
new file mode 100644
index 0000000..d38ce5e
--- /dev/null
+++ b/manager/public/.htaccess
@@ -0,0 +1,10 @@
+php_value session.auto_start 0
+
+SetEnv APPLICATION_ENV development
+
+RewriteEngine On
+RewriteCond %{REQUEST_FILENAME} -s [OR]
+RewriteCond %{REQUEST_FILENAME} -l [OR]
+RewriteCond %{REQUEST_FILENAME} -d
+RewriteRule ^.*$ - [NC,L]
+RewriteRule ^.*$ index.php [NC,L]
diff --git a/manager/public/css/form_dl.css b/manager/public/css/form_dl.css
new file mode 100644
index 0000000..c3dc8c0
--- /dev/null
+++ b/manager/public/css/form_dl.css
@@ -0,0 +1,23 @@
+@CHARSET "UTF-8";
+
+#content dl.zend_form label.required {
+ color: #000000;
+ font-weight: bold;
+}
+
+#content dl.zend_form {
+ display: block;
+}
+
+#content dl.zend_form dt {
+ display: block;
+ float: left;
+ width: 125px;
+ margin: 10px;
+}
+
+#content dl.zend_form dd {
+ display: block;
+ clear: right;
+ padding: 10px;
+}
diff --git a/manager/public/css/form_dl_wide.css b/manager/public/css/form_dl_wide.css
new file mode 100644
index 0000000..6f8ed41
--- /dev/null
+++ b/manager/public/css/form_dl_wide.css
@@ -0,0 +1,24 @@
+@CHARSET "UTF-8";
+
+#content dl.zend_form label.required {
+ color: #000000;
+ font-weight: bold;
+}
+
+#content dl.zend_form {
+ display: block;
+ font-size: 0.8em;
+}
+
+#content dl.zend_form dt {
+ display: block;
+ float: left;
+ width: 350px;
+ margin: 10px;
+}
+
+#content dl.zend_form dd {
+ display: block;
+ clear: right;
+ padding: 10px;
+}
diff --git a/manager/public/css/global.css b/manager/public/css/global.css
new file mode 100644
index 0000000..b289414
--- /dev/null
+++ b/manager/public/css/global.css
@@ -0,0 +1,123 @@
+@CHARSET "UTF-8";
+
+html {
+ font-family: sans-serif;
+ background-color: #cccccc;
+ color: #333333;
+ overflow: scroll;
+}
+
+#center {
+ position: absolute;
+ width: 1000px;
+ left: 50%;
+ margin-left: -500px;
+}
+
+#header {
+ background-color: #F5F7F7;
+ width: 99%;
+ height: 30px;
+ top: 0px;
+ left: 0px;
+ position: absolute;
+ padding: 3px;
+ margin: 3px;
+}
+
+#header-logo {
+ float: left;
+ color: #FFFFFF;
+}
+
+#header-navigation {
+ float: right;
+}
+
+#header-navigation ul {
+ list-style-type: none;
+ padding: 0px;
+ margin: 0px;
+ font-size: 1.2em;
+}
+
+#header-navigation ul li {
+ padding-left: 5px;
+ margin-left: 5px;
+ display: inline;
+}
+
+#header-navigation ul li a {
+ text-decoration: none;
+ color: #000000;
+}
+
+#header-navigation ul li a:hover {
+ color: #777777;
+}
+
+#header-navigation ul li a.active {
+ color: #505090;
+}
+
+#left-navigation {
+ background-color: #F5F7F7;
+ width: 180px;
+ height: 600px;
+ left: 0px;
+ top: 36px;
+ position: absolute;
+ padding: 3px;
+ margin: 3px;
+}
+
+#left-navigation ul {
+ list-style-type: none;
+ padding: 0px;
+ margin: 0px;
+ font-size: 1.2em;
+}
+
+#left-navigation ul li {
+ padding-left: 5px;
+ margin-left: 5px;
+ display: block;
+}
+
+#left-navigation ul li a {
+ text-decoration: none;
+ color: #000000;
+}
+
+#left-navigation ul li a:hover {
+ color: #777777;
+}
+
+#left-navigation ul li a.active {
+ color: #770000;
+}
+
+#content {
+ left: 186px;
+ top: 36px;
+ width: 800px;
+ position: absolute;
+ padding: 5px;
+ margin: 3px;
+ background-color: #FFFFFF;
+}
+
+#userinfo {
+ right: 5px;
+ bottom: 5px;
+ position: absolute;
+ padding: 3px;
+ margin: 3px;
+ background-color: #DDDDAA;
+ font-size: 0.8em;
+}
+
+#content .error {
+ color: #F80808;
+ font-weight: bold;
+} \ No newline at end of file
diff --git a/manager/public/css/login.css b/manager/public/css/login.css
new file mode 100644
index 0000000..c68a4aa
--- /dev/null
+++ b/manager/public/css/login.css
@@ -0,0 +1,11 @@
+@CHARSET "UTF-8";
+
+#content a {
+ text-decoration: none;
+ color: #000000;
+ font-size: 1.2em;
+}
+
+#content a:hover {
+ color: #777777;
+} \ No newline at end of file
diff --git a/manager/public/favicon.ico b/manager/public/favicon.ico
new file mode 100644
index 0000000..69e92cd
--- /dev/null
+++ b/manager/public/favicon.ico
Binary files differ
diff --git a/manager/public/img/cacert4.png b/manager/public/img/cacert4.png
new file mode 100644
index 0000000..e4650a0
--- /dev/null
+++ b/manager/public/img/cacert4.png
Binary files differ
diff --git a/manager/public/index.php b/manager/public/index.php
new file mode 100644
index 0000000..229290b
--- /dev/null
+++ b/manager/public/index.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * @done Zend_Locale (http://framework.zend.com/manual/en/zend.locale.functions.html)
+ * @done Zend_Translate (Buch 381ff, 383) http://framework.zend.com/manual/en/zend.translate.using.html
+ * @done Session Tabelle aufräumen (auto expire eingebaut, Housekeeper fehlt aber)
+ * @todo Zend_Auth (LoginController - Reaktion auf falsche Eingaben fehlt noch)
+ * @todo Zend_Filter_Input - Zeichensätze aus Userinput filtern
+ * @todo Zend_Measure, Zend_Currency
+ * @todo Zend_Date
+ * @todo Daemon / CLI Zend_Console_Getopt (Buch 203ff)
+ * @todo Zend_Mail (Buch 279ff)
+ * @todo Zend_Form(!), Zend_Validate, Zend_Filter
+ * @todo Zend_Log - Formatierung der Texte
+ * @todo Funktionsmodule - jedes Modul prüft die Rechte anhand der Session und Zend_Acl und fügt ggf. einen Link ins Menü ein (TOP / LEFT)
+ * @todo addMessages mit übersetzten Strings (LoginController -> getForm, ...)
+ * @todo favicon
+ * @todo sinnvolle Defaults, wenn system_config leer ist (globale Config BIND)
+ * @todo sinnvolle Defaults, wenn system_config leer ist (Organisationsconfig BIND)
+ * @todo Links zum Löschen für Zonen / Organisationen, Rechtechecks in ActionController (foreign key constraints beachten!)
+ * @todo ConfigBIND left Menu geht nicht aus, wenn man die selektierte Org deaktiviert (init vor Action)
+ * @todo Textausgabe, wenn Attribute aus Defaults initialisiert und NICHT aus der DB geladen wurden
+ */
+
+require_once('../library/global/defines.php');
+
+try {
+ /** Zend Autoloader */
+ require_once 'Zend/Loader/Autoloader.php';
+ Zend_Loader_Autoloader::getInstance();
+
+ // Create application, bootstrap, and run
+ $application = new Zend_Application(
+ APPLICATION_ENV,
+ APPLICATION_PATH . '/configs/application.ini'
+ );
+
+ /** override settings from application.ini, if necessary
+ $fc = Zend_Controller_Front::getInstance();
+ $fc->setControllerDirectory(realpath(APPLICATION_PATH . '/controllers'));
+ $fc->setParam('noViewRenderer', false);
+ $fc->throwExceptions(true);
+ $fc->setParam('noErrorHandler', false);
+ */
+
+ $application->bootstrap()
+ ->run();
+} catch (Exception $e) {
+ print "Exception: " . $e->getMessage() . "\n";
+ print $e->getTraceAsString() . "\n";
+ Log::Log()->emerg($e);
+}
diff --git a/manager/public/js/center.js b/manager/public/js/center.js
new file mode 100644
index 0000000..267550c
--- /dev/null
+++ b/manager/public/js/center.js
@@ -0,0 +1,10 @@
+function setCSS() {
+ var x = window.innerWidth;
+
+ x = x - 18; // maybe scroll bar
+ document.getElementById('center').style.width = x + "px";
+ document.getElementById('center').style.marginLeft = "-" + x/2 + "px";
+}
+
+window.onload = setCSS;
+window.onresize = setCSS;
diff --git a/manager/public/js/positionUserInfo.js b/manager/public/js/positionUserInfo.js
new file mode 100644
index 0000000..0de1db4
--- /dev/null
+++ b/manager/public/js/positionUserInfo.js
@@ -0,0 +1,17 @@
+function setUserInfoPos() {
+ var x = window.innerWidth;
+ var ui;
+
+ x = x - 18; // maybe scroll bar
+
+ ui = document.getElementById('userinfo');
+ if (ui != null) {
+ ui.style.right = "3px";
+// document.getElementById('userinfo').style.bottom = "3px";
+ ui.style.bottom = 3 - window.pageYOffset + "px";
+ }
+}
+
+window.onload = setUserInfoPos;
+window.onresize = setUserInfoPos;
+window.onscroll = setUserInfoPos;