Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
pinalh3 authored Jun 19, 2019
0 parents commit 25d76e7
Show file tree
Hide file tree
Showing 71 changed files with 20,376 additions and 0 deletions.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

,-----.,--. ,--. ,---. ,--.,------. ,------.
' .--./| | ,---. ,--.,--. ,-| || o \ | || .-. \ | .---'
| | | || .-. || || |' .-. |`..' | | || | \ :| `--,
' '--'\| |' '-' '' '' '\ `-' | .' / | || '--' /| `---.
`-----'`--' `---' `----' `---' `--' `--'`-------' `------'
-----------------------------------------------------------------


Hi there! Welcome to Cloud9 IDE!

To get you started, we have created a small hello world application.

1) Open the hello-world.php file

2) Follow the run instructions in the file's comments

3) If you want to look at the Apache logs, check out ~/lib/apache2/log

And that's all there is to it! Just have fun. Go ahead and edit the code,
or add new files. It's all up to you!

Happy coding!
The Cloud9 IDE team


## Support & Documentation

Visit http://docs.c9.io for support, or to learn more about using Cloud9 IDE.
To watch some training videos, visit http://www.youtube.com/user/c9ide
250 changes: 250 additions & 0 deletions actioneffect.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,250 @@
<!DOCTYPE html>
<?php
include_once 'con.php';
include('session.php');
include('actioneffectinsert.php');

if(!isset($_SESSION['login_user'])){
header("location: index.php"); // Redirecting To Home Page
}
//las time activity on session and destroy session
if (isset($_SESSION['LAST_ACTIVITY']) && (time() - $_SESSION['LAST_ACTIVITY'] > 1440)) {
// last request was more than 30 minutes ago
session_unset(); // unset $_SESSION variable for the run-time
session_destroy(); // destroy session data in storage
//header("location: index.php");
}
$_SESSION['LAST_ACTIVITY'] = time(); // update last activity time stamp

//Regenerate session id
if (!isset($_SESSION['CREATED'])) {
$_SESSION['CREATED'] = time();
} else if (time() - $_SESSION['CREATED'] > 1440) {
// session started more than 30 minutes ago
session_regenerate_id(true); // change session ID for the current session and invalidate old session ID
$_SESSION['CREATED'] = time(); // update creation time
}
?>
<head>
<meta charset="utf-8">
<title>GPB Survey from the Sky</title>
<!--<link rel="stylesheet" type="text/css" href="bootstrap.css">-->
<link rel="stylesheet" type="text/css" href="../css/stylesuav5.css">
<link rel="stylesheet" type="text/css" href="../css/stylesuav2.css">
<link rel="stylesheet" type="text/css" href="../css/stylesheet6.css">
<link rel="icon" href="img/picture1.png" type="image/png" sizes="any">
<link rel="script" type="javascript" href="photo.js">

</head>
<body>
<!-- Primer encabezado -->
<div class="row" id="container1">
<div class="col-2 head1" id="izq">
<img src="img/gpblogo2.svg" id="logo2">
</div>
<div class="col-8 head2" id="titulo">
<h1>Survey From The Sky</h1>
</div>
<div class="col-2 head2" id="der">
<img src="img/surveylogo.svg" id="survey">
</div>
</div>

<!-- Nav bar -->
<div class="row" id="container2">
<div class="col-2" id="vacio">&nbsp;

</div>
<div class="col-8" id="navegador">
<ul class="men1">
<li><a href="">RAV</a>
<ul class="smen1">
<li><a href="pdf/RAV_5.pdf">Rav 5</a></li>
<li><a href="pdf/RAV_21.pdf">Rav 21</a></li>
<li><a href="pdf/RAV_39.pdf">Rav 39</a></li>
<li><a href="pdf/RAV_45.pdf">Rav 45</a></li>
<li><a href="pdf/RAV_47.pdf">Rav 47</a></li>
<li><a href="pdf/RAV_60.pdf">Rav 60</a></li>
<li><a href="pdf/RAV_67.pdf">Rav 67</a></li>
<li><a href="pdf/RAV_91.pdf">Rav 91</a></li>
<li><a href="pdf/RAV_130.pdf">Rav 130</a></li>
<li><a href="pdf/RAV_145.pdf">Rav 145</a></li>
<li><a href="pdf/RAV_273.pdf">Rav 273</a></li>
<li><a href="pdf/RAV_281.pdf">Rav 281</a></li>
</ul>
</li>


<li><a href="">Emergency Numbers</a>
<ul class="smen1">
<li><a href="pdf/RAV_5.pdf">ATC</a></li>
</ul>
</li>
</ul>
</div>
<div class="col-2" id="lgt">
<section class="row">
<section class="col-6 logt">
<p><a class="logta" href="menu1.php"><img src="img/home.svg" class="out">&nbsp;&nbsp;Home</a></p>
</section>
<section class="col-6 logt">
<p><a class="logta" href="logout.php"><img src="img/lgt.svg" class="out">&nbsp;&nbsp;Logout</a></p>
</section>
</section>

</div>
</div>

<!-- Cuerpo principal -->
<div class="row" id="container3">
<div class="col-2" id="menup">
<div class="row" id="ipers">
<img id="pers">
</div>
<div class="row" id="u">
<p id="user"><?php echo $login_session; ?></p>
</div>
<div class="row" id="m">
<ul class="mn2">
<li>
<a href="flights.php">Flights</a>
</li>
<li>
<a href="">Maintenance</a>
</li>
<li>
<a href="">Inventory</a>
<ul class="smen2">
<li><a href="uav.php">UAV</a></li>
<li><a href="batteries.php">Batteries</a></li>
<li><a href="motors.php">Motors</a></li>
<li><a href="servos.php">Servos</a></li>
<li><a href="payloads.php">Payloads</a></li>
<li><a href="consummables.php">Consumables</a></li>
<li><a href="equipment.php">Equipment</a></li>
<li><a href="vehicles.php">Vehicles</a></li>
<li><a href="locations.php">Locations</a></li>
</ul>
</li>
<li>
<a href="crewfront.php">Crew</a>
</li>
<li>
<a href="reports.php">Reports</a>
</li>
<li>
<a href="incidents.php">Incidents</a>
</li>
</ul>
</div>
</div>
<div class="col-10" id="form1">
<div class="col-11 borsupe" id="flights">
<div class="topr">&nbsp;</div>
<div class="topr">
<p>INCLUDE ACTION</p>
</div>
<div class="topr right">
<a href="incidentsinclude.php" class="include">Report Incident</a>
<a href="actioninclude.php" class="include">Add Actions</a>
<a href="actiontrace.php" class="include">Trace Action</a>
</div>

</div>
<div class="col-11 formcontainer" id="">
<div class="err"><span ><?php echo "$errorp <br>"; ?></span></div>

<form class="incform" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>" method="post">

<?php
$action_id=$_POST['view2'];
$query="SELECT * FROM action AS a INNER JOIN action_type AS b INNER JOIN action_status AS c WHERE a.action_id='$action_id' AND a.action_type_id=b.action_type_id AND a.action_status_id=c.action_status_id";
$result2=mysqli_query($conn, $query);
$result2check = mysqli_num_rows($result2);

if ($result2check > 0)
{

echo "<table class='query'>";
echo "<tr class='tabheader'><th>Action Id</th><th>Report Id</th><th>Action Type</th><th>Action Description</th><th>Status</th></tr>";
while ($row = mysqli_fetch_assoc($result2))
{

echo "<tr class='tabd'><td>".$row['action_id']."<input type='text' name='act' class='hi' value='".$row['action_id']."'></td><td>".$row['vreport_id']."</td><td>".$row['name']."</td><td>".$row['action_description']."</td><td>".$row['status_name']." </td></tr>";
echo "<input class='hi' name='status' value='".$row['status_name']."'>";
}
echo "</table>";
}


$query="SELECT a.action_id, a.limit_date AS deadline,a.crew_id AS resp, b.first_name, b.first_surname FROM action_responsible AS a JOIN crew AS b WHERE a.crew_id=b.crew_id AND a.action_id='$action_id' ";
$result2=mysqli_query($conn, $query);
$result2check = mysqli_num_rows($result2);

if ($result2check > 0)
{
echo "<table class='query'>";
echo "<tr class='tabheader'><th>Responsible</th><th>Deadline</th></tr>";
while ($row = mysqli_fetch_assoc($result2))
{

echo "<tr class='tabd'><td>".$row['first_name']." ".$row['first_surname']."</td><td>".$row['deadline']."</td></tr>";
}
echo "</table>";

echo " <section class='row sepa'>
<section class='col-2'>
<label class='label1'>Do you want to close the action?</label>
</section>
<section class='col-10'>
<select class='input1' name='change' required>
<option value=''></option>
<option value='No conforme'>No</option>
<option value='Conforme'>Yes</option>
</select>
</section>
</section>
<section class='row sepa'>
<section class='col-2'>
<label class='label1'>Describe motives</label>
</section>
<section class='col-10'>
<input type='textarea' class='largetextinp input1' rows='2' cols='5' maxlength='255' name='observation'/>
</section>
</section>
<input type='submit' class='include' name='submit' value='Submit'>
</form> ";
}









?>





</div>
</div>
</div>
<script src="photo.js" ></script>

</body>
Loading

0 comments on commit 25d76e7

Please sign in to comment.