Skip to content

Commit 27a5ff4

Browse files
committed
mailing system with php oop and mysql
0 parents  commit 27a5ff4

File tree

382 files changed

+76723
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

382 files changed

+76723
-0
lines changed

admin/.github/ISSUE_TEMPLATE.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
**Issue description**
2+
3+
4+
5+
**Steps to reproduce (if you knew)**
6+
7+
8+
9+
**Expected behaviour**
10+
11+
12+
13+
**Other Note (feature-request, question, etc...)**
14+
15+

admin/Gruntfile.js

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
module.exports = function(grunt) {
2+
grunt.initConfig({
3+
pkg: grunt.file.readJSON('package.json'),
4+
watch: {
5+
options: { livereload: true },
6+
scss: {
7+
files: ['src/sass/**/*.sass', 'src/sass/**/*.scss'],
8+
tasks: ['sass', 'postcss'],
9+
options: {
10+
interrupt: true
11+
}
12+
},
13+
pug: {
14+
files: ['src/pug/**/*.pug'],
15+
tasks: ['pug'],
16+
options: {
17+
interrupt: true
18+
}
19+
}
20+
},
21+
pug: {
22+
compile: {
23+
options: {
24+
pretty: true
25+
},
26+
files: [{
27+
src: ['**/*.pug', '!**/_*.pug'],
28+
dest: "docs/",
29+
ext: ".html",
30+
cwd: "src/pug/",
31+
expand: true
32+
}]
33+
}
34+
},
35+
sass: {
36+
dist: {
37+
options: {
38+
outputStyle: 'expanded',
39+
sourceMap: false
40+
},
41+
files: [{
42+
expand: true,
43+
cwd: 'src/sass/',
44+
src: ['*.scss'],
45+
dest: 'docs/css/',
46+
ext: '.css'
47+
}]
48+
}
49+
},
50+
postcss: {
51+
options: {
52+
map: false,
53+
processors: [
54+
require('autoprefixer')({browsers: 'last 3 versions'})
55+
]
56+
},
57+
dist: {
58+
src: ['docs/css/*.css']
59+
}
60+
}
61+
});
62+
63+
// Load the Grunt plugins.
64+
grunt.loadNpmTasks('grunt-sass');
65+
grunt.loadNpmTasks('grunt-postcss');
66+
grunt.loadNpmTasks('grunt-contrib-pug');
67+
grunt.loadNpmTasks('grunt-contrib-watch');
68+
69+
// Set task aliases
70+
grunt.registerTask('default', ['watch']);
71+
grunt.registerTask('build', ['pug','sass','postcss']);
72+
};

admin/_gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules/
2+
dist/local.js
3+
*/local.js

admin/adduser.php

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
<?php include 'inc/header.php'; ?>
2+
<!-- Sidebar menu-->
3+
<?php include 'inc/sidebar.php'; ?>
4+
<?php
5+
6+
if($_SERVER['REQUEST_METHOD']=='POST'){
7+
8+
$adminemail = $_POST['adminemail'];
9+
$adminpass = $_POST['adminpass'];
10+
$role = $_POST['role'];
11+
12+
$Addnewuser = $al->addnewuser($adminemail, $adminpass, $role);
13+
14+
}
15+
16+
?>
17+
<!--main content-->
18+
<main class="app-content">
19+
<div class="app-title">
20+
<div>
21+
<h1>Add new User</h1>
22+
<?php
23+
24+
if (isset($Addnewuser))
25+
{
26+
27+
echo $Addnewuser;
28+
}
29+
30+
?>
31+
</div>
32+
33+
</div>
34+
<div class="row">
35+
<div class="col-md-12">
36+
<div class="tile">
37+
<div class="row">
38+
<div class="col-lg-6">
39+
<form action="" method="post">
40+
<div class="form-group">
41+
<label for="exampleInputEmail1">Email address</label>
42+
<input class="form-control" name="adminemail" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter email">
43+
</div>
44+
<div class="form-group">
45+
<label for="exampleInputPassword1">Password</label>
46+
<input class="form-control" name="adminpass" id="exampleInputPassword1" type="password" placeholder="Password">
47+
</div>
48+
<div class="form-group">
49+
<label for="exampleSelect1">User Role</label>
50+
<select class="form-control" name="role" id="exampleSelect1">
51+
<option value="3">Admin</option>
52+
<option value="2">Editor</option>
53+
</select>
54+
</div>
55+
56+
<div class="tile-footer">
57+
<input class="btn btn-primary" type="submit" name="submit" value="Save">
58+
</div>
59+
</form>
60+
</div>
61+
</div>
62+
63+
</div>
64+
</div>
65+
</div>
66+
</main>
67+
<!-- Essential javascripts for application to work-->
68+
<script src="js/jquery-3.2.1.min.js"></script>
69+
<script src="js/popper.min.js"></script>
70+
<script src="js/bootstrap.min.js"></script>
71+
<script src="js/main.js"></script>
72+
<!-- The javascript plugin to display page loading on top-->
73+
<script src="js/plugins/pace.min.js"></script>
74+
<!-- Page specific javascripts-->
75+
<!-- Google analytics script-->
76+
<script type="text/javascript">
77+
if(document.location.hostname == 'pratikborsadiya.in') {
78+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
79+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
80+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
81+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
82+
ga('create', 'UA-72504830-1', 'auto');
83+
ga('send', 'pageview');
84+
}
85+
</script>
86+
</body>
87+
</html>

admin/allsystemuser.php

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
<?php include 'inc/header.php'; ?>
2+
<!-- Sidebar menu-->
3+
<?php include 'inc/sidebar.php'; ?>
4+
<?php
5+
if (isset($_GET['deluserid'])) {
6+
7+
$deluserid = $_GET['deluserid'];
8+
$Deleteuserbyid = $user->deleteuserbyid($deluserid);
9+
}
10+
?>
11+
<!--main content-->
12+
<main class="app-content">
13+
<div class="app-title">
14+
<div>
15+
<h1>All user</h1>
16+
<?php
17+
if (isset($Deleteuserbyid)) {
18+
echo $Deleteuserbyid;
19+
}
20+
?>
21+
</div>
22+
</div>
23+
<div class="row">
24+
<div class="col-md-12">
25+
<div class="tile">
26+
<div class="tile-body">
27+
<table class="table table-hover table-bordered" id="sampleTable">
28+
<thead>
29+
<tr>
30+
<th>Sl No</th>
31+
<th>Name</th>
32+
<th>E-mail</th>
33+
<th>Action</th>
34+
35+
</tr>
36+
</thead>
37+
<tbody>
38+
39+
<?php
40+
41+
$userrole = Session::get('role');
42+
$Getallsystemuser = $user->getallsystemuser();
43+
if ($Getallsystemuser) {
44+
$i=0;
45+
while ($value = $Getallsystemuser->fetch_assoc()) {
46+
47+
$i++;
48+
49+
50+
?>
51+
<tr>
52+
<td><?php echo $i; ?></td>
53+
<td><?php echo $value['name']; ?></td>
54+
<td><?php echo $value['email']; ?></td>
55+
56+
<td>
57+
58+
<?php
59+
60+
if($userrole==3){ ?>
61+
62+
63+
<a onclick="return confirm('Are you sure to delete?');" href="?deluserid=<?php echo $value['userid']; ?>">Delete</a> || <a href="userview.php?viewid=<?php echo $value['userid']; ?>">View</a>
64+
65+
66+
<?php }else{ ?>
67+
68+
<a href="userview.php?viewid=<?php echo $value['userid']; ?>">View</a>
69+
70+
<?php } ?>
71+
72+
</td>
73+
</tr>
74+
75+
<?php } } ?>
76+
77+
</tbody>
78+
</table>
79+
</div>
80+
</div>
81+
</div>
82+
</div>
83+
</main>
84+
<!-- Essential javascripts for application to work-->
85+
<script src="js/jquery-3.2.1.min.js"></script>
86+
<script src="js/popper.min.js"></script>
87+
<script src="js/bootstrap.min.js"></script>
88+
<script src="js/main.js"></script>
89+
<!-- The javascript plugin to display page loading on top-->
90+
<script src="js/plugins/pace.min.js"></script>
91+
<!-- Page specific javascripts-->
92+
<!-- Data table plugin-->
93+
<script type="text/javascript" src="js/plugins/jquery.dataTables.min.js"></script>
94+
<script type="text/javascript" src="js/plugins/dataTables.bootstrap.min.js"></script>
95+
<script type="text/javascript">$('#sampleTable').DataTable();</script>
96+
<!-- Google analytics script-->
97+
<script type="text/javascript">
98+
if(document.location.hostname == 'pratikborsadiya.in') {
99+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
100+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
101+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
102+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
103+
ga('create', 'UA-72504830-1', 'auto');
104+
ga('send', 'pageview');
105+
}
106+
</script>
107+
</body>
108+
</html>

0 commit comments

Comments
 (0)