6
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>WELCOME TO SHREE INFO TECH</title> <link href="css/styles.css" rel="stylesheet" type="text/css"> <style type="text/css"> <!-- .style2 {font-size: 11px; font-weight: bold; font-family: Verdana, Arial, Helvetica, sans-serif;} .style3 {color: #999999} a:link { color: #CCCCCC; text-decoration: none; font-weight: bold; } a:visited { text-decoration: none; color: #FFFFFF; } a:hover { text-decoration: none; color: #F4F4F4; } a:active { text-decoration: none; color: #F4F4F4; } .style4 {color: #FF0000} --> </style> </head> <body> <table width="950" cellspacing="0" cellpadding="0" align="center"> <tr> <td><table cellspacing="0" cellpadding="0" width="100%"> <tr> <td height="73" valign="top"><img src="images/vocus_logo_rgb.jpg" width=50% height=70><img src="images/crm2.jpg" width=50% height=70></td> </tr> <tr> <td class="greybg">&nbsp;</td> </tr> </table></td> </tr> <tr> <td class="menubg" height="30"> <table width="100%" cellspacing="0" cellpadding="0"> <tr> <td width="1%" align="left"><img src="css/menuleft.gif"></td> <td width="11%" align="center"><a href="index.html" class="menulink">LOGOUT</a></td> <td width="1%" align="center" style="color:#ffffff">|</td> <td width="11%" align="center"><a href="home.html" class="menulink">HOME</a></td> <td width="1%" align="center" style="color:#ffffff">|</td> <td width="11%" align="center"><a href="customerdetail.html" class="menulink">CUSTOMER DETAILS</a></td> <td width="1%" align="center" style="color:#ffffff">|</td> <td width="11%" align="center"><a href="docdetails.htm" class="menulink">SALES DETAILS</a></td> <td width="1%" align="center" style="color:#ffffff">|</td>

Insertcustomer

Embed Size (px)

Citation preview

Page 1: Insertcustomer

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><title>WELCOME TO SHREE INFO TECH</title><link href="css/styles.css" rel="stylesheet" type="text/css"><style type="text/css"><!--.style2 {font-size: 11px; font-weight: bold; font-family: Verdana, Arial, Helvetica, sans-serif;}.style3 {color: #999999}a:link {

color: #CCCCCC;text-decoration: none;font-weight: bold;

}a:visited {

text-decoration: none;color: #FFFFFF;

}a:hover {

text-decoration: none;color: #F4F4F4;

}a:active {

text-decoration: none;color: #F4F4F4;

}.style4 {color: #FF0000}--></style></head><body><table width="950" cellspacing="0" cellpadding="0" align="center"> <tr>

<td><table cellspacing="0" cellpadding="0" width="100%"> <tr> <td height="73" valign="top"><img src="images/vocus_logo_rgb.jpg" width=50% height=70><img src="images/crm2.jpg" width=50% height=70></td> </tr> <tr> <td class="greybg">&nbsp;</td> </tr> </table></td>

</tr><tr>

<td class="menubg" height="30"><table width="100%" cellspacing="0" cellpadding="0">

<tr>

<td width="1%" align="left"><img src="css/menuleft.gif"></td> <td width="11%" align="center"><a href="index.html" class="menulink">LOGOUT</a></td> <td width="1%" align="center" style="color:#ffffff">|</td><td width="11%" align="center"><a href="home.html" class="menulink">HOME</a></td> <td width="1%" align="center" style="color:#ffffff">|</td> <td width="11%" align="center"><a href="customerdetail.html" class="menulink">CUSTOMER DETAILS</a></td> <td width="1%" align="center" style="color:#ffffff">|</td>

<td width="11%" align="center"><a href="docdetails.htm" class="menulink">SALES DETAILS</a></td> <td width="1%" align="center" style="color:#ffffff">|</td>

Page 2: Insertcustomer

<td width="11%" align="center"><a href="hawre.htm" class="menulink">SERVICES </a></td> <td width="1%" align="center" style="color:#ffffff">|</td>

<td width="11%" align="center"><a href="facility.htm" class="menulink">FACILITIES</a></td> <td width="1%" align="center" style="color:#ffffff">|</td>

<td width="11%" align="center"><a href="reports.html" class="menulink">REPORTS</a></td> <td width="1%" align="center" style="color:#ffffff">|</td>

<td width="11%" align="center"><a href="contactus.html" class="menulink">CONTACT US</a></td>

<td width="1%" align="right"><img src="css/menuright.gif"></td> </tr>

<tr><td height="19" colspan="17" bordercolor="#D9FDFF">&nbsp;</td></tr></table> </td>

</tr> <tr> <td valign="top">

<table width="100%" cellspacing="0" cellpadding="0"> <tr> <td width="25%" align="left" valign="top">

<table border="0" cellpadding="0" cellspacing="0" width="95%" > <tr> <td width="1%" align="left" valign="top" ><img src="css/submenubgleft.gif"></td> <td class="submenubg" align="left" valign="middle"><div class="menulink">Our Best Services </div></td> <td width="1%" align="left" valign="top"><img src="css/submenubgright.gif"></td> </tr> <tr> <td colspan="3" valign="top" align="left">

<table width="100%" cellpadding="0" cellspacing="0" bgcolor="#f5f5f5" class="thinborder"> <tr> <td width="15%" height="35" align="center" class="btmlink"><img src="images/arrow.gif"></td> <td width="85%" class="btmlink style4"><font class="submenulink">12 Hours Working </td> </tr> <tr> <td colspan="2" class="btmlink style4" style="BACKGROUND-IMAGE: url(images/dotted_pattern.gif)"></td> </tr> <tr> <td width="15%" height="35" align="center" class="btmlink"><img src="images/arrow.gif"></td> <td width="85%" class="btmlink style4"><font class="submenulink"><span class="style2">Services</span></td> </tr> <tr> <td colspan="2" class="btmlink style4" style="BACKGROUND-IMAGE: url(images/dotted_pattern.gif)"></td> </tr> <tr> <td width="15%" height="35" align="center" class="btmlink"><img src="images/arrow.gif"></td> <td width="85%" class="btmlink style4"><font class="submenulink">All Product Available</td> </tr>

Page 3: Insertcustomer

<tr> <td colspan="2" class="btmlink style4" style="BACKGROUND-IMAGE: url(images/dotted_pattern.gif)"></td> </tr> <tr> <td width="15%" height="35" align="center" class="btmlink"><img src="images/arrow.gif"></td> <td width="85%" class="btmlink style4"><font class="submenulink">Experienced Engineeres</td> </tr>

<tr>

<td colspan="2" class="btmlink style3" style="BACKGROUND-IMAGE: url(images/dotted_pattern.gif)"></td> </tr>

<tr> <td height="19" colspan="2" class="btmlink style3">&nbsp;</td> </tr> </table></td> </tr> </table></td> <td width="75%" align="center" valign="top">

<table width="95%" cellspacing="0" cellpadding="0"> <tr> <td height="32" align="center" valign="top" bgcolor="#E8E6E3">

</td> </tr> <tr> <td bordercolor="#EAEE4F" bgcolor="#E8E6E3"><?php

$local="localhost";$user="ram";$pass="ram";

mysql_connect($local,$user,$pass)or die(mysql_error());

$q=mysql_query("create database`crm`");

mysql_select_db("crm");

$res=mysql_query("select * from autogenerate");

while($r=mysql_fetch_array($res)){

$n=$r["num"];}

echo"<form action=insertnewcustomer.php method=post>";

echo"<table width=60% cellspacing=1 cellpadding=1 border=0 align=centre>";

echo"<tr><td align=left width=24%><nobr><b><span class=style5>";echo"Customer ID</span></nobr></td><td width=80%><input type=text name=cid size=30 value=$n></td></tr>";

echo"<tr><td align=left width=24%><span class=style6><nobr><b><strong>Customer Name &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong></span></nobr></td><td width=86% align=centre><input type=text name=cname size=30><nobr> <font

Page 4: Insertcustomer

color=red>*</nobr></font></td>";echo"</tr><tr><td align=left width=20%><strong><nobr><span class=style6><b>Gender</span></strong></nobr></td>";

echo"<td width=80%><strong><input type=radio name=cgen value=male size=30>";echo" <b>Male&nbsp;&nbsp;&nbsp;<input type=radio name=cgen value=female size=30> Female<nobr> <font color=red>*</nobr></font></strong></td></tr>";

echo"<tr><td align=left width=20%><nobr><span class=style5><b>Date Of Birth</span></nobr></td>";

echo"<td width=80%><input type=text name=cage size=30><nobr></td></tr>";

echo"<tr><td align=left width=20%><span class=style5><nobr><b>Address</span></nobr></td>";

echo"<td width=80%><textarea name=cadd rows=6 cols=25></textarea></td></tr>";

echo"<tr><td align=left width=20%><nobr><span class=style5>PinCode</span></nobr></td>";

echo"<td width=80%><input type=text name=cpinc size=30><nobr> <font color=red>*</nobr></td></tr>";

echo"<tr><td align=left width=24%><nobr><b><span class=style6><strong>Visiting Date </strong></span></nobr></td>";echo"<td width=86% align=centre><input type=text name=cvdate size=30><nobr> <font color=red>*</nobr></font></td></tr>";

echo"<tr><td align=left width=24%><span class=style5><nobr><b>Product Model </span></nobr></td>";echo"<td width=80%><input type=text name=cmodel size=30></td></tr>";

echo"<tr><td align=left width=24%><span class=style6><strong><nobr><b>Delivery Date </strong></span></nobr></td>";echo"<td width=86% align=centre><input type=text name=cddate size=30><nobr> <font color=red>*</nobr></font></td></tr>";

echo"<tr><td align=left width=20%><span class=style6><strong><nobr><b>Occupation</strong></span></nobr></td>";echo"<td width=80%><input type=text name=coccup size=30></td></tr>";

echo"<tr><td align=left width=20%><nobr><span class=style5>PhoneNo</span></nobr></td>";echo"<td width=80%><input type=text name=cphone size=30></td></tr>";

echo"<tr><td align=left width=20%><nobr><span class=style5><b>Mobile No</span></nobr></td>";

echo"<td width=80%><input type=text name=cmobile size=30></td></tr>";

echo"<tr><td align=left width=24%><nobr><span class=style5><b>Email Id</span></nobr></td>";

echo"<td width=86% align=centre><input type=text name=cemail size=30><nobr> <font color=red>*</nobr></font></td></tr>";

echo"<tr><td align=left width=20%><strong><nobr><span class=style6><b>Bill Number</span> </strong></nobr></td>";echo"<td width=80%><input type=text name=cbil size=30><nobr> <font color=red>*</nobr></td></tr>";

echo"<tr><td align=left width=20%><strong><nobr><span class=style6><b>Nationality</span> </strong></nobr></td>";echo"<td width=80%><input type=text name=cna size=30><nobr> <font color=red>*</nobr></td></tr>";

Page 5: Insertcustomer

echo"<tr><td align=right colspan=2 width=20%><input type=submit value=SUBMIT>&nbsp;</td></tr>";

echo"<tr><td>&nbsp;</td></tr>";echo"<tr><td colspan=2 align=right> <font color=red>* Fields are mandatory</td></tr>";

echo"<tr><td width=20% colspan=2 align=right><span class=style9><a href=customerdetail.html class=thinborder1 >BACK</a>&nbsp;</span><span class=style7></strong></span></td>";echo"</tr></table></form>";

?> </td> </tr>

<tr><td bordercolor="#FFFF99" bgcolor="#FFFFFF"

class="abouthead">&nbsp;</td></tr>

</table></td> </tr> </table> </td> </tr> <tr> <td valign="top" align="center" class="bottombg" height="35">

<table width="100%" cellspacing="0" cellpadding="0"><tr> <td width="1%" align="left" align=center><img

src="css/bottomleft.gif"></td> <td width="65%" class="copyright" align="center">Copyright 2009 © Shree infotech, Coimbatore - INDIA. All Rights Reserved.</td> <td width="1%" align="right"><img src="css/bottomright.gif"></td>

</tr></table>

</td> </tr></table></body></html>

Page 6: Insertcustomer

echo"<tr><td align=right colspan=2 width=20%><input type=submit value=SUBMIT>&nbsp;</td></tr>";

echo"<tr><td>&nbsp;</td></tr>";echo"<tr><td colspan=2 align=right> <font color=red>* Fields are mandatory</td></tr>";

echo"<tr><td width=20% colspan=2 align=right><span class=style9><a href=customerdetail.html class=thinborder1 >BACK</a>&nbsp;</span><span class=style7></strong></span></td>";echo"</tr></table></form>";

?> </td> </tr>

<tr><td bordercolor="#FFFF99" bgcolor="#FFFFFF"

class="abouthead">&nbsp;</td></tr>

</table></td> </tr> </table> </td> </tr> <tr> <td valign="top" align="center" class="bottombg" height="35">

<table width="100%" cellspacing="0" cellpadding="0"><tr> <td width="1%" align="left" align=center><img

src="css/bottomleft.gif"></td> <td width="65%" class="copyright" align="center">Copyright 2009 © Shree infotech, Coimbatore - INDIA. All Rights Reserved.</td> <td width="1%" align="right"><img src="css/bottomright.gif"></td>

</tr></table>

</td> </tr></table></body></html>