mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-13 02:01:05 +01:00
4e9c822ed8
Admin can now define multiple addressbooks each with an own edit / view template and an own icon. Atm. all Addressbooks are stored in one backend, but this will change soon^tm
112 lines
3.3 KiB
Smarty
112 lines
3.3 KiB
Smarty
<!-- BEGIN addressbook_header -->
|
|
<script>
|
|
function check_all(which)
|
|
{
|
|
for (i=0; i<document.addr_index.elements.length; i++)
|
|
{
|
|
if (document.addr_index.elements[i].type == "checkbox" && document.addr_index.elements[i].name.substring(0,which.length) == which)
|
|
{
|
|
if (document.addr_index.elements[i].checked)
|
|
{
|
|
document.addr_index.elements[i].checked = false;
|
|
}
|
|
else
|
|
{
|
|
document.addr_index.elements[i].checked = true;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
<style type="text/css">
|
|
.letter_box,.letter_box_active {
|
|
background-color: #D3DCE3;
|
|
width: 25px;
|
|
border: 1px solid #D3DCE3;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
cusror: hand;
|
|
}
|
|
.letter_box_active {
|
|
font-weight: bold;
|
|
background-color: #E8F0F0;
|
|
}
|
|
.letter_box_active,.letter_box:hover {
|
|
border: 1px solid black;
|
|
background-color: #E8F0F0;
|
|
}
|
|
</style>
|
|
<div align="center">
|
|
|
|
<!-- Type-selection -->
|
|
<table width="95%" border="0">
|
|
<tr>
|
|
<td width="33%"> </td>
|
|
<td width="33%">{lang_showing}</td>
|
|
<td width="33%">
|
|
<table width="100%">
|
|
<tr>
|
|
<form action="{self_url}" method="post"><td>{addressbuch_type}:</td><td> {contact_type_list}</td></form>
|
|
<td>{lang_add}: </td>{add_buttons}
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<br>{searchreturn}
|
|
{search_filter}
|
|
|
|
<table width="95%" border="0">
|
|
<tr>
|
|
{alphalinks}
|
|
</tr>
|
|
</table>
|
|
<table width="95%" border="0" cellspacing="1" cellpadding="3">
|
|
<form name="addr_index" action="{action_url}" method="POST">
|
|
<tr class="th">{cols}
|
|
<td width="5%" height="21"><font face="Arial, Helvetica, sans-serif" size="-1">{lang_actions}</font>
|
|
<a href="javascript:check_all('select')"><img src="{check}" border="0" height="16" width="21" alt="{select_all}"></a></td>
|
|
</tr>
|
|
<!-- END addressbook_header -->
|
|
|
|
<!-- BEGIN column -->
|
|
<td valign="top"><font face="Arial, Helvetica, san-serif" size="2">{col_data} </font></td>
|
|
<!-- END column -->
|
|
|
|
<!-- BEGIN row -->
|
|
<tr bgcolor="{row_tr_color}">{columns}
|
|
<td valign="top" nowrap>{actions}</td>
|
|
</tr>
|
|
<!-- END row -->
|
|
|
|
<!-- BEGIN delete_block -->
|
|
<tr bgcolor="{row_tr_color}"><td colspan="{column_count}"> </td>
|
|
<td align="right"><input type="submit" name="Delete" value="{lang_delete}" onclick="return confirm('{lang_sure}');"></td>
|
|
</tr>
|
|
<!-- END delete_block -->
|
|
|
|
<!-- BEGIN addressbook_footer -->{delete_button}
|
|
</form>
|
|
</table>
|
|
<table border="0" cellspacing="0" cellpadding="2">
|
|
<tr class="th">
|
|
<form action="{add_url}" method="post"><td><input type="submit" name="Add" value="{lang_add}" onclick="{add_onclick}"/></td></form>
|
|
<form action="{vcard_url}" method="post"><td><input type="submit" name="AddVcard" value="{lang_addvcard}" /></td></form>
|
|
<form action="{import_url}" method="post"><td><input type="submit" name="Import" value="{lang_import}" /></td></form>
|
|
</tr>
|
|
</table>
|
|
<table border="0" cellspacing="0" cellpadding="2">
|
|
<tr bgcolor="{th_bg}">
|
|
|
|
<form action="{import_alt_url}" method="post"><td><input type="submit" name="Import" value="{lang_import_alt}" /></td></form>
|
|
<form action="{export_url}" method="post"><td><input type="submit" name="Export" value="{lang_export}" /></td></form>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<!-- END addressbook_footer -->
|
|
|
|
<!-- BEGIN addressbook_alpha -->
|
|
<td class="{charclass}" onclick="location.href='{charlink}';">{char}</td>
|
|
<!-- END addressbook_alpha -->
|