From: Andreas Gohr Date: Wed, 25 Jan 2006 12:45:11 +0000 (+0100) Subject: changed layout, some HTML cleanup X-Git-Tag: 0.7.1~95 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=77c283456020d1fda4bd127badfac238491edf78;p=contagged changed layout, some HTML cleanup darcs-hash:20060125124511-6e07b-9f30580c4249dfd0a689ef8f378089b2fe0151fe.gz --- diff --git a/entry.php b/entry.php index 63e15e1..10d4661 100644 --- a/entry.php +++ b/entry.php @@ -57,10 +57,7 @@ $smarty->display($template); }else{ header('Content-Type: text/html; charset=utf-8'); - $smarty->display('header.tpl'); - $smarty->display('list_filter.tpl'); $smarty->display($template); - $smarty->display('footer.tpl'); } //-------------------------------------------------------------- diff --git a/help.php b/help.php index 8aaa8f8..dd933da 100644 --- a/help.php +++ b/help.php @@ -6,8 +6,6 @@ tpl_std(); //display templates header('Content-Type: text/html; charset=utf-8'); - $smarty->display('header.tpl'); $smarty->display('help.tpl'); - $smarty->display('footer.tpl'); ?> diff --git a/index.php b/index.php index 5241b5e..04ab996 100644 --- a/index.php +++ b/index.php @@ -59,10 +59,7 @@ $_SESSION[ldapab][lastlocation]=$_SERVER["REQUEST_URI"]; header('Content-Type: text/html; charset=utf-8'); - $smarty->display('header.tpl'); - $smarty->display('list_filter.tpl'); $smarty->display('list.tpl'); - $smarty->display('footer.tpl'); } //------- functions -----------// diff --git a/js/gui.js b/js/gui.js index cbf7275..c64013a 100644 --- a/js/gui.js +++ b/js/gui.js @@ -21,7 +21,7 @@ NoteEditor.prototype = { * Create the editor component */ -function nedit_showEditor(type,dn){ +function nedit_showEditor(type,dn,name){ // if the editor already exists cancel it if($('nedit_editor') !== null){ nedit_cleanUp(); @@ -41,7 +41,7 @@ function nedit_showEditor(type,dn){ } var dt = new Date(); - editor += '//'+dt.formatDate('j. M y H:i')+'//: '; + editor += '//'+dt.formatDate('j. M y H:i')+' '+name+'//: '; editor += '
'; editor += ''; diff --git a/lang/de.php b/lang/de.php index 0e11b9f..21fa105 100644 --- a/lang/de.php +++ b/lang/de.php @@ -66,6 +66,7 @@ $lang[msg_addto] = 'Zu welchem Adressbuch soll der Eintrag hinzugefügt wer $lang[msg_jpegonly] = 'Nur JPEG'; $lang[msg_dateformat] = 'JJJJ-MM-TT'; $lang[msg_uploadvcf] = 'Upload VCard File'; +$lang[msg_tagsep] = 'Durch Komma getrennt'; $lang[err_noentries] = 'Keine Einträge'; $lang[err_ldap] = 'Der LDAP Server lieferte folgende Fehlermeldungen'; diff --git a/lang/en.php b/lang/en.php index 369d82d..cca3902 100644 --- a/lang/en.php +++ b/lang/en.php @@ -65,6 +65,7 @@ $lang[msg_addto] = 'Select address book to which the entry should be added: $lang[msg_jpegonly] = 'JPEG only'; $lang[msg_dateformat] = 'YYYY-MM-DD'; $lang[msg_uploadvcf] = 'Upload VCard File'; +$lang[msg_tagsep] = 'Comma separated'; $lang[err_noentries] = 'No entries'; $lang[err_ldap] = 'The LDAP server returned the following errors'; diff --git a/login.php b/login.php index a2d0a12..2bf41bc 100644 --- a/login.php +++ b/login.php @@ -21,7 +21,5 @@ $smarty->assign('msg',$msg); //display templates header('Content-Type: text/html; charset=utf-8'); - $smarty->display('header.tpl'); $smarty->display('login.tpl'); - $smarty->display('footer.tpl'); ?> diff --git a/orgs.php b/orgs.php index aaefcd0..6e79970 100644 --- a/orgs.php +++ b/orgs.php @@ -7,10 +7,5 @@ tpl_orgs(); //display templates header('Content-Type: text/html; charset=utf-8'); - $smarty->display('header.tpl'); - $smarty->display('list_filter.tpl'); $smarty->display('orgs.tpl'); - $smarty->display('footer.tpl'); - - ?> diff --git a/pix/tag_blue.png b/pix/tag_blue.png new file mode 100644 index 0000000..b5ba31f Binary files /dev/null and b/pix/tag_blue.png differ diff --git a/tags.php b/tags.php index 13b07b2..4a3019a 100644 --- a/tags.php +++ b/tags.php @@ -7,10 +7,7 @@ $smarty->assign('tagcloud',tag_cloud()); //display templates header('Content-Type: text/html; charset=utf-8'); - $smarty->display('header.tpl'); - $smarty->display('list_filter.tpl'); $smarty->display('tags.tpl'); - $smarty->display('footer.tpl'); function tag_cloud(){ global $conf; diff --git a/templates/entry_edit.tpl b/templates/entry_edit.tpl index 22e5d20..9461846 100644 --- a/templates/entry_edit.tpl +++ b/templates/entry_edit.tpl @@ -1,3 +1,5 @@ +{include file="header.tpl"} +

{if $entry.type != ''} @@ -10,8 +12,6 @@ -{include file="ldaperror.tpl"} -
@@ -179,4 +179,4 @@ -
+{include file="footer.tpl"} diff --git a/templates/entry_show.tpl b/templates/entry_show.tpl index 6bf9d23..c1a73e4 100644 --- a/templates/entry_show.tpl +++ b/templates/entry_show.tpl @@ -1,3 +1,5 @@ +{include file="header.tpl"} +

{$entry.givenname} {$entry.name} @@ -6,9 +8,6 @@ {/if} -{include file="ldaperror.tpl"} - - - + diff --git a/templates/extended_show.tpl b/templates/extended_show.tpl index 24dc2be..8508101 100644 --- a/templates/extended_show.tpl +++ b/templates/extended_show.tpl @@ -13,7 +13,7 @@ diff --git a/templates/filter.tpl b/templates/filter.tpl new file mode 100644 index 0000000..85cb88d --- /dev/null +++ b/templates/filter.tpl @@ -0,0 +1,63 @@ + + +{if $conf.openxchange} +
+
+ + + +
+{/if} + +{if $conf.extended} +
+
+ {$lang.marker}: + + + + +
+
+{/if} + + diff --git a/templates/footer.tpl b/templates/footer.tpl index c3017f4..7b3f048 100644 --- a/templates/footer.tpl +++ b/templates/footer.tpl @@ -1,8 +1,29 @@ + + +
+ {if $user == ''} + {$lang.notloggedin} +     + {$lang.login} + {else} + {$lang.loggedinas} {$user} +     + {$lang.logout} + {/if} +
+ + + + + + + diff --git a/templates/header.tpl b/templates/header.tpl index dd2b15b..23cd9e6 100644 --- a/templates/header.tpl +++ b/templates/header.tpl @@ -1,24 +1,50 @@ LDAPab - {$lang.ldapab} - + + + + + {if $LDAPERRORS != ''} + + {/if} +
+ +
+ + - {$lang.ldapab} +
+ +
+ {include file="filter.tpl"} +
+ +
+ {include file="toolbar.tpl"} +
+ + +
+ + + diff --git a/templates/help.tpl b/templates/help.tpl index efa29af..018aafa 100644 --- a/templates/help.tpl +++ b/templates/help.tpl @@ -1,3 +1,4 @@ +{include file="header.tpl"}

Adding LDAP-Access to your Mailclient

@@ -21,7 +22,7 @@

Private Addressbook

{if $binddn} -

To access your persanal addressdata use these settings:

+

To access your personal address data use these settings:

LDAP-Server
{$conf.ldapserver}
@@ -39,5 +40,4 @@

Login to see this data

{/if} - -

+{include file="footer.tpl"} diff --git a/templates/layout.css b/templates/layout.css new file mode 100644 index 0000000..15d24ca --- /dev/null +++ b/templates/layout.css @@ -0,0 +1,64 @@ + +/* left side toolbar */ + +div#toolbar { + float: left; + width: 2em; + text-align: center; +} + +div#toolbar ul { + list-style: none; + margin: 0; + padding: 0; +} + +div#toolbar li.sep { + height: 1em; +} + +/* top row */ + +div#filterrow { + padding: 0 0 0 3em; + border-bottom: 1px solid #ccc; +} + +div#filterrow form { + display: inline; +} + +div#filterrow div.x, div#filterrow ul.x, div#filterrow ul.x li { + display: inline; +} + +div#filterrow ul.x { + list-style: none; + margin: 0; + padding: 0; + +} + +div#filterrow div { + margin-left: 1em; +} + +/* bottom row */ + +div#footrow { + clear: left; + text-align: right; + padding: 0 1em 0 0; + border-top: 1px solid #ccc; +} + +/* content */ + +div#content { + margin-left: 2em; + padding: 0.5em 1em 2em 1em; + border-left: 1px solid #ccc; + min-height: 10em; + height: auto !important; + height: 10em; +} diff --git a/templates/ldaperror.tpl b/templates/ldaperror.tpl deleted file mode 100644 index fbcea18..0000000 --- a/templates/ldaperror.tpl +++ /dev/null @@ -1,5 +0,0 @@ -{if $LDAPERRORS != ''} - -{/if} diff --git a/templates/list.tpl b/templates/list.tpl index fe16dfd..9c3b02e 100644 --- a/templates/list.tpl +++ b/templates/list.tpl @@ -1,4 +1,5 @@ -

+{include file="header.tpl"} +
@@ -115,10 +114,10 @@ {$lang.note} {if $user} - - - - + + + + {/if}
@@ -129,5 +128,4 @@ {include file="openxchange_show.tpl"} {/if} -


- +{include file="footer.tpl"} diff --git a/templates/error.tpl b/templates/error.tpl index 6f8d460..244250e 100644 --- a/templates/error.tpl +++ b/templates/error.tpl @@ -1,10 +1,7 @@ +{include file="header.tpl"}

An error occured

-{include file="ldaperror.tpl"} +
{$error}
- - - - -
{$error}
+{include file="footer.tpl"} diff --git a/templates/extended_edit.tpl b/templates/extended_edit.tpl index 3462a86..b69323d 100644 --- a/templates/extended_edit.tpl +++ b/templates/extended_edit.tpl @@ -8,9 +8,9 @@
{$lang.marker}:{$lang.marker}:
({$lang.msg_tagsep})
-
+
{$lang.marker}: {foreach from=$entry.marker item=marker} - {$marker} + {$marker} {/foreach}
{if $list == ''} @@ -11,4 +12,5 @@ {$list} {/if}
-


+ +{include file="footer.tpl"} diff --git a/templates/login.tpl b/templates/login.tpl index ccedd37..2a950da 100644 --- a/templates/login.tpl +++ b/templates/login.tpl @@ -1,3 +1,5 @@ +{include file="header.tpl"} +


@@ -25,3 +27,5 @@




+ +{include file="footer.tpl"} diff --git a/templates/orgs.tpl b/templates/orgs.tpl index 4aa3c07..0c030af 100644 --- a/templates/orgs.tpl +++ b/templates/orgs.tpl @@ -1,3 +1,5 @@ +{include file="header.tpl"} + {foreach from=$orgs item=org} @@ -16,3 +18,5 @@ {/foreach}
+ +{include file="footer.tpl"} diff --git a/templates/style.css b/templates/style.css index 049be11..52e63ec 100644 --- a/templates/style.css +++ b/templates/style.css @@ -21,9 +21,10 @@ td {background-color:#66CCFF:margin:3px} .buttonrow {border-top-width:1px; border-top-style:solid; border-top-color:#cccccc;} -.filterrow {border-bottom-width:1px; + +/*.filterrow {border-bottom-width:1px; border-bottom-style:solid; - border-bottom-color:#cccccc;} + border-bottom-color:#cccccc;}*/ .tableborder {border-width:1px; border-style:solid} @@ -96,6 +97,8 @@ div.autocomplete { background-color: #fff; border: 1px solid #000; font-size: 80%; + margin: 0; + display: block; } div.autocomplete ul { @@ -156,3 +159,7 @@ a.tc18 { font-size: 280%; } a.tc19 { font-size: 290%; } a.tc20 { font-size: 300%; } +a.tag { + background: url(../pix/tag_blue.png) left center no-repeat; + padding-left: 18px; +} diff --git a/templates/tags.tpl b/templates/tags.tpl index 203b334..c0befac 100644 --- a/templates/tags.tpl +++ b/templates/tags.tpl @@ -1,5 +1,8 @@ -

{$lang.tagcloud}

+{include file="header.tpl"}
{$tagcloud}
+ +

{$lang.tagcloud}

+{include file="footer.tpl"} diff --git a/templates/toolbar.tpl b/templates/toolbar.tpl new file mode 100644 index 0000000..b155388 --- /dev/null +++ b/templates/toolbar.tpl @@ -0,0 +1,78 @@ +