cis notified web server of a job completion; upload form interface and validation...
[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_sex'). ': ' ?></th>
51                                 <td><?php
52                                         echo ($userdata['sex']
53                                                         ? $this->lang->line('user_sex_female')
54                                                         : $this->lang->line('user_sex_male') ) ?></td>
55                         </tr>
56
57                         <tr>
58                                 <th><?php echo $this->lang->line('user_birth_date'). ': ' ?></th>
59                                 <td><?php echo $userdata['birth_date'] ?></td>
60                         </tr>
61
62                         <tr>
63                                 <th><?php echo $this->lang->line('user_country'). ': ' ?></th>
64                                 <td><?php echo $userdata['country_name'] ?></td>
65                         </tr>
66
67                         <tr>
68                                 <th><?php echo $this->lang->line('user_locality'). ' : ' ?></th>
69                                 <td><?php echo $userdata['locality'] ?></td>
70                         </tr>
71                         
72                         <tr>
73                                 <th><?php echo $this->lang->line('user_time_zone'). ' : ' ?></th>
74                                 <td><?php echo $userdata['time_zone'] ?></td>
75                         </tr>
76                         
77                         <tr><td></td><td>&nbsp;</td></tr>
78                         
79                         <tr>
80                                 <th><?php echo $this->lang->line('user_registration_date'). ' : ' ?></th>
81                                 <td><?php echo $userdata['registration_date'] ?></td>
82                         </tr>
83                         
84                         <tr>
85                                 <th><?php echo $this->lang->line('user_last_login'). ' : ' ?></th>
86                                 <td><?php echo $userdata['last_login'] ?></td>
87                         </tr>
88                 </table>
89         </div>
90         <div id="tab-videos">
91                 <?php echo $videos_summary ?>
92         </div>
93 </div>
94
95 <script type="text/javascript">
96         $(function() {
97                 $('#profile-tabs').tabs({
98                         "selected": <?php echo $tab ?>
99                 });
100         });
101         
102 </script>