Beispiel #1
0
<?php

require_once 'header.php';
?>

<?php 
$trivia = new trivia();
$trivia->GetById(1);
?>
 

<script type="text/javascript">

function uploadChange(){
        $('input[type="submit"]').click();
    	}
		
</script>

<form class="form_trivia_admin" action="trivia_upload.php" method="post" enctype="multipart/form-data"  >
<p>
    <span class="question1">שאלה 1</span>
        <input type="text" name="the_question1" id="the_question1" value="<?php 
echo $trivia->the_question1;
?>
"/><br/>
    <input type="radio" name="ques1" value="1" <?php 
if ($trivia->ques1 == "1") {
    ?>
checked="checked"<?php 
}
Beispiel #2
0
     $user_profile = $facebook->api('/me');
 } catch (Exception $e) {
     echo 'Caught exception: ', $e->getMessage(), "\n";
 }
 // echo $user;exit;
 if (isset($_POST['radio1'])) {
     $st = "SELECT `ques1`,`ques2`,`ques3` FROM `trivia` ";
     $query = mysql_query($st) or die(mysql_error() . ' ' . $st);
     $row = mysql_fetch_assoc($query);
     $sum_answer = 0;
     for ($i = 1; $i < 4; $i++) {
         if ($row["ques{$i}"] == $_POST["radio{$i}"]) {
             $sum_answer++;
         }
     }
     $trivia = new trivia();
     $trivia->getTrivia();
     $user_info->full_name = $_POST['full_name'];
     $user_info->email = $_POST['email'];
     $user_info->agree_terms = $_POST['roles'] == 1 ? '1' : '0';
     //$user_info->comment_story='';
     $user_info->came_from_platform_url = $came_from_platform_url;
     $user_info->came_from_app_url = $came_from_app_url;
     $user_info->fb_id = $user;
     $user_info->sumAnswer = $sum_answer;
     $user_info->radio1 = $_POST['radio1'];
     $user_info->radio2 = $_POST['radio2'];
     $user_info->radio3 = $_POST['radio3'];
     $user_info->trivia_id = $trivia->Id;
     echo "insert";
     echo $user_info->Insert();
Beispiel #3
0
echo $main_screen->movie_site_url;
?>
" target="_blank"></a>
           <a class="preview_site_url" href="#"></a>
        
        </div><!--after_like_links_wrapper-->

</div><!--top_banner-->
    <div id="main_bg">
    
    </div><!--main_bg-->
<div id="bottom_banner">
    
    
 <?php 
$trivia = new trivia();
$trivia->getTrivia();
?>
    
    <?php 
$user_info = new user_info();
//$user_info->GetById(1);
?>
    <script>
	$(document).ready(function(e) {
		
	$('.btnTrivia').click(function(){ 
		   if($('input:radio[name=radio1]:checked').val() > 0   & $('input:radio[name=radio2]:checked').val() > 0 & $('input:radio[name=radio3]:checked').val() > 0)
		     {
				 $('fieldset').hide();
				 $('.detailsLayer').show();