<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>בישול טוב</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body>

<?php 
require_once 'views/header.php';
?>


<div class="mid">

<?php 
$data = ev_query("\nSELECT cd.courseid, p.picture place_pic, c.class_level, p.description place_desc, c.avg_class_size, c.age_range, c.course, cd.price, c.cover, p.address, c.description, cd.start_date, cd.price, cd.sessions, p.place, p.location, p.id placeid\nfrom courses_tags ct \njoin courses c on ct.courseid=c.id \njoin courses_dates cd on cd.courseid = c.id  \njoin places p on cd.placeid = p.id  \nwhere c.id=" . $_REQUEST['cid'] . " limit 1");
foreach ($data as $row) {
    $pic = $row->cover;
    $title = $row->course;
    $location = $row->course;
    $address = $row->address;
    $desc = $row->description;
    $place = $row->place;
    $place_pic = $row->place_pic;
    $place_desc = $row->place_desc;
    $start_date = $row->start_date;
    $location = $row->location;
    $placeid = $row->placeid;
    $price = $row->price;
    $age_range = $row->age_range;
    $avg_class_size = $row->avg_class_size;
Exemple #2
0

<div id="header">
&nbsp;
</div>

<div id="header_nav">
	<div class="mid">

<?php 
$data = ev_query("SELECT * from tags order by id asc");
foreach ($data as $row) {
    ?>
    	<a href="index.php?tagid=<?php 
    echo $row->id;
    ?>
"><?php 
    echo $row->tag;
    ?>
</a>
<?php 
}
?>
    
    	<a href="#">מבצעים</a>
    </div>
</div>
Exemple #3
0
            $result = ev_query($query);
            break;
        case 'next_question':
            $query = "UPDATE settings SET timer = 0";
            $result = ev_query($query);
            $query = "UPDATE settings SET question_index = question_index + 1";
            $result = ev_query($query);
            break;
        case 'reset_evening':
            $query = "DELETE FROM answers";
            $result = ev_query($query);
            $query = "UPDATE settings SET session_started = 0, question_index = 0, timer = 0";
            $result = ev_query($query);
            break;
        case 'start_evening':
            $query = "UPDATE settings SET session_started = 1, question_index = 0";
            $result = ev_query($query);
            break;
        case 'end_evening':
            $query = "UPDATE settings SET session_started = 2, question_index = 0";
            $result = ev_query($query);
            break;
        default:
            echo 'parent.alert(123);';
            break;
    }
} catch (FacebookApiException $e) {
    echo '<pre>' . htmlspecialchars(print_r($e, true)) . '</pre>';
    $user = null;
}
mysql_close();
Exemple #4
0
<body>

<?php 
require_once 'views/header.php';
?>


<div class="mid">

<?php 
$tag_sql = '';
if (isset($_REQUEST['tagid'])) {
    $tag_sql = " where ct.tagid=" . $_REQUEST['tagid'];
}
$data = ev_query("\n\nSELECT cd.courseid, c.course, cd.price, c.cover, c.description, cd.start_date, cd.price, cd.sessions, p.place, p.location, p.id placeid\nfrom courses_tags ct \njoin courses c on ct.courseid=c.id \njoin courses_dates cd on cd.courseid = c.id  \njoin places p on cd.placeid = p.id  \n{$tag_sql}\n");
foreach ($data as $row) {
    $courseid = $row->courseid;
    $title = $row->course;
    $pic = $row->cover;
    $location = $row->course;
    $desc = $row->description;
    $place = $row->place;
    $location = $row->location;
    $placeid = $row->placeid;
    $price = $row->price;
    ?>

	<div class="course_box">
        <div class="space20">