Server IP : 80.241.246.6 / Your IP : 216.73.216.188 Web Server : Apache/2.4.25 (Debian) System : Linux kharagauli 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64 User : www-data ( 33) PHP Version : 7.0.33-0+deb9u12 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/kharagauli_new/Citizens_feedback/admin/pages/ |
Upload File : |
<?php session_start(); error_reporting( E_ALL ); ini_set("error_reporting", E_ALL); ini_set('display_errors', 1); if(isset($_GET['test'])) $_SESSION['test']=1; ?><!DOCTYPE html> <html dir="ltr" lang="zxx"> <head> <!-- Meta Tags --> <meta name="viewport" content="width=device-width,initial-scale=1.0"/> <meta charset="utf-8"> <meta name="description" content="Citizens feedback"> <meta name="keywords" content="Citizens feedback"> <meta name="author" content="pointmaster"> <!-- Title --> <title>მოქალაქეთა უკუკავშირი</title> <script src="js/jquery-3.4.1.js"></script> </head> <body> <?php if(isset($_SESSION['test'])){ include 'admin/conf.php'; if(isset($_GET['PrClass'])) $PrClass=(int)$_GET['PrClass']; else $PrClass=0; ?> <div class="ProgramClases"> <?php $ptk=mysqli_query($baza,'select * from cf_ProgramClasses where Active=1 order by Pos'); if(mysqli_num_rows($ptk)>0) echo '<div>აირჩიეთ პროგრამის კლასი</div>'; else echo '<div>აქტიური პროგრამის კლასი არ მოიძებნა</div>'; while($row=mysqli_fetch_array($ptk)){ echo '<a href="?PrClass='.$row['ID'].'"><div class="PCItem'.($PrClass==$row['ID']?' selected':'').'">'.$row['Name'].'</div></a>'; } ?> </div> <?php $QuestID=0; if($PrClass>0){ if(isset($_GET['Program'])) $Program=(int)$_GET['Program']; else $Program=0; ?> <div class="Programs"> <?php $sql='select * from cf_Programs where ClassID='.$PrClass.' and QuestionnaireID>0 and Active=1 order by Pos'; echo $sql; $ptk=mysqli_query($baza,$sql); if(mysqli_num_rows($ptk)>0) echo '<div>აირჩიეთ პროგრამა</div>'; else echo '<div>აქტიური პროგრამა არ მოიძებნა</div>'; while($row=mysqli_fetch_array($ptk)){ if($Program==$row['ID']) $QuestID=$row['QuestionnaireID']; echo '<a href="?PrClass='.$PrClass.'&Program='.$row['ID'].'"><div class="PrItem'.($Program==$row['ID']?' selected':'').'">'.$row['Name'].'</div></a>'; } ?> </div> <?php } echo $QuestID; if($QuestID>0){ echo 'sadf'; $ptk=mysqli_query($baza,'SELECT * FROM `cf_Questionnaire` where ID='.$QuestID); if($row=mysqli_fetch_array($ptk)) { $Questions=$row['Questions']; $ptk=mysqli_query($baza,'SELECT * FROM `cf_Questions` where ID in ('.$Questions.') order by field (ID, '.$Questions.')'); ?> <div class="Questions"> <?php while($row=mysqli_fetch_array($ptk,1)){ ?> <div class="Question"> <div class="QHeader"><?=$row['QuestName']?></div> <?php ?> </div> <?php } ?> </div> <?php } } ?> <style> .ProgramClases, .Programs{margin-top: 30px} .PCItem, .PrItem{ padding: 2px 10px; } .PCItem.selected{ background-color: coral} .PrItem.selected { background-color: gold;} </style> <?php }else{ ?> <style> html { height: 100%; background: url(Under.jpg) center no-repeat; background-size: 50%; } </style> <?php } ?> </body> </html>