Esempio n. 1
0
echo base_url();
?>
images/sims_login.png" /></td>
    <td width="1%" valign="middle"><img src="<?php 
echo base_url();
?>
images/horizontal_sep.png" /></td>
    <td valign="middle">
    <?php 
$user_photo = $this->session->userdata('photo');
if (!empty($user_photo)) {
    ?>

    	<div style="float:left; margin-right:9px">
    		<img style="" src="<?php 
    echo base_url() . ($this->session->userdata('usertype') == '' ? 'images/small-no-photo.jpg' : 'downloads/users/' . student_photo_thumb($user_photo));
    ?>
" />
    	</div>
    <?php 
}
?>


    <div style="float:left">
    <span class="fullname"><?php 
echo wordwrap($this->session->userdata('names'));
?>
</span><br />
                  	<span class="usertype"><?php 
echo $this->session->userdata('usertype') == 'MSR' ? 'ADMINISTRATOR' : check_empty_value($this->session->userdata('usergroupname'), 'STANDARD USER');
Esempio n. 2
0
</script>
<div class="content has_photo_upload" id="student-profile-view-content">
        <table border="0" cellspacing="0" cellpadding="10" width="100%" id='contenttable'>
          <tr>
            <td valign="top" width="1%" style="padding-top:0px;">

                <table>
                    	<tr>
                        <td align="left">
                            <span id="print">
                        <div id="image-upload-status">Uploading photo..</div>
                                </span>
                        <?php 
#Get the current class details
$current_class = current_class($this, $studentdetails['id']);
$profile_image_src = empty($studentdetails['photo']) ? 'images/no-photo.jpg' : 'downloads/students/' . student_photo_thumb($studentdetails['photo']);
echo '<img id="profile-pic" src="' . base_url() . $profile_image_src . '" class="profile-pic"/>';
?>

                        <div id="add-image" class="button" style="width:110px; margin-top:10px">
                        Upload Photo
                      </div>
                      <input type="hidden" name="photo" id="photo" value="" />
                        </td>
                        </tr>
                        <tr>
                    	<td class="field" nowrap>
                      	<?php 
echo "<div class='viewtext'>" . number_format(get_date_diff($studentdetails['dob'], date('m/d/Y h:i:s a', time()), 'days') / 365, 0) . ", " . $studentdetails['gender'] . "</div>";
?>