PK

ADDRLIN : /home/anibklip/pcfcindia.com/24-25/
FLL :
Current File : /home/anibklip/pcfcindia.com/24-25/payment.php

<?php
	session_start();
	require_once 'common/common.php';
	require_once 'common/secure.php';
	include("connexion.php");
	include("head.php");
?><head>
<script language="JavaScript" type="text/javascript">
<!--
function checkform ( form )
{

  // ** START **
  if (form.pamount.value == "") {
    alert( "Please enter Amount here." );
    form.pamount.focus();
    return false ;
  }
  // ** END **


  
  return true ;
}
//-->
</script>
</head>
  

<h2 id="icon_pick"><a href="billing.php" class="titletext">Manage Payments </a> 
  >> Add New Payment</h2> 
<br>
<strong> &nbsp;Fill in details for new Payment:</strong> 
<table cellspacing="3" align="center" width="100%" border="4" cellpadding="3">
<form action="payadd.php" method="get" onsubmit="return checkform(this);">
<tr><td colspan="2">
<strong>Invoice:</strong> <select name="invoice">
<?php
include("connexion2.php");
  $sql="SELECT * From invoices where invstatus='pending' and branch='$_SESSION[city]'";
  $result=mysql_query($sql) or die('error in getting clients list');
if(mysql_num_rows($result) == 0) {
    echo "<option value=none>No Payment found in Records</option>";
}
while($row=mysql_fetch_array($result))
{
echo"<option value={$row['invid']}>{$row['invid']}</option>";
}
?>
</td></tr>

<tr>
<td valign="top"><strong>Amount Recieve</strong>:</td><td><input type="text" name="pamount" size="33"></td>
</tr>
<tr><td><strong>Mode</strong>:</td><td> <select name="pmode">

<option value="cash	">Cash</option>
<option value="cheque">Cheque</option>
</select></td></tr>
<tr><td><strong>Details</strong>:</td><td><textarea rows="4" cols="25" name="pdetail"></textarea></td></tr>
<tr><td align="center" colspan="2"><br><center><input type="submit" value="Recipt Payment"  class="amo-submit"></center></td></tr>
</form>
</table>

<?php
include "foot.php";
?>


PK 99