95 lines
4.4 KiB
PHP
95 lines
4.4 KiB
PHP
<?php
|
|
include('pop_up_top.php');
|
|
include_once("includes/css-js/dynamic_add.js");
|
|
?>
|
|
<?php
|
|
if(isset($frmacn) && $frmacn=='Save'){
|
|
$sql = "update job_work set tarrif_class = '".$tarrif_class."', good_desc = '".$good_desc."', identification_mark = '".$identification_mark."', identification_no='".$identification_no."',annexure_no='".$annexure_no."',duration='".$duration."' where job_order_no='".$job_order_no."'";
|
|
$res = @mysqli_query($conn,$sql);
|
|
$msg = "Annexure-64 Added";
|
|
}
|
|
?>
|
|
<link href="includes/css-js/admin.css" rel="stylesheet" type="text/css" />
|
|
<form name="form1" method="post" action="#" onsubmit="return validate();">
|
|
<table cellspacing="10xp" cellpadding="0px" width="100%">
|
|
<tr><td colspan="2" align="center" style="color:#293D3D; font-size:16px;"><b>Annexure-64<hr></b></td></tr>
|
|
<tr>
|
|
|
|
<td colspan="2" align="center">
|
|
|
|
<span class="txt">
|
|
|
|
<?php
|
|
|
|
if($msg)
|
|
|
|
echo $msg;
|
|
|
|
?>
|
|
</span></td>
|
|
</tr>
|
|
<?php
|
|
$sql = "select firm,tarrif_class, good_desc, identification_mark,identification_no,duration,annexure_no from job_work where job_order_no='".$job_order_no."'";
|
|
$res = @mysqli_query($conn,$sql);
|
|
$row = @mysqli_fetch_array($res);
|
|
?>
|
|
<tr>
|
|
<input type="hidden" id="firm_id_new" value="<?php echo $row['firm']?>">
|
|
<td align="left" class="bdr_td" width="50%"><span style="color:#293D3D; font-size:10px;" ><b>Tarrif Classification</b></span></td>
|
|
<td align="left" class="bdr_td" width="50%"><span class="style34"><input type="text" class="textbox1" style="width:100%" name="tarrif_class" id="tarrif_class" value="<?php echo $row['tarrif_class']?>" required="required"></span></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" class="bdr_td" width="50%"><span style="color:#293D3D; font-size:10px;" ><b>Description of Goods</b></span></td>
|
|
<td align="left" class="bdr_td" width="50%"><span class="style34"><input type="text" class="textbox1" style="width:100%" name="good_desc" id="good_desc" value="<?php echo $row['good_desc']?>" required="required"></span></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" class="bdr_td" width="50%"><span style="color:#293D3D; font-size:10px;" ><b>Identification Mark</b></span></td>
|
|
<td align="left" class="bdr_td" width="50%"><span class="style34"><input type="text" class="textbox1" style="width:100%" name="identification_mark" id="identification_mark" value="<?php echo $row['identification_mark']?>" required="required"></span></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" class="bdr_td" width="50%"><span style="color:#293D3D; font-size:10px;" ><b>Identification No</b></span></td>
|
|
<td align="left" class="bdr_td" width="50%"><span class="style34"><input type="text" class="textbox1" style="width:100%" name="identification_no" id="identification_no" value="<?php echo $row['identification_no']?>" required="required"></span></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" class="bdr_td" width="50%"><span style="color:#293D3D; font-size:10px;" ><b>Expected Duration</b></span></td>
|
|
<td align="left" class="bdr_td" width="50%"><span class="style34"><input type="text" class="textbox1" style="width:100%" name="duration" id="duration" value="<?php echo $row['duration']?>" required="required"></span></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" class="bdr_td" width="50%"><span style="color:#293D3D; font-size:10px;" ><b>Annexure no</b></span></td>
|
|
<td align="left" class="bdr_td" width="50%"><span class="style34"><input type="text" class="textbox1" style="width:100%" name="annexure_no" id="annexure_no" value="<?php echo $row['annexure_no']?>" required="required" readonly></span></td>
|
|
</tr>
|
|
<tr><td colspan="2" align="center">
|
|
|
|
<input type="submit" name="frmacn" value="Save" class="submitbutton" style="background:#CCFF33; border-radius:10px; color:black; font-size:11px;width:80px; height:20px;" onClick="getAnnexure_no();">
|
|
<input type="button" onClick="window.close();" value="Close" class="submitbutton" style="background-color:#FF5C33;">
|
|
</td></tr>
|
|
</table>
|
|
</form>
|
|
<script>
|
|
function getAnnexure_no(){
|
|
var firm_id=document.getElementById('firm_id_new').value;
|
|
|
|
function stateChangedState()
|
|
{
|
|
|
|
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
|
|
{
|
|
|
|
|
|
document.getElementById('annexure_no').value=xmlHttp.responseText;
|
|
|
|
}
|
|
}
|
|
|
|
Params='request_type=getAnnexure_no&firm_id='+firm_id;
|
|
SendAjaxRequest('ajax.php','POST',true,Params,stateChangedState);
|
|
|
|
}
|
|
function validate(){
|
|
var val = document.getElementById('annexure_no').value;
|
|
if(val==''){
|
|
alert('Annexure No required');
|
|
return false;
|
|
}
|
|
}
|
|
</script>
|