Friday, 9 October 2015

Police

<!DOCTYPE html>
<html>
<head>
   

        <meta name="format-detection" content="telephone=no">
        <meta name="msapplication-tap-highlight" content="no">
        <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">

        <link rel="stylesheet" type="text/css" href="css/index.css">

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script>
$(document).ready(function(){
    $("#flip").click(function(){
        $("#panel").slideToggle("slow");
    });


    $("#flip1").click(function(){
        $("#panel1").slideToggle("slow");
    });
$.ajax ({
        type: "POST",
        url:'http://192.168.102.84:8080/punebook/police',
            success: function(results) {
                var htmlStr = '';
                $.each(results, function(k, v){
                    if(v.type==='missing'){
                        $("#missing").html('"<p style="float:left;padding-right:15px;"><img src="'+v.imgsrc+'" height="100" width="100"></p><br><p>'+ v.name1 + 'Age'+ v.age+'.</p><br><br><br>"');

                    }
                    if(v.type==='wanted'){
                        $("#wanted").html('"<p style="float:left;padding-right:15px;"><img src="'+v.imgsrc+'" height="100" width="100"></p><br><p>'+ v.name1 + 'Age'+ v.age+'.</p><br><br><br>"');

                    }



            });
       
        }
});




});
</script>




</head>
<body>

<div id="flip">PuneBook</div>
<div id="panel">
    <ul>
        <a href="police.html"><li>Police</li></a><hr>
        <a href="msedcl.html"><li>MSEDCL</li></a><hr>
        <a href="pmpml.html"><li>PMPML</li></a><hr>
        <a href="complaint.html"><li>Complaint Box</li></a><hr>
        <a href="newsfeed.html"><li>Home</li></a>
    </ul>
</div>



<div id="flip1">Report an incident</div>
<div id="panel1">


    <div class="card">
               
                <p>Please fill out the details regarding the incident.</p>
                <center><input type="email" id="what"  placeholder="What"></center><br><br>
                <center><input type="text" id="where" placeholder="Where"></center><br><br>
                <center><input type="email" id="when"  placeholder="When"></center><br><br>
                <center><input type="submit" id="submit" placeholder="Submit"></center><br><br>


    </div>

</div>



   


        <div class="content">
            <div class="card">
                <h1>Terrorist Alert!</h1>
                <p><span style="color:#ff5858">Bomb alert!</span> Stay out of MES College of Engineering (Unless you haven't done your submissions.)</p>
            </div>




            <div class="card" id="missing">
                <h1>Missing People</h1>
                <p>These people were last seen near your area. Kindly contact the police if you have seen anyone.</p>
                <p style="float:left;padding-right:15px;"><img src="img/2.jpg" height="100" width="100"></p><br>
                <p>Bhimabai Chimappa Waghmare. Age 60.</p><br><br><br>
                <p style="float:left;padding-right:15px;"><img src="img/2.jpg" height="100" width="100"></p><br>
                <p>Shantabai Chimappa Waghmare. Age 60.</p><br><br><br>
                <p style="float:left;padding-right:15px;"><img src="img/2.jpg" height="100" width="100"></p><br>
                <p>Kantabai Chimappa Waghmare. Age 60.</p><br><br><br>
                <p style="float:left;padding-right:15px;"><img src="img/2.jpg" height="100" width="100"></p><br>
                <p>Baibai Chimappa Waghmare. Age 60.</p><br><br><br>

            </div>


             <div class="card" id="wanted">
                <h1>Wanted People</h1>
                <p>These rapists/murderers/theives were last seen near your area :)</p>
                <p style="float:left;padding-right:15px;"><img src="img/2.jpg" height="100" width="100"></p><br>
                <p>Bhimabai Chimappa Waghmare. Age 60.</p><br><br><br>
                <p style="float:left;padding-right:15px;"><img src="img/2.jpg" height="100" width="100"></p><br>
                <p>Shantabai Chimappa Waghmare. Age 60.</p><br><br><br>
                <p style="float:left;padding-right:15px;"><img src="img/2.jpg" height="100" width="100"></p><br>
                <p>Kantabai Chimappa Waghmare. Age 60.</p><br><br><br>
                <p style="float:left;padding-right:15px;"><img src="img/2.jpg" height="100" width="100"></p><br>
                <p>Baibai Chimappa Waghmare. Age 60.</p><br><br><br>
            </div>

           

    </div>

       
       
           


           
     
           

           
           
     

</body>
</html>

No comments:

Post a Comment