Always with you to fascinate and feisty you.I'm blessed and I thank God for every day for everything that happens for me.
Saturday, January 26, 2019
Friday, January 25, 2019
Sunday, January 20, 2019
PHP program of Slip 19 practical of User Information in bill
<?
// This is Slip19_a.php
// It takes User Information And Send it to slip19_b.php
?>
<html>
<body bgcolor=#AAAAAA>
<center> <font color="red" font size=6>U</font>ser Information</center>
<br><br><br>
<form action="slip19_b.php" method="GET">
<p>
<table border=0>
<tr><td>Name:<td> <input type="text" name="u_name">
<tr><td>Address:<td> <input type="text" name="u_address">
<tr><td>Phone No:<td> <input type="text" name="u_no">
<tr><td><td><input type="submit" value="SUBMIT">
</form>
</table>
</form>
</body>
</html>
<?
// This is Slip19_b.php
// It Takes The Product Information....
//and Passes to Slip19_c.php
?>
<html>
<body bgcolor=#AAAAAAA>
<center><font color="red" font size=6>P</font>roduct Information</center>
<br><br><br>
<form action="slip19_c.php" method="POST">
<p>
<table border=0>
<tr><td>Prod.Name:<td> <input type="text" name="p_name">
<tr><td>Quantity:<td> <input type="text" name="p_qty">
<tr><td>Rate:<td> <input type="text" name="prize">
<tr><td><?
$var1=$_GET['u_name'];
$var2=$_GET['u_address'];
$var3=$_GET['u_no'];
printf("<br><br>Customer Information is:");
printf("<br><br><input type='text' name='user' value='$var1'><br>");
printf("<input type='text' name='add' value='$var2'><br>");
printf("<input type='text' name='phone' value='$var3'><br>");
?>
<tr><td><td><input type="submit" value="Display">
</table>
</form>
</body>
</html>
<?
// This is Slip19_c.php
//It Genrates the Tabular format bill of the Customer
?>
<html>
<body bgcolor=#AAAAAAA>
<center><font color="red" font size=6>B</font>ill Information</center>
<br><br><br>
<center>
<table border=1 cellspacing=2 cellpadding=2>
<?
$usr_name=$_POST['user'];
$usr_address=$_POST['add'];
$usr_phone=$_POST['phone'];
$prod_name=$_POST['p_name'];
$prod_quantity=$_POST['p_qty'];
$prod_price=$_POST['prize'];
$bill=$prod_quantity*$prod_price;
printf("<br><br><br>");
printf("<th bgcolor=#ABCDEF>Customer Bill<td bgcolor=#ABCDEF>");
printf("<tr><td>Name<td>$usr_name");
printf("<tr><td>Address<td>$usr_address");
printf("<tr><td>Phone No<td>$usr_phone");
printf("<tr><td>Product Name<td>$prod_name");
printf("<tr><td>Product Quantity<td>$prod_quantity");
printf("<tr><td>Product Price<td>$prod_price / Unit");
printf("<tr><td>Total<td>$bill Rs.");
?>
</table>
</form>
</body>
</html>
Friday, January 18, 2019
Conversion of string program java
Conversion of string java program UPPER lower BOLD ITALIC
import javax.swing .* ;
import java.awt . * ;
import java.awt.event .* ;
class Convt extends JFrame implements ActionListener
{
JLabel l1;
JButton b1,b2,b3,b4;
JTextField t1,t2,t3,t4,t5;
Convt( )
{
setVisible(true);
setSize(400,400);
setTitle("Conversion of Text");
l1=new JLabel("ENTER THE STRING :=");
b1=new JButton("LOWER");
b2=new JButton("UPPER");
b3=new JButton("BOLD");
b4=new JButton("ITALIC");
b1.addActionListener(this);
b2.addActionListener(this);
b3.addActionListener(this);
b4.addActionListener(this);
t1=new JTextField(10);
t2=new JTextField(10);
t3=new JTextField(10);
t4=new JTextField(10);
t5=new JTextField(10);
JPanel p1=new JPanel( );
p1.setLayout(new GridLayout(5,2));
p1.add(l1);
p1.add(t1);
p1.add(b1);
p1.add(t2);
p1.add(b2);
p1.add(t3);
p1.add(b3);
p1.add(t4);
p1.add(b4);
p1.add(t5);
Container cn=getContentPane( );
cn.setLayout(new FlowLayout( ));
cn.add(p1);
}
public void actionPerformed(ActionEvent ae)
{
String s=t1.getText( );
if(ae.getSource( )==b1)
{
t2.setText(s.toLowerCase( ));
}
else
if(ae.getSource( )==b2)
{
t3.setText(s.toUpperCase( ));
}
else
if(ae.getSource( )==b3)
{
t4.setFont(new Font("Dialog",Font.BOLD,20));
t4.setText(s);
}
else
if(ae.getSource( )==b4)
{
t5.setFont(new Font("Dialog",Font.ITALIC,20));
t5.setText(s);
}
}
public static void main(String args[])
{
Convt cv=new Convt( );
cv.validate( );
}
}
Subscribe to:
Posts (Atom)
Program to develop for cost saving in hotel industry
To develop a program for cost-saving in a hotel, you can consider the following features: Key Features 1. *Room Management*: Optimize room ...
-
Program 1:- Write a function in C++ that exchanges data (passing by references )using swap function to interchange the given tw...
-
Directions: In each Q1 to Q3 of the following questions, there are five letter groups or words in each question. Four of these letter g...
-
1.One can interface with operating system by means of ------- A) Operating system call in a program B) Operating system commands C) Ope...