From 5c8947fe4231c620983c96d81d4f0b4691046611 Mon Sep 17 00:00:00 2001 From: MSiddharthReddy Date: Thu, 14 Apr 2016 14:03:31 -0700 Subject: [PATCH] ALl files for Sensor Management Component --- Gruntfile.js | 99 ++ connect.php | 15 + del.php | 21 + del1.html | 131 +++ del2.html | 128 +++ examples.css | 51 + gmaps.js | 2409 ++++++++++++++++++++++++++++++++++++++++++++++ gmaps.min.js | 2 + gmaps.min.js.map | 1 + handle.php | 24 + jsdoc.json | 17 + markers.html | 112 +++ result.html | 62 ++ un.php | 40 + untitled.html | 154 +++ untitled.php | 153 +++ 16 files changed, 3419 insertions(+) create mode 100755 Gruntfile.js create mode 100644 connect.php create mode 100644 del.php create mode 100644 del1.html create mode 100644 del2.html create mode 100755 examples.css create mode 100755 gmaps.js create mode 100755 gmaps.min.js create mode 100755 gmaps.min.js.map create mode 100644 handle.php create mode 100755 jsdoc.json create mode 100644 markers.html create mode 100644 result.html create mode 100644 un.php create mode 100644 untitled.html create mode 100644 untitled.php diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100755 index 0000000..75d094c --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,99 @@ +/*global module:false*/ +module.exports = function(grunt) { + + 'use strict'; + + // Project configuration. + grunt.initConfig({ + pkg: grunt.file.readJSON('package.json'), + + meta : { + banner : '/*!\n' + + ' * GMaps.js v<%= pkg.version %>\n' + + ' * <%= pkg.homepage %>\n' + + ' *\n' + + ' * Copyright <%= grunt.template.today("yyyy") %>, <%= pkg.author %>\n' + + ' * Released under the <%= pkg.license %> License.\n' + + ' */\n\n' + }, + + concat: { + options: { + banner: '<%= meta.banner %>' + }, + dist: { + src: [ + 'lib/gmaps.core.js', + 'lib/gmaps.controls.js', + 'lib/gmaps.markers.js', + 'lib/gmaps.overlays.js', + 'lib/gmaps.geometry.js', + 'lib/gmaps.layers.js', + 'lib/gmaps.routes.js', + 'lib/gmaps.geofences.js', + 'lib/gmaps.static.js', + 'lib/gmaps.map_types.js', + 'lib/gmaps.styles.js', + 'lib/gmaps.streetview.js', + 'lib/gmaps.events.js', + 'lib/gmaps.utils.js', + 'lib/gmaps.native_extensions.js' + ], + dest: 'gmaps.js' + } + }, + + jasmine: { + options: { + template: 'test/template/jasmine-gmaps.html', + specs: 'test/spec/*.js', + vendor: 'http://maps.google.com/maps/api/js?sensor=true', + styles: 'test/style.css' + }, + src : '<%= concat.dist.src %>' + }, + + watch : { + files : '<%= concat.dist.src %>', + tasks : 'default' + }, + + jshint : { + all : ['Gruntfile.js'] + }, + + uglify : { + options : { + sourceMap : true + }, + all : { + files: { + 'gmaps.min.js': [ 'gmaps.js' ] + } + } + }, + + umd : { + all : { + src : 'gmaps.js', + objectToExport : 'GMaps', + globalAlias : 'GMaps', + template : 'umd.hbs', + deps: { + amd: ['jquery', 'googlemaps!'] + } + } + } + + }); + + grunt.loadNpmTasks('grunt-contrib-watch'); + grunt.loadNpmTasks('grunt-contrib-jshint'); + grunt.loadNpmTasks('grunt-contrib-concat'); + grunt.loadNpmTasks('grunt-contrib-jasmine'); + grunt.loadNpmTasks('grunt-contrib-uglify'); + grunt.loadNpmTasks('grunt-umd'); + + grunt.registerTask('test', ['jshint', 'jasmine']); + grunt.registerTask('default', ['test', 'concat', 'umd', 'uglify']); +}; diff --git a/connect.php b/connect.php new file mode 100644 index 0000000..df7aa17 --- /dev/null +++ b/connect.php @@ -0,0 +1,15 @@ +connect_error); +} +echo "Connected successfully"; +?> \ No newline at end of file diff --git a/del.php b/del.php new file mode 100644 index 0000000..6a568e2 --- /dev/null +++ b/del.php @@ -0,0 +1,21 @@ +query($r) === TRUE) { + //echo "New record created successfully"; +//} else { + //echo "Error: " . $sql . "
" . $conn->er + + + $id = $_GET['id']; + $query = "DELETE FROM sensor_list WHERE Sensor_name='".$id."'"; + echo $query; + if ($conn->query($query) === TRUE) { + echo 'ok'; + } + + exit; // finish execution since we only need the "ok" or "err" answers from the server. + +?> \ No newline at end of file diff --git a/del1.html b/del1.html new file mode 100644 index 0000000..5ee30f4 --- /dev/null +++ b/del1.html @@ -0,0 +1,131 @@ + + + + + + + + + + + + + +
+

+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
#Group NameGroup DescriptionManage
1JacobThornton Delete Group     Edit + +
2Larrythe Bird Delete Group     Edit +
+ + + + + + + + + diff --git a/result.html b/result.html new file mode 100644 index 0000000..d887143 --- /dev/null +++ b/result.html @@ -0,0 +1,62 @@ + + + + + + + + + + +Add Your Sensor + + + + + + +
+ +
+
+
+ +
+ + +
+ + +
+ +
+ + +
+ + +
+ +

+ +
+

Please Provide the Correct Information so that We can MAP your Sensor correctly.

+
+ + +
+
+
+
+ + + + + \ No newline at end of file diff --git a/un.php b/un.php new file mode 100644 index 0000000..9391c06 --- /dev/null +++ b/un.php @@ -0,0 +1,40 @@ +query($r) === TRUE) { + //echo "New record created successfully"; +//} else { + //echo "Error: " . $sql . "
" . $conn->error; +//} +$r = "Select * FROM sensor_list"; + +$a = $conn->query($r); +$rows = array(); +//$a = mysql_query($r); +foreach ($a as $row) { + + $lat = $row['lat']; + $lon = $row['lon']; + $name = $row['Sensor_name']; + + $rows[] = array("lat" => $lat, "lon" => $lon, "sensor" => $name ); + # code... +} +header('Content-type:application/json'); +echo json_encode($rows); + + +//while ($b = mysql_fetch_assoc($a)) { +// $rows['data'] = $b; +// echo json_encode($rows); +//} + +?> \ No newline at end of file diff --git a/untitled.html b/untitled.html new file mode 100644 index 0000000..818dc67 --- /dev/null +++ b/untitled.html @@ -0,0 +1,154 @@ + + + + + + + + + + + + + + +
+

+
+ + + + + + + + + + + + + + + \n"; + } + ?> + + + + + + + + + + + + + +
#Group NameGroup DescriptionManage
{$row\['Sensor_name'\]}{$row\['Sensor_id'\]} Delete Group   Edit +
2JacobThornton Delete Group   Edit + +
3Larrythe Bird Delete Group   Edit +
+ + + + + + + \ No newline at end of file diff --git a/untitled.php b/untitled.php new file mode 100644 index 0000000..1b0c828 --- /dev/null +++ b/untitled.php @@ -0,0 +1,153 @@ + + + + + + + + + + + + + +
+

+
+ + + + + + + + + + query($r) === TRUE) { + //echo "New record created successfully"; + //} else { + //echo "Error: " . $sql . "
" . $conn->error; + //} + $r = "Select * FROM sensor_list"; + + $a = $conn->query($r); + while( $row = mysqli_fetch_array($a) ){ + echo ""; + $id = $row['Sensor_name']; //$row['index'] the index here is a field name + echo ''; + echo ''; + } + ?> + + +
Group NameGroup DescriptionManage
" . $row['Sensor_name'] . "" . $row['Sensor_id'] . " '; + echo ' Delete  '; + echo ' Edit'; + echo '
+ + + + + + + \ No newline at end of file