You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
148 lines
5.9 KiB
148 lines
5.9 KiB
#!/usr/bin/perl -wT
|
|
|
|
# vim: ft=xml ts=4 sw=4 et:
|
|
#----------------------------------------------------------------------
|
|
# heading : Collaboration
|
|
# description : User Informations
|
|
# navigation : 2000 2100
|
|
#----------------------------------------------------------------------
|
|
#----------------------------------------------------------------------
|
|
# copyright (C) 2011 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();
|
|
|
|
use CGI;
|
|
my $q = new CGI;
|
|
$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="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="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')">
|
|
<label>SHELL</label>
|
|
</field>
|
|
<field type="text" size="30" id="DesktopShell"
|
|
value="get_ldap_value('DesktopShell')">
|
|
<label>DESKTOP_SHELL</label>
|
|
</field>
|
|
<subroutine src="print_save_button()" />
|
|
</page>
|
|
</form>
|
|
|
|
|