-
Notifications
You must be signed in to change notification settings - Fork 12
/
_index.php
194 lines (145 loc) · 4.73 KB
/
_index.php
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
<?php
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
/////// SISFOKOL-PPDB ///////
///////////////////////////////////////////////////////////////////////
/////// Dibuat oleh : ///////
/////// Agus Muhajir, S.Kom ///////
/////// URL : ///////
/////// * http://sisfokol.wordpress.com/ ///////
/////// * http://hajirodeon.wordpress.com/ ///////
/////// * http://yahoogroup.com/groups/sisfokol/ ///////
/////// * http://yahoogroup.com/groups/linuxbiasawae/ ///////
/////// E-Mail : ///////
/////// * [email protected] ///////
/////// * [email protected] ///////
/////// HP/SMS : 081-829-88-54 ///////
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
session_start();
//ambil nilai
require("inc/config.php");
require("inc/fungsi.php");
require("inc/koneksi.php");
require("inc/class/paging.php");
$tpl = LoadTpl("template/index.html");
nocache;
//nilai
$filenya = "index.php";
$judul = "S.I Penerimaan Peserta Didik Baru, $sek_nama";
$judulku = $judul;
//ketahui tapel aktif
$qtp = mysql_query("SELECT * FROM psb_m_tapel ".
"WHERE status = 'true'");
$rtp = mysql_fetch_assoc($qtp);
$tp_tapelkd = nosql($rtp['kd']);
$tp_tahun1 = nosql($rtp['tahun1']);
$tp_tahun2 = nosql($rtp['tahun2']);
//isi *START
ob_start();
//view //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//berita
//query
$p = new Pager();
$start = $p->findStart($limit);
$sqlcount = "SELECT DATE_FORMAT(postdate, '%d') AS ptgl, ".
"DATE_FORMAT(postdate, '%m') AS pbln, ".
"DATE_FORMAT(postdate, '%Y') AS pthn, ".
"DATE_FORMAT(postdate, '%H') AS pjam, ".
"DATE_FORMAT(postdate, '%i') AS pmnt, ".
"DATE_FORMAT(postdate, '%w') AS phri, ".
"psb_info.* FROM psb_info ".
"ORDER BY postdate DESC";
$sqlresult = $sqlcount;
$count = mysql_num_rows(mysql_query($sqlcount));
$pages = $p->findPages($count, $limit);
$result = mysql_query("$sqlresult LIMIT ".$start.", ".$limit);
$pagelist = $p->pageList($_GET['page'], $pages, $target);
$data = mysql_fetch_array($result);
echo '<form action="'.$filenya.'" method="post" name="formx">
<table width="100%" border="0" cellspacing="3" cellpadding="0">
<tr valign="top" align="left">
<td width="25%">';
//ambil data menu
require("inc/menu/psb_menu.php");
echo '</td>
<td align="left">
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr bgcolor="'.$warnaover.'" valign="top" align="left">
<td>
<big><strong>Selamat Datang di Situs PPDB JALUR REGULER TAHUN '.$tp_tahun1.'/'.$tp_tahun2.'</strong></big>
<br>
<strong>'.$sek_nama.'</strong>
<br>
<br>
Situs ini dirancang sebagai pusat informasi Penerimaan Peserta Didik Baru di '.$sek_nama.' Jalur Reguler. Melalui situs ini Anda mendapatkan informasi secara up to date dalam pelaksanaan PPDB secara real time.
Gunakan daftar link di samping untuk mempermudah Anda mengakses informasi penting yang Anda dibutuhkan.
</td>
</tr>
</table>
<hr>
<br>
<br>
<big>
<strong>Info Terbaru PPDB Jalur Reguler</strong>
</big>';
//jika ada
if ($count != 0)
{
echo '<table width="100%" border="0" cellspacing="0" cellpadding="3">';
do
{
//nilai
$d_kd = nosql($data['kd']);
$d_judul = balikin2($data['judul']);
$d_isi = balikin($data['isi']);
$d_ptgl = nosql($data['ptgl']);
$d_pbln = nosql($data['pbln']);
$d_pthn = nosql($data['pthn']);
$d_pjam = nosql($data['pjam']);
$d_pmnt = nosql($data['pmnt']);
$d_phri = nosql($data['phri']);
echo '<tr valign="top">
<td>
<br>
<br>
<em><font color="brown">'.$sek_kota.', '.$d_ptgl.' '.$arrbln1[$d_pbln].' '.$d_pthn.' - '.$d_pjam.':'.$d_pmnt.' WIB</font></em>
<br>
<font color="red"><big><strong>'.$d_judul.'</strong></big></font>
<br>
'.$d_isi.'
<br>
<br>
</td>
</tr>';
}
while ($data = mysql_fetch_assoc($result));
echo '</table>';
}
else
{
echo '<p>
<font color="blue">
<strong>Belum Ada Info Terbaru...</strong>
</font>
</p>';
}
echo '<hr>
<br>
<br>
</td>
</tr>
</table>
</form>
<br>
<br>
<br>';
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//isi
$isi = ob_get_contents();
ob_end_clean();
require("inc/niltpl.php");
//diskonek
xclose($koneksi);
exit();
?>