-
Notifications
You must be signed in to change notification settings - Fork 8
/
edit_modal.php
26 lines (26 loc) · 1.63 KB
/
edit_modal.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<div class="modal fade" id="edit<?php echo $urow['harvestID']; ?>" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<?php
$n=mysqli_query($conn,"select * from `harvest` where harvestID='".$urow['harvestID']."'");
$nrow=mysqli_fetch_array($n);
?>
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<center>
<h3 class="text-success modal-title">Update Harvest</h3></center>
</div>
<form class="form-inline">
<div class="modal-body">
Harvest (in Kilos):
<input type="text" value="<?php echo $nrow['amount']; ?>" id="uamount<?php echo $urow['harvestID']; ?>" class="form-control"> selling price: (Rs. per Kilo)
<input type="text" value="<?php echo $nrow['price']; ?>" id="uprice<?php echo $urow['harvestID']; ?>" class="form-control">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"><span class="glyphicon glyphicon-remove"></span> Cancel</button> |
<button type="button" class="updateHarvest btn btn-success" value="<?php echo $urow['harvestID']; ?>"><span class="glyphicon glyphicon-floppy-disk"></span> Save</button>
</div>
</form>
</div>
</div>
</div>