|
|
|
#!/usr/bin/perl -wT
|
|
|
|
|
|
|
|
# vim: ft=xml ts=4 sw=4 et:
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
# heading : Collaboration
|
|
|
|
# description : User Informations
|
|
|
|
# navigation : 2000 2100
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
# Copyright (C) 2011-2014 Firewall-Services
|
|
|
|
# daniel@firewall-services.com
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
#
|
|
|
|
# Technical support for this program is available from Mitel Networks
|
|
|
|
# Please visit our web site www.mitel.com/sme/ for details.
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use esmith::TestUtils;
|
|
|
|
use esmith::FormMagick::Panel::userinfo;
|
|
|
|
|
|
|
|
my $fm = esmith::FormMagick::Panel::userinfo->new();
|
|
|
|
|
|
|
|
$fm->display();
|
|
|
|
|
|
|
|
__DATA__
|
|
|
|
<form title="FORM_TITLE" header="/etc/e-smith/web/common/head.tmpl" footer="/etc/e-smith/web/common/foot.tmpl">
|
|
|
|
<page name="First" pre-event="print_status_message()">
|
|
|
|
<description>FIRSTPAGE_DESC</description>
|
|
|
|
<subroutine src="print_user_table()" />
|
|
|
|
</page>
|
|
|
|
<page name="Audit" pre-event="turn_off_buttons()">
|
|
|
|
<title>USER_AUDIT</title>
|
|
|
|
<description>AUDIT_DESC</description>
|
|
|
|
<field type="literal" id="acctName" value="$q->param('acctName')">
|
|
|
|
<label>USER_LOGIN</label>
|
|
|
|
</field>
|
|
|
|
<field type="literal" id="userName" value="get_name()">
|
|
|
|
<label>USER_NAME</label>
|
|
|
|
</field>
|
|
|
|
<subroutine src="print_section_bar()" />
|
|
|
|
<field type="literal" id="readShares" value="get_shares('read')">
|
|
|
|
<label>SHARE_READ</label>
|
|
|
|
</field>
|
|
|
|
<subroutine src="print_section_bar()" />
|
|
|
|
<field type="literal" id="writeShares" value="get_shares('write')">
|
|
|
|
<label>SHARE_WRITE</label>
|
|
|
|
</field>
|
|
|
|
</page>
|
|
|
|
<page name="Modify" pre-event="turn_off_buttons()" post-event="modify_user()">
|
|
|
|
<description>MODIFY_DESC</description>
|
|
|
|
<field type="text" size="30" id="FirstName" validation="nonblank, pseudonym_clash"
|
|
|
|
value="get_ldap_value('FirstName')">
|
|
|
|
<label>FIRSTNAME</label>
|
|
|
|
</field>
|
|
|
|
<field type="text" size="30" id="LastName" validation="nonblank"
|
|
|
|
value="get_ldap_value('LastName')">
|
|
|
|
<label>LASTNAME</label>
|
|
|
|
</field>
|
|
|
|
<field type="text" size="30" id="Dept"
|
|
|
|
value="get_ldap_value('Dept')">
|
|
|
|
<label>DEPARTMENT</label>
|
|
|
|
</field>
|
|
|
|
<field type="text" size="30" id="Company"
|
|
|
|
value="get_ldap_value('Company')">
|
|
|
|
<label>COMPANY</label>
|
|
|
|
</field>
|
|
|
|
<field type="text" size="30" id="Category"
|
|
|
|
value="get_ldap_value('Category')">
|
|
|
|
<label>CATEGORY</label>
|
|
|
|
</field>
|
|
|
|
<field type="text" size="30" id="Street"
|
|
|
|
value="get_ldap_value('Street')">
|
|
|
|
<label>STREET_ADDRESS</label>
|
|
|
|
</field>
|
|
|
|
<field type="text" size="30" id="PostalCode" validation="numbers_or_empty"
|
|
|
|
value="get_ldap_value('PostalCode')">
|
|
|
|
<label>POSTAL_CODE</label>
|
|
|
|
</field>
|
|
|
|
<field type="text" size="30" id="City"
|
|
|
|
value="get_ldap_value('City')">
|
|
|
|
<label>CITY</label>
|
|
|
|
</field>
|
|
|
|
<field type="text" size="30" id="Phone" validation="numbers_or_empty"
|
|
|
|
value="get_ldap_value('Phone')">
|
|
|
|
<label>PHONE_NUMBER</label>
|
|
|
|
</field>
|
|
|
|
<field type="text" size="30" id="Mobile" validation="numbers_or_empty"
|
|
|
|
value="get_ldap_value('Mobile')">
|
|
|
|
<label>MOBILE_NUMBER</label>
|
|
|
|
</field>
|
|
|
|
<field type="text" size="30" id="Extension"
|
|
|
|
value="get_ldap_value('Extension')">
|
|
|
|
<label>EXTENSION_NUMBER</label>
|
|
|
|
</field>
|
|
|
|
<field type="text" size="30" id="Fax" validation="numbers_or_empty"
|
|
|
|
value="get_ldap_value('Fax')">
|
|
|
|
<label>FAX_NUMBER</label>
|
|
|
|
</field>
|
|
|
|
<field type="text" size="30" id="Function1"
|
|
|
|
value="get_ldap_value('Function1')">
|
|
|
|
<label>FUNCTION</label>
|
|
|
|
</field>
|
|
|
|
<field type="text" size="30" id="Function2"
|
|
|
|
value="get_ldap_value('Function2')">
|
|
|
|
<label>FUNCTION</label>
|
|
|
|
</field>
|
|
|
|
<field type="text" size="30" id="Function3"
|
|
|
|
value="get_ldap_value('Function3')">
|
|
|
|
<label>FUNCTION</label>
|
|
|
|
</field>
|
|
|
|
<field type="text" size="30" id="Function4"
|
|
|
|
value="get_ldap_value('Function4')">
|
|
|
|
<label>FUNCTION</label>
|
|
|
|
</field>
|
|
|
|
<field type="text" size="30" id="Initials"
|
|
|
|
value="get_ldap_value('Initials')">
|
|
|
|
<label>INITIALS</label>
|
|
|
|
</field>
|
|
|
|
<field type="text" size="30" id="AltEmail1" validation="email_or_empty"
|
|
|
|
value="get_ldap_value('AltEmail1')">
|
|
|
|
<label>ALT_EMAIL</label>
|
|
|
|
</field>
|
|
|
|
<field type="text" size="30" id="AltEmail2" validation="email_or_empty"
|
|
|
|
value="get_ldap_value('AltEmail2')">
|
|
|
|
<label>ALT_EMAIL</label>
|
|
|
|
</field>
|
|
|
|
<field type="text" size="30" id="AltEmail3" validation="email_or_empty"
|
|
|
|
value="get_ldap_value('AltEmail3')">
|
|
|
|
<label>ALT_EMAIL</label>
|
|
|
|
</field>
|
|
|
|
<field type="text" size="30" id="AltEmail4" validation="email_or_empty"
|
|
|
|
value="get_ldap_value('AltEmail4')">
|
|
|
|
<label>ALT_EMAIL</label>
|
|
|
|
</field>
|
|
|
|
<field type="text" size="30" id="PreferredEmail" validation="email_or_empty"
|
|
|
|
value="get_ldap_value('PreferredEmail')">
|
|
|
|
<label>PREFERRED_EMAIL</label>
|
|
|
|
</field>
|
|
|
|
<field type="text" size="30" id="Url"
|
|
|
|
value="get_ldap_value('Url')" validation="url_or_empty">
|
|
|
|
<label>URL</label>
|
|
|
|
</field>
|
|
|
|
<field type="text" size="30" id="Shell"
|
|
|
|
value="get_ldap_value('Shell')" validation="exec_exists_or_empty">
|
|
|
|
<label>SHELL</label>
|
|
|
|
</field>
|
|
|
|
<field type="text" size="30" id="DesktopShell"
|
|
|
|
value="get_ldap_value('DesktopShell')">
|
|
|
|
<label>DESKTOP_SHELL</label>
|
|
|
|
</field>
|
|
|
|
<field type="text" size="30" id="ChrootDir"
|
|
|
|
value="get_ldap_value('ChrootDir')" validation="dir_exists_or_empty">
|
|
|
|
<label>CHROOT_DIR</label>
|
|
|
|
</field>
|
|
|
|
<subroutine src="print_save_button()" />
|
|
|
|
</page>
|
|
|
|
</form>
|
|
|
|
|