~critecia/critecia/trunk

« back to all changes in this revision

Viewing changes to src/app/View/Users/showpictures.ctp

  • Committer: Christian A. Reiter
  • Date: 2011-11-24 22:02:18 UTC
  • Revision ID: christian.a.reiter@gmail.com-20111124220218-c73n9w226cncp2v0
* NOT FULLY WORKING CODE IN ALPHA STATUS
* added groups MVC
* refactoring permissions: deleted grants/rights tables and MVC, introduced model "Permission"
* new DB schema
* many small fixes, but also new regressions

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 */
19
19
 
20
20
?>
21
 
<div>
 
21
<h2>Fotoalbum:</h2>
22
22
 
23
 
        <h2>Fotoalbum:</h2>
24
 
        
25
 
        <table class="fotoalbum" width="100%">
 
23
<table class="fotoalbum" width="100%">
26
24
        <?php 
27
 
                $counter = 0;
28
 
        
29
 
                foreach($users as $user): 
30
 
        
31
 
                        if ($counter == 0) 
32
 
                                echo '<tr>';
33
 
                        echo '  <td><div class="mainframe"> 
34
 
                                        <div class="foto">';
35
 
                        if ($user['User']['picture'] == "")
36
 
                                $user['User']['picture'] = "no.user.img.png";
37
 
                        echo $html->image('portraits/'.$user['User']['picture']);                       
38
 
                        echo '  </div>';
39
 
                        echo $html->image('fotoframe.png', array('class' => 'fotoframe'));
40
 
                        echo '<span class="title">'.$user['User']['title'].'</span><br/>'
41
 
                                .$user['User']['firstname'].' <b>'.$user['User']['lastname'].'</b>';
42
 
                        echo  '</div></td>';
43
 
                        $counter++;
44
 
                        if ($counter > 3) {
45
 
                                echo '</tr>';
46
 
                                $counter = 0;
47
 
                        }
48
 
                
49
 
                endforeach; 
50
 
                
51
 
                for ($dummy = $counter; $dummy == 3; $dummy++)
52
 
                        echo '<td> </td>';
 
25
        $counter = 0;
 
26
 
 
27
        foreach($users as $user): 
 
28
 
 
29
                if ($counter == 0) 
 
30
                        echo '<tr>';
 
31
                echo '  <td><div class="mainframe"> 
 
32
                                <div class="foto">';
 
33
                if ($user['User']['picture'] == "")
 
34
                        $user['User']['picture'] = "no.user.img.png";
 
35
                echo $this->Html->image('portraits/'.$user['User']['picture']);                 
 
36
                echo '  </div>';
 
37
                echo $this->Html->image('fotoframe.png', array('class' => 'fotoframe'));
 
38
                echo '<span class="title">'.$user['User']['title'].'</span><br/>'
 
39
                        .$user['User']['firstname'].' <b>'.$user['User']['lastname'].'</b>';
 
40
                echo  '</div></td>';
 
41
                $counter++;
 
42
                if ($counter > 3) {
 
43
                        echo '</tr>';
 
44
                        $counter = 0;
 
45
                }
 
46
        
 
47
        endforeach; 
 
48
        
 
49
        for ($dummy = $counter; $dummy == 3; $dummy++)
 
50
                echo '<td> </td>';
53
51
        ?>
54
 
        </table>
55
 
 
56
 
</div>
57
 
 
 
52
</table>
 
 
b'\\ No newline at end of file'