Beispiel #1
0
          </div><!-- /.container-fluid -->
        </nav>


      <div class="row">
        <div class="pad-top-lg col-lg-offset-4 col-lg-4 col-md-offset-3 col-md-6 col-sm-offset-3 col-sm-6 col-xs-12">
          <div class="header text-center">
            <div class="profile-content">
              <h1 class="name hidden-xs"> <img src="https://s3.amazonaws.com/assets.mlh.io/events/logos/000/000/136/thumb/0_mlh_citrushacks_logo.png?1441815149"> Citrus Hack </h1>
              <h2 class="name visible-xs"> <img width="50px" height="50px" src="https://s3.amazonaws.com/assets.mlh.io/events/logos/000/000/136/thumb/0_mlh_citrushacks_logo.png?1441815149"> Citrus Hack </h2>
              <hr>

              <h4 class="desc pad-top-xs text-success"> <span id="availableSleepingBags">
                <?php 
echo count(getLenders());
?>
</span> Sleeping Bags are available. </h4>

              <form action="." method="post">
                <div id="time-selection" class="row pad-top-sm text-center">
                  <div class="col-md-6">
                    <label class="sr-only">Starting Time</label>
                    <div class="input-group start-div timepicker">
                        <input class="form-control" name="start" id="start" placeholder="2:00 AM">

                        <span class="input-group-addon"><i class="glyphicon glyphicon-time"></i></span>
                    </div>
                  </div>
                  <div class="col-md-6">
                    <label class="sr-only">Ending Time</label>
Beispiel #2
0
    $user = ParseUser::getCurrentUser();
    // put the user in $user
    echo $user->get("fullName");
} else {
    // otherwise
    try {
        $user = ParseUser::logIn("*****@*****.**", "nicknick");
        // log the user
        // Do stuff after successful login.
    } catch (ParseException $error) {
        // The login failed. Check error to see why.
        die('Bill could not log in!');
        // in case of error fail misserably
    }
}
$numOfLenders = count(getLenders());
$userType = getUserType(ParseUser::getCurrentUser());
var_dump($userType);
if ($userType == 'availableBorrower') {
} else {
    if ($userType == 'seekingBorrower') {
    }
}
$requested = false;
// Check if action was performed.
if (isset($_POST['action']) && $_POST['action']) {
    $action = $_POST['action'];
    if ($action == 'request') {
        $start = $_POST['start'];
        $end = $_POST['end'];
        $requested = true;