diff --git a/ajaxDelete_record.php b/ajaxDelete_record.php index 4fac108..25a8792 100644 --- a/ajaxDelete_record.php +++ b/ajaxDelete_record.php @@ -1,107 +1,75 @@ - - - Bill Claim - Recors Status - - - -
- - -
- -
Details regarding Date -"" is permanently removed from the list.
-
- -
- - - - - - - - - - - - - - - - + + + Bill Claim - Recors Status + + + + +
+
Details regarding Date -"" is permanently removed from the list.
+
+
+
Date
Board Time
Amount
Rate
+ + + + + + + + + + + + + + - - - - - - - - - - - + - - -
Date
Board Time
Amount
Rate
+
+
+
+
- -
-
-
-
- - -
- -

Permission Denied !!!

- - - - - - - - - \ No newline at end of file + ?> + +
+ +

Permission Denied !!!

+ + + + diff --git a/ajaxShow_date.php b/ajaxShow_date.php index 9ae6da1..19ffe11 100644 --- a/ajaxShow_date.php +++ b/ajaxShow_date.php @@ -3,26 +3,20 @@ Bill Claims Management Application
- - - @@ -31,57 +25,38 @@ - - - - - - - - -
Bill Submission Date:

-
- diff --git a/ajaxUpdate_record.php b/ajaxUpdate_record.php index f96bd8f..be95613 100644 --- a/ajaxUpdate_record.php +++ b/ajaxUpdate_record.php @@ -1,11 +1,10 @@ - + + Bill Claim - Recors Status -
-
-
Entry for Date -"" and Board Time -"" has been updated.

-
- - - - @@ -57,10 +44,7 @@ $rate = "rate".$i; $update = "update".$i; $del = "del".$i; - - ?> - @@ -71,23 +55,15 @@ if($i%2!=0){ ?> - - - - -
Date Board Time Amount
- -
Permission Denied !!!
- diff --git a/billClaim_history.php b/billClaim_history.php index 70e5d25..830450d 100644 --- a/billClaim_history.php +++ b/billClaim_history.php @@ -9,35 +9,23 @@ history.pushState(null, null, 'Cab form'); }); function status_back(){ - - - document.myForm.action="index.html"; + document.myForm.action="cabBills.html"; document.myForm.submit(); } - - -


-

Below are the details of the Expense Claim for Date:- ""


@@ -48,59 +36,39 @@ function status_back(){
-
- - - - - - - - - - - - -
Date
Board Time
Amount
Rate

TOTAL :       
-
- - - diff --git a/billHistory.php b/billHistory.php index 39c1662..66f532e 100644 --- a/billHistory.php +++ b/billHistory.php @@ -1,15 +1,11 @@ - Bill Claims Management Application - -

-

Enter details to see historical data



- @@ -82,45 +63,28 @@ function myresult(){ - - - - - - - - -
Employee ID:
Bill Submission Date: -

- - - diff --git a/cabBills.html b/cabBills.html new file mode 100644 index 0000000..1a894ce --- /dev/null +++ b/cabBills.html @@ -0,0 +1,163 @@ + + + Bill Claims Management Application + + + + + +
+
+
+

Bill Claims Management Application

+

Developed by Monika Gautam & Shashank Srivastava

+ + + + + This is a required field. + + + This is a required field. + + + This is a required field. + + + This is a required field. + + + This is a required field. +
+ + + +
+
+ + diff --git a/collectdata.php b/collectdata.php index a307a65..7b4b621 100644 --- a/collectdata.php +++ b/collectdata.php @@ -1,19 +1,15 @@ - - Bill Claims Management Application - @@ -233,45 +188,25 @@ function edit(){

Bill Claims Management Application

- - - - -
- @@ -296,7 +227,6 @@ function edit(){ // echo $repeat; if($repeat>=2){ $curr_val--; - ?>
Error... Duplicate entries are not allowed..
@@ -311,7 +241,6 @@ function edit(){ $sql2="insert into temp_collectdata values('".$dateval."','".$brdtm2."',".$amt2.",".$rate2.")"; // echo $sql1; mysqli_query($dbhandle,$sql2); - ?>

Your previous entry has been added for Date :- ""

-

Error !!! You have exceeded the data entry limits for the chosen expense nature!


-
- -

After adding all the entries, click 'Generate Bill' button to download the PDF.

-
@@ -345,37 +268,24 @@ function edit(){
- - - - - - - - - - - - - @@ -390,17 +300,14 @@ function edit(){

Permission Denied!!!

- diff --git a/feedData.php b/feedData.php index 22d3caf..bd31d62 100644 --- a/feedData.php +++ b/feedData.php @@ -1,291 +1,219 @@ - - - - - Bill Claims Management Application - - - - - - - - - -
- - - - - -
-
-
-

Bill Claims Management Application

- - -
- - -
-
Cab Boarding Time Amount Rate
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cab Boarding Time Amount Rate
-
-
-

- - - - - -
- -

Permission Denied !!!

- -
- - - - + + + + Bill Claims Management Application + + + + + +
+
+ + +
+
+
+

Bill Claims Management Application

+ + +
+ + +
+ + + + + + + + + + + + + + + + +
Cab Boarding Time Amount Rate
+
+
+

+ + + + +
+ +

Permission Denied !!!

+ +
+ + + diff --git a/genbillpdf.php b/genbillpdf.php index beee789..6957f6f 100644 --- a/genbillpdf.php +++ b/genbillpdf.php @@ -1,56 +1,36 @@ - - SetY(-15); //$this->SetX(140); $this->setFont('Arial', 'I', 8); $this->Cell(0,10,'['.$name.']',0,0,'C'); - } } -*/ - - +*/ //Create a new PDF file $pdf=new FPDF(); $pdf->AddPage(); - $pdf->SetFont('times','B',18); $pdf->SetY(22); - $pdf->SetTextColor(165,42,42); $pdf->Cell(0,16,'BUSINESS EXPENSE REPORT',0,0,'C'); - $pdf->SetTextColor(255,0,0); $pdf->SetY(42); $pdf->SetX(11); - $pdf->SetFont('Times','B',10); $pdf->SetTextColor(0,0,0); -$pdf->Cell(0, 4, "Employee Name (ID): ",0,0, 'L'); - +$pdf->Cell(0, 4, "Employee Name(ID): ",0,0, 'L'); $pdf->SetX(43); $pdf->SetTextColor(0,0,255); $pdf->Cell(0,4, $name."(".$id.")", 0,0,'L'); @@ -157,7 +114,6 @@ function Footer() { $pdf->SetX(150); $pdf->SetTextColor(0,0,255); $pdf->Cell(0,4, $pmtdt, 0,0,'L'); - $pdf->SetY(48); $pdf->SetX(11); $pdf->SetTextColor(0,0,0); @@ -171,7 +127,6 @@ function Footer() { $pdf->SetX(150); $pdf->SetTextColor(0,0,255); $pdf->Cell(0,4, $manager, 0,0,'L'); - $pdf->SetY(54); $pdf->SetX(11); $pdf->SetTextColor(0,0,0); @@ -185,7 +140,6 @@ function Footer() { $pdf->SetX(150); $pdf->SetTextColor(0,0,255); $pdf->Cell(0,4, $acc, 0,0,'L'); - $pdf->SetY(60); $pdf->SetX(11); $pdf->SetTextColor(0,0,0); @@ -199,11 +153,6 @@ function Footer() { $pdf->SetX(150); $pdf->SetTextColor(0,0,255); $pdf->Cell(0,4, "---", 0,0,'L'); - - - - - $pdf->SetTextColor(0,0,0); //Fields Name position $Y_Fields_Name_position = 75; @@ -221,7 +170,6 @@ function Footer() { $pdf->Cell(25,6,'Date',1,0,'C',1); $pdf->SetX(38); $pdf->Cell(65,6,'Description',1,0,'C',1); - $pdf->SetX(103); $pdf->Cell(15,6,'Item Code',1,0,'C',1); $pdf->SetX(118); @@ -235,13 +183,11 @@ function Footer() { $pdf->Ln(); //Now show the 3 columns $pdf->SetFillColor(255,255,255); - $pdf->SetFont('Arial','',8); $pdf->SetAutoPageBreak(false,3); $pdf->SetY($Y_Table_Position); $pdf->SetX(5); $pdf->MultiCell(8,6,$column_itemno,1,'C'); - $pdf->SetY($Y_Table_Position); $pdf->SetX(13); $pdf->MultiCell(25,6,$column_date,1,'C'); @@ -249,7 +195,6 @@ function Footer() { $pdf->SetX(38); $pdf->MultiCell(65,6,$column_desc,1,'C'); $pdf->SetY($Y_Table_Position); - $pdf->SetX(103); $pdf->MultiCell(15,6,$column_code,1,'C'); $pdf->SetY($Y_Table_Position); @@ -264,31 +209,27 @@ function Footer() { $pdf->SetY($Y_Table_Position); $pdf->SetX(171); $pdf->MultiCell(35,6,$column_amtAED,1,'C'); - - //Creating lines (boxes) for each ROW (Product) //If we don't use the following code, you don't create the lines separating each row $j = 0; $pdf->SetY($Y_Table_Position); while ($j < $number_of_rows2) { - $pdf->SetX(5); - $pdf->MultiCell(201,6,'',1); - $j = $j +1; + $pdf->SetX(5); + $pdf->MultiCell(201,6,'',1); + $j = $j +1; } - - $pdf->SetX(157); $pdf->SetFont('Arial','B',10); - - $pdf->Cell(0,6,"TOTAL = ". $total, 0,0,'C'); $pdf->SetFont('Times','B',10); - $pdf->SetY(270); $pdf->SetX(140); //$pdf->setFont('Times', 'I', 8); $pdf->Cell(50,6,'['.$name.']',0,0,'C'); - +$pdf->SetY(270); +$pdf->SetX(5); +//$pdf->setFont('Times', 'I', 8); +$pdf->Cell(50,6,'['.$manager.']',0,0,'C'); $pdf->Output($name.'-'.$pmtdt.'_Expense Claim-Cab Charges.pdf','D'); ?> diff --git a/genbillpdf1.php b/genbillpdf1.php index 82a86da..17511e9 100644 --- a/genbillpdf1.php +++ b/genbillpdf1.php @@ -1,40 +1,24 @@ - - SetY(-15); //$this->SetX(140); $this->setFont('Arial', 'I', 8); $this->Cell(0,10,'['.$name.']',0,0,'C'); - } } -*/ - - +*/ //Create a new PDF file $pdf=new FPDF(); $pdf->AddPage(); - $pdf->SetFont('times','B',18); $pdf->SetY(22); - $pdf->SetTextColor(165,42,42); $pdf->Cell(0,16,'BUSINESS EXPENSE REPORT',0,0,'C'); - $pdf->SetTextColor(255,0,0); $pdf->SetY(42); $pdf->SetX(11); - $pdf->SetFont('Times','B',10); $pdf->SetTextColor(0,0,0); $pdf->Cell(0, 4, "Employee Name (ID): ",0,0, 'L'); - $pdf->SetX(43); $pdf->SetTextColor(0,0,255); $pdf->Cell(0,4, $name."(".$id.")", 0,0,'L'); @@ -139,7 +102,6 @@ function Footer() { $pdf->SetX(150); $pdf->SetTextColor(0,0,255); $pdf->Cell(0,4, $pmtdt, 0,0,'L'); - $pdf->SetY(48); $pdf->SetX(11); $pdf->SetTextColor(0,0,0); @@ -153,7 +115,6 @@ function Footer() { $pdf->SetX(150); $pdf->SetTextColor(0,0,255); $pdf->Cell(0,4, $manager, 0,0,'L'); - $pdf->SetY(54); $pdf->SetX(11); $pdf->SetTextColor(0,0,0); @@ -167,7 +128,6 @@ function Footer() { $pdf->SetX(150); $pdf->SetTextColor(0,0,255); $pdf->Cell(0,4, $acc, 0,0,'L'); - $pdf->SetY(60); $pdf->SetX(11); $pdf->SetTextColor(0,0,0); @@ -181,11 +141,6 @@ function Footer() { $pdf->SetX(150); $pdf->SetTextColor(0,0,255); $pdf->Cell(0,4, "---", 0,0,'L'); - - - - - $pdf->SetTextColor(0,0,0); //Fields Name position $Y_Fields_Name_position = 75; @@ -203,7 +158,6 @@ function Footer() { $pdf->Cell(25,6,'Date',1,0,'C',1); $pdf->SetX(38); $pdf->Cell(65,6,'Description',1,0,'C',1); - $pdf->SetX(103); $pdf->Cell(15,6,'Item Code',1,0,'C',1); $pdf->SetX(118); @@ -217,13 +171,11 @@ function Footer() { $pdf->Ln(); //Now show the 3 columns $pdf->SetFillColor(255,255,255); - $pdf->SetFont('Arial','',8); $pdf->SetAutoPageBreak(false,3); $pdf->SetY($Y_Table_Position); $pdf->SetX(5); $pdf->MultiCell(8,6,$column_itemno,1,'C'); - $pdf->SetY($Y_Table_Position); $pdf->SetX(13); $pdf->MultiCell(25,6,$column_date,1,'C'); @@ -231,7 +183,6 @@ function Footer() { $pdf->SetX(38); $pdf->MultiCell(65,6,$column_desc,1,'C'); $pdf->SetY($Y_Table_Position); - $pdf->SetX(103); $pdf->MultiCell(15,6,$column_code,1,'C'); $pdf->SetY($Y_Table_Position); @@ -246,31 +197,27 @@ function Footer() { $pdf->SetY($Y_Table_Position); $pdf->SetX(171); $pdf->MultiCell(35,6,$column_amtAED,1,'C'); - - //Creating lines (boxes) for each ROW (Product) //If we don't use the following code, you don't create the lines separating each row $j = 0; $pdf->SetY($Y_Table_Position); while ($j < $number_of_rows2) { - $pdf->SetX(5); - $pdf->MultiCell(201,6,'',1); - $j = $j +1; + $pdf->SetX(5); + $pdf->MultiCell(201,6,'',1); + $j = $j +1; } - - $pdf->SetX(157); $pdf->SetFont('Arial','B',10); - - $pdf->Cell(0,6,"TOTAL = ". $total, 0,0,'C'); $pdf->SetFont('Times','B',10); - +$pdf->SetY(270); +$pdf->SetX(5); +//$pdf->setFont('Times', 'I', 8); +$pdf->Cell(50,6,'['.$manager.']',0,0,'C'); $pdf->SetY(270); $pdf->SetX(140); //$pdf->setFont('Times', 'I', 8); $pdf->Cell(50,6,'['.$name.']',0,0,'C'); - $pdf->Output($name.'-'.$pmtdt.'_Expense Claim-Cab Charges.pdf','D'); ?> diff --git a/monthly_genbillpdf.php b/monthly_genbillpdf.php index 17f4f01..1b1eb53 100644 --- a/monthly_genbillpdf.php +++ b/monthly_genbillpdf.php @@ -1,54 +1,36 @@ - - SetY(-15); //$this->SetX(140); $this->setFont('Arial', 'I', 8); $this->Cell(0,10,'['.$name.']',0,0,'C'); - } } -*/ - - +*/ //Create a new PDF file $pdf=new FPDF(); $pdf->AddPage(); - $pdf->SetFont('times','B',18); $pdf->SetY(22); - $pdf->SetTextColor(165,42,42); $pdf->Cell(0,16,'BUSINESS EXPENSE REPORT',0,0,'C'); - $pdf->SetTextColor(255,0,0); $pdf->SetY(42); $pdf->SetX(11); - $pdf->SetFont('Times','B',10); $pdf->SetTextColor(0,0,0); $pdf->Cell(0, 4, "Employee Name (ID): ",0,0, 'L'); - $pdf->SetX(43); $pdf->SetTextColor(0,0,255); $pdf->Cell(0,4, $name."(".$id.")", 0,0,'L'); @@ -212,7 +155,6 @@ function Footer() { $pdf->SetX(150); $pdf->SetTextColor(0,0,255); $pdf->Cell(0,4, $pmtdt, 0,0,'L'); - $pdf->SetY(48); $pdf->SetX(11); $pdf->SetTextColor(0,0,0); @@ -226,7 +168,6 @@ function Footer() { $pdf->SetX(150); $pdf->SetTextColor(0,0,255); $pdf->Cell(0,4, $manager, 0,0,'L'); - $pdf->SetY(54); $pdf->SetX(11); $pdf->SetTextColor(0,0,0); @@ -240,7 +181,6 @@ function Footer() { $pdf->SetX(150); $pdf->SetTextColor(0,0,255); $pdf->Cell(0,4, $acc, 0,0,'L'); - $pdf->SetY(60); $pdf->SetX(11); $pdf->SetTextColor(0,0,0); @@ -254,11 +194,6 @@ function Footer() { $pdf->SetX(150); $pdf->SetTextColor(0,0,255); $pdf->Cell(0,4, "---", 0,0,'L'); - - - - - $pdf->SetTextColor(0,0,0); //Fields Name position $Y_Fields_Name_position = 75; @@ -276,7 +211,6 @@ function Footer() { $pdf->Cell(25,6,'Date',1,0,'C',1); $pdf->SetX(38); $pdf->Cell(65,6,'Description',1,0,'C',1); - $pdf->SetX(103); $pdf->Cell(15,6,'Item Code',1,0,'C',1); $pdf->SetX(118); @@ -290,13 +224,11 @@ function Footer() { $pdf->Ln(); //Now show the 3 columns $pdf->SetFillColor(255,255,255); - $pdf->SetFont('Arial','',8); $pdf->SetAutoPageBreak(false,3); $pdf->SetY($Y_Table_Position); $pdf->SetX(5); $pdf->MultiCell(8,6,$column_itemno,1,'C'); - $pdf->SetY($Y_Table_Position); $pdf->SetX(13); $pdf->MultiCell(25,6,$column_date,1,'C'); @@ -304,7 +236,6 @@ function Footer() { $pdf->SetX(38); $pdf->MultiCell(65,6,$column_desc,1,'C'); $pdf->SetY($Y_Table_Position); - $pdf->SetX(103); $pdf->MultiCell(15,6,$column_code,1,'C'); $pdf->SetY($Y_Table_Position); @@ -319,35 +250,21 @@ function Footer() { $pdf->SetY($Y_Table_Position); $pdf->SetX(171); $pdf->MultiCell(35,6,$column_amtAED,1,'C'); - - //Creating lines (boxes) for each ROW (Product) //If we don't use the following code, you don't create the lines separating each row $j = 0; $pdf->SetY($Y_Table_Position); while ($j < $number_of_rows2) { - $pdf->SetX(5); - $pdf->MultiCell(201,6,'',1); - $j = $j +1; + $pdf->SetX(5); + $pdf->MultiCell(201,6,'',1); + $j = $j +1; } - - - $pdf->SetFont('Times','B',10); - $pdf->SetY(270); $pdf->SetX(140); //$pdf->setFont('Times', 'I', 8); $pdf->Cell(50,6,'['.$name.']',0,0,'C'); - - - - - - - - $pdf->SetAutoPageBreak(true,2); $pdf->AddPage(); $Y_Fields_Name_position1 = 40; @@ -365,7 +282,6 @@ function Footer() { $pdf->Cell(25,6,'Date',1,0,'C',1); $pdf->SetX(38); $pdf->Cell(65,6,'Description',1,0,'C',1); - $pdf->SetX(103); $pdf->Cell(15,6,'Item Code',1,0,'C',1); $pdf->SetX(118); @@ -377,17 +293,12 @@ function Footer() { $pdf->SetX(171); $pdf->Cell(35,6,"Amount AED",1,0,'C',1); $pdf->Ln(); - - - $pdf->SetFillColor(255,255,255); - $pdf->SetFont('Arial','',8); $pdf->SetAutoPageBreak(false,3); $pdf->SetY($Y_Table_Position1); $pdf->SetX(5); $pdf->MultiCell(8,6,$column_itemno1,1,'C'); - $pdf->SetY($Y_Table_Position1); $pdf->SetX(13); $pdf->MultiCell(25,6,$column_date1,1,'C'); @@ -395,7 +306,6 @@ function Footer() { $pdf->SetX(38); $pdf->MultiCell(65,6,$column_desc1,1,'C'); $pdf->SetY($Y_Table_Position1); - $pdf->SetX(103); $pdf->MultiCell(15,6,$column_code1,1,'C'); $pdf->SetY($Y_Table_Position1); @@ -410,19 +320,13 @@ function Footer() { $pdf->SetY($Y_Table_Position1); $pdf->SetX(171); $pdf->MultiCell(35,6,$column_amtAED1,1,'C'); - - $pdf->SetX(157); $pdf->SetFont('Arial','B',10); - - $pdf->Cell(0,6,"TOTAL = ". $total, 0,0,'C'); $pdf->SetFont('Times','B',10); - $pdf->SetY(270); $pdf->SetX(140); //$pdf->setFont('Times', 'I', 8); $pdf->Cell(50,6,'['.$name.']',0,0,'C'); - $pdf->Output($name.'_cabBill('.$pmtdt.').pdf','D'); -?> \ No newline at end of file +?> diff --git a/monthly_genbillpdf1.php b/monthly_genbillpdf1.php index 4f3af4c..589078b 100644 --- a/monthly_genbillpdf1.php +++ b/monthly_genbillpdf1.php @@ -1,36 +1,23 @@ - - SetY(-15); //$this->SetX(140); $this->setFont('Arial', 'I', 8); $this->Cell(0,10,'['.$name.']',0,0,'C'); - } } -*/ - - +*/ //Create a new PDF file $pdf=new FPDF(); $pdf->AddPage(); - $pdf->SetFont('times','B',18); $pdf->SetY(22); - $pdf->SetTextColor(165,42,42); $pdf->Cell(0,16,'BUSINESS EXPENSE REPORT',0,0,'C'); - $pdf->SetTextColor(255,0,0); $pdf->SetY(42); $pdf->SetX(11); - $pdf->SetFont('Times','B',10); $pdf->SetTextColor(0,0,0); $pdf->Cell(0, 4, "Employee Name (ID): ",0,0, 'L'); - $pdf->SetX(43); $pdf->SetTextColor(0,0,255); $pdf->Cell(0,4, $name."(".$id.")", 0,0,'L'); @@ -194,7 +142,6 @@ function Footer() { $pdf->SetX(150); $pdf->SetTextColor(0,0,255); $pdf->Cell(0,4, $pmtdt, 0,0,'L'); - $pdf->SetY(48); $pdf->SetX(11); $pdf->SetTextColor(0,0,0); @@ -208,7 +155,6 @@ function Footer() { $pdf->SetX(150); $pdf->SetTextColor(0,0,255); $pdf->Cell(0,4, $manager, 0,0,'L'); - $pdf->SetY(54); $pdf->SetX(11); $pdf->SetTextColor(0,0,0); @@ -222,7 +168,6 @@ function Footer() { $pdf->SetX(150); $pdf->SetTextColor(0,0,255); $pdf->Cell(0,4, $acc, 0,0,'L'); - $pdf->SetY(60); $pdf->SetX(11); $pdf->SetTextColor(0,0,0); @@ -236,11 +181,6 @@ function Footer() { $pdf->SetX(150); $pdf->SetTextColor(0,0,255); $pdf->Cell(0,4, "---", 0,0,'L'); - - - - - $pdf->SetTextColor(0,0,0); //Fields Name position $Y_Fields_Name_position = 75; @@ -258,7 +198,6 @@ function Footer() { $pdf->Cell(25,6,'Date',1,0,'C',1); $pdf->SetX(38); $pdf->Cell(65,6,'Description',1,0,'C',1); - $pdf->SetX(103); $pdf->Cell(15,6,'Item Code',1,0,'C',1); $pdf->SetX(118); @@ -272,13 +211,11 @@ function Footer() { $pdf->Ln(); //Now show the 3 columns $pdf->SetFillColor(255,255,255); - $pdf->SetFont('Arial','',8); $pdf->SetAutoPageBreak(false,3); $pdf->SetY($Y_Table_Position); $pdf->SetX(5); $pdf->MultiCell(8,6,$column_itemno,1,'C'); - $pdf->SetY($Y_Table_Position); $pdf->SetX(13); $pdf->MultiCell(25,6,$column_date,1,'C'); @@ -286,7 +223,6 @@ function Footer() { $pdf->SetX(38); $pdf->MultiCell(65,6,$column_desc,1,'C'); $pdf->SetY($Y_Table_Position); - $pdf->SetX(103); $pdf->MultiCell(15,6,$column_code,1,'C'); $pdf->SetY($Y_Table_Position); @@ -301,35 +237,21 @@ function Footer() { $pdf->SetY($Y_Table_Position); $pdf->SetX(171); $pdf->MultiCell(35,6,$column_amtAED,1,'C'); - - //Creating lines (boxes) for each ROW (Product) //If we don't use the following code, you don't create the lines separating each row $j = 0; $pdf->SetY($Y_Table_Position); while ($j < $number_of_rows2) { - $pdf->SetX(5); - $pdf->MultiCell(201,6,'',1); - $j = $j +1; + $pdf->SetX(5); + $pdf->MultiCell(201,6,'',1); + $j = $j +1; } - - - $pdf->SetFont('Times','B',10); - $pdf->SetY(270); $pdf->SetX(140); //$pdf->setFont('Times', 'I', 8); $pdf->Cell(50,6,'['.$name.']',0,0,'C'); - - - - - - - - $pdf->SetAutoPageBreak(true,2); $pdf->AddPage(); $Y_Fields_Name_position1 = 40; @@ -347,7 +269,6 @@ function Footer() { $pdf->Cell(25,6,'Date',1,0,'C',1); $pdf->SetX(38); $pdf->Cell(65,6,'Description',1,0,'C',1); - $pdf->SetX(103); $pdf->Cell(15,6,'Item Code',1,0,'C',1); $pdf->SetX(118); @@ -359,17 +280,12 @@ function Footer() { $pdf->SetX(171); $pdf->Cell(35,6,"Amount AED",1,0,'C',1); $pdf->Ln(); - - - $pdf->SetFillColor(255,255,255); - $pdf->SetFont('Arial','',8); $pdf->SetAutoPageBreak(false,3); $pdf->SetY($Y_Table_Position1); $pdf->SetX(5); $pdf->MultiCell(8,6,$column_itemno1,1,'C'); - $pdf->SetY($Y_Table_Position1); $pdf->SetX(13); $pdf->MultiCell(25,6,$column_date1,1,'C'); @@ -377,7 +293,6 @@ function Footer() { $pdf->SetX(38); $pdf->MultiCell(65,6,$column_desc1,1,'C'); $pdf->SetY($Y_Table_Position1); - $pdf->SetX(103); $pdf->MultiCell(15,6,$column_code1,1,'C'); $pdf->SetY($Y_Table_Position1); @@ -392,19 +307,13 @@ function Footer() { $pdf->SetY($Y_Table_Position1); $pdf->SetX(171); $pdf->MultiCell(35,6,$column_amtAED1,1,'C'); - - $pdf->SetX(157); $pdf->SetFont('Arial','B',10); - - $pdf->Cell(0,6,"TOTAL = ". $total, 0,0,'C'); $pdf->SetFont('Times','B',10); - $pdf->SetY(270); $pdf->SetX(140); //$pdf->setFont('Times', 'I', 8); $pdf->Cell(50,6,'['.$name.']',0,0,'C'); - $pdf->Output($name.'_cabBill('.$pmtdt.').pdf','D'); -?> \ No newline at end of file +?> diff --git a/onBackcollectdata.php b/onBackcollectdata.php index 2eb6faa..adcddd5 100644 --- a/onBackcollectdata.php +++ b/onBackcollectdata.php @@ -1,19 +1,15 @@ - - Bill Claims Management Application -
-

Bill Claims Management Application

- - - - -
- " > =5) || ($exp=="15 days" && $curr_val>=11) || ($exp=="Monthly" && $curr_val>=22)){ //echo "You have exceeded the data entry limits beyond the choosen expenses nature"; ?>
-

Error!!! You have exceeded the data entry limits for the chosen expense nature!!


-
- -
@@ -285,39 +227,25 @@ function edit(){
- - - - - - - - - - - - - -
Cab Boarding Time Amount Rate


@@ -328,18 +256,13 @@ function edit(){

Permission Denied !!!

- - diff --git a/onCancelHome.php b/onCancelHome.php index 6f8b134..0806f8e 100644 --- a/onCancelHome.php +++ b/onCancelHome.php @@ -5,8 +5,6 @@ - - -
- -
-

Bill Claims Management Application

- - This is a required field. - This is a required field. @@ -198,11 +164,7 @@ function validate(){ -
- - - diff --git a/seeRecords.php b/seeRecords.php index 77000b9..a64f411 100644 --- a/seeRecords.php +++ b/seeRecords.php @@ -1,4 +1,5 @@ - + + Bill Claim - Record Status @@ -9,38 +10,28 @@ history.pushState(null, null, 'Cab form'); }); function status_back(){ - - document.myForm.action="onBackcollectdata.php"; document.myForm.submit(); } - function remove(){ var con=confirm("Are you sure you want to delete this record?"); if (con==true){ var s=window.event.srcElement.id; l=s.length; - var num=s.substring(3,l); //var brdtm="brdtm"+num; - var date="date"+num; // var amt="amt"+num; if (window.XMLHttpRequest) { - xmlhttp = new XMLHttpRequest(); } else { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange = function() { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { - document.getElementById("mydiv").innerHTML = xmlhttp.responseText; } - }; - - var date=encodeURIComponent(document.getElementById(date).value); // var brdtm=encodeURIComponent(document.getElementById(brdtm).value); // var amt=encodeURIComponent(document.getElementById("amt").value); @@ -48,52 +39,37 @@ function remove(){ var parameters="date="+date; xmlhttp.open("POST","ajaxDelete_record.php",true); xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); - xmlhttp.send(parameters); - } } - function update(){ var con=confirm("Are you sure you want to submit the changes?"); if (con==true){ var s=window.event.srcElement.id; l=s.length; - var num=s.substring(6,l); var brdtm="brdtm"+num; - var date="date"+num; var amt="amt"+num; if (window.XMLHttpRequest) { - xmlhttp = new XMLHttpRequest(); } else { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange = function() { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { - document.getElementById("mydiv").innerHTML = xmlhttp.responseText; } - }; - - var date=encodeURIComponent(document.getElementById(date).value); var brdtm=encodeURIComponent(document.getElementById(brdtm).value); var amt=encodeURIComponent(document.getElementById(amt).value); var parameters="date="+date+"&amt="+amt+"&brdtm="+brdtm; - xmlhttp.open("POST","ajaxUpdate_record.php",true); xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); - xmlhttp.send(parameters); - } } - - @@ -103,35 +79,27 @@ function update(){ -

Bill Claims Management Application


Below is the list of entries you have added in this session.

- - - - @@ -140,7 +108,6 @@ function update(){ - - @@ -169,12 +135,10 @@ function update(){ } ?> - -
Date Board Time Amount

@@ -187,9 +151,7 @@ function update(){

Permission Denied!!!

- - \ No newline at end of file +