Exemplo n.º 1
0
" method="POST">
                                        <div class="checkbox" >
                                          <label>
                                            <input id="$cb" name="$cb" type="checkbox" value="" checked hidden>
                                          </label>
                                              <button type="submit" 
                                                      style="font-size:18px;"   
                                                      class="btn btn-primary glyphicon glyphicon-heart pull-right" 
                                                      data-toggle="tooltip"
                                                      data-placement="bottom"
                                                      title="Add to favorites!"></button>
                                        </div>
                                    </form>
                                <?php 
}
if (is_userLoggedIn() && movieInList($movieID)) {
    ?>
                                    <form action="<?php 
    $_PHP_SELF;
    ?>
" method="POST">
                                        <div class="checkbox">
                                          <label>
                                            <input id="$cb-delete" name="$cb-delete" type="checkbox" value="" checked hidden>
                                          </label>
                                              <button type="submit" 
                                                      style="font-size:18px;"
                                                      class="btn btn-primary glyphicon glyphicon-remove pull-right"
                                                      data-toggle="tooltip"
                                                      data-placement="bottom"
                                                      title="Remove from favorites!"></button>
Exemplo n.º 2
0
    ?>
" method="POST">
                                    <div class="checkbox">
                                        <label><input id="$cb" name="$cb" type="checkbox" value="" checked hidden></label>
                                        <button type="submit" 
                                              style="margin-left:10px;"
                                              class="btn btn-primary glyphicon glyphicon-heart pull-right" 
                                              style="font-size:30px;"
                                              data-toggle="tooltip"
                                              data-placement="bottom"
                                              title="Add to favorites!"></button>
                                    </div>
                                </form>
                            <?php 
}
if (is_userLoggedIn() && personInList($personID)) {
    ?>
                                <form action="<?php 
    $_PHP_SELF;
    ?>
" method="POST">
                                    <div class="checkbox">
                                        <label><input id="$cb-remove" name="$cb-remove" type="checkbox" value="" checked hidden></label>
                                        <button type="submit" 
                                              style="margin-left:10px;"
                                              class="btn btn-primary glyphicon glyphicon-remove pull-right" 
                                              style="font-size:30px;"
                                              data-toggle="tooltip"
                                              data-placement="bottom"
                                              title="Remove from favorites!"></button>
                                    </div>
<?php

include "../_include/header.php";
if (!is_userLoggedIn()) {
    header("Location: ../../index.php");
    // Redirecting To Home Page
}
include $_INCLUDES . "navbar.php";
?>

    <form class="form-horizontal" role="form" method="post" action="edit_movie_update.php">
        <h3><center>Edit movie in database</center></h3>
      <div class="form-group">
        <label class="control-label col-sm-2" for="titleAdd">Title:</label>
        <div class="col-sm-10">
          <input type="title" class="form-control" name="titleAdd" placeholder="Edit Title">
        </div>
      </div>
      <div class="form-group">
        <label class="control-label col-sm-2" for="genre">Genre:</label>
        <div class="col-sm-10"> 
          <input type="genre" class="form-control" name="genre" placeholder="Enter Genre">
        </div>
      </div>
      <div class="form-group">
        <label class="control-label col-sm-2" for="parental_rating">Parental Rating:</label>
        <div class="col-sm-10"> 
          <input type="parental_rating" class="form-control" name="parental_rating" placeholder="Enter Parental Rating">
        </div>
      </div>
       <div class="form-group">
Exemplo n.º 4
0
<?php

if (is_userLoggedIn()) {
    if (is_admin()) {
        include $_PHP . "navbar_admin.php";
    } else {
        include $_PHP . "navbar_user.php";
    }
    // include($_PHP."navbar_user.php");
} else {
    include $_PHP . "navbar_nouser.php";
}