-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathpsb_rekap_daftar.php
executable file
·167 lines (124 loc) · 4.46 KB
/
psb_rekap_daftar.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
<?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 = "psb_rekap_daftar.php";
$judul = "Rekap Pendaftar";
$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();
//js
require("inc/js/jumpmenu.js");
//view //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
echo '<form action="'.$filenya.'" method="post" name="formx">';
echo '<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">
<big><strong>'.$judul.'</strong></big>
<br>
<table width="100%" border="1" cellspacing="0" cellpadding="3">
<tr bgcolor="'.$warnaheader.'">
<tr bgcolor="green">
<td>
<strong>Jumlah Pendaftar</strong>
</td>';
//pendaftar
//jml. pendaftar
$qku = mysql_query("SELECT psb_siswa_calon.*, psb_siswa_calon.kd AS sckd, ".
"psb_siswa_calon.nama AS scnama ".
"FROM psb_siswa_calon ".
"WHERE psb_siswa_calon.kd_tapel = '$tp_tapelkd' ".
"AND psb_siswa_calon.nama <> '' ".
"AND psb_siswa_calon.asal_sekolah <> '' ".
"AND psb_siswa_calon.alamat <> '' ".
"AND psb_siswa_calon.tes_fisik <> '' ".
"AND psb_siswa_calon.pengembalian <> ''");
$rku = mysql_fetch_assoc($qku);
$tku = mysql_num_rows($qku);
echo '<td bgcolor="gray">
<big>
<strong>'.$tku.'</strong>
</big>
<br>';
//kelamin L
$qku1 = mysql_query("SELECT psb_siswa_calon.*, psb_siswa_calon.kd AS sckd, ".
"psb_siswa_calon.nama AS scnama ".
"FROM psb_siswa_calon ".
"WHERE psb_siswa_calon.kd_tapel = '$tp_tapelkd' ".
"AND psb_siswa_calon.nama <> '' ".
"AND psb_siswa_calon.asal_sekolah <> '' ".
"AND psb_siswa_calon.alamat <> '' ".
"AND psb_siswa_calon.tes_fisik <> '' ".
"AND psb_siswa_calon.pengembalian <> '' ".
"AND psb_siswa_calon.kelamin = 'L'");
$rku1 = mysql_fetch_assoc($qku1);
$tku1 = mysql_num_rows($qku1);
//kelamin P
$qku2 = mysql_query("SELECT psb_siswa_calon.*, psb_siswa_calon.kd AS sckd, ".
"psb_siswa_calon.nama AS scnama ".
"FROM psb_siswa_calon ".
"WHERE psb_siswa_calon.kd_tapel = '$tp_tapelkd' ".
"AND psb_siswa_calon.nama <> '' ".
"AND psb_siswa_calon.asal_sekolah <> '' ".
"AND psb_siswa_calon.alamat <> '' ".
"AND psb_siswa_calon.tes_fisik <> '' ".
"AND psb_siswa_calon.pengembalian <> '' ".
"AND psb_siswa_calon.kelamin = 'P'");
$rku2 = mysql_fetch_assoc($qku2);
$tku2 = mysql_num_rows($qku2);
echo 'L : <strong>'.$tku1.'</strong>.
<br>
P : <strong>'.$tku2.'</strong>.
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<br>
<br>
<br>';
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//isi
$isi = ob_get_contents();
ob_end_clean();
require("inc/niltpl.php");
//diskonek
xclose($koneksi);
exit();
?>