Example #1
0
                <div class="box box-primary transbox">
                    <div class="box-body box-profile">
                        <!--                        <img class="profile-user-img img-responsive img-circle" src="../../dist/img/user4-128x128.jpg" alt="User profile picture">-->
                        <form
                            action="<?php 
echo base_url() . 'administrator/user/update_profilePic' . '/' . $user->id;
?>
"
                            method="post" id="banner" enctype="multipart/form-data">
                            <div class="form-group ">
                                <div class="panel-empty">
                                    <div class="panel-empty-inside">
                                        <div class="box-inside">
                                            <?php 
if (!profileImageExists(base_url() . 'uploads/profile/' . $this->session->userdata(PROFILE_PIC))) {
    ?>
                                                <a id="img" href="#"> <img alt="User profile picture"
                                                                           class="profile-user-img img-responsive img-circle"
                                                                           src="<?php 
    echo base_url() . 'uploads/profile/empty_profile.jpg';
    ?>
"></a>
                                            <?php 
} else {
    ?>
                                                <a id="img" href="#"> <img alt="User profile picture"
                                                                           class="profile-user-img img-responsive img-circle"
                                                                           src="<?php 
    echo base_url() . 'uploads/profile/' . $user->profile_image;
    ?>
Example #2
0
<?php

$blob_length = strlen($this->session->userdata(PROFILE_PIC));
$profilePicture = $this->session->userdata(PROFILE_PIC);
$imageUrl = base_url() . 'uploads/profile/' . $profilePicture;
if (!($profilePicture && profileImageExists($imageUrl))) {
    $imageUrl = base_url() . 'uploads/profile/empty_profile.jpg';
}
?>

<style>

    .toggle {
        float: right;
    }

    .datepicker table tr td.old, .datepicker table tr td.new {
        color: lightsteelblue;
    }

    div.bg-profile {
        background-image: url(<?php 
echo $imageUrl;
?>
);
        background-repeat: no-repeat;
        background-size: 100% 100%;
    }

    .small-box > .small-box-footer {
        text-align: left;