├── title.php ├── .gitattributes ├── images ├── eb.jpg ├── nn.jpg ├── LOFF.png ├── LON.jpg ├── a11.jpg ├── eb1.jpg ├── eb2.jpg ├── fall.jpg ├── med.jpg ├── soff.jpg ├── son.jpg ├── 500_F.jpg ├── abnor.jpg ├── header.jpg ├── ph5bd.jpg ├── slight.png ├── spring.jpg ├── summer.jpg ├── winter.jpg ├── abnormal.jpg ├── Street lights.JPG ├── header001.jpg.png └── 90949958-old-concrete-electric-p.jpg ├── logout.php ├── chart ├── Thumbs.db ├── img1.png └── img2.png ├── link_control.php ├── dbconnect.php ├── link_home.php ├── link_admin.php ├── store.php ├── alert.php ├── light_monitor.php ├── mess.php ├── style.css ├── home.php ├── index.php ├── index3.php ├── index2.php ├── admin.php ├── login.php ├── alert_show.php ├── add_light.php ├── alert1.php ├── alert2.php ├── usage.php ├── status.php ├── view_light.php ├── chart.php ├── monitor2.php ├── monitor.php └── monitor3.php /title.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /images/eb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thinakaranmanokaran/Farm-Equipments-Management/HEAD/images/eb.jpg -------------------------------------------------------------------------------- /images/nn.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thinakaranmanokaran/Farm-Equipments-Management/HEAD/images/nn.jpg -------------------------------------------------------------------------------- /logout.php: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /chart/Thumbs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thinakaranmanokaran/Farm-Equipments-Management/HEAD/chart/Thumbs.db -------------------------------------------------------------------------------- /chart/img1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thinakaranmanokaran/Farm-Equipments-Management/HEAD/chart/img1.png -------------------------------------------------------------------------------- /chart/img2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thinakaranmanokaran/Farm-Equipments-Management/HEAD/chart/img2.png -------------------------------------------------------------------------------- /images/LOFF.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thinakaranmanokaran/Farm-Equipments-Management/HEAD/images/LOFF.png -------------------------------------------------------------------------------- /images/LON.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thinakaranmanokaran/Farm-Equipments-Management/HEAD/images/LON.jpg -------------------------------------------------------------------------------- /images/a11.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thinakaranmanokaran/Farm-Equipments-Management/HEAD/images/a11.jpg -------------------------------------------------------------------------------- /images/eb1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thinakaranmanokaran/Farm-Equipments-Management/HEAD/images/eb1.jpg -------------------------------------------------------------------------------- /images/eb2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thinakaranmanokaran/Farm-Equipments-Management/HEAD/images/eb2.jpg -------------------------------------------------------------------------------- /images/fall.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thinakaranmanokaran/Farm-Equipments-Management/HEAD/images/fall.jpg -------------------------------------------------------------------------------- /images/med.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thinakaranmanokaran/Farm-Equipments-Management/HEAD/images/med.jpg -------------------------------------------------------------------------------- /images/soff.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thinakaranmanokaran/Farm-Equipments-Management/HEAD/images/soff.jpg -------------------------------------------------------------------------------- /images/son.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thinakaranmanokaran/Farm-Equipments-Management/HEAD/images/son.jpg -------------------------------------------------------------------------------- /images/500_F.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thinakaranmanokaran/Farm-Equipments-Management/HEAD/images/500_F.jpg -------------------------------------------------------------------------------- /images/abnor.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thinakaranmanokaran/Farm-Equipments-Management/HEAD/images/abnor.jpg -------------------------------------------------------------------------------- /images/header.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thinakaranmanokaran/Farm-Equipments-Management/HEAD/images/header.jpg -------------------------------------------------------------------------------- /images/ph5bd.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thinakaranmanokaran/Farm-Equipments-Management/HEAD/images/ph5bd.jpg -------------------------------------------------------------------------------- /images/slight.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thinakaranmanokaran/Farm-Equipments-Management/HEAD/images/slight.png -------------------------------------------------------------------------------- /images/spring.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thinakaranmanokaran/Farm-Equipments-Management/HEAD/images/spring.jpg -------------------------------------------------------------------------------- /images/summer.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thinakaranmanokaran/Farm-Equipments-Management/HEAD/images/summer.jpg -------------------------------------------------------------------------------- /images/winter.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thinakaranmanokaran/Farm-Equipments-Management/HEAD/images/winter.jpg -------------------------------------------------------------------------------- /images/abnormal.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thinakaranmanokaran/Farm-Equipments-Management/HEAD/images/abnormal.jpg -------------------------------------------------------------------------------- /link_control.php: -------------------------------------------------------------------------------- 1 |
2 | Home | 3 | Logout
-------------------------------------------------------------------------------- /dbconnect.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /images/Street lights.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thinakaranmanokaran/Farm-Equipments-Management/HEAD/images/Street lights.JPG -------------------------------------------------------------------------------- /images/header001.jpg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thinakaranmanokaran/Farm-Equipments-Management/HEAD/images/header001.jpg.png -------------------------------------------------------------------------------- /images/90949958-old-concrete-electric-p.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thinakaranmanokaran/Farm-Equipments-Management/HEAD/images/90949958-old-concrete-electric-p.jpg -------------------------------------------------------------------------------- /link_home.php: -------------------------------------------------------------------------------- 1 |
2 |
Home | 3 | Server | 4 | Control Room 5 | 6 |
7 |
-------------------------------------------------------------------------------- /link_admin.php: -------------------------------------------------------------------------------- 1 |
2 | Home | 3 | Power Control | 4 | Light | 5 | Power Usage | 6 | Power Off Alert | 7 | Abnormal Alert | 8 | 9 | Performance | 10 | Logout
-------------------------------------------------------------------------------- /store.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /alert.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Untitled Document 6 | 7 | 8 | 9 | 10 | 0) 17 | { 18 | //echo "yes"; 19 | $sr=mysql_fetch_array($sq1); 20 | mysql_query("update street_det set alert_st=0 where id=".$sr['id'].""); 21 | ?> 25 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /light_monitor.php: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | 12 | 13 | <?php include("title.php"); ?> 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 |

Monitoring

22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 |
 
30 |

 

31 |

 

32 |

33 |
34 | 35 | 36 | -------------------------------------------------------------------------------- /mess.php: -------------------------------------------------------------------------------- 1 | 12 | 13 | 14 | 15 | 16 | <?php include("title.php"); ?> 17 | 18 | 19 | 20 | 21 | 22 |
23 |
24 | 25 |

 

26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 |

EB Information

 
36 |
37 |

 

38 |

 

39 |

40 |
41 | 42 | 43 | -------------------------------------------------------------------------------- /style.css: -------------------------------------------------------------------------------- 1 | body 2 | { 3 | font-family:Arial, Helvetica, sans-serif; 4 | font-size:12px; 5 | } 6 | .hd { 7 | font-family: Arial, Helvetica, sans-serif; 8 | font-size: 24px; 9 | font-weight: bold; 10 | color: #FFFFFF; 11 | height: 150px; 12 | line-height: 150px; 13 | background-repeat: repeat-x; 14 | background-position: left; 15 | background-color: #003399; 16 | } 17 | .sd 18 | { 19 | background-color:#CCCCCC; 20 | color:#000000; 21 | text-decoration:none; 22 | height:30px; 23 | line-height:30px; 24 | font-weight: bold; 25 | } 26 | .sd a 27 | { 28 | background-color:#CCCCCC; 29 | color:#000000; 30 | padding:5px; 31 | text-decoration:none; 32 | } 33 | .inp { 34 | height: 30px; 35 | width: 250px; 36 | } 37 | 38 | .sd a:hover 39 | { 40 | color:#000000; 41 | background-color:#99CC00; 42 | 43 | } 44 | .high 45 | { 46 | background-color:#B00000; 47 | } 48 | .medium 49 | { 50 | background-color:#FF1515; 51 | } 52 | .low 53 | { 54 | background-color:#FFB0B0; 55 | } 56 | .txt { 57 | font-family: Arial, Helvetica, sans-serif; 58 | font-size: 18px; 59 | font-weight: bold; 60 | color: #0066CC; 61 | } 62 | .style1 {color: #FF0000} 63 | .border { 64 | border: 3px solid #006699; 65 | } 66 | .fd { 67 | border: 1px solid #0099CC; 68 | } 69 | .bg2 { 70 | background-color: #CCCCCC; 71 | } 72 | .bg1 { 73 | color: #FFFFFF; 74 | background-color: #990033; 75 | } 76 | -------------------------------------------------------------------------------- /home.php: -------------------------------------------------------------------------------- 1 | 13 | 14 | 15 | 16 | 17 | <?php include("title.php"); ?> 18 | 28 | 29 | 30 | 31 | 32 |
33 |
34 |
Server
35 |
36 | 37 |

Monitoring

38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 |
 
46 |

 

47 | 48 |

 

49 | 50 |
51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 12 | 13 | 14 | 15 | 16 | <?php include("title.php"); ?> 17 | 18 | 19 | 20 | 21 | 22 |
23 |
24 | 25 |

 

26 |
27 | 28 | 29 | 30 | 31 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 |

32 |

Street Light
41 |
42 |

 

43 |

 

44 |

45 |
46 | 47 | 48 | -------------------------------------------------------------------------------- /index3.php: -------------------------------------------------------------------------------- 1 | 23 | 24 | 25 | 26 | 27 | <?php include("title.php"); ?> 28 | 29 | 30 | 31 | 32 | 33 |
34 |
35 | 36 |

 

37 |
38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 |
Control [Administrator]
55 |
56 |

 

57 |

 

58 |

59 |
60 | 61 | 62 | -------------------------------------------------------------------------------- /index2.php: -------------------------------------------------------------------------------- 1 | 30 | 31 | 32 | 33 | 34 | <?php include("title.php"); ?> 35 | 36 | 37 | 38 | 39 | 40 |
41 |
42 | 43 |

 

44 |
45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 |
Server
62 |
63 |

 

64 |

 

65 |

66 |
67 | 68 | 69 | -------------------------------------------------------------------------------- /admin.php: -------------------------------------------------------------------------------- 1 | 13 | 14 | 15 | 16 | 17 | <?php include("title.php"); ?> 18 | 19 | 20 | 30 | 31 | 32 | 33 |
34 |
35 | 36 |

Welcome to Administrator

37 | 44 |

45 | 54 |

55 | 59 |

60 | 61 |

62 |

 

63 |

64 | 65 |
66 | 67 | 68 | -------------------------------------------------------------------------------- /login.php: -------------------------------------------------------------------------------- 1 | 23 | 24 | 25 | 26 | 27 | <?php include("title.php"); ?> 28 | 29 | 30 | 31 | 32 | 33 |
34 |
35 |
36 |
HomeLogin
37 |
38 |

 

39 | 40 | 41 | 42 | 59 | 60 |
43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 |
Admin Login
61 |

62 |

 

63 |

 

64 |

65 |
66 | 67 | 68 | -------------------------------------------------------------------------------- /alert_show.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Untitled Document 6 | 17 | 18 | 19 | 20 | 0) 25 | { 26 | 27 | ?> 28 | 29 | 35 | 36 | 40 |
41 | 0) 47 | { 48 | ?> 49 | 50 | 56 | 57 | 61 |
62 |

All Lights Running Properly....

70 | 71 | 72 | 0) 78 | { 79 | echo "yes"; 80 | $sr=mysql_fetch_array($sq1); 81 | mysql_query("update street_det set alert_st=0 where id=".$sr['id'].""); 82 | ?> 83 | 87 | 94 | 95 | 96 | 97 | -------------------------------------------------------------------------------- /add_light.php: -------------------------------------------------------------------------------- 1 | 18 | 22 | 27 | 28 | 29 | 30 | 31 | <?php include("title.php"); ?> 32 | 33 | 34 | 35 | 36 | 37 |
38 |
39 | 40 |

 

41 |
42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 |
Light Information
City / District
Area
Street Name
Number of Lights
69 |

 

70 |

 

71 |
72 |

 

73 |

 

74 |

75 |
76 | 77 | 78 | -------------------------------------------------------------------------------- /alert1.php: -------------------------------------------------------------------------------- 1 | 12 | 15 | 19 | 20 | 21 | 22 | 23 | <?php include("title.php"); ?> 24 | 34 | 35 | 36 | 37 | 38 |
39 |
40 |

41 | 42 | 43 | 0) 48 | { 49 | ?> 50 |

51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 67 | > 68 | 69 | 70 | 71 | 72 | 81 | 82 | 85 |
SnoStreetLightDate/TimeStaus
'; 76 | echo 'Click to Solve'; 77 | 78 | 79 | 80 | ?>
86 | 93 |

 

94 | 95 |
96 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /alert2.php: -------------------------------------------------------------------------------- 1 | 12 | 15 | 19 | 20 | 21 | 22 | 23 | <?php include("title.php"); ?> 24 | 34 | 35 | 36 | 37 | 38 |
39 |
40 |

41 | 42 | 43 | 0) 48 | { 49 | ?> 50 |

51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 67 | > 68 | 69 | 70 | 71 | 72 | 81 | 82 | 85 |
SnoStreetLightDate/TimeStaus
'; 76 | echo 'Click to Solve'; 77 | 78 | 79 | 80 | ?>
86 | 93 |

 

94 | 95 |
96 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /usage.php: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | 12 | 13 | <?php include("title.php"); ?> 14 | 15 | 16 | 17 | 18 | 19 |
20 |
21 | 22 |

Power Usage

23 |
24 |

25 | 37 | 49 | 50 |

51 | 0) 57 | { 58 | ?> 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 83 |
SnoLightStreetUsage
84 | 88 | 89 |
90 |

 

91 |

 

92 | 93 |

94 |
95 | 96 | 97 | -------------------------------------------------------------------------------- /status.php: -------------------------------------------------------------------------------- 1 | 45 | 48 | 55 | 58 | 65 | 68 | 72 | 73 | 74 | 75 | 76 | <?php include("title.php"); ?> 77 | 78 | 79 | 80 | 81 | 82 |
83 | 84 |

85 | 90 | 91 | 92 |

93 | 94 | 95 | 96 | 115 | 116 | 117 | 118 | 119 | 120 |
=3 && $month<=5) 98 | { 99 | ?>=6 && $month<=8) 102 | { 103 | ?>=9 && $month<=11) 106 | { 107 | ?>
  
121 |

 

122 |

 

123 |

 

124 |

 

125 |

 

126 | 127 |

128 |
129 | 130 | 131 | -------------------------------------------------------------------------------- /view_light.php: -------------------------------------------------------------------------------- 1 | 13 | 14 | 15 | 16 | 17 | <?php include("title.php"); ?> 18 | 19 | 20 | 21 | 22 | 23 |
24 |
25 | 26 |

Street Light Information

27 |
28 |

29 | 41 | 53 | 65 | 66 |

67 | 0) 111 | { 112 | ?> 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 139 |
SnoCityAreaStreetLightAction
Delete
140 | 141 | 148 | 149 |

Add Light Information

150 |

 

151 |
152 |

 

153 |

 

154 | 155 |

156 |
157 | 158 | 159 | -------------------------------------------------------------------------------- /chart.php: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | 12 | 13 | <?php include("title.php"); ?> 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 |

Performance

22 |

23 | 35 | 47 | 48 |

49 | "Jan",2=>"Feb",3=>"Mar",4=>"Apr",5=>"May",6=>"Jun",7=>"Jul",8=>"Aug",9=>"Sep",10=>"Oct",11=>"Nov",12=>"Dec"); 72 | for($i=1;$i<=12;$i++) 73 | { 74 | $q41=mysql_query("select sum(power_usage),month from street_usage where month='$i' $q group by month"); 75 | $r41=mysql_fetch_array($q41); 76 | 77 | $uni=ceil($r41['sum(power_usage)']); 78 | 79 | if($uni=="0") 80 | { 81 | $uni=0.0; 82 | } 83 | $mo=$mon[$i]; 84 | 85 | $values[$mo]=$uni; 86 | 87 | 88 | } 89 | ?> 90 | 91 | 92 | 93 | 94 | 95 | 180 | 181 |
"; 97 | echo "

"; 98 | # ------- The graph values in the form of associative array 99 | /*$values=array( 100 | "Airline" => $a1, 101 | "Railway" => $a2, 102 | "Hotel" => $a3, 103 | "Hospital" => $a4, 104 | "Tour" => $a5, 105 | 106 | );*/ 107 | 108 | 109 | $img_width=750; 110 | $img_height=600; 111 | $margins=20; 112 | 113 | 114 | # ---- Find the size of graph by substracting the size of borders 115 | $graph_width=$img_width - $margins * 2; 116 | $graph_height=$img_height - $margins * 2; 117 | $img=imagecreate($img_width,$img_height); 118 | 119 | 120 | $bar_width=20; 121 | $total_bars=count($values); 122 | $gap= ($graph_width- $total_bars * $bar_width ) / ($total_bars +1); 123 | 124 | 125 | # ------- Define Colors ---------------- 126 | $bar_color=imagecolorallocate($img,10,80,15); 127 | $background_color=imagecolorallocate($img,180,180,180); 128 | $border_color=imagecolorallocate($img,200,200,200); 129 | $line_color=imagecolorallocate($img,220,220,220); 130 | 131 | # ------ Create the border around the graph ------ 132 | 133 | imagefilledrectangle($img,1,1,$img_width-2,$img_height-2,$border_color); 134 | imagefilledrectangle($img,$margins,$margins,$img_width-1-$margins,$img_height-1-$margins,$background_color); 135 | 136 | 137 | # ------- Max value is required to adjust the scale ------- 138 | $max_value=max($values); 139 | $ratio= $graph_height/$max_value; 140 | 141 | 142 | # -------- Create scale and draw horizontal lines -------- 143 | $horizontal_lines=20; 144 | $horizontal_gap=$graph_height/$horizontal_lines; 145 | 146 | for($i=1;$i<=$horizontal_lines;$i++){ 147 | $y=$img_height - $margins - $horizontal_gap * $i ; 148 | imageline($img,$margins,$y,$img_width-$margins,$y,$line_color); 149 | $v=($horizontal_gap * $i /$ratio); 150 | imagestring($img,2,5,$y-5,$v,$bar_color); 151 | 152 | } 153 | 154 | 155 | # ----------- Draw the bars here ------ 156 | 157 | for($i=0;$i< $total_bars; $i++){ 158 | # ------ Extract key and value pair from the current pointer position 159 | list($key,$value)=each($values); 160 | $x1= $margins + $gap + $i * ($gap+$bar_width) ; 161 | $x2= $x1 + $bar_width; 162 | $y1=$margins +$graph_height- intval($value * $ratio) ; 163 | $y2=$img_height-$margins; 164 | imagestring($img,2,$x1+3,$y1-10,$value,$bar_color); 165 | imagestring($img,3,$x1+3,$img_height-15,$key,$bar_color); 166 | imagefilledrectangle($img,$x1,$y1,$x2,$y2,$bar_color); 167 | } 168 | //header("Content-type:image/png"); 169 | imagepng($img,"chart/img1.png"); 170 | 171 | 172 | echo ''; 173 | //////////////////////////////////////////////////////////////////////////////// 174 | echo "
"; 175 | foreach($values as $v1=>$k1) 176 | { 177 | echo ''.$v1." => ".$k1." units
"; 178 | } 179 | ?>
182 | 185 |

 

186 |

 

187 | 188 |

189 |
190 | 191 | 192 | -------------------------------------------------------------------------------- /monitor2.php: -------------------------------------------------------------------------------- 1 | 17 | 20 | 56 | 59 | 65 | 68 | 74 | 77 | =3 && $month<=8) 83 | { 84 | $season="2"; 85 | } 86 | else 87 | { 88 | $season="1"; 89 | }*/ 90 | $q4=mysql_query("select * from street_det"); 91 | $n4=mysql_num_rows($q4); 92 | $h=rand(0,$n4+50); 93 | $g=rand(0,$n4+100); 94 | $sq1=mysql_query("select * from street_det where id=$g"); 95 | $sn1=@mysql_num_rows($s1); 96 | if($sn1>0) 97 | { 98 | // ?/>0) 103 | { 104 | // ?/>=60) 164 | { 165 | $pu=$r41['seconds']/60; 166 | //echo $u." "; 167 | /*if($season=="1") 168 | { 169 | $pu=$u*1; 170 | } 171 | else 172 | { 173 | $pu=$u*0.8; 174 | }*/ 175 | } 176 | else 177 | { 178 | $pu=0; 179 | } 180 | mysql_query("update street_usage set power_usage=$pu where id=".$r41['id'].""); 181 | } 182 | 183 | ?> 184 | 185 | 186 | 187 | 188 | <?php include("title.php"); ?> 189 | 190 | 191 | 192 | 193 |
194 | 0) 199 | { 200 | ?> 201 | 202 | 203 | 204 | 205 | 206 | 207 | 241 | > 242 | 243 | 244 | 276 | 277 | 280 |
SnoLightStaus
'; 249 | //echo "Abnormal"; 250 | } 251 | else if($row['not_work']=="1") 252 | { 253 | //echo ''; 254 | //echo "Not Work"; 255 | } 256 | else 257 | {*/ 258 | if($row['status']=="1") 259 | { 260 | //echo ''; 261 | echo "Light ON |"; 262 | echo ' OFF'; 263 | } 264 | else 265 | { 266 | //echo ''; 267 | echo "Light OFF |"; 268 | echo ' ON'; 269 | } 270 | 271 | echo ' '; 272 | echo ' '; 273 | //} 274 | 275 | ?>
281 | 288 |
289 | 290 | 291 | 296 | 303 | 306 | 307 | 308 | -------------------------------------------------------------------------------- /monitor.php: -------------------------------------------------------------------------------- 1 | 17 | 20 | 56 | 59 | 65 | 68 | 74 | 77 | =3 && $month<=8) 83 | // { 84 | // $season="2"; 85 | // } 86 | // else 87 | // { 88 | // $season="1"; 89 | // } 90 | $q4=mysql_query("select * from street_det"); 91 | $n4=mysql_num_rows($q4); 92 | $h=rand(0,$n4+50); 93 | $g=rand(0,$n4+100); 94 | 95 | $sq1=mysql_query("select * from street_det where id=$g"); 96 | $sn1=@mysql_num_rows($s1); 97 | if($sn1>0) 98 | { 99 | ?>0) 104 | { 105 | ?>=60) 165 | { 166 | $pu=$r41['seconds']/60; 167 | 168 | } 169 | else 170 | { 171 | $pu=0; 172 | } 173 | mysql_query("update street_usage set power_usage=$pu where id=".$r41['id'].""); 174 | } 175 | 176 | ?> 177 | 178 | 179 | 180 | 181 | <?php include("title.php"); ?> 182 | 183 | 184 | 185 | 186 |
187 | 0) 192 | { 193 | ?> 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 236 | > 237 | 238 | 239 | 240 | 241 | 242 | 245 | 277 | 278 | 281 |
SnoCityAreaStreetLightPower Level Staus
'; 250 | echo "Abnormal"; 251 | } 252 | else if($row['not_work']=="1") 253 | { 254 | echo ''; 255 | echo "Not Work"; 256 | } 257 | else 258 | { 259 | if($row['status']=="1") 260 | { 261 | echo ''; 262 | //echo "Light ON"; 263 | //echo ' OFF'; 264 | } 265 | else 266 | { 267 | echo ''; 268 | //echo "Light OFF"; 269 | //echo ' ON'; 270 | } 271 | 272 | //echo ' '; 273 | //echo ' '; 274 | } 275 | 276 | ?>
282 | 289 |
290 | 291 | 292 | 297 | 304 | 307 | 308 | 309 | -------------------------------------------------------------------------------- /monitor3.php: -------------------------------------------------------------------------------- 1 | 17 | 20 | 56 | 59 | 65 | 68 | 74 | 77 | =3 && $month<=8) 83 | { 84 | $season="2"; 85 | } 86 | else 87 | { 88 | $season="1"; 89 | }*/ 90 | $q4=mysql_query("select * from street_det"); 91 | $n4=mysql_num_rows($q4); 92 | $h=rand(0,$n4+50); 93 | $g=rand(0,$n4+100); 94 | $sq1=mysql_query("select * from street_det where id=$g"); 95 | $sn1=mysql_num_rows($s1); 96 | if($sn1>0) 97 | { 98 | ?>0) 103 | { 104 | ?>=60) 164 | { 165 | $pu=$r41['seconds']/60; 166 | //echo $u." "; 167 | /*if($season=="1") 168 | { 169 | $pu=$u*1; 170 | } 171 | else 172 | { 173 | $pu=$u*0.8; 174 | }*/ 175 | } 176 | else 177 | { 178 | $pu=0; 179 | } 180 | mysql_query("update street_usage set power_usage=$pu where id=".$r41['id'].""); 181 | } 182 | 183 | ?> 184 | 185 | 186 | 187 | 188 | <?php include("title.php"); ?> 189 | 190 | 191 | 192 | 193 |
194 | 0) 199 | { 200 | ?> 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 243 | > 244 | 245 | 246 | 247 | 248 | 249 | 252 | 284 | 285 | 288 |
SnoCityAreaStreetLightPower Level Staus
'; 257 | echo "Abnormal"; 258 | } 259 | else if($row['not_work']=="1") 260 | { 261 | echo ''; 262 | echo "Not Work"; 263 | } 264 | else 265 | { 266 | if($row['status']=="1") 267 | { 268 | echo ''; 269 | //echo "Light ON"; 270 | //echo ' OFF'; 271 | } 272 | else 273 | { 274 | echo ''; 275 | //echo "Light OFF"; 276 | //echo ' ON'; 277 | } 278 | 279 | //echo ' '; 280 | //echo ' '; 281 | } 282 | 283 | ?>
289 | 296 |
297 | 298 | 299 | 304 | 311 | 314 | 315 | 316 | --------------------------------------------------------------------------------