-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
125 lines (111 loc) · 6.5 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<title>Pichavaram's Bulk Mailing Service</title>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container-fluid">
<a class="navbar-brand" href="#">Pichavaram's Bulk Mailing Service</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<!--<li class="nav-item">
<a class="nav-link active" aria-current="page" href="#">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>-->
<!--<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
Dropdown
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
<li><a class="dropdown-item" href="#">Action</a></li>
<li><a class="dropdown-item" href="#">Another action</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="#">Something else here</a></li>
</ul>
</li>-->
<li class="nav-item">
<a class="nav-link" href="http:https://azure.pichavaram.in:2000/logs" target="blank">Logs</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="container">
<br>
<div class="mb-3">
<label for="exampleFormControlInput1" class="form-label"><b>Select Mailing List</b></label>
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">
select
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1">
<li><a class="dropdown-item" onclick='ddPichavaram()' href="#">Pichavaram</a></li>
<li><a class="dropdown-item" onclick='ddPichavaramCodingClub' href="#">Pichavaram Coding Club</a></li>
<li><a class="dropdown-item" onclick='ddBibliophiles' href="#">Bibliophiles</a></li>
<li><a class="dropdown-item" onclick='ddChessClub' href="#">Chess Club</a></li>
<li><a class="dropdown-item" onclick='ddMLAI' href="#">ML & AI Club</a></li>
</ul>
</div>
<div class="alert alert-secondary" role="alert" id="plexy">
<b>Selected Mail List : </b> None
</div>
<label for="exampleInputEmail1" class="form-label"><b>Email address</b></label>
<input type="email" class="form-control" id="exampleInputEmail1" placeholder="[email protected]" name="email">
<label for="exampleInputPassword1" class="form-label"><b>Password</b></label>
<input type="password" class="form-control" id="exampleInputPassword1" placeholder="password provided by Pichavaram Coding Club" name="password">
<label for="sub" class="form-label"><b>Subject</b></label>
<input type="email" class="form-control" id="sub" placeholder="Subject" name="subject">
<label for="body" class="form-label"><b>Body</b></label>
<textarea class="form-control" id="body" rows="10" placeholder="Body" name="body"></textarea>
<br>
<button id="send_mail_btn" type="button" class="btn btn-danger" onclick="sendMail()">Send Mail</button>
</div>
</div>
<footer class="p-5 text-light text-center position-relative" style="background-color: black;">
<div class="container">
<p class="lead">Developed and maintained by <span class="text-info"> <a href="https://5zcseiibbczxrcn5162zqw-on.drv.tw/www.thecodingclub.com/" style="text-decoration: none" target="blank"> Pichavaram Coding Club</a></span></p>
</div>
</footer>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<script>
function ddPichavaram(){
document.getElementById("plexy").innerHTML = "<b>Selected Mail List : </b>Pichavaram";
}
function ddPichavaramCodingClub(){
document.getElementById("plexy").innerHTML = "<b>Selected Mail List : </b>Pichavaram Coding Club";
}
function ddBibliophiles(){
document.getElementById("plexy").innerHTML = "<b>Selected Mail List : </b>Bibliophiles";
}
function ddChessClub(){
document.getElementById("plexy").innerHTML = "<b>Selected Mail List : </b>Chess Club";
}
function ddMLAI(){
document.getElementById("plexy").innerHTML = "<b>Selected Mail List : </b>ML & AI Club";
}
document.getElementById('send_mail_btn').onclick = function sendMail() {
var uid = document.forms['filter2']['since'].value;
var pwd = document.forms['filter2']['till'].value;
var tolist = documents.forms['filter2']['tolist'].value;
var sub = document.forms['filter2']['subject'].value;
var body = document.forms['filter2']['body'].value;
var url = "http:https://azure.pichavaram.in:2000/send_mail/?uid=" + uid + "&pwd=" + pwd + "&tolist=" + tolist + "&sub=" + sub + "&body=" + body;
var xhr = new XMLHttpRequest();
xhr.open('GET', url, true);
xhr.send();
xhr.onreadystatechange = processRequest;
}
</script>
</body>
</html>