Ejemplo n.º 1
0
if (empty($profile_information)) {
    $profileAdd = new UserProfile($GLOBALS['conx']);
    $profileAdd->sessionPersistent("ProfileEditSave", "index.php", 3600);
    $profileAdd->newAddForm("ProfileEditSave");
    $profileAdd->form->addParam("goto", "settings_myinfo.php");
    $profileAdd->form->setGotFile(true);
    echo $profileAdd->form->getFormHeader();
    echo $profileAdd->form->getFormEvent();
} else {
    if (is_object($_SESSION['ProfileEditSave'])) {
        $ProfileEdit = $_SESSION['ProfileEditSave'];
        $ProfileEdit->getProfileInformation((int) $_SESSION['do_User']->iduser);
    } else {
        $ProfileEdit = new UserProfile($GLOBALS['conx']);
        $ProfileEdit->sessionPersistent("ProfileEditSave", "index.php", 120);
        $ProfileEdit->getProfileInformation((int) $_SESSION['do_User']->iduser);
    }
    $ProfileEdit->newUpdateForm('ProfileEditSave');
    $ProfileEdit->setRegistry("user_profile");
    $ProfileEdit->form->addParam("goto", "settings_myinfo.php");
    $ProfileEdit->form->setGotFile(true);
    echo $ProfileEdit->form->getFormHeader();
    echo $ProfileEdit->form->getFormEvent();
}
?>
    <?php 
echo $_SESSION['ProfileEditSave']->iduser;
?>
          
  <table class="tplain">
      <tr>
Ejemplo n.º 2
0
 /*$do_contact->getUserContacts($_SESSION['do_coworker']->idcoworker);
       if($do_contact->getNumRows()){
 
       // while($do_contact->next()){
 
       $co_workers[] = $do_contact->idcoworker;
       $user_picture = $do_contact->picture;
       $contact_id = $do_contact->idcontact;
 
       // }
 
       }*/
 $user_name = $do_user->getUserNameByIdUser($_SESSION['do_coworker']->idcoworker);
 // Get Bio Information
 $do_userprofile = new UserProfile();
 $profile_information = $do_userprofile->getProfileInformation($_SESSION['do_coworker']->idcoworker);
 $job_description = $profile_information['job_description'];
 $do_userprofile->free();
 if ($user_picture != '') {
     $thumb_name = $_SERVER['DOCUMENT_ROOT'] . '/dbimage/thumbnail/' . $user_picture;
     if (file_exists($thumb_name)) {
         $user_pic = "/dbimage/thumbnail/" . $user_picture;
     } else {
         $user_pic = "/images/empty_avatar.gif";
     }
 } else {
     $user_pic = '/images/empty_avatar.gif';
 }
 /* echo '<div style="position:relative;width:100%;">';
       echo '<div class="feed_user_pic" style="positon:relative;float:left;overflow:hidden;">';
       echo '<a href="/profile/' . $user_name . '" target="_blank"> <img height="50px" alt="" src=' . $user_pic . ' > </a>';
Ejemplo n.º 3
0
      dataType: "html",
      success: function(data) {   
	$('#publicProfile').html(data);
      }
    });

  });

</script>

<div class="layout_center">
    <div class="layout_top">
  <?php 
$id_user = $do_contact->getIdUser($idcontact);
$do_userprofile = new UserProfile();
$profile_information = $do_userprofile->getProfileInformation($id_user);
$ContactWebsite = $_SESSION['do_contact']->getChildContactWebsite();
if ($ContactWebsite->getNumRows()) {
    $ContactWebsite->next();
    $website_url = $ContactWebsite->website;
} else {
    $website_url = '#';
}
if (empty($profile_information)) {
    ?>
        <a href="<?php 
    echo $website_url;
    ?>
"><img src="/images/ofuz_logo_profile.png" width="157" height="100" alt="" /></a>
      <?php 
} else {