e022e8828b0f4606f06666da841f75389d195278
[acontent.git] / docs / themes / default / profile / index.tmpl.php
1 <?php 
2 /************************************************************************/
3 /* AContent                                                             */
4 /************************************************************************/
5 /* Copyright (c) 2010                                                   */
6 /* Inclusive Design Institute                                           */
7 /*                                                                      */
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 /************************************************************************/
12
13 // show or hide the author information based on the status of the checkbox "author content" 
14 global $onload;
15 $onload = "if (jQuery('#is_author').attr('checked')) jQuery('#table_is_author').show(); else jQuery('#table_is_author').hide();";
16
17 require(TR_INCLUDE_PATH.'header.inc.php'); 
18 ?>
19
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="" />
23
24 <div class="input-form">
25 <fieldset class="group_form"><legend class="group_form"><?php echo _AT('edit_profile'); ?></legend>
26
27         <table class="form-data" align="center">
28                 <tr align="center"><td>
29                 <table>
30                 <tr>
31                         <td colspan="2" align="left"><?php echo _AT('required_field_text') ;?></td>
32                 </tr>
33
34                 <tr>
35                         <th align="left"><?php echo _AT('login_name'); ?>:</th>
36                         <td align="left"><?php echo stripslashes(htmlspecialchars($this->row['login'])); ?></td>
37                 </tr>
38
39                 <tr>
40                         <th align="left"><?php echo _AT('web_service_id'); ?>:</th>
41                         <td align="left"><?php echo $this->row['web_service_id']; ?></td>
42                 </tr>
43
44                 <tr><td><br /></td></tr>
45
46                 <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>
49                 </tr>
50
51                 <tr>
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>
54                 </tr>
55
56                 <tr>
57                         <td colspan="2">
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> 
59                         </td>
60                 </tr>
61                 </table>
62                 </td></tr>
63                 
64                 <tr align="center"><td>
65                 <table id="table_is_author">
66                 <tr>
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>
69                 </tr>
70
71                 <tr>
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>
74                 </tr>
75
76                 <tr>
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>
79                 </tr>
80
81                 <tr>
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>
84                 </tr>
85
86                 <tr>
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>
89                 </tr>
90
91                 <tr>
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>
94                 </tr>
95
96                 <tr>
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>
99                 </tr>
100
101                 </table>
102                 </td></tr>
103                 
104                 <tr align="center"><td>
105                 <table>
106                 <tr>
107                         <td colspan="2">
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" />
111                         </p>
112                         </td>
113                 </tr>
114                 </table>
115                 </td></tr>
116         </table>
117 </fieldset>
118
119 </div>
120 </form>
121
122 <?php require(TR_INCLUDE_PATH.'footer.inc.php'); ?>