Skip to content

Commit a22b62a

Browse files
hi
1 parent 1cc6ff1 commit a22b62a

File tree

9 files changed

+456
-13
lines changed

9 files changed

+456
-13
lines changed

admin/includes/add_post.php

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
<?php
23

34
if(isset($_SESSION['username'])){
@@ -34,6 +35,8 @@
3435
echo "<div class='alert alert-success'><strong>Success!</strong> Post successfully added. <a href='../post.php?p_id={$p_id}'>View Post</a></div>";
3536
}
3637
?>
38+
39+
3740
<h1 class="page-header">
3841
Add Post
3942
<small></small>
+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
/**
2+
This stylesheet is part of the java script calendar and date picker
3+
**/
4+
#calender {
5+
width: 200px;
6+
font-family: ms sans serif, sans serif;
7+
font-size: 7pt;
8+
}
9+
10+
#calenderTable {
11+
border-style: outset;
12+
border-width: 2px;
13+
border-color: black;
14+
background-color: #EEE;
15+
display: none;
16+
position: absolute;
17+
z-index: 1;
18+
top: 0px;
19+
left: 0px;
20+
}
21+
22+
#calenderTableHead TR {
23+
background-color: #5FB404;
24+
}
25+
26+
#calenderTableDays TR {
27+
background-color: #B40404;
28+
color: #E6E6E6;
29+
}
30+
31+
.normalDay {
32+
border: 1px dotted black;
33+
cursor: pointer;
34+
}
35+
36+
.hlDay {
37+
border: 1px black;
38+
background-color: #585858;
39+
color: #E6E6E6;
40+
cursor: pointer;
41+
}
42+
43+
.toDay {
44+
border: 1px solid #E70;
45+
background-color: #FD8;
46+
color: #E70;
47+
font-weight: bold;
48+
cursor: pointer;
49+
}
50+
51+
.choosenDay {
52+
border: 1px #000000;
53+
background-color: #585858;
54+
color: #E6E6E6;
55+
font-weight: bold;
56+
cursor: pointer;
57+
}
+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<head>
2+
<title>Java Script Calender Date Picker</title>
3+
<meta http-equiv="Content-Type" content="text/html;">
4+
<script language="javaScript" type="text/javascript" src="calendar.js"></script>
5+
<link href="calendar.css" rel="stylesheet" type="text/css">
6+
</head>
7+
<body bgcolor="#666666">
8+
<form>
9+
<input type="text" name="datum1"><a href="#" onClick="setYears(1947, 2008);
10+
showCalender(this, 'datum1');">
11+
<img src="calender.png"></a>
12+
13+
</form>
14+
15+
<!-- Calender Script -->
16+
17+
<table id="calenderTable">
18+
<tbody id="calenderTableHead">
19+
<tr>
20+
<td colspan="4" align="center">
21+
<select onChange="showCalenderBody(createCalender(document.getElementById('selectYear').value,
22+
this.selectedIndex, false));" id="selectMonth">
23+
<option value="0">Jan</option>
24+
<option value="1">Feb</option>
25+
<option value="2">Mar</option>
26+
<option value="3">Apr</option>
27+
<option value="4">May</option>
28+
<option value="5">Jun</option>
29+
<option value="6">Jul</option>
30+
<option value="7">Aug</option>
31+
<option value="8">Sep</option>
32+
<option value="9">Oct</option>
33+
<option value="10">Nov</option>
34+
<option value="11">Dec</option>
35+
</select>
36+
</td>
37+
<td colspan="2" align="center">
38+
<select onChange="showCalenderBody(createCalender(this.value,
39+
document.getElementById('selectMonth').selectedIndex, false));" id="selectYear">
40+
</select>
41+
</td>
42+
<td align="center">
43+
<a href="#" onClick="closeCalender();"><font color="#003333" size="+1">X</font></a>
44+
</td>
45+
</tr>
46+
</tbody>
47+
<tbody id="calenderTableDays">
48+
<tr style="">
49+
<td>Sun</td><td>Mon</td><td>Tue</td><td>Wed</td><td>Thu</td><td>Fri</td><td>Sat</td>
50+
</tr>
51+
</tbody>
52+
<tbody id="calender"></tbody>
53+
</table>
54+
55+
<!-- End Calender Script -->
56+
57+
</body>
58+
</html>

0 commit comments

Comments
 (0)