Esempio n. 1
0
$getPOS = query_exec($sql, $mysqli);
$getPOS->bind_result($pos_id, $pos_name, $pos_code);
while ($getPOS->fetch()) {
    if (is_role_active($pos_id, $mysqli)) {
        $pos_o .= "/" . $pos_name . " ";
    }
}
if ($pos_o == '') {
    $pos_o = 'Contributor';
}
// Listing contacts
$sql = "SELECT contact_link FROM contact WHERE contact_people_id='" . $id . "'";
$getUSR = query_exec($sql, $mysqli);
$getUSR->bind_result($con_link);
while ($getUSR->fetch()) {
    $con_o .= '<p>' . format_contact($con_link, $name_o) . '</p>';
}
// Listing blogs
$getBlogList = $mysqli->prepare('SELECT blog_id,blog_title FROM blog WHERE blog_final=1 AND blog_by="' . $id . '" ;') or die($mysqli->error);
$getBlogList->execute();
$getBlogList->store_result();
$getBlogList->bind_result($blog_id, $blog_title);
$list = '<ul>';
$f = 0;
while ($getBlogList->fetch()) {
    $list .= '<li><a href="post.php?id=' . $blog_id . '" title="View" >' . $blog_title . '</a></li>';
    $f = 1;
}
$list .= '</ul>';
if ($f == '0') {
    $list = '<em> No posts yet. </em>';
Esempio n. 2
0
';
$getContact = $mysqli->prepare('SELECT contact_id, contact_link FROM contact WHERE contact_people_id=?') or die('Couldn\'t check the contact');
$getContact->bind_param('s', $_SESSION['id']);
$getContact->execute();
$getContact->store_result();
// Collecting cname, clink
$getContact->bind_result($cid, $clink);
$profile_contacts = '		<div class="row-fluid"><br>
	      		

				<div class="col-xs-12 ">
					<h3>Links and Contact Information<a href="#" class= "pull-right" data-toggle="modal" data-target="#addContact" title="Add contact" ><span class="fa fa-plus-square"></span></a></h3><br>';
$modal_editContact = '';
while ($getContact->fetch()) {
    $js_func = "fetch_rm('" . $cid . "','" . $cname . "');";
    $profile_contacts .= '<p>' . format_contact($clink, $_SESSION['name']) . '<a href="#" class= "" data-toggle="modal" data-target="#remove" title="Delete" onclick="' . $js_func . '"> <span class="fa fa-trash-o"></span></a></p>';
    $modal_submit_js .= '// add Contact

			$("#submitEditContact' . $cid . '").click(function() {console.log("in");
				$("#loading").css("display","inline");
				$.ajax({
					type: "POST",
					cache: false,
					url: "submit.php",
					data: $("#editContact_form' . $cid . '").serialize(),
					success: function(data) {$("#editContact' . $cid . '").modal("hide");
						if(data == "1"){

							
							$("#successModal").find(".modal-body").text("Changes made succesfully!");
							$("#successModal").modal("show");}
Esempio n. 3
0
			
				<div class="col-sm-12 "><br><hr>
					<h2> Contact Information </h2>
				</div>

		</div>	
	<br>

		<div class="row-fluid">
	      		
			<div class="col-sm-12 contrib">
			<?php 
/* SOCIAL */
foreach ($social as $name => $link) {
    echo '<h4> ' . format_contact($link, $name) . '</h4>';
}
?>
				<h4><span class="fa fa-envelope-square"> </span> <a href="mailto:<?php 
echo $send_email;
?>
"><?php 
echo $send_email;
?>
</a> </h4>
			</div>

		</div>
<?php 
include 'footer.php';
?>