home *** CD-ROM | disk | FTP | other *** search
- <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST" name="register">
- <table border="0" cellpadding="0" cellspacing="3">
- <tr>
- <td colspan="2"><h1><?php echo $admin_new_user; ?></h1>
- <?php if (isset($error)) echo $error; ?>
- <?php echo $registration_text; ?><br /><br />
- <h2><?php echo $registration_personal_info; ?></h2>
- </tr>
- <tr>
- <td valign="top">
- <table border="0" cellpadding="0" cellspacing="3">
- <?php
- if (isset($val->error["first_name"]))
- {
- ?>
- <tr>
- <td class="Error" colspan="2">
- <?php echo $val->error["first_name"]; ?>
- </td>
- </tr>
- <?php
- }
- ?>
- <tr heigth="25">
- <td align="right" nowrap><?php echo $strFirstName; ?>*: </td>
- <td width="100%"><input type="text" class="textbox" name="first_name" size="30" maxlength="50" value="<?php if(isset($_REQUEST['first_name'])) echo $_REQUEST['first_name']; ?>"></td>
- </tr>
- <tr heigth="25">
- <td align="right" nowrap><?php echo $strMiddleName; ?>: </td>
- <td width="100%"><input type="text" class="textbox" name="middle_name" size="30" maxlength="50" value="<?php if(isset($_REQUEST['middle_name'])) echo $_REQUEST['middle_name']; ?>"></td>
- </tr>
- <?php
- if (isset($val->error["last_name"]))
- {
- ?>
- <tr>
- <td class="Error" colspan="2">
- <?php echo $val->error["last_name"]; ?>
- </td>
- </tr>
- <?php
- }
- ?>
- <tr heigth="25">
- <td align="right" nowrap><?php echo $strLastName; ?>*: </td>
- <td width="100%"><input type="text" class="textbox" name="last_name" size="30" maxlength="50" value="<?php if(isset($_REQUEST['last_name'])) echo $_REQUEST['last_name']; ?>"></td>
- </tr>
- <tr heigth="25">
- <td align="right" nowrap><?php echo $strTitle; ?> / <?php echo $strInitials; ?>: </td>
- <td width="100%"><input type="text" class="textbox" name="title" size="10" maxlength="12" value="<?php if(isset($_REQUEST['title'])) echo $_REQUEST['title']; ?>"> / <input type="text" class="textbox" name="initials" size="12" maxlength="50" value="<?php if(isset($_REQUEST['initials'])) echo $_REQUEST['initials']; ?>"></td>
- </tr>
- <tr>
- <td align="right" nowrap><?php echo $strSex; ?>:</td>
- <td>
- <?php
- $sex = isset($_REQUEST['sex']) ? $_REQUEST['sex'] : 'M';
- $radiolist = new radio_list('sex', $sex);
- $radiolist->add_option('M', 'M', $strSexes['M']);
- echo ' ';
- $radiolist->add_option('F', 'F', $strSexes['F']);
- ?>
- </td>
- </tr>
- <tr>
- <td align="right" nowrap><?php echo $strBirthday; ?>:</td>
- <td>
- <?php
- $birthday = isset($_REQUEST['birthday']) ? $_REQUEST['birthday'] : '';
- $datepicker->print_date_picker('birthday', $_SESSION['GO_SESSION']['date_format'], $birthday);
- ?>
- </td>
- </tr>
- <tr><td colspan="2"> </td></tr>
- <tr>
- <td align="right" nowrap>
- <?php echo $strAddress; ?>:
- </td>
- <td>
- <input type="text" class="textbox" name="address" size="30" value="<?php if(isset($_REQUEST['address'])) echo $_REQUEST['address']; ?>" maxlength="100">
- </td>
- </tr>
-
- <tr>
- <td align="right" nowrap>
- <?php echo $strZip; ?>:
- </td>
- <td>
- <input type="text" class="textbox" name="zip" size="30" value="<?php if(isset($_REQUEST['zip'])) echo $_REQUEST['zip']; ?>" maxlength="20">
- </td>
- </tr>
- <tr>
- <td align="right" nowrap>
- <?php echo $strCity; ?>:
- </td>
- <td>
- <input type="text" class="textbox" name="city" size="30" value="<?php if(isset($_REQUEST['city'])) echo $_REQUEST['city']; ?>" maxlength="50">
- </td>
- </tr>
-
- <tr>
- <td align="right" nowrap>
- <?php echo $strState; ?>:
- </td>
- <td>
- <input type="text" class="textbox" name="state" size="30" value="<?php if(isset($_REQUEST['state'])) echo $_REQUEST['state']; ?>" maxlength="50">
- </td>
- </tr>
-
- <tr>
- <td align="right" nowrap>
- <?php echo $strCountry; ?>:
- </td>
- <td>
- <input type="text" class="textbox" name="country" size="30" value="<?php if(isset($_REQUEST['country'])) echo $_REQUEST['country']; ?>" maxlength="50">
- </td>
- </tr>
- <tr>
- <td colspan="2"> </td>
- </tr>
-
- <tr>
- <td align="right" nowrap>
- <?php echo $strPhone; ?>:
- </td>
- <td>
- <input type="text" class="textbox" name="home_phone" size="30" value="<?php if(isset($_REQUEST['home_phone'])) echo $_REQUEST['home_phone']; ?>" maxlength="20">
- </td>
- </tr>
-
-
-
- <tr>
- <td align="right" nowrap>
- <?php echo $strFax; ?>:
- </td>
- <td>
- <input type="text" class="textbox" name="fax" size="30" value="<?php if(isset($_REQUEST['fax'])) echo $_REQUEST['fax']; ?>" maxlength="20">
- </td>
- </tr>
-
- <tr>
- <td align="right" nowrap>
- <?php echo $strCellular; ?>:
- </td>
- <td>
- <input type="text" class="textbox" name="cellular" size="30" value="<?php if(isset($_REQUEST['cellular'])) echo $_REQUEST['cellular']; ?>" maxlength="20">
- </td>
- </tr>
- <?php
- if (isset($val->error["email"]))
- {
- ?>
- <tr>
- <td colspan="2" class="Error">
- <?php echo $val->error["email"]; ?>
- </td>
- </tr>
- <?php } ?>
- <tr>
- <td align="right" nowrap valign="top">
- <?php echo $strEmail; ?>*:
- </td>
- <td class="small">
- <input type="text" class="textbox" name="email" size="30" value="<?php if(isset($_REQUEST['email'])) echo $_REQUEST['email']; ?>" maxlength="75"><br />
- <?php
- if ($GO_CONFIG->enable_system_accounts)
- {
- echo $ml_email_only;
- }
- ?>
- </td>
- </tr>
-
-
- </table>
- </td>
- <td valign="top">
- <table border="0" cellpadding="0" cellspacing="3">
- <tr>
- <td align="right" nowrap>
- <?php echo $strCompany; ?>:
- </td>
- <td>
- <input type="text" class="textbox" name="company" size="30" value="<?php if(isset($_REQUEST['company'])) echo $_REQUEST['company']; ?>" maxlength="50">
- </td>
- </tr>
- <tr>
- <td align="right" nowrap>
- <?php echo $strDepartment; ?>:
- </td>
- <td>
- <input type="text" class="textbox" name="department" size="30" value="<?php if(isset($_REQUEST['department'])) echo $_REQUEST['department']; ?>" maxlength="50">
- </td>
- </tr>
- <tr>
- <td align="right" nowrap>
- <?php echo $strFunction; ?>:
- </td>
- <td>
- <input type="text" class="textbox" name="function" size="30" value="<?php if(isset($_REQUEST['function'])) echo $_REQUEST['function']; ?>" maxlength="50">
- </td>
- </tr>
- <tr>
- <td colspan="2"> </td>
- </tr>
- <tr>
- <td align="right" nowrap>
- <?php echo $strAddress; ?>:
- </td>
- <td>
- <input type="text" class="textbox" name="work_address" size="30" value="<?php if(isset($_REQUEST['work_address'])) echo $_REQUEST['work_address']; ?>" maxlength="100">
- </td>
- </tr>
-
- <tr>
- <td align="right" nowrap>
- <?php echo $strZip; ?>:
- </td>
- <td>
- <input type="text" class="textbox" name="work_zip" size="30" value="<?php if(isset($_REQUEST['work_zip'])) echo $_REQUEST['work_zip']; ?>" maxlength="20">
- </td>
- </tr>
-
- <tr>
- <td align="right" nowrap>
- <?php echo $strCity; ?>:
- </td>
- <td>
- <input type="text" class="textbox" name="work_city" size="30" value="<?php if(isset($_REQUEST['work_city'])) echo $_REQUEST['work_city']; ?>" maxlength="50">
- </td>
- </tr>
-
-
- <tr>
- <td align="right" nowrap>
- <?php echo $strState; ?>:
- </td>
- <td>
- <input type="text" class="textbox" name="work_state" size="30" value="<?php if(isset($_REQUEST['work_state'])) echo $_REQUEST['work_state']; ?>" maxlength="50">
- </td>
- </tr>
-
- <tr>
- <td align="right" nowrap>
- <?php echo $strCountry; ?>:
- </td>
- <td>
- <input type="text" class="textbox" name="work_country" size="30" value="<?php if(isset($_REQUEST['work_country'])) echo $_REQUEST['work_country']; ?>" maxlength="50">
- </td>
- </tr>
- <tr>
- <td colspan="2"> </td>
- </tr>
-
- <tr>
- <td align="right" nowrap>
- <?php echo $strWorkphone; ?>:
- </td>
- <td>
- <input type="text" class="textbox" name="work_phone" size="30" value="<?php if(isset($_REQUEST['work_phone'])) echo $_REQUEST['work_phone']; ?>" maxlength="20">
- </td>
- </tr>
- <tr>
- <td align="right" nowrap>
- <?php echo $strWorkFax; ?>:
- </td>
- <td>
- <input type="text" class="textbox" name="work_fax" size="30" value="<?php if(isset($_REQUEST['work_fax'])) echo $_REQUEST['work_fax']; ?>" maxlength="20">
- </td>
- </tr>
- <tr>
- <td align="right" nowrap>
- <?php echo $strHomepage; ?>:
- </td>
- <td>
- <input type="text" class="textbox" name="homepage" size="30" value="<?php if(isset($_REQUEST['homepage'])) echo $_REQUEST['homepage'] ?>" maxlength="100">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
-
- <table border="0" cellpadding="0" cellspacing="3" width="600">
- <tr height="30">
- <td> </td>
- </tr>
- <tr>
- <td colspan="2"><h2><?php echo $registration_account_info; ?></h2>
- <?php echo $registartion_username_text; ?><br><br>
- </td>
- </tr>
- <?php
- if (isset($val->error["username"]))
- {
- ?>
- <tr>
- <td colspan="2" class="Error">
- <?php echo $val->error["username"]; ?>
- </td>
- </tr>
- <?php } ?>
-
- <tr>
- <td align="right" nowrap>
- <?php echo $strUsername; ?>*:
- </td>
- <td width="100%">
- <input type="text" class="textbox" name="username" size="30" value="<?php if(isset($_REQUEST['username'])) echo $_REQUEST['username']; ?>" maxlength="20">
- </td>
- </tr>
- <?php
- if (isset($val->error["pass1"]))
- {
- ?>
- <tr>
- <td colspan="2" class="Error">
- <?php echo $val->error["pass1"]; ?>
- </td>
- </tr>
- <?php } ?>
-
- <tr>
- <td align="right" nowrap>
- <?php echo $strPassword; ?>*:
- </td>
- <td>
- <input type=password class="textbox" name=pass1 size="30" maxlength="20" value="<?php if(isset($_REQUEST['pass1'])) echo $_REQUEST['pass1']; ?>">
- </td>
- </tr>
- <?php
- if (isset($val->error["pass2"]))
- {
- ?>
- <tr>
- <td colspan="2" class="Error">
- <?php echo $val->error["pass2"]; ?>
- </td>
- </tr>
- <?php } ?>
- <tr>
- <td align="right" nowrap>
- <?php echo $strPasswordConfirm; ?>*:
- </td>
- <td>
- <input type="password" class="textbox" name="pass2" size="30" maxlength="20" value="<?php if(isset($_REQUEST['pass2'])) echo $_REQUEST['pass2']; ?>">
- </td>
- </tr>
- <tr>
- <td > </td>
- </tr>
- <tr>
- <td nowrap align="right">
- <?php echo $reg_language; ?>:
- </td>
- <td>
- <?php
- $language = isset($_REQUEST['language']) ? $_REQUEST['language'] : $GO_CONFIG->language;
- $languages = $GO_LANGUAGE->get_languages();
- $dropbox = new dropbox();
- $dropbox->add_arrays($languages, $languages);
- $dropbox->print_dropbox("language", $language);
- ?>
- </td>
- </tr>
- <tr>
- <td nowrap align="right">
- <?php echo $reg_theme; ?>:
- </td>
- <td>
- <?php
- $theme = isset($_REQUEST['theme']) ? $_REQUEST['theme'] : $GO_CONFIG->theme;
- $themes = $GO_THEME->get_themes();
- $dropbox = new dropbox();
- $dropbox->add_arrays($themes, $themes);
- $dropbox->print_dropbox("theme", $theme);
- ?>
- </td>
- </tr>
-
- <tr>
- <td colspan="2">
- <br/>
- <?php
- $vis_check = isset($_POST['visible']) ? $vis_check = 'checked' : '';
- $create_check = isset($_POST['create_email']) ? $create_check = 'checked' : '';
- $create_samba_check = isset($_POST['create_samba_user']) ? $create_samba_check = 'checked' : '';
-
- echo '<input type="checkbox" name="visible" value="true" '.$vis_check.' />'.$registration_visibility.'<br />';
-
- if ($GO_CONFIG->enable_system_accounts == true && $GO_CONFIG->inmail_host != '' && $GO_CONFIG->inmail_port != '' && $GO_CONFIG->local_email_host != '')
- {
- echo '<input type="checkbox" name="create_email" value="true" '.$create_check.' />'.$registration_email;
- }
- ?>
- </td>
- </tr>
- <tr>
- <td colspan="2">
- <br />
- <?php
- echo $admin_module_access.'<br /><br />';
-
- echo '<table border="0" cellpadding="4" cellspacing="0">';
-
- $column_count = 0;
- $columns=3;
-
- if ($GO_CONFIG->enable_samba_accounts == true)
- {
- $column_count++;
- echo '<tr><td><table border="0" cellpadding="0" cellspacing="0"><tr><td><input type="checkbox" name="create_samba_user" value="true" '.$create_samba_check.' /></td><td>'.$registration_samba.'</td></tr></table></td>';
- }
- $module_count = $GO_MODULES->get_modules();
- while($GO_MODULES->next_record())
- {
- if ($column_count == 0)
- {
- echo '<tr>';
- $column_count++;
- }
-
- $lang_var = isset($lang_modules[$GO_MODULES->f('id')]) ? $lang_modules[$GO_MODULES->f('id')] : $GO_MODULES->f('id');
- $check = in_array($GO_MODULES->f('acl_read'), $module_acl) ? 'checked' : '';
- echo '<td><table border="0" cellpadding="0" cellspacing="0"><tr><td><input type="checkbox" name="module_acl[]" value="'.$GO_MODULES->f('acl_read').'" '.$check.' /></td><td>'.$lang_var.'</td></tr></table></td>';
-
- if($column_count==$columns)
- {
- $column_count=0;
- echo '</tr>';
- }else
- {
- $column_count++;
- }
- }
-
- if ($column_count != 0)
- {
- for ($i=$column_count;$i<=$columns;$i++)
- {
- echo '<td> </td>';
- }
- echo '</tr>';
- }
- echo '</table>';
- ?>
- </td>
- </tr>
- <tr height="25" colspan="2">
- <td> </td>
- </tr>
- <tr>
- <td colspan="2">
- <?php
- $button = new button($cmdOk, 'javascript:document.forms[0].submit()');
- echo ' ';
- $button = new button($cmdCancel, 'javascript:document.location=\'index.php\';');
- ?>
- </td>
- </tr>
- </table>
-