using new et2 site config

This commit is contained in:
Ralf Becker 2016-04-25 07:23:36 +00:00
parent b68db0525d
commit 62ab3ce897
3 changed files with 63 additions and 85 deletions

View File

@ -1,17 +1,17 @@
<?php
/**
* eGroupWare - Notifications
*
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @package notifications
* @link http://www.egroupware.org
* @author Christian Binder <christian@jaytraxx.de>
* @version $Id: hook_preferences.inc.php 22498 2006-09-25 10:20:46Z jaytraxx $
*/
$file = Array( 'Site Configuration' => $GLOBALS['egw']->link('/index.php', array(
'menuaction' => 'admin.uiconfig.index',
'appname' => $appname,
)));
display_section($appname,$file);
?>
/**
* EGroupware - Notifications
*
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @package notifications
* @link http://www.egroupware.org
* @author Christian Binder <christian@jaytraxx.de>
* @version $Id: hook_preferences.inc.php 22498 2006-09-25 10:20:46Z jaytraxx $
*/
$file = Array( 'Site Configuration' => egw::link('/index.php', array(
'menuaction' => 'admin.admin_config.index',
'appname' => $appname,
'ajax' => 'true',
)));
display_section($appname,$file);

View File

@ -1,69 +0,0 @@
<!-- BEGIN header -->
<form method="POST" action="{action_url}">
{hidden_vars}
<table border="0" align="center">
<tr class="th">
<td colspan="2"><font color="{th_text}">&nbsp;<b>{title}</b></font></td>
</tr>
<tr>
<td colspan="2">&nbsp;<i><font color="red">{error}</i></font></td>
</tr>
<!-- END header -->
<!-- BEGIN body -->
<!-- currently not used, might be reactived later
<tr class="th">
<td colspan="2">&nbsp;<b>{lang_Mail_backend}</b></td>
</tr>
<tr class="row_on">
<td>{lang_choose_from_mailsettings_used_for_notification}</td>
<td>
<select name="newsettings[dontUseUserDefinedProfiles]">
<option value=""{selected_dontUseUserDefinedProfiles_False}>{lang_Check_both_(first_try_(active)_User_defined_account,_if_none_use_emailadmin_profile)}</option>
<option value="True"{selected_dontUseUserDefinedProfiles_True}>{lang_Emailadmin_Profile_only_(Do_not_use_User_defined_(active)_Mail_Profiles_for_Notification)}</option>
</select>
</td>
</tr -->
<tr class="th">
<td colspan="2">&nbsp;<b>{lang_EGroupware-Popup_backend}</b></td>
</tr>
<tr class="row_on">
<td>{lang_Poll_interval}</td>
<td>
<select name="newsettings[popup_poll_interval]">
<option value="5"{selected_popup_poll_interval_60}>5secs</option>
<option value="60"{selected_popup_poll_interval_60}>1 {lang_minute}</option>
<option value="120"{selected_popup_poll_interval_120}>2 {lang_minutes}</option>
<option value="300"{selected_popup_poll_interval_300}>5 {lang_minutes}</option>
</select>
</td>
</tr>
<tr class="th">
<td colspan="2">&nbsp;<b>{lang_Windows-Popup_backend}</b></td>
</tr>
<tr class="row_on">
<td>{lang_Enable_Windows-Popup_backend}</td>
<td>
<select name="newsettings[winpopup_enable]">
<option value=""{selected_winpopup_enable_False}>{lang_No}</option>
<option value="True"{selected_winpopup_enable_True}>{lang_Yes}</option>
</select>
</td>
</tr>
<tr class="th">
<td colspan="2">{lang_Signature}</td>
</tr>
<tr class = "row_off">
<td>{lang_Signature_added_to_every_change_notification}<br />{lang_You_can_also_use} <a href="index.php?menuaction=addressbook.addressbook_merge.show_replacements" target="_blank">{lang_addressbook}</a> {lang_placeholders_with_user/_prefix}</td>
<td><textarea rows="7" cols="50" name="newsettings[signature]">{value_signature}</textarea></td>
</tr>
<!-- END body -->
<!-- BEGIN footer -->
<tr valign="bottom" style="height: 30px;">
<td colspan="2" align="center">
<input type="submit" name="submit" value="{lang_submit}">
<input type="submit" name="cancel" value="{lang_cancel}">
</td>
</tr>
</table>
</form>
<!-- END footer -->

View File

@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE overlay PUBLIC "-//Stylite AG//eTemplate 2//EN" "http://www.egroupware.org/etemplate2.dtd">
<!-- $Id$ -->
<overlay>
<template id="notifications.config" template="" lang="" group="0" version="16.1">
<grid width="100%" class="admin-config egwGridView_grid">
<columns>
<column width="60%"/>
<column/>
</columns>
<rows>
<row>
<description value="EGroupware-Popup backend" span="all" class="subHeader"/>
</row>
<row>
<description value="Poll interval"/>
<select id="newsettings[popup_poll_interval]">
<option value="5">5secs</option>
<option value="60">1 {minute}</option>
<option value="120">2 {minutes}</option>
<option value="300">5 {minutes}</option>
</select>
</row>
<row>
<description value="Windows-Popup backend" span="all" class="subHeader"/>
</row>
<row>
<description value="Enable Windows-Popup backend"/>
<select id="newsettings[winpopup_enable]">
<option value="">No</option>
<option value="True">Yes</option>
</select>
</row>
<row>
<description value="Signature" span="all" class="subHeader"/>
</row>
<row>
<vbox>
<description value="Signature added to every change notification"/>
<description value="You can also use Addressbook placeholders with user/ prefix" href="/index.php?menuaction=addressbook.addressbook_merge.show_replacements" extra_link_popup="800x600"/>
</vbox>
<textbox id="newsettings[signature]" rows="7" cols="50"/>
</row>
</rows>
</grid>
</template>
</overlay>