PK

ADDRLIN : /home/anibklip/msbhogalnsons.com/
FLL :
Current File : /home/anibklip/msbhogalnsons.com/content.php

<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<link rel="stylesheet" href="/resources/demos/style.css">

<!-- <script src="https://code.jquery.com/jquery-1.12.4.js"></script> -->
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script>
$( function() {
	$( document ).tooltip(); // initialize tooltip
 
	var id='';
	//$( document ).tooltip();
	$(".tooltip").tooltip({
		track:true,
		content: function() {
			id= $(this).attr("href");
			//alert(id);
			//return id;
			return "<img src='http://farandwide.much.com/wp-content/themes/faw-v2.2.27/dist/images/login/loading-sm.gif'>";
		},open: function( event, ui ) {
			var id = this.id;
			var split_id = id.split('_');
			var userid = split_id[1];
			//alert("s"+userid);
			$.ajax({
				url:'tree.php?n='+userid,
				type:'post',
				data:{userid:userid},
				success: function(response){
					// Setting content option
					$("#"+id).tooltip('option','content',response);
				}
			});
		}

		/*track: true,
		//content: '... waiting on ajax ...',
		content: function() {
			id= $(this).attr("href");
			//alert(id);
			return id;
		},
		open: function(evt, ui) {
			var elem = $(this);
			//alert(elem.attr("title"));
			//alert(elem.toSource());
			$.ajax({
				url:'tree.php?n='+id,
				success: function(result){
					//alert(result);
					//elem.tooltip('option', 'content', 'Ajax call complete');
					elem.tooltip('option', 'content', result);
				}
			});
		}*/
	});

	$(".tooltip").mouseout(function(){
	   // re-initializing tooltip
	   $(this).attr('title','Please wait...');
	   $(this).tooltip();
	   $('.ui-tooltip').hide();
	 });
});
</script>


<?php
$query = "select * from content where page_id='$_GET[page_id]'";
$query = mysqli_query($conn, $query) or die(mysql_error());
if($cont=mysqli_fetch_array($query)){
	if($cont[parent_id]){
		$parent_id=$cont[parent_id];
	}else{
		$parent_id=$cont[page_id];
	}
}
?>
<div class="clearfix"></div>

<div class="main_content">
	<div class="factory-pagetitle">
		<h1><?php echo $cont[titl]?></h1>
		<!-- <p>Cras est nibh, hendrerit non convallis finibus</p> -->
	</div>
	<br clear="all"/>
	<div class="factory-progress-text">
		<p><?php echo $cont[body]?></p>
	</div>

</div>


PK 99