<div id="editrequest<?php echo $id; ?>" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true" >
		<div class="modal-header">
			<button data-dismiss="modal" class="close" type="button">&times;</button>
				<h3> Topup <b><?php echo $fname." ".$lname ?>  </b> Account</b> </h3>
		</div>

		<div class="modal-body">
			<p>
			<form class="form-horizontal" method="post">
				<fieldset>
					<input style="display:none" type="text" placeholder="" value="<?php echo $id ?>" class="form-control" id="id" name="id" required />
					<div class="control-group">
						<label class="control-label" for="focusedInput">Amount To Topup(Ksh.): <span class="required">*</span></label>
							<div class="controls">
								<input class="input-xlarge focused" id="focusedInput" type="text" value="<?php echo $amnt; ?>" name="admno" required>
							</div>
					</div>
					
					<div class="control-group">
						<div class="controls">
							<input type="submit" class="btn btn-primary" name="update" value="Update Account" />
						</div>
					</div>
					<label class="control-label"><span class="required">*</span> Required Fields </label>
				</fieldset>
			</form>
			
			<?php
			
			if(isset($_POST['update'])){
				$id=$_POST['id'];
				
				$amnt=$_POST['admno'];
				
				
				$query=mysql_query("update airtime_topup_requests set amount_awarded='500', status='Done', date_awarded=Now() where request_id='$id'  ");
				
			}
			
			?>
			
			<div class="modal-footer">
			    <a data-dismiss="modal" class="btn" href="#">Close</a>
			</div>			
						
			</p>
		</div>
</div>
				