-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaw_stats.html
226 lines (171 loc) · 8.42 KB
/
aw_stats.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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Imagine CX CRM</title>
<!--Bootsrap4 CSS-->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous">
<link rel="stylesheet" href="C:/xampp/htdocs/php_crud_mysql/css/style.css">
<!-- FONT AWESOME 5 -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="http://momentjs.com/downloads/moment.min.js"></script>
</head>
<body>
<nav class="navbar navbar-dark bg-dark">
<div class="container-brand p-4">
<div class="logo">
<img src="https://dscbucket.s3-sa-east-1.amazonaws.com/logo_recorte.JPG">
<a href="index.php" class="navbar-brand">Imagine-CX Customer Relationships Managment Platform</a>
</div>
</div>
</nav>
<nav>
<div class="topnav">
<button>
<a class="active" href="index.php"><strong>Home </strong><i class="fa fa-home"></i></a>
</button>
<button>
<a href="contacts.php"><strong>Contacts </strong><i class="fa fa-address-book"></i></a>
</button>
<button>
<a href="create_contact.php"><strong>Contact </strong><i class="fa fa-address-book"></i></a>
<button>
<a href="create_customer.php"><strong>Customer </strong><i class="fa fa-user"></i></a>
</button>
<button>
<a href="about.html"><strong>About </strong><i class="fa fa-info-circle"></i></a>
</button>
<button>
<a href="logout.php"><strong>Logout</strong><i class="fa fa-info-exit"></i></a></a>
</button>
</div>
</div>
<style>
/* The navbar */
.topnav {
overflow: hidden;
background-color: #333;
}
/* Navbar links */
.topnav a {
float: left;
color: black;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}
.topnav a:hover {
background-color: #ddd;
color: orange;
}
</style>
</nav>
<div class="container">
<div class="card border-primary">
<img class="card-img-top" src="holder.js/100px180/" alt="">
<div class="card-body">
<div id="myDIV">Finish Date:
</div>
<div id="myDIV2">Number of days:
</div>
<span id="hours"><p>Hours to complete: </p></span>
<h5 class="card-title">Awareness</h5>
<h6 class="card-subtitle text-muted"></h6>
<ul><strong>Tasks progress</strong>
<section>
<span id="hours"><p>Hours: </p></span>
<label for="start">Start date:</label>
<text type="date" id="start" name="trip-start"></text>
<input type="number" placeholder="Introduce the end day date" id="myInput">
<button type="button" id="getValBtn" onclick="getInputValue();">Set finish date</button>
<script>
function getInputValue(){
// Selecting the input element and get its value
var inputVal = document.getElementById("myInput").value;
// Displaying the value
console.log(inputVal);
n = new Date();
y = n.getFullYear();
m = n.getMonth() + 1;
d = n.getDate();
var outputDay = document.getElementById("myInput").innerHTML = inputVal + "/" + m + "/" + y;
var getValBtt = document.getElementById("getValBtn");
getValBtt.disabled=false;
alert('Are you sure to end the task by this day?: '+ outputDay);
getValBtt.disabled=true;
var para = document.createElement("P"); // Create a <p> element
para.innerHTML = outputDay; // Insert text
document.getElementById("myDIV").appendChild(para);
var res;
res = inputVal - d;
console.log(res);
var para2 = document.createElement("P"); // Create a <p> element
para2.innerHTML = res; // Insert text
document.getElementById("myDIV2").appendChild(para2);
var hoursTo = document.createElement("P"); // Create a <p> element
hoursTo.innerHTML = res*24; // Insert text
document.getElementById("hours").appendChild(hoursTo);
}
</script>
<script text="javascript">
n = new Date();
//Año
y = n.getFullYear();
//Mes
m = n.getMonth()+1;
//Día
d = n.getDate();
//Lo ordenas a gust
document.getElementById("start").innerHTML = d + "/" + m + "/" + y;
</script>
</section>
<li>Social media marketing
<progress id="prog-smm" value="0" max="100">
<script src="prog_smm.js"></script>
</progress>
<input id="startBtn-smm" type="button" value="start" onclick="startProgress_smm()">
<div id="numValue_smm">0%</div>
</li>
<li>IBlogging
<progress id="prog-ib" value="0" max="100">
<script src="prog_ib.js">
</script>
</progress>
<input id="startBtn-ib" type="button" value="start" onclick="startProgress_ib()">
<div id="numValue_ib">0%</div>
</li>
<li>Cold calls
<progress id="prog-cc" value="0" max="100">
<script src="prog_cc.js">
</script>
</progress>
<input id="startBtn-cc" type="button" value="start" onclick="startProgress_cc()">
<div id="numValue_cc">0%</div>
</li>
<li>Paid search
<progress id="prog-ps" value="0" max="100">
<script src="prog_ps.js">
</script>
</progress>
<input id="startBtn-ps" type="button" value="start" onclick="startProgress_ps()">
<div id="numValue_ps">0%</div>
</li>
<li>Traditional advertising
<progress id="prog-ta" value="0" max="100">
<script src="prog_ta.js">
</script>
</progress>
<input id="startBtn-ta" type="button" value="start" onclick="startProgress_ta()">
<div id="numValue_ta">0%</div>
</li>
</ul>
</div>
</div>"
</div>
</div>
</body>
</body>
</html>l