</head> <?php get_header(); ?> <body> <div class="container"> <div class="row"> <div class="col-md-9"> <div class="form-group"> <?php include_once'Model_Bolo.php'; $bolo = new Model_Bolo(); if($_GET['idate']!=""){ $iniDate=$_GET['idate']; }else{ echo("<h3>Sorry, something wrong has occurred</h3>"); } if($_GET['edate']!=""){ $endDate=$_GET['edate']; }else{ echo("<h3>Sorry, something wrong has occurred</h3>"); } $result = $bolo->deleteAll($iniDate,$endDate); if($result) { echo("<h3>Bolo deleted successfully!!!</h3>");
* * @package Inkness */ ?> <?php include_once("Model_Bolo.php"); if($_GET['idBolo'] == "") { echo("<h3>Sorry something wrong has occurred</h3>"); } else { $model = new Model_Bolo(); $result = $model->unarchive($_GET['idBolo']); if($result) { echo("<h3>BOLO restored successfully!"); } else { echo("<h3>Some DATABASE error has occurred</h3>"); } } ?>
<div class="row" > <div class="col-md-4"> <div style="width: 320px;"> <?php if($_POST['idBolo']!="") { $id = $_POST['idBolo']; }else { echo("<h3>Sorry something wrong has occurred</h3>"); } include_once'Model_Bolo.php'; $bolo = new Model_Bolo(); $result = $bolo->deleteBolo($id); if($result) { echo("<h3>Bolo deleted successfully!</h3>"); }else{ echo("<h3>Some DATABASE error has occurred</h3>"); } ?> </div> </div> </div> </div> </body>
<?php echo "<br>"; if ($_POST['iniDate'] != "") { $iniDate = $_POST['iniDate']; } else { $iniDate = ""; } if ($_POST['endDate'] != "") { $endDate = $_POST['endDate']; } else { $endDate = ""; } echo "<br>"; include_once 'Model_Bolo.php'; $bolo = new Model_Bolo(); //return all bolos that match with the criteria of the search $resultProp1 = $bolo->searchdate($iniDate, $endDate); $cont = 0; echo '<div class="container">'; echo '<table style="width:60%">'; echo '<tr>'; echo '<th>BOLO ID</th>'; echo '<th>Name</th>'; echo '<th>Category</th>'; echo '<th>Date</th>'; echo '<th></th>'; echo '</tr>'; while ($row = mysqli_fetch_array($resultProp1)) { $resultName = $row['myName']; $resultId = $row['bolo_id'];
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css"> <!-- Optional theme --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap-theme.min.css"> <!-- Latest compiled and minified JavaScript --> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script> </head> <?php get_header(); ?> <?php include_once'Model_Bolo.php'; $bolo=new Model_Bolo(); $resultAgency = $bolo->loadAgency(); $resultAddr = $bolo->loadAddr(); //$resultAdt = $bolo->loadAdtnlinfo(); //$resultClass = $bolo->loadClass(); $resultDob = $bolo->loadDob(); $resultHair = $bolo->loadHairColor(); //$resultHeight = $bolo->loadHeight(); $resultLicense = $bolo->loadLicense(); $resultName = $bolo->loadName(); $resultlastName = $bolo->loadLastName(); $resultRace = $bolo->loadRace(); //$resultReli = $bolo->loadReli(); $resulCat = $bolo->loadCat(); $resultSex = $bolo->loadSex(); //$resultSumm = $bolo->loadSumm();
</head> <?php get_header(); ?> <body> <div class="container"> <div class="row"> <div class="col-md-9"> <div class="form-group"> <?php include_once 'Model_Bolo.php'; $bolo = new Model_Bolo(); if ($_GET['idate'] != "") { $iniDate = $_GET['idate']; } else { echo "<h3>Sorry, something wrong has occurred</h3>"; } if ($_GET['edate'] != "") { $endDate = $_GET['edate']; } else { echo "<h3>Sorry, something wrong has occurred</h3>"; } $result = $bolo->archive($iniDate, $endDate); echo "<h3>Bolo archived successfully!!!</h3>"; ?> </div> </div>
<!-- Optional theme --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap-theme.min.css"> <!-- Latest compiled and minified JavaScript --> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script> </head> <?php $background = 'watermark.jpg'; ?> <?php $prop1 = $_GET['idBolo'];?> <?php include_once('Model_Bolo.php'); $bolo = new Model_Bolo(); $resultProp1= $bolo->infoBolo($prop1); $picture = $bolo->loadPicture(); while ($row= mysqli_fetch_array($resultProp1)) { $resultId = $row['bolo_id']; $resultAddr = $row['address']; $resultAdt = $row['adtnlinfo']; $resultDob = $row['dob']; $resultHair = $row['haircolor']; $resultHeight = $row['height']; $resultHeight = $row['height']; $pathImage = $row['image'];
} if($_POST['val']!="") { $val = $_POST['val']; }else { $val = ""; } $cont = 0; //print_r($_POST); echo("<br>"); include_once'Model_Bolo.php'; $bolo = new Model_Bolo(); $resultProp1= $bolo->searchResults($agency,$nome,$lastn,$addr,$dob,$hcolor,$lic,$race,$sex,$cat,$link); //if no results if($resultProp1->num_rows==0){ echo "<script>window.location = 'http://bolo.cs.fiu.edu/bolofliercreator/?page_id=1494'</script>"; } //if there are results else{ echo (" <div class ='col-md-12'> <h2 style='text-align:center; font-weight: bold;'>Search Results</h2> </div>