$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');
}
//--------------------------------------------------------------
tpl_std();
//display templates
header('Content-Type: text/html; charset=utf-8');
- $smarty->display('header.tpl');
$smarty->display('help.tpl');
- $smarty->display('footer.tpl');
?>
$_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 -----------//
* 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();
}
var dt = new Date();
- editor += '//'+dt.formatDate('j. M y H:i')+'//: ';
+ editor += '//'+dt.formatDate('j. M y H:i')+' '+name+'//: ';
editor += '</textarea><br />';
editor += '<input id="nedit_save" type="button" value="SAVE" />';
$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';
$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';
$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');
?>
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');
-
-
?>
$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;
+{include file="header.tpl"}
+
<h1>
{if $entry.type != ''}
<img src="pix/{$entry.type}.png" border="0" width="22" height="22" align="middle" title="{$entry.type}">
<input type="hidden" name="dn" value="{$entry.dn|escape}" />
<input type="hidden" name="save" value="1" />
-{include file="ldaperror.tpl"}
-
<table width="100%">
<tr>
<td valign="top" width="50%" align="center">
</form>
-<br>
+{include file="footer.tpl"}
+{include file="header.tpl"}
+
<h1>
<img src="pix/{$entry.type}.png" border="0" width="22" height="22" align="middle" title="{$entry.type}">
{$entry.givenname} {$entry.name}
<a href="img.php?dn={$entry.dn|escape:url}"><img src="img.php?dn={$entry.dn|escape:url}" align="right" class="photo" width="130" /></a>
{/if}
-{include file="ldaperror.tpl"}
-
-
<table width="100%">
<tr>
<td valign="top" width="50%">
<b>{$lang.note}</b>
{if $user}
- <img src="pix/phone.png" width="16" height="16" onclick="nedit_showEditor('call','{$entry.dn}');" />
- <img src="pix/email.png" width="16" height="16" onclick="nedit_showEditor('mail','{$entry.dn}');" />
- <img src="pix/arrow_right.png" width="16" height="16" onclick="nedit_showEditor('todo','{$entry.dn}');" />
- <img src="pix/note.png" width="16" height="16" onclick="nedit_showEditor('note','{$entry.dn}');" />
+ <img src="pix/phone.png" width="16" height="16" onclick="nedit_showEditor('call','{$entry.dn}','{$user|escape:javascript}');" />
+ <img src="pix/email.png" width="16" height="16" onclick="nedit_showEditor('mail','{$entry.dn}','{$user|escape:javascript}');" />
+ <img src="pix/arrow_right.png" width="16" height="16" onclick="nedit_showEditor('todo','{$entry.dn}','{$user|escape:javascript}');" />
+ <img src="pix/note.png" width="16" height="16" onclick="nedit_showEditor('note','{$entry.dn}','{$user|escape:javascript}');" />
{/if}
<dl><dd id="nedit_insert">
{include file="openxchange_show.tpl"}
{/if}
-<br><br><br>
-
+{include file="footer.tpl"}
+{include file="header.tpl"}
<h1>An error occured</h1>
-{include file="ldaperror.tpl"}
+<div class="error">{$error}</div>
-<table class="tableborder">
-<tr>
- <td>{$error}</td>
-</tr>
-</table>
+{include file="footer.tpl"}
</tr>
<tr>
- <td align="right" valign="top" nowrap="nowrap">{$lang.marker}:</td>
+ <td align="right" valign="top" nowrap="nowrap">{$lang.marker}:<br><span class="hint">({$lang.msg_tagsep})</span></td>
<td>
- <input type="text" class="input" name="entry[markers]" value="{$entry.markers|escape}" id="tageditlookup"><div id="tageditresult" class="autocomplete"></div>
+ <textarea class="input" name="entry[markers]" id="tageditlookup">{$entry.markers|escape}</textarea><div id="tageditresult" class="autocomplete"></div>
</td>
</tr>
<td valign="top" align="right">{$lang.marker}:</td>
<td>
{foreach from=$entry.marker item=marker}
- <a href="index.php?marker={$marker|escape:url}">{$marker}</a>
+ <a href="index.php?marker={$marker|escape:url}" class="tag">{$marker}</a>
{/foreach}
</td>
</tr>
--- /dev/null
+<ul class="x">
+ <li><a href="index.php?filter=a">A</a></li>
+ <li><a href="index.php?filter=b">B</a></li>
+ <li><a href="index.php?filter=c">C</a></li>
+ <li><a href="index.php?filter=d">D</a></li>
+ <li><a href="index.php?filter=e">E</a></li>
+ <li><a href="index.php?filter=f">F</a></li>
+ <li><a href="index.php?filter=g">G</a></li>
+ <li><a href="index.php?filter=h">H</a></li>
+ <li><a href="index.php?filter=i">I</a></li>
+ <li><a href="index.php?filter=j">J</a></li>
+ <li><a href="index.php?filter=k">K</a></li>
+ <li><a href="index.php?filter=l">L</a></li>
+ <li><a href="index.php?filter=m">M</a></li>
+ <li><a href="index.php?filter=n">N</a></li>
+ <li><a href="index.php?filter=o">O</a></li>
+ <li><a href="index.php?filter=p">P</a></li>
+ <li><a href="index.php?filter=q">Q</a></li>
+ <li><a href="index.php?filter=r">R</a></li>
+ <li><a href="index.php?filter=s">S</a></li>
+ <li><a href="index.php?filter=t">T</a></li>
+ <li><a href="index.php?filter=u">U</a></li>
+ <li><a href="index.php?filter=v">V</a></li>
+ <li><a href="index.php?filter=w">W</a></li>
+ <li><a href="index.php?filter=x">X</a></li>
+ <li><a href="index.php?filter=y">Y</a></li>
+ <li><a href="index.php?filter=z">Z</a></li>
+ <li><a href="index.php?filter=other">#</a></li>
+ <li><a href="index.php?filter=*">*</a></li>
+</ul>
+
+{if $conf.openxchange}
+ <div class="categories x">
+ <form method="get" action="index.php">
+ <select name="categories" class="searchfield">
+ <option value="">--- {$lang.categories} ---</option>
+ {html_options values=$categories output=$categories selected=$smarty.request.categories}
+ </select>
+ <input type="submit" value="{$lang.search}" class="searchbutton" />
+ </form>
+ </div>
+{/if}
+
+{if $conf.extended}
+ <div class="tags x">
+ <form method="get" action="index.php" accept-charset="utf-8">
+ <a href="tags.php" class="tag">{$lang.marker}</a>:
+
+ <input name="marker" class="searchfield" type="text" id="taglookup"
+ value="{$smarty.request.marker|escape}" />
+ <input type="submit" value="{$lang.search}" class="searchbutton" />
+ </form>
+ </div>
+ <div id="tagresult" class="autocomplete"></div>
+{/if}
+
+<div class="search x">
+ <form method="get" action="index.php" accept-charset="utf-8">
+ <input type="text" name="search" class="searchfield"
+ value="{$smarty.request.search|escape}" />
+ <input type="submit" value="{$lang.search}" class="searchbutton" />
+ </form>
+</div>
+ </div>
+
+ <div id="footrow">
+ {if $user == ''}
+ {$lang.notloggedin}
+
+ <a href="login.php"><img src="pix/key.png" border="0" width="16" height="16" align="middle" /> {$lang.login}</a>
+ {else}
+ {$lang.loggedinas} <b>{$user}</b>
+
+ <a href="login.php?username="><img src="pix/key_go.png" border="0" width="16" height="16" align="middle" /> {$lang.logout}</a>
+ {/if}
+ </div>
+</div>
+
+</body>
+</html>
+
+
+<!--
+
</td>
</tr>
<tr>
- <td class="buttonrow" align="right">
+ <td class="buttonrow" align="right" colspan="2">
<table width="100%"><tr>
<td align="left">
<a href="orgs.php"><img src="pix/book_open.png" border="0" width="16" height="16" align="middle" />{$lang.orgs}</a>
</td>
</tr>
<tr>
- <td class="footrow">
+ <td class="footrow" colspan="2">
{if $user == ''}
<a href="login.php"><img src="pix/key.png" border="0" width="16" height="16" align="middle" /> {$lang.login}</a>
{$lang.notloggedin}
</td>
</tr>
</table>
+-->
<html>
<head>
<title>LDAPab - {$lang.ldapab}</title>
- <link rel="stylesheet" type="text/css" href="templates/style.css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <link rel="stylesheet" type="text/css" href="templates/layout.css" />
+
+ <link rel="stylesheet" type="text/css" href="templates/style.css" />
+
<script src="js/prototype.js" type="text/javascript"></script>
<script src="js/scriptaculous.js" type="text/javascript"></script>
<script src="js/formatDate.js" type="text/javascript"></script>
<script src="js/gui.js" type="text/javascript"></script>
+ {if $LDAPERRORS != ''}
+ <script>
+ window.alert('{$lang.err_ldap}:\n\n{$LDAPERRORS|escape:quotes}');
+ </script>
+ {/if}
</head>
<body>
+<div id="ldapab">
+
+ <div id="titlerow">
+ <a href="{$home}" class="logo">LDAPab</a>
+ <span class="logosmall">- {$lang.ldapab}</span>
+ </div>
+
+ <div id="filterrow">
+ {include file="filter.tpl"}
+ </div>
+
+ <div id="toolbar">
+ {include file="toolbar.tpl"}
+ </div>
+
+
+ <div id="content">
+
+
+<!--
<table width="100%">
<tr>
- <td class="headrow">
+ <td class="headrow" colspan="2">
<table width="100%"><tr>
<td align="left" valign="bottom">
- <a href="{$home}" class="logo">LDAPab</a>
- <span class="logosmall">- {$lang.ldapab}</span>
</td>
<td align="right" valign="bottom">
<a href="help.php"><img src="pix/help.png" border="0" width="16" height="16" align="middle">{$lang.help}</a>
</td>
</tr>
<tr>
+ <td width="30">
+ </td>
<td>
+-->
+{include file="header.tpl"}
<h2>Adding LDAP-Access to your Mailclient</h2>
<h3>Private Addressbook</h3>
{if $binddn}
-<p>To access your persanal addressdata use these settings:</p>
+<p>To access your personal address data use these settings:</p>
<dl>
<dt>LDAP-Server</dt>
<dd><code>{$conf.ldapserver}</code></dd>
<p>Login to see this data</p>
{/if}
-
-<br><br>
+{include file="footer.tpl"}
--- /dev/null
+
+/* 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;
+}
+++ /dev/null
-{if $LDAPERRORS != ''}
-<script>
- window.alert('{$lang.err_ldap}:\n\n{$LDAPERRORS|escape:quotes}');
-</script>
-{/if}
-<br><br>
+{include file="header.tpl"}
+
<table cellspacing="0" cellpadding="0" width="100%" align="center">
{if $list == ''}
<tr>
{$list}
{/if}
</table>
-<br><br><br>
+
+{include file="footer.tpl"}
+{include file="header.tpl"}
+
<br /><br /><br />
<form action="login.php" method="post" accept-charset="utf-8">
</table>
</form>
<br /><br /><br />
+
+{include file="footer.tpl"}
+{include file="header.tpl"}
+
<table width="100%">
{foreach from=$orgs item=org}
<tr>
</tr>
{/foreach}
</table>
+
+{include file="footer.tpl"}
.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}
background-color: #fff;
border: 1px solid #000;
font-size: 80%;
+ margin: 0;
+ display: block;
}
div.autocomplete ul {
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;
+}
-<p>{$lang.tagcloud}</p>
+{include file="header.tpl"}
<div class="tagcloud">
{$tagcloud}
</div>
+
+<p>{$lang.tagcloud}</p>
+{include file="footer.tpl"}
--- /dev/null
+<ul>
+
+ <!-- help -->
+ <li>
+ <a href="help.php"><img src="pix/help.png" border="0"
+ width="16" height="16" align="middle" title="{$lang.help}" /></a>
+ </li>
+
+ <!-- company list -->
+ <li>
+ <a href="orgs.php"><img src="pix/book_open.png" border="0"
+ width="16" height="16" align="middle" title="{$lang.orgs}" /></a>
+ </li>
+
+ <li class="sep"></li>
+
+ {if $user} <!-- new contact -->
+ <li>
+ <a href="entry.php?mode=edit"><img src="pix/page_add.png" border="0"
+ width="16" height="16" align="middle" title="{$lang.new}"></a>
+ </li>
+ {/if}
+
+ <li class="sep"></li>
+
+ {if $dn} <!-- begin contact page functions -->
+ {if $user} <!-- begin editing functions -->
+
+ <!-- edit/show, copy, delete -->
+ {if $smarty.request.mode == 'edit'}
+ <li>
+ <a href="entry.php?dn={$dn|escape:url}"><img src="pix/page_red.png"
+ border="0" width="16" height="16" align="middle" title="{$lang.show}" /></a>
+ </li>
+ {elseif $smarty.request.mode != 'copy'}
+ <li>
+ <a href="entry.php?dn={$dn|escape:url}&mode=edit"><img src="pix/page_edit.png"
+ border="0" width="16" height="16" align="middle" title="{$lang.edit}" /></a>
+ </li>
+ <li>
+ <a href="entry.php?dn={$dn|escape:url}&mode=copy"><img src="pix/page_copy.png"
+ border="0" width="16" height="16" align="middle" title="{$lang.copy}" /></a>
+ </li>
+ <li>
+ <a href="entry.php?dn={$dn|escape:url}&del=1" onclick="return confirm('{$lang.msg_reallydel}');"><img
+ src="pix/page_delete.png" border="0" width="16" height="16" align="middle"
+ title="{$lang.delete}" /></a>
+ </li>
+ {/if}
+
+ {/if} <!-- end editing functions -->
+
+ <!-- vcf export -->
+ <li>
+ <a href="entry.php?dn={$dn|escape:url}&mode=vcf"><img src="pix/vcard.png"
+ border="0" width="16" height="16" align="middle" title="{$lang.vcfexport}" /></a>
+ </li>
+
+ <li class="sep"></li>
+ {/if} <!-- end contact page functions -->
+
+
+ {if $list} <!-- export -->
+ <li>
+ <a href="index.php?filter={$filter|escape:url}&marker={$marker|escape:url}&search={$search|escape:url}&export=csv"><img src="pix/page_white_excel.png" border="0" width="16" height="16" align="middle" title="{$lang.csvexport}" /></a>
+ </li>
+ {/if}
+
+ {if $user} <!-- import -->
+ <li>
+ <a href="import.php"><img src="pix/page_in.png" border="0"
+ width="16" height="16" align="middle" title="{$lang.vcfimport}" /></a>
+ </li>
+ {/if}
+
+
+
+</ul>