PHP Classes

File: View/Users/picture.ctp

Recommend this page to a friend!
  Classes of Andraž   pingvincek   View/Users/picture.ctp   Download  
File: View/Users/picture.ctp
Role: Example script
Content type: text/plain
Description: Example script
Class: pingvincek
Manage a site for organizing dates between people
Author: By
Last change:
Date: 6 years ago
Size: 606 bytes
 

Contents

Class file image Download
<div class="span-19">
    <h1>Slika profila</h1>
    <p>
        <?php
       
if (isset($user['User']['picture']) && $user['User']['picture'] != NULL)
        {
            echo
$this->Html->image('profilePictures/' . $user['User']['picture']);
        }
        else
        {
            echo
$this->Html->image('upr.png');
        }

        echo
'<br><br>' . $this->Html->link('Dodaj sliko profila', '/users/uw1');
        echo
' | ' . $this->Html->link('Odstrani sliko profila', '/users/removepicture', array(), 'Ali ste prepri?ani, da ?elite odstraniti sliko profila?');
       
?>
</p>
</div>