corat-coret04

<pre><?php 
include('include/init.php'); 
//include('include/xajax/xajax.inc.php');

/***************************************************
 * ajax from slide show random product (no smooth)
 ***************************************************/
function randomproduct(){
	$xjresp = new xajaxResponse();

	$randomproduct = "<a href='javascript:;' onclick=\"xajax_randomproduct();\" >
			<h2 title=\"Etalase produk\">Etalase Produk ...</h2></a>".produk()."
			<div class=\"clear\"></div>";
	
	$xjresp->assign('randomproduct','innerHTML',$randomproduct);

	return $xjresp;
}

/**************************************
 * Initialization xajax js framework
 **************************************/
$xajax = new xajax();

$xajax->registerFunction("randomproduct");

$xajax->processRequest();

//$include_xajax = 'include/xajax/';

$xajax_js = $xajax->getJavascript('include/xajax/');
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<?php 
/******************
 * head HTML
 ******************/
echo headstart();
echo $xajax_js;
echo headend();

/******************
 * All content
 ******************/ 
$content = "<div id=\"content-wrapper\">		
	  		<img src=\"images/home-photo.jpg\" class=\"float-left\" alt=\"Logo PT. Bangun Citra Fajar\" />
	  		<h2>Selamat Datang di PT. BCF</h2>
	  		<p>Bangun Citra Fajar adalah perusahaan rekanan 
	  		PT. Trikarya, kami bergerak di bidang produksi pagar. 
	  		Bangun Citra Fajar mampu mengerjakan dan 
	  		memproduksi pagar sesuai dengan standart 
	  		atau permintaan pelanggan.</p>
	  		<p>Kami dapat dihubungi <a href='tentangkami.php'>disini</a>
	  		atau melalui Yahoo! Mesenger:</p>
	  		<center>
	  		<p><a href=\"http://messenger.yahoo.com/edit/send/?.target=bcf_riyanto\"> 
	  		<img src=\"http://opi.yahoo.com/yahooonline/u=abu_mushab78/m=g/t=2/l=us/opi.jpg\" border=\"1\" />
	  		</a>
	  		<a href=\"http://messenger.yahoo.com/edit/send/?.target=bcf_riyanto\"> </a>
	  		</p>
	  		</center>
	  		<div class=\"clear\"></div>
  		</div>
  
		<div id=\"randomproduct\">
			<div class=\"clear\"></div>
		</div>";

/******************
 * HTML Viewer 
 ******************/
$bodi = new view();
$bodi->body("home","xajax_randomproduct()");
$bodi->menu(menu());
$bodi->content($content);
$bodi->menu_footer(menu_footer());
$bodi->footer(footer());

echo $bodi->tampilkan();
?>
</html></pre>

Silahkan Komentar ... !

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s