예제 #1
0
<?php

require WPATH . "modules/process/form_processor.php";
$sub = new Form_Process();
if (!empty($_POST)) {
    $success = $sub->execute();
    if (is_bool($success) && $success == true) {
        ////App::redirectTo("?self");
    }
}
?>
<section id="banner"></section>
<section id="footer">
    <div class="inner">
        <h2 class="major">Find Lost &AMP; Found</h2>
        <p>Search here for you found document, using the document no. i.e. Passport no., ID no., etc.<?php 
if (isset($_POST['submit'])) {
    echo '<a href="?search">  Search Again</a>';
}
?>
</p>
        <?php 
if (!isset($_POST['submit'])) {
    echo '<form method="POST" id="form_search">
                <input type="hidden" name="action" value="searching"/>
                    <div class="search">
                        <input type="text" name="search" placeholder="E.g. ID No." required/>
                    </div>
                    <div class="search">
                        <input type="submit" name="submit" value="Search"/>
                    </div>
예제 #2
0
<?php

require WPATH . "modules/process/form_processor.php";
$sub = new Form_Process();
?>
<!--Script to send mail-->


<section id = "footer">
    <div class = "inner">
        <h2 class = "major">Let's Help!</h2>
        <p>It doesn't matter what your query is, we will answer back.</p>
        <form method = "POST">
            <input type="hidden" name="action" value="contact"/>
            <div class = "field">
                <label for = "name">Name</label>
                <input type="text" class="letterInput" maxlength="100" name="name" id="item_type" placeholder="how to address you" required/>
            </div>
            <div class = "field">
                <label for = "email">Email</label>
                <input type="email" name="email" id="email" maxlength="100" placeholder="WHO TO REPLY TO" required/>
            </div>
            <div class = "field">
                <label for = "message">Message</label>
                <textarea name = "message" maxlength="799" id = "message" rows = "4"></textarea>
                <?php 
if (!empty($_POST)) {
    $success = $sub->execute();
    if (is_bool($success) && $success == true) {
        if (isset($_POST['email'])) {
            //send email
예제 #3
0
<?php

require WPATH . "modules/process/form_processor.php";
$sub = new Form_Process();
$id = $_SESSION['id'];
$details = $sub->claimSucces($id);
?>
<!-- Banner -->
<section id="banner">
    <div class="inner">
        <div class="logo"> <img src="images/Kitambulisho.png" width="300"></div>
        <h2 class="major"><a class="link_to" href="?search"> &lt;BACK</a> | CLAIM SUCCESSFUL!</h2>
        <h3>Here are the details of your claim.<?php 
if (!isset($_SESSION['user'])) {
    echo '<a href="?login">Login</a> to manage your account.</h3> ';
}
?>
 
        <br/><br/>
        <span><b>DOCUMENT TYPE: </b><?php 
echo "&emsp;&emsp;" . $details['item_type'];
?>
</span><br/>
        <span><b>HOLDER'S NAME:</b><?php 
echo "&emsp;&emsp;&emsp;" . $details['item_name'];
?>
</span><br/>
        <span><b>DOCUMENT NO.:</b><?php 
echo "&emsp;&emsp;&emsp;" . $details['item_no'];
?>
</span><br/>
예제 #4
0
<?php

if (!isset($_SESSION['user'])) {
    App::redirectTo("?login");
} else {
    require WPATH . "modules/process/form_processor.php";
    $sub = new Form_Process();
    $id = $_GET['id'];
    $details = $sub->fetchReportedDocumentDetails($id);
    if (!empty($_POST)) {
        $success = $sub->execute();
        if (is_bool($success) && $success == true) {
            $_SESSION['update_success'] = "Successfully updated details";
        } else {
            if (is_bool($success) && $success == false) {
                $_SESSION['update_error'] = "Failed updating details";
            }
        }
        App::redirectTo("?my_reports");
    }
}
?>

<section id="banner"></section>
<section id="footer">
    <div class="inner">
        <h2 class="major">Edit Document Details</h2>
        <form method="POST">
            <input type="hidden" name="action" value="edit_reported_document"/>
            <input type="hidden" name="id" value="<?php 
echo $details['id'];
예제 #5
0
<?php

if (!isset($_SESSION['user'])) {
    App::redirectTo("?login");
} else {
    require WPATH . "modules/process/form_processor.php";
    $sub = new Form_Process();
    $id = $_GET['id'];
    $details = $sub->fetchMyDocumentDetails($id);
    if (!empty($_POST)) {
        $success = $sub->execute();
        if (is_bool($success) && $success == true) {
            $_SESSION['update_success'] = "Successfully updated details";
        } else {
            if (is_bool($success) && $success == false) {
                $_SESSION['update_error'] = "Failed updating details";
            }
        }
        App::redirectTo("?docs");
    }
}
?>

<section id="banner"></section>
<section id="footer">
    <div class="inner">
        <h2 class="major">Edit document Details</h2>
        <p>We made it convenient to change this document details.</p>

        <form method="POST">
            <input type="hidden" name="action" value="editDoc"/>
예제 #6
0
<?php

require WPATH . "modules/process/form_processor.php";
$sub = new Form_Process();
if (!isset($_SESSION['user'])) {
    App::redirectTo("?login");
}
?>
<section id="banner"></section>
<section id="footer">
    <div class="inner">
        <h2 class="major">REPORTED DOCUMENTS</h2>
        <p>What I have reported</p>
        
         <?php 
//echo $_SESSION['iname'];
echo "<h3 class='major'>Records Found</h3>";
echo $sub->myReports();
?>
    </div>
    <div class="inner"></div>
</section>

예제 #7
0
<?php

require WPATH . "modules/process/form_processor.php";
$sub = new Form_Process();
if (!empty($_POST)) {
    $success = $sub->execute();
    if (is_bool($success) && $success == true) {
        App::redirectTo("?reporting");
    }
}
?>
<section id="banner">
    
</section>
<section id="footer">
    <div class="inner">
        <h2 class="major">Report Lost &AMP; Found</h2>
        <p>Ensure you indicate clearly where you have dropped the lost &AMP; found document. E.g. Central Police Station reception</p>
        <form method="POST">
            <input type="hidden" name="action" value="report"/>
            <div class="field">
                <label for="category">Document Type You have Picked</label>
                <select name="category">
                    <?php 
echo $sub->getDocTypes();
?>
                </select>
            </div>
            <ul class="actions">
                <li><input type="submit" value="Start" /></li>
            </ul>
예제 #8
0
<?php

require WPATH . "modules/process/form_processor.php";
$sub = new Form_Process();
$item_type = $_SESSION['item_type'];
if (isset($_SESSION['user'])) {
    $username = $_SESSION['user'];
    $details = $sub->fetchDetails($username);
}
if (!isset($_SESSION['item_type'])) {
    App::redirectTo("?report");
} else {
    if (!empty($_POST)) {
        $success = $sub->execute();
        if (is_bool($success) && $success == true) {
            App::redirectTo("?thanks");
        }
    }
}
?>
<section id="banner">

</section>
<section id="footer">
    <div class="inner">
        <h2 class="major">Report Lost &AMP; Found</h2>
        <p>Ensure you indicate clearly where you have dropped the lost &AMP; found document. E.g. Central Police Station reception</p>
        <form method="POST">
            <input type="hidden" name="action" value="reporting"/>
            <div class="field">
                <label for="item_type"> Picked Document Type</label>
예제 #9
0
<?php

require WPATH . "modules/process/form_processor.php";
$sub = new Form_Process();
if (!isset($_SESSION['item_type'])) {
    App::redirectTo("?report");
} else {
    //session_unset();
}
?>
<!-- Banner -->
<section id="banner">
    <div class="inner">
        <div class="logo"> <img src="images/Kitambulisho.png" width="300"></div>
        <h2>YOUR DOCUMENT DETAILS</h2>
        <p>You can find where to pick it on the map from <a href="?map">Here</a></p>
        <?php 
echo $sub->viewDetails();
?>
 
    </div>
</section>