-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cc78e62
commit ee02ffd
Showing
36 changed files
with
2,736 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
|
||
function SendSMS($mobilenumbers,$message) | ||
{ | ||
$user="bcebti"; //your username | ||
$password="909938537"; //your password | ||
$senderid="SUNSFT"; //Your senderid | ||
//$url="http://smsapple.in/api/swsend.asp";//URL To HIT | ||
$url= "http://bulksms.mysmsmantra.com:8080/WebSMS/SMSAPI.jsp";//?username="+uid+"&password="+pwd+"&sendername="+sender+"&mobileno="+mobileno+"&message="+msg; | ||
$message = urlencode($message); | ||
$ch = curl_init(); | ||
if (!$ch){die("Couldn't initialize a cURL handle");} | ||
$ret = curl_setopt($ch, CURLOPT_URL,$url); | ||
curl_setopt ($ch, CURLOPT_POST, 1); | ||
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); | ||
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); | ||
curl_setopt ($ch, CURLOPT_POSTFIELDS, | ||
"username=$user&password=$password&sendername=$senderid&mobileno=$mobilenumbers&message=$message"); | ||
$ret = curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | ||
$curlresponse = curl_exec($ch); // execute | ||
if(curl_errno($ch)) | ||
echo ""; | ||
//echo 'curl error : '. curl_error($ch); | ||
if (empty($ret)) | ||
{ | ||
// some kind of an error happened | ||
//die(curl_error($ch)); | ||
curl_close($ch); // close cURL handler | ||
} | ||
else | ||
{ | ||
$info = curl_getinfo($ch); | ||
curl_close($ch); // close cURL handler | ||
return $curlresponse; | ||
} | ||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
include_once("index-connect.php"); | ||
$uidd=$_GET["uid"]; | ||
$query="delete from clientdata where uid='$uidd'"; | ||
|
||
mysqli_query($dbRef,$query); | ||
|
||
if(mysqli_affected_rows($dbRef)==0) | ||
echo "Invalid id"; | ||
else | ||
echo "Record Deleted"; | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
include_once("index-connect.php"); | ||
|
||
$query="select * from clientdata"; | ||
|
||
$table=mysqli_query($dbRef,$query); | ||
|
||
$ary=array(); | ||
while($row=mysqli_fetch_array($table)) | ||
{ | ||
$ary[]=$row; | ||
} | ||
echo json_encode($ary); | ||
|
||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Document</title> | ||
<script src="java-script/jquery-1.8.2.min.js"></script> | ||
<script src="java-script/angular.min.js"></script> | ||
<script src="java-script/bootstrap.js" type="text/javascript"></script> | ||
<link rel="stylesheet" href="style/bootstrap.css"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
<style> | ||
body { | ||
overflow-x: hidden; | ||
/*background-color: antiquewhite;*/ | ||
background-image: url(pics/body1.jpg); | ||
background-size: cover; | ||
}</style> | ||
<script> | ||
var module = angular.module("mymodule", []); | ||
module.controller("mycontroller", function($scope, $http) { | ||
$scope.showAll = function() { | ||
$scope.jsonAry; | ||
$http.get("admin-client-fetch.php").then(fine, notfine); | ||
function fine(response) { | ||
//alert("hii"); | ||
// alert(JSON.stringify(response)); | ||
// alert(JSON.stringify(response.data)); //== jsonAry | ||
$scope.jsonAry = response.data; | ||
//console.log(JSON.stringify(response)); | ||
} | ||
function notfine(response) { | ||
alert(JSON.stringify(response)); | ||
} | ||
} | ||
//-=-=-=-=-=-=-delete | ||
$scope.doDelete = function(uid) { | ||
if (confirm("R u Sure?") == true) { | ||
$http.get("admin-client-delete-process.php?uid=" + uid).then(fine, notfine); | ||
function fine(response) { | ||
//alert(JSON.stringify(response.data)); | ||
$scope.showAll(); | ||
} | ||
function notfine(response) { | ||
alert("not fine"); | ||
alert(JSON.stringify(response)); | ||
} | ||
} | ||
} | ||
}); | ||
</script> | ||
</head> | ||
<body ng-app="mymodule" ng-controller="mycontroller" ng-init="showAll();"> | ||
<font color="white"> | ||
<center> | ||
<h3><u> All client's data </u></h3> | ||
</center> | ||
<br><br> | ||
<div class="container"> | ||
Search:<input type="text" ng-model="google.uid"> | ||
<br><br> | ||
<table class="table table-striped table-bordered"> | ||
<tr> | ||
<th>User-id</th> | ||
<th>Name</th> | ||
<th>Mobile</th> | ||
<th>City</th> | ||
<th>Pic</th> | ||
<th>Remove</th> | ||
</tr> | ||
<tr ng-repeat="oneObj in jsonAry|filter:google" class="text-white"> | ||
<td>{{oneObj.uid}}</td> | ||
<td>{{oneObj.name}}</td> | ||
<td>{{oneObj.mobile}}</td> | ||
<td>{{oneObj.city}}</td> | ||
<td> | ||
<a href="cont-images/{{oneObj.pic}}" target="_blank"> | ||
<center><img src="cont-images/{{oneObj.pic}}" alt="" height="50" width="50"> | ||
</center> | ||
</a> | ||
</td> | ||
<td> | ||
<div class="btn btn-danger" ng-click="doDelete(oneObj.uid);">Delete</div> | ||
</td> | ||
</tr> | ||
</table> | ||
</div> | ||
</font> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
include_once("index-connect.php"); | ||
$uidd=$_GET["uid"]; | ||
$query="delete from contributordata where uid='$uidd'"; | ||
|
||
mysqli_query($dbRef,$query); | ||
|
||
if(mysqli_affected_rows($dbRef)==0) | ||
echo "Invalid id"; | ||
else | ||
echo "Record Deleted"; | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
include_once("index-connect.php"); | ||
|
||
$query="select * from contributordata"; | ||
|
||
$table=mysqli_query($dbRef,$query); | ||
|
||
$ary=array(); | ||
while($row=mysqli_fetch_array($table)) | ||
{ | ||
$ary[]=$row; | ||
} | ||
echo json_encode($ary); | ||
|
||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Document</title> | ||
<script src="java-script/jquery-1.8.2.min.js"></script> | ||
<script src="java-script/angular.min.js"></script> | ||
<script src="java-script/bootstrap.js" type="text/javascript"></script> | ||
<link rel="stylesheet" href="style/bootstrap.css"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
<style> | ||
body { | ||
overflow-x: hidden; | ||
background-image: url(pics/body1.jpg); | ||
background-size: cover; | ||
}</style> | ||
<script> | ||
var module = angular.module("mymodule", []); | ||
module.controller("mycontroller", function($scope, $http) { | ||
$scope.showAll = function() { | ||
$scope.jsonAry; | ||
$http.get("admin-contributor-fetch.php").then(fine, notfine); | ||
function fine(response) { | ||
//alert("hii"); | ||
// alert(JSON.stringify(response)); | ||
// alert(JSON.stringify(response.data)); //== jsonAry | ||
$scope.jsonAry = response.data; | ||
//console.log(JSON.stringify(response)); | ||
} | ||
function notfine(response) { | ||
alert(JSON.stringify(response)); | ||
} | ||
} | ||
//-=-=-=-=-=-=-delete | ||
$scope.doDelete = function(uid) { | ||
if (confirm("R u Sure?") == true) { | ||
$http.get("admin-contri-delete-process.php?uid=" + uid).then(fine, notfine); | ||
function fine(response) { | ||
//alert(JSON.stringify(response.data)); | ||
$scope.showAll(); | ||
} | ||
function notfine(response) { | ||
alert("not fine"); | ||
alert(JSON.stringify(response)); | ||
} | ||
} | ||
} | ||
//-=---------=-=--------=======- | ||
}); | ||
</script> | ||
</head> | ||
<body ng-app="mymodule" ng-controller="mycontroller" ng-init="showAll();"> | ||
<font color="white"> | ||
<center> | ||
<h3><u> All contributors's data </u></h3> | ||
</center> | ||
<br> | ||
<div class="container"> | ||
Search:<input type="text" ng-model="google"> | ||
<br><br> | ||
<table class="table table-stripped table-bordered"> | ||
<tr> | ||
<th>User-id</th> | ||
<th>Name</th> | ||
<th>Firm Name</th> | ||
<th>City</th> | ||
<th>Pic1</th> | ||
<th>Pic2</th> | ||
<th>Pic3</th> | ||
<th>Remove</th> | ||
</tr> | ||
<tr ng-repeat="oneObj in jsonAry | filter:google" class="text-white"> | ||
<td>{{oneObj.uid}}</td> | ||
<td>{{oneObj.name}}</td> | ||
<td>{{oneObj.firmname}}</td> | ||
<td>{{oneObj.city}}</td> | ||
<td> | ||
<a href="cont-images/{{oneObj.picname1}}" target="_blank"> | ||
<center><img src="cont-images/{{oneObj.picname1}}" alt="" height="50" width="50"> | ||
</center> | ||
</a> | ||
</td> | ||
<td> | ||
<a href="cont-images/{{oneObj.picname2}}" target="_blank"> | ||
<center><img src="cont-images/{{oneObj.picname2}}" alt="" height="50" width="50"> | ||
</center> | ||
</a> | ||
</td> | ||
<td> | ||
<a href="cont-images/{{oneObj.picname3}}" target="_blank"> | ||
<center><img src="cont-images/{{oneObj.picname3}}" alt="" height="50" width="50"> | ||
</center> | ||
</a> | ||
</td> | ||
<td> | ||
<div class="btn btn-danger" ng-click="doDelete(oneObj.uid);">Delete</div> | ||
</td> | ||
</tr> | ||
</table> | ||
</div> | ||
</font> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Document</title> | ||
<script src="java-script/jquery-1.8.2.min.js"></script> | ||
<script src="java-script/bootstrap.js" type="text/javascript"></script> | ||
<link rel="stylesheet" href="style/bootstrap.css"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
<style> | ||
body { | ||
overflow-x: hidden; | ||
background-image: url(pics/body1.jpg); | ||
background-size: cover; | ||
}</style> | ||
</head> | ||
<body> | ||
<br><br><br><br> | ||
<center> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-3 offset-md-2"> | ||
<!--card 1 profile--> | ||
<div class="card" style="width: 18rem; padding:3px;"> | ||
<img src="pics/clientimage.jpg" class="card-img-top" alt="..." height="200" width="200"> | ||
<div class="card-body"> | ||
<h5 class="card-title">Client's Data</h5> | ||
<a href="admin-client.php" class="btn btn-primary">Show all data</a> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-md-3 offset-md-1"> | ||
<!--card 1 profile--> | ||
<div class="card" style="width: 18rem; padding:3px;"> | ||
<img src="pics/contributorimage.png" class="card-img-top" alt="..." height="200" width="400"> | ||
<div class="card-body"> | ||
<h5 class="card-title">Contributor's Data</h5> | ||
<a href="admin-contributor.php" class="btn btn-primary">Show all data</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</center> | ||
</body> | ||
</html> |
Oops, something went wrong.