google.com, pub-4617457846989927, DIRECT, f08c47fec0942fa0 Learn to enjoy every minute of your life.Only I can change my life.

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( );
           }
    }


अच्छे विचार करे विचार

  पहचान की नुमाईश, जरा कम करें... जहाँ भी "मैं" लिखा है, उसे "हम" करें... हमारी "इच्छाओं" से ज़्यादा "सुन...