Location: PHPKode > projects > PhpCodeBuilder > phpcb/header.php
PHP Code Builder
Copyright (C) 2007  Revmakx

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
function heading($heading)
<!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">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<title>:: PHP Code Builder ::</title>
<script language="JavaScript">

var testresults //emial validation
function checkemail(){
var str=document.form_fb.fb_email.value
var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
if (filter.test(str))
alert("Please input a valid email address!")
return (testresults)

function checkbae(){ //emial validation
if (document.layers||document.getElementById||document.all)
return checkemail()
return true

function Validate() {
  if (document.f_db_use_pas.db_user.value.length == 0) {
          alert("Please fill out Database Username.\n");
	  return false;

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  if (restore) selObj.selectedIndex=0;

function FP_swapImg() {//v1.0
 var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2; n<args.length;
 n+=2) { elm=FP_getObjectByID(args[n]); if(elm) { doc.$imgSwaps[doc.$imgSwaps.length]=elm;
 elm.$src=elm.src; elm.src=args[n+1]; } }

function FP_preloadImgs() {//v1.0
 var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
 for(var i=0; i<a.length; i++) { d.FP_imgs[i]=new Image; d.FP_imgs[i].src=a[i]; }

function FP_getObjectByID(id,o) {//v1.0
 var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);
 else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
 if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
 for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
 f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
 for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } }
 return null;
// -->
<style type="text/css">
body {
font-family: Arial;
	font-size: 12px;
	color: #28668D;
	A {
	 COLOR: #28668D;  TEXT-DECORATION: none FONT-WEIGHT: underline;
.style3 {color: #FFFFFF}
.style32 {color: #216B8F; }


    <table height="678" border="0" align="center">
        <td><a href="http://www.phpcodebuilder.com"><img src="images/logo.jpg" width="207" height="101" border="0" /></a> </td>
        <td width="721" height="82" bgcolor="#E9E9E9"><div align="center" class="style1"><center><? echo $heading;?></center></td>
        <td width="202" align="left" valign="top"><div align="center">
          <table width="166" border="0" height="10">
              <td width="160" colspan="2" align="left" valign="top"><div align="center"><a href="codequery.php"></a><a href="codeform.php"></a><a href="codeses.php"></a><a href="filgen.php"></a><a href="codequery.php"><img src="images/checkthis1_05.jpg" width="160" height="37" border="0" /></a><a href="codeform.php"><img src="images/checkthis1_07.jpg" width="160" height="28" border="0" /></a><a href="codeses.php"><img src="images/checkthis1_08.jpg" width="160" height="29" border="0" /></a><a href="codeforcookies.php"><img src="images/checkthis1_09.jpg" width="160" height="29" border="0" /></a><a href="filgen.php"><img src="images/checkthis1_10.jpg" width="160" height="31" border="0" /></a><a href="manage_function.php"><img src="images/checkthis1_11.jpg" width="160" height="28" border="0" /></a><a href="http://www.phpcodebuilder.com/howto.php"><img src="images/checkthis1_12.jpg" width="160" height="30" border="0" /></a><a href="setting.php"><img src="images/checkthis1_13.jpg" width="160" height="28" border="0" /></a><a href="http://www.phpcodebuilder.com/index.php"><img src="images/checkthis1_14.jpg" width="160" height="24" border="0" /></a></div></td>
          </table></div><br />&nbsp;</p>
          <table width="158" border="0" align="center" bordercolor="#ECE9D8" bgcolor="#1B5C86">
              <td width="152" align="center" valign="top" bgcolor="#205F8A"><span class="style5 style3">FUNCTIONS</span></td>
              <td align="center"><form name="FR1" >
			<?  $fun_name=$_REQUEST['fun_name'];
$fun_text=$_REQUEST['fun_text']; ?>
                  <select name="fun_name_a" id="fun_name_a" onchange="MM_jumpMenu('parent',this,0)">
				  <option>Select </option>
                    <?  $db='phpcb10';
					$q4e=mysql_query("select `pcb_fun10`.* from pcb_fun10 where 1");
	   if($n4==0) echo '<option>No Funtion is saved</option>';
				echo '<option value="?&fun_name='.$a4['fun_name'].'"';
				if($fun_name==$a4['fun_name']) echo ' selected="selected" ';
				echo ' >';
				echo $a4['fun_name'].'</option>';
              <td height="219" align="left" valign="top"><form id="form2" name="form2" method="post" action="">
                  <textarea name="textarea" cols="20" rows="10"><? 
				  $q4e=mysql_query("select `pcb_fun10`.* from pcb_fun10 where `pcb_fun10`.`fun_name`='$fun_name'");
				  if(!$q4e) echo mysql_error();
		//echo nl2br($a4['fun_code']);
		echo $a4['fun_text'];
        <td width="721" height="590" align="left" valign="top" bgcolor="#F2F2F2"><p align="center">
		  <? } ?>
Return current item: PhpCodeBuilder