2 /************************************************************************/
4 /************************************************************************/
5 /* Copyright (c) 2010 */
6 /* Inclusive Design Institute */
8 /* This program is free software. You can redistribute it and/or */
9 /* modify it under the terms of the GNU General Public License */
10 /* as published by the Free Software Foundation. */
11 /************************************************************************/
13 // show or hide the author information based on the status of the checkbox "author content"
15 $onload = "if (jQuery('#is_author').attr('checked')) jQuery('#table_is_author').show(); else jQuery('#table_is_author').hide();";
17 require(TR_INCLUDE_PATH.'header.inc.php');
20 <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
21 <input name="password_error" type="hidden" />
22 <input type="hidden" name="form_password_hidden" value="" />
24 <div class="input-form">
25 <fieldset class="group_form"><legend class="group_form"><?php echo _AT('edit_profile'); ?></legend>
27 <table class="form-data" align="center">
28 <tr align="center"><td>
31 <td colspan="2" align="left"><?php echo _AT('required_field_text') ;?></td>
35 <th align="left"><?php echo _AT('login_name'); ?>:</th>
36 <td align="left"><?php echo stripslashes(htmlspecialchars($this->row['login'])); ?></td>
40 <th align="left"><?php echo _AT('web_service_id'); ?>:</th>
41 <td align="left"><?php echo $this->row['web_service_id']; ?></td>
44 <tr><td><br /></td></tr>
47 <th align="left"><span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="first_name"><?php echo _AT('first_name'); ?></label>:</th>
48 <td align="left"><input id="first_name" name="first_name" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['first_name'])); ?>" /></td>
52 <th align="left"><span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="last_name"><?php echo _AT('last_name'); ?></label>:</th>
53 <td align="left"><input id="last_name" name="last_name" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['last_name'])); ?>" /></td>
58 <input type="checkbox" name="is_author" id="is_author" <?php if ($_POST['is_author'] == 'on' || $_POST['is_author']==1) echo 'checked="checked"'; ?> onclick="if (this.checked) jQuery('#table_is_author').show('slow'); else jQuery('#table_is_author').hide('slow');" /><label for="is_author"><?php echo _AT('is_author'); ?></label>
64 <tr align="center"><td>
65 <table id="table_is_author">
67 <td align="left"><span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="organization"><?php echo _AT('organization'); ?></label>:</td>
68 <td align="left"><input id="organization" name="organization" type="text" size="50" maxlength="100" value="<?php if (isset($_POST['organization'])) echo stripslashes(htmlspecialchars($_POST['organization'])); else echo stripslashes(htmlspecialchars($this->row['organization'])); ?>" /></td>
72 <td align="left"><span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="phone"><?php echo _AT('phone'); ?></label>:</td>
73 <td align="left"><input id="phone" name="phone" type="text" size="30" maxlength="30" value="<?php if (isset($_POST['phone'])) echo stripslashes(htmlspecialchars($_POST['phone'])); else echo stripslashes(htmlspecialchars($this->row['phone'])); ?>" /></td>
77 <td align="left"><span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="address"><?php echo _AT('address'); ?></label>:</td>
78 <td align="left"><input id="address" name="address" type="text" size="50" maxlength="100" value="<?php if (isset($_POST['address'])) echo stripslashes(htmlspecialchars($_POST['address'])); else echo stripslashes(htmlspecialchars($this->row['address'])); ?>" /></td>
82 <td align="left"><span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="city"><?php echo _AT('city'); ?></label>:</td>
83 <td align="left"><input id="city" name="city" type="text" size="30" maxlength="30" value="<?php if (isset($_POST['city'])) echo stripslashes(htmlspecialchars($_POST['city'])); else echo stripslashes(htmlspecialchars($this->row['city'])); ?>" /></td>
87 <td align="left"><span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="province"><?php echo _AT('province'); ?></label>:</td>
88 <td align="left"><input id="province" name="province" type="text" size="30" maxlength="30" value="<?php if (isset($_POST['province'])) echo stripslashes(htmlspecialchars($_POST['province'])); else echo stripslashes(htmlspecialchars($this->row['province'])); ?>" /></td>
92 <td align="left"><span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="country"><?php echo _AT('country'); ?></label>:</td>
93 <td align="left"><input id="country" name="country" type="text" size="30" maxlength="30" value="<?php if (isset($_POST['country'])) echo stripslashes(htmlspecialchars($_POST['country'])); else echo stripslashes(htmlspecialchars($this->row['country'])); ?>" /></td>
97 <td align="left"><span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="postal_code"><?php echo _AT('postal_code'); ?></label>:</td>
98 <td align="left"><input id="postal_code" name="postal_code" type="text" size="10" maxlength="10" value="<?php if (isset($_POST['postal_code'])) echo stripslashes(htmlspecialchars($_POST['postal_code'])); else echo stripslashes(htmlspecialchars($this->row['postal_code'])); ?>" /></td>
104 <tr align="center"><td>
108 <p class="submit_button">
109 <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" class="submit" />
110 <input type="submit" name="cancel" value=" <?php echo _AT('cancel'); ?> " class="submit" />
122 <?php require(TR_INCLUDE_PATH.'footer.inc.php'); ?>