<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.min.css" rel="stylesheet"></link>
<div class="page-content-wrapper">
                <div class="page-content">
                    <div class="page-bar">
                        <div class="page-title-breadcrumb">
                            <div class=" pull-left">
                                <div class="page-title"><?php if($isEdit){ echo 'Edit Leads';} else { echo 'Add Leads'; }?></div>
                            </div>
                            <ol class="breadcrumb page-breadcrumb pull-right">
                                <li><i class="fa fa-home"></i>&nbsp;<a class="parent-item" href="index.html">Home</a>&nbsp;<i class="fa fa-angle-right"></i>
                                </li>
                                <li><a class="parent-item" href="index.php?page=tech_leads">Leads</a>&nbsp;<i class="fa fa-angle-right"></i></li><li class="active"><?php if($isEdit){ echo 'Edit Leads';} else { echo 'Add Leads'; }?></li>
                            </ol>
                        </div>
                    </div>
<div class="row">
                        <div class="col-md-12 col-sm-12">
                            <div class="card card-box">
                                <div class="card-head">
                                    <header><?php if($isEdit){ echo 'Edit Leads';} else { echo 'Add Leads'; }?></header>                                    
                                </div>
                                <div class="card-body" id="bar-parent1">                                	
                                	<?php if(isset($error) && $error!='') { ?> 
                                	<div class="alert alert-danger"><?php echo $error; ?></div>
                                	<?php } else if(isset($success) && $success!=''){ ?>                                		
                                		<div class="alert alert-success"><?php echo $success; ?></div>
                                	<?php } else if(isset($_REQUEST['success'])){ ?>                                		
                                		<div class="alert alert-success"><?php echo $_REQUEST['success']; ?></div>
                                	<?php } ?>
                                	                                	
                                    <form action="" id="form_staff_add" class="form-horizontal" method="post">
                                        <div class="form-body">
                                                                               	 
                                            <div class="form-group row">
                                                <label class="control-label col-md-3">Client Name<span class="required"> * </span></label>
                                                <div class="col-md-4">                                                    
                                                    <input name="client_name" type="text" id="client_name" data-required="1" class="form-control" value="<?php if(isset($_POST['client_name'])) { echo htmlentities(($_POST['client_name']), ENT_QUOTES); } else if(isset($resEdit['client_name']) && $resEdit['client_name']!=''){ echo $resEdit['client_name'];} ?>"/>
                                                </div>
                                            </div>
                                            <div class="form-group row">
                                                <label class="control-label col-md-3">Client Phone</label>
                                                <div class="col-md-4">                                                    
                                                    <input name="client_phone" type="text" id="client_phone" data-required="1" class="form-control" value="<?php if(isset($_POST['client_phone'])) { echo htmlentities(($_POST['client_phone']), ENT_QUOTES); } else if(isset($resEdit['client_phone']) && $resEdit['client_phone']!=''){ echo $resEdit['client_phone'];} ?>"/>
                                                </div>
                                            </div>
                                            <div class="form-group row">
                                                <label class="control-label col-md-3">Client Location</label>
                                                <div class="col-md-4">                                                    
                                                    <input name="client_location" type="text" id="client_location" data-required="1" class="form-control" value="<?php if(isset($_POST['client_location'])) { echo htmlentities(($_POST['client_location']), ENT_QUOTES); } else if(isset($resEdit['client_location']) && $resEdit['client_location']!=''){ echo $resEdit['client_location'];} ?>"/>
                                                </div>
                                            </div>
                                            <div class="form-group row">
                                                <label class="control-label col-md-3">Details</label>
                                                <div class="col-md-4">     
                                                	<textarea id="details" name="details" cols="30" rows="5"><?php if(isset($_POST['details'])) { echo htmlentities(($_POST['details']), ENT_QUOTES); } else if(isset($resEdit['details']) && $resEdit['details']!=''){ echo $resEdit['details'];} ?></textarea> 
                                                </div>
                                            </div>
                                            	                                        
                                        </div>                                        
                                      	<div class="form-group">
                                            <div class="offset-md-3 col-md-9">
                                            	<?php if($isEdit){ ?>
                                            		<button type="submit" name="update" class="btn btn-info">Update</button>
                                            	<?php } else { ?>
                                            		<button type="submit" name="add" class="btn btn-info">Submit</button>
                                            	<?php } ?>     
                                            </div>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
	</div>
</div>
