Location: PHPKode > projects > Decider > decider/Organization/organizationtab.php
<?php

	require('../Login/authen.php');

?>
<html>
<head>
<title>Decider - Information Gathering Assistant</title>
<link rel="stylesheet" type="text/css" href="../ajaxtabs/ajaxtabs.css" />
<link rel="stylesheet" type="text/css" href="../common/styles.css" />
<script type="text/javascript" src="../ajaxtabs/ajaxtabs.js">

</script>
</head>

<body>
<div id='maindiv' align="center" >
<table width="800px">
	<tr>
		<td align="left" valign="top"><?php require('../common/top.html'); ?></td>
	</tr>
</table>

<table background="../common/tableback.png" width="800px" height="800px">
<tr align="right"><td></td><td class="label" align="right">
	<?php 
	
echo $_SESSION['username'];
?></td></tr>
	<tr>
		<td align="left" valign="top"><?php require('../common/menu.html'); ?></td>
		<td width="600px" align="left" valign="top"><?php require('../Organization/organization.php'); ?></td>
	</tr>
</table>

<?php
//to add data to client key person table

if(isset($_POST['add'])){

for($index=0;$index<$_POST[number];$index++){
	$txtName="txtName".$index;
	$txtDesignation="txtDesignation".$index;
	$txtAdd="txtAdd".$index;
	$txtHomeTel="txtHomeTel".$index;
	$txtWorkTel="txtWorkTel".$index;
	$txtMobile="txtMobile".$index;
	$txtEmail="txtEmail".$index;
	$txtkptype="txtkptype".$index;

	$q_string="INSERT INTO client_key_person (Client_Name,Name, Designation,Address,Work_Tel,Home_Tel,Mobile,Email,Dkp_Id)
	
	VALUES('$_POST[organization_name]','$_POST[$txtName]','$_POST[$txtDesignation]','$_POST[$txtAdd]','$_POST[$txtHomeTel]','$_POST[$txtWorkTel]','$_POST[$txtMobile]','$_POST[$txtEmail]','$_POST[$txtkptype]')";

	if (!mysql_query($q_string,$link))
	  {
	  die('Error: ' . mysql_error());
	  }
	 //echo "number".$_POST[number];
	echo "record added";
	}
	mysql_close($link);
	
}
?>
<?php 
//to edit data in client table

?>
<?php 
//to delete data from client table

?>
</div>

</body>
</html>
Return current item: Decider