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