3491ec4c9d9ad903461257d4e036e29cab67d384
[living-lab-site.git] / application / views / user / profile_view.php
1 <?php 
2         if (! isset($tab))
3                 $tab = 0;
4 ?>
5 <h1><?php echo $this->lang->line('user_appelation')
6         . ' <em>'. $userdata['username']. '</em>' ?></h1>
7 <div id="profile-tabs">
8         <ul>
9                 <li><a href="#tab-profile">Profile</a></li>
10                 <li><a href="#tab-videos">Videos</a></li>
11         </ul>
12         <div id="tab-profile">
13                 <table class="form">
14                         <tr>
15                                 <th><?php echo $this->lang->line('user_username'). ': ' ?></th>
16                                 <td><?php echo $userdata['username'] ?></td>
17                         </tr>
18                         
19                         <tr>
20                                 <th><?php echo $this->lang->line('user_roles'). ': ' ?></th>
21                                 <td><?php echo $userdata['roles'] ?></td>
22                         </tr>
23                         
24                         <tr><td></td><td>&nbsp;</td></tr>
25                         
26                         <tr>
27                                 <th><?php echo $this->lang->line('user_first_name'). ': ' ?></th>
28                                 <td><?php echo $userdata['first_name'] ?></td>
29                         </tr>
30                         
31                         <tr>
32                                 <th><?php echo $this->lang->line('user_last_name'). ': ' ?></th>
33                                 <td><?php echo $userdata['last_name'] ?></td>
34                         </tr>
35
36                         <tr>
37                                 <th><?php echo $this->lang->line('user_birth_date'). ': ' ?></th>
38                                 <td><?php echo $userdata['birth_date'] ?></td>
39                         </tr>
40
41                         <tr>
42                                 <th><?php echo $this->lang->line('user_country'). ': ' ?></th>
43                                 <td><?php echo $userdata['country_name'] ?></td>
44                         </tr>
45
46                         <tr>
47                                 <th><?php echo $this->lang->line('user_locality'). ' : ' ?></th>
48                                 <td><?php echo $userdata['locality'] ?></td>
49                         </tr>
50                         
51                         <tr>
52                                 <th><?php echo $this->lang->line('user_time_zone'). ' : ' ?></th>
53                                 <td><?php echo $userdata['time_zone'] ?></td>
54                         </tr>
55                         
56                         <tr><td></td><td>&nbsp;</td></tr>
57                         
58                         <tr>
59                                 <th><?php echo $this->lang->line('user_registration_date'). ' : ' ?></th>
60                                 <td><?php echo $userdata['registration_date'] ?></td>
61                         </tr>
62                         
63                         <tr>
64                                 <th><?php echo $this->lang->line('user_last_login'). ' : ' ?></th>
65                                 <td><?php echo $userdata['last_login'] ?></td>
66                         </tr>
67                 </table>
68         </div>
69         <div id="tab-videos">
70                 <?php echo $videos_summary ?>
71         </div>
72 </div>
73
74 <script type="text/javascript">
75         $(function() {
76                 $('#profile-tabs').tabs({
77                         "selected": <?php echo $tab ?>
78                 });
79         });
80         
81 </script>