Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for Zend Encoder/SafeGuard & PhpExpress)
- *
- * @ Version : 1.1.3.0
- * @ Author : DeZender
- * @ Release on : 17.05.2011
- * @ Official site : http://DeZender.Net
- *
- */
- function index($kategori, $pozisyon, $zps) {
- global $config;
- global $lisan_global;
- global $modul_data;
- include( './sistem/_siteust.php' );
- if (!( isset( $pozisyon ))) {
- $pozisyon = 0;
- }
- if (!( isset( $zps ))) {
- $zps = 20;
- }
- $rows = '3';
- $proz = @round( 100 / $rows );
- $col_count = 0;
- $x = 0;
- $table1 = dbgetmodultable( 'kategoriler' );
- $table2 = dbgetmodultable( 'sinavlar' );
- $table3 = dbgetmodultable( 'sorular' );
- $table4 = dbgetmodultable( 'raporlar' );
- $query = $config['db']->build_query( 'Select', array( $table1 ), array( '*' ), '', array( 'kategori_adi ASC' ), 'durum = \'1\'' );
- $kat_id = $config['db']->query( $query );
- $toplam_kategori = $config['db']->num_rows( );
- $content .= '
- <table border="0" width="100%" cellpadding="4" cellspacing="0" style="border:1px solid ' . $config['tpl']->tpl_vars['bgc_border'] . '">
- <tr>';
- while ($config['db']->next_record( $kat_id )) {
- $row = $config['db']->Record;
- ++$col_count;
- ++$x;
- $query1 = $config['db']->build_query( 'Select', array( $table2 ), array( '*' ), '', '', 'kategori_id = \'' . $row['id'] . '\' and durum = \'1\'' );
- $sinav_id = $config['db']->query( $query1 );
- $toplam_sinav = $config['db']->num_rows( );
- $content .= '<td width="' . $proz . '%"><img src="' . otomatiksiteurl( ) . 'images/arr-blcri-tree.gif" width="9" height="9"> <b><a title="' . stripslashes( $row['kategori_adi'] ) . '" href="' . seo_linkim( otomatiksiteurl( ) . 'index.php?modul=' . $modul_data['name'] . '&kategori=' . $row['id'], otomatiksiteurl( ) . 'online-sinav/kategori/' . $row['id'] . '/' . makeseo( $row['kategori_adi'] ) . '.html' ) . '"><font size="2">' . stripslashes( $row['kategori_adi'] ) . '</font></a> (' . number_format( $toplam_sinav ) . ')</b></td>';
- if ($col_count == $rows) {
- if ($x != $count) {
- $content .= '</tr><tr>';
- $col_count = 0;
- continue;
- }
- continue;
- }
- }
- if ($col_count < $rows) {
- for ($i = $col_count; $i < $rows; ++$i) {
- $content .= '<td></td>';
- }
- }
- $content .= '
- </tr>
- </table>
- <div style="padding:1px;"></div>
- <table width="100%" border="0" cellpadding="6" cellspacing="1" bgcolor="' . $config['tpl']->tpl_vars['bgc_border'] . '">
- <tr class="genBG4">
- <td width="80%" height="5" align="left"><img src="' . otomatiksiteurl( ) . 'images/arr-yeldo-two.gif" width="9" height="9"> <font color="' . $config['tpl']->tpl_vars['gen_01'] . '"><b>' . _LNG865465_0045 . '</b></font></td>
- <td width="10%" height="5" align="left"><img src="' . otomatiksiteurl( ) . 'images/arr-yeldo-two.gif" width="9" height="9"> <font color="' . $config['tpl']->tpl_vars['gen_01'] . '"><b>' . _LNG865465_0046 . '</b></font></td>
- <td width="10%" height="5" align="left"><img src="' . otomatiksiteurl( ) . 'images/arr-yeldo-two.gif" width="9" height="9"> <font color="' . $config['tpl']->tpl_vars['gen_01'] . '"><b>' . _LNG865465_0047 . '</b></font></td>
- </tr>
- </table>
- <div style="padding:1px;"></div>';
- if ($kategori) {
- $query1 = $config['db']->build_query( 'Select', array( $table2 ), array( '*' ), '', array( 'id DESC' ), 'kategori_id = \'' . $kategori . '\' and durum = \'1\'' );
- $config['db']->query( $query1 );
- $toplam_sinav = $config['db']->num_rows( );
- $query2 = $config['db']->build_query( 'Select', array( $table2 ), array( '*' ), '', array( 'id DESC' ), 'kategori_id = \'' . $kategori . '\' and durum = \'1\'', $zps, $pozisyon );
- $res_id = $config['db']->query( $query2 );
- if (0 < $toplam_sinav) {
- $beginn = $pozisyon + 1;
- } else {
- $beginn = $pozisyon;
- }
- $bulunan = $pozisyon + $config['db']->num_rows( );
- } else {
- $query1 = $config['db']->build_query( 'Select', array( $table2 ), array( '*' ), '', array( 'id DESC' ), 'durum = \'1\'' );
- $config['db']->query( $query1 );
- $toplam_sinav = $config['db']->num_rows( );
- $query2 = $config['db']->build_query( 'Select', array( $table2 ), array( '*' ), '', array( 'id DESC' ), 'durum = \'1\'', $zps, $pozisyon );
- $res_id = $config['db']->query( $query2 );
- if (0 < $toplam_sinav) {
- $beginn = $pozisyon + 1;
- } else {
- $beginn = $pozisyon;
- }
- $bulunan = $pozisyon + $config['db']->num_rows( );
- }
- if ($toplam_sinav == '0') {
- $content .= '
- <table width="100%" border="0" cellpadding="4" cellspacing="1">
- <tr ' . rowcolor( $zeile ) . '>
- <td width="100%" height="50" align="center">' . _LNG865465_0052 . '</td>
- </tr>
- </table>';
- }
- $content .= '
- <table width="100%" border="0" cellpadding="2" cellspacing="1">
- <tr>
- <td width="50%" align="left"> ' . _LNG000001_0127 . ' <b>' . number_format( $bulunan ) . '</b> / <b>' . number_format( $toplam_sinav ) . '</b></td>
- <td width="50%" align="right">' . shownextpages( otomatiksiteurl( ) . 'index.php?modul=' . $modul_data['name'] . '&kategori=' . $katdata['id'] . '&duzen=' . number_format( $duzen ), $pozisyon, $zps, $toplam_sinav, $bulunan ) . '</td>
- </tr>
- </table>';
- while ($config['db']->next_record( $res_id )) {
- $row = $config['db']->Record;
- ++$zeile;
- if ($row['sure'] == '0') {
- $sinav_suresi = '-';
- } else {
- $sinav_suresi = $row['sure'] . ' ' . _LNG865465_0048;
- }
- $query3 = $config['db']->build_query( 'Select', array( $table3 ), array( '*' ), '', '', 'sinav_id = \'' . $row['id'] . '\'' );
- $soru_id = $config['db']->query( $query3 );
- $toplam_soru = $config['db']->num_rows( );
- $content .= '
- <table width="100%" border="0" cellpadding="4" cellspacing="1">
- <tr ' . rowcolor( $zeile ) . '>
- <td width="80%" height="30" align="left"><img src="' . otomatiksiteurl( ) . 'images/arr-blcri-tree.gif" width="9" height="9"> <a title="' . stripslashes( $row['sinav_adi'] ) . '" href="' . seo_linkim( otomatiksiteurl( ) . 'index.php?modul=online-sinav&op=sinav&id=' . $row['id'], otomatiksiteurl( ) . 'online-sinav/' . $row['id'] . '/' . makeseo( $row['sinav_adi'] ) . '.html' ) . '"><b>' . stripslashes( $row['sinav_adi'] ) . '</b></a></td>
- <td width="10%" align="center">' . $toplam_soru . '</td>
- <td width="10%" align="center">' . $sinav_suresi . '</td>
- </tr>
- </table>';
- }
- if (configgetvar( 'son_sgirenler', $modul_data['name'] )) {
- $query = $config['db']->build_query( 'Select', array( $table4 ), array( '*' ), '', array( 'id DESC' ), '', 5 );
- $rapor_id = $config['db']->query( $query );
- $toplam = $config['db']->num_rows( );
- $content .= '
- <br>
- <table width="100%" border="0" cellpadding="6" cellspacing="1" bgcolor="' . $config['tpl']->tpl_vars['bgc_border'] . '">
- <tr class="genBG4">
- <td width="100%" height="5" align="left"><img src="' . otomatiksiteurl( ) . 'images/arr-yeldo-two.gif" width="9" height="9"> <font color="' . $config['tpl']->tpl_vars['gen_01'] . '"><b>' . _LNG865465_0050 . '</b></font></td>
- </tr>
- </table>
- <div style="padding:1px;"></div>
- <table width="100%" border="0" cellpadding="4" cellspacing="1">
- <tr ' . rowcolor( $zeile ) . '>
- <td width="20%" align="left"> </td>
- <td width="40%" align="left"><b>' . _LNG865465_0045 . '</b></td>
- <td width="7%" align="center"><b>' . _LNG865465_0025 . '</b></td>
- <td width="7%" align="center"><b>' . _LNG865465_0028 . '</b></td>
- <td width="7%" align="center"><b>' . _LNG865465_0031 . '</b></td>
- <td width="19%" align="center"><b>' . _LNG000001_0223 . '</b></td>
- </tr>';
- while ($config['db']->next_record( $rapor_id )) {
- $rapor = $config['db']->Record;
- ++$zeile;
- $query = $config['db']->build_query( 'Select', array( $table2 ), array( '*' ), '', '', 'id = \'' . $rapor['sinav_id'] . '\'' );
- $config['db']->query( $query );
- $config['db']->next_record( );
- $sinav_data = $config['db']->Record;
- $content .= '
- <tr ' . rowcolor( $zeile ) . '>
- <td align="left">' . check_name_st( $rapor['sinav_gad'] ) . '</td>
- <td align="left"><a title="' . stripslashes( $sinav_data['sinav_adi'] ) . '" href="' . seo_linkim( otomatiksiteurl( ) . 'index.php?modul=online-sinav&op=sinav&id=' . $sinav_data['id'], otomatiksiteurl( ) . 'online-sinav/' . $sinav_data['id'] . '/' . makeseo( $sinav_data['sinav_adi'] ) . '.html' ) . '">' . stripslashes( $sinav_data['sinav_adi'] ) . '</a></td>
- <td align="center"><font size="2" color="#008000"><b>' . number_format( $rapor['dogru_cevap'] ) . '</b></font></td>
- <td align="center"><font size="2" color="#CD0000"><b>' . number_format( $rapor['yanlis_cevap'] ) . '</b></font></td>
- <td align="center"><font size="2" color="#E87132"><b>' . number_format( $rapor['bos_cevap'] ) . '</b></font></td>
- <td align="center">' . tarihcevir( $rapor['tarih'] ) . '</font></td>
- </tr>';
- }
- $content .= '</table>';
- }
- if (configgetvar( 'en_basarili_olanlar', $modul_data['name'] )) {
- $query = $config['db']->build_query( 'SelectDistinct', array( $table4 ), array( 'sinav_gad' ), '', array( 'dogru_cevap DESC' ), '', 5 );
- $rapor_id = $config['db']->query( $query );
- $toplam = $config['db']->num_rows( );
- $content .= '
- <br>
- <table width="100%" border="0" cellpadding="6" cellspacing="1" bgcolor="' . $config['tpl']->tpl_vars['bgc_border'] . '">
- <tr class="genBG4">
- <td width="100%" height="5" align="left"><img src="' . otomatiksiteurl( ) . 'images/arr-yeldo-two.gif" width="9" height="9"> <font color="' . $config['tpl']->tpl_vars['gen_01'] . '"><b>' . _LNG865465_0051 . '</b></font></td>
- </tr>
- </table>
- <div style="padding:1px;"></div>
- <table width="100%" border="0" cellpadding="4" cellspacing="1">
- <tr ' . rowcolor( $zeile ) . '>
- <td width="20%" align="left"> </td>
- <td width="40%" align="left"><b>' . _LNG865465_0045 . '</b></td>
- <td width="7%" align="center"><b>' . _LNG865465_0025 . '</b></td>
- <td width="7%" align="center"><b>' . _LNG865465_0028 . '</b></td>
- <td width="7%" align="center"><b>' . _LNG865465_0031 . '</b></td>
- <td width="19%" align="center"><b>' . _LNG000001_0223 . '</b></td>
- </tr>';
- while ($config['db']->next_record( $rapor_id )) {
- $rapor_dis = $config['db']->Record;
- ++$zeile;
- $query = $config['db']->build_query( 'Select', array( $table4 ), array( '*' ), '', '', 'sinav_gad = \'' . $rapor_dis['sinav_gad'] . '\'' );
- $config['db']->query( $query );
- $config['db']->next_record( );
- $rapor = $config['db']->Record;
- $query1 = $config['db']->build_query( 'Select', array( $table2 ), array( '*' ), '', '', 'id = \'' . $rapor['sinav_id'] . '\'' );
- $config['db']->query( $query1 );
- $config['db']->next_record( );
- $sinav_data = $config['db']->Record;
- $content .= '
- <tr ' . rowcolor( $zeile ) . '>
- <td align="left">' . check_name_st( $rapor['sinav_gad'] ) . '</td>
- <td align="left"><a title="' . stripslashes( $sinav_data['sinav_adi'] ) . '" href="' . seo_linkim( otomatiksiteurl( ) . 'index.php?modul=online-sinav&op=sinav&id=' . $sinav_data['id'], otomatiksiteurl( ) . 'online-sinav/' . $sinav_data['id'] . '/' . makeseo( $sinav_data['sinav_adi'] ) . '.html' ) . '">' . stripslashes( $sinav_data['sinav_adi'] ) . '</a></td>
- <td align="center"><font size="2" color="#008000"><b>' . number_format( $rapor['dogru_cevap'] ) . '</b></font></td>
- <td align="center"><font size="2" color="#CD0000"><b>' . number_format( $rapor['yanlis_cevap'] ) . '</b></font></td>
- <td align="center"><font size="2" color="#E87132"><b>' . number_format( $rapor['bos_cevap'] ) . '</b></font></td>
- <td align="center">' . tarihcevir( $rapor['tarih'] ) . '</font></td>
- </tr>';
- }
- $content .= '</table>';
- }
- $config['tpl']->varRef( array( 'modul_baslik' => configgetvar( 'dizin_adi', $modul_data['name'] ), 'modul_icerik' => $content ) );
- include( 'sistem/_sitealt.php' );
- }
- .............................
- ...............
- ......
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement