<?php isset($flash) ? Flight::util()->success($flash['word'], $flash['action']) : ""; ?> <form method="POST" action="<?php Flight::link('/player/' . $player->id . '/update'); ?> "> <div class="row"> <input type="hidden" value="<?php echo $player->id; ?> " name="id"> </div> <div class="row"> <?php if (isset($error['surname']['type'])) { Flight::util()->error($error['surname']); } ?> <div class="input-group"> <span class="input-group-addon" id="surname">Nachname</span> <input type="text" name="surname" value="<?php echo $player->surname; ?> " class="form-control" aria-describedby="surname" required> </div> </div> <div class="row"> <?php if (isset($error['forename']['type'])) {
<div class="row"> <h1>Not loged in</h1> <a href="<?php Flight::link('/'); ?> ">Login</a> </div>
<div class="row"> <div class="col-sm-2">Phone Home:</div> <div class="col-sm-8"><?php echo $player->phone_home; ?> </div> </div> <div class="row"> <div class="col-sm-2">Phone Mobile:</div> <div class="col-sm-8"><?php echo $player->phone_mobile; ?> </div> </div> <div class="row"> <a href="<?php Flight::link('/player/' . $player->id . '/update'); ?> "><button type="button" class="btn btn-success">Update</button></a> <?php if (Flight::auth()->currentUser->role == 20) { ?> <a href="<?php Flight::link('/player/' . $player->id . '/delete'); ?> "><button type="button" class="btn btn-danger">Delete</button></a> <?php } ?> </div>
<form method="post" action="<?php Flight::link('/login'); ?> "> <div class="row"> <?php echo isset($error_string) ? '<div class="alert alert-danger">Something went wrong.</div>' : ''; ?> <div class="col-lg-5"> <?php if (isset($error['email']['type'])) { Flight::util()->error($error['email']); } ?> <div class="input-group"> <span class="input-group-addon" id="email">Email</span> <input type="email" name="email" value="<?php echo isset(Flight::request()->data->email) ? Flight::request()->data->email : ''; ?> " class="form-control" aria-describedby="email"> </div> </div> <div class="col-lg-5"> <?php if (isset($error['password']['type'])) { Flight::util()->error($error['password']); } ?> <div class="input-group"> <span class="input-group-addon" id="password">password</span>
<form method="POST" action="<?php Flight::link('/createEvent'); ?> "> <div class="row"> <input type="hidden" name="team" value="<?php echo $team_id; ?> "> <?php if (isset($error['title']['type'])) { Flight::util()->error($error['title']); } ?> <div class="input-group"> <span class="input-group-addon" id="title">Title</span> <input type="text" name="title" class="form-control" aria-describedby="title" required> </div> <?php if (isset($error['start']['type'])) { Flight::util()->error($error['start']); } ?> <div class="input-group"> <span class="input-group-addon" id="start">From</span> <input type="datetime-local" name="start" class="form-control" aria-describedby="from" required> </div> <?php if (isset($error['end']['type'])) { Flight::util()->error($error['end']);
<form method="POST" action="<?php Flight::link('/createAbsence/' . $team->id . '/' . (isset($event) ? $event->id : '')); ?> "> <div class="row"> <div class="input-group"> <span class="input-group-addon" id="start">From</span> <input type=<?php echo isset($event) ? "datetime" : "datetime-local"; ?> <?php echo isset($event) ? 'readonly' : ''; ?> name="start" value="<?php echo isset($event) ? $event->start : ''; ?> " class="form-control" aria-describedby="from" required> </div> <div class="input-group"> <span class="input-group-addon" id="end">To</span> <input type=<?php echo isset($event) ? "datetime" : "datetime-local"; ?> <?php echo isset($event) ? 'readonly' : ''; ?> name="end" value="<?php echo isset($event) ? $event->end : ''; ?> " class="form-control" aria-describedby="to" required>
">Edit Profile</a></li> <li role="separator" class="divider"></li> <li><a href="<?php Flight::link('/logout/'); ?> ">Logout</a></li> </ul> </li> </ul> <?php } ?> </div> </nav> <div class="container"> <?php echo $body_content; ?> </div> <script src="<?php Flight::link('/public/lib/jquery/jquery-2.1.4.min.js'); ?> "></script> <script src="<?php FLight::link('/public/lib/bootstrap/js/bootstrap.min.js'); ?> "></script> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css"> </body> </html>
?> ">asign</a> or <a href="<?php Flight::link('/createPlayer'); ?> ">create</a> one</h5> <?php } ?> </div> </div> <div class="row"> <a href="<?php Flight::link('/createEvent/' . $team->id); ?> "><button type="submit" class="btn btn-success">Create Event</button></a> <a href="<?php Flight::link('/createAbsence/' . $team->id); ?> "><button type="submit" class="btn btn-success">Create Absence</button></a> <?php if (Flight::auth()->currentUser->role == 20) { ?> <a href="<?php Flight::link('/deleteTeam/' . $team->id); ?> "><button type="submit" class="btn btn-danger">Delete Team</button></a> <?php } ?> </div>
<form action="<?php Flight::link('/create'); ?> " method="POST"> <div class="input-group"> <span class="input-group-addon" id="title">Title</span> <input type="text" class="form-control" name="title" placeholder="Title" aria-describedby="title"> </div> <br> <textarea name="content" id="content"></textarea> <script> $('#content').summernote({ height: 500 }); </script> <input type="submit" class="btn btn-primary"> </form>
<?php isset($flash) ? Flight::util()->success($flash['word'], $flash['action']) : ""; ?> <form method="POST" action="<?php Flight::link('/editUser/'); ?> "> <input type="hidden" value="<?php echo $user->id; ?> " name="id"> <input type="hidden" value="<?php echo $user->role; ?> " name="role"> <div class="row"> <?php if (isset($error['surname']['type'])) { Flight::util()->error($error['surname']); } ?> <div class="input-group"> <span class="input-group-addon" id="surname">Surname</span> <input type="text" value="<?php echo $user->surname; ?> " name="surname" class="form-control" aria-describedby="surname" required> </div> <?php
<div class="row"> <div class="blog-main"> <div class="blog-post"> <h1 class="blog-post-title"><?php echo $post->title; ?> </h1> <p class="blog-post-meta"><time datetime="<?php echo $post->posted; ?> "><?php echo $post->posted; ?> </time> by <a href="<?php Flight::link('/author/' . $post->getAuthor()->id); ?> "><?php echo $post->getAuthor()->fullName(); ?> </a></p> <?php echo $post->content; ?> </div> </div> </div>
<?php isset($flash) ? Flight::util()->success($flash['word'], $flash['action']) : ""; ?> <form method="POST" action="<?php Flight::link('/createUser'); ?> "> <input type="hidden" value="player" name="type"> <div class="row"> <?php if (isset($error['surname']['type'])) { Flight::util()->error($error['surname']); } ?> <div class="input-group"> <span class="input-group-addon" id="surname">Surname</span> <input type="text" value="<?php echo isset($error['surname']) ? $error['surname']['value'] : ''; ?> " name="surname" class="form-control" aria-describedby="surname" required> </div> <?php if (isset($error['forename']['type'])) { Flight::util()->error($error['forename']); } ?> <div class="input-group"> <span class="input-group-addon" id="forename">Forename</span> <input type="text" value="<?php
$("#cancelBio").click(function(){ $("#bio").show(); $("#bio-edit").hide(); $("#tab2 button").toggle(); }); function nl2br (str, is_xhtml) { var breakTag = (is_xhtml || typeof is_xhtml === 'undefined') ? '<br />' : '<br>'; return (str + '').replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, '$1'+ breakTag +'$2'); } $("#savePassword").click(function(){ $.ajax({ url: "<?php Flight::link("/saveprofile"); ?> ?password", method: 'POST', data: { passwordold: $("#passwordold").val(), passwordnew1: $("#passwordnew1").val(), passwordnew2: $("#passwordnew2").val() } }).success(function(data){ if(data.success == true){ $("#passwordalert").text("Success").removeClass("alert-danger").addClass("alert-success").show(); $("#passwordold").val(''); $("#passwordnew1").val(''); $("#passwordnew2").val(''); }else{
foreach ($players as $player) { ?> <tr></td><td><?php echo $player->forename; ?> </td><td><?php echo $player->surname; ?> </td><td><?php echo Flight::teams()->getTeamNameWithId($player->team); ?> </td><td><a href='<?php Flight::link('/player/' . $player->id); ?> '>View Details</a></tr> <?php } ?> </table> <?php } else { ?> <h5>No Players in this Team <a href="<?php Flight::link('/asignPlayer'); ?> ">asign</a> or <a href="<?php Flight::link('/createPlayer'); ?> ">create</a> one</h5> <?php }
} ?> </table> <?php } else { ?> <h4>No Absences for this Event</h4> <?php } ?> <a href="<?php Flight::link('/createAbsence/' . $event->team . '/' . $event->id); ?> "><button class="btn btn-success">Add new Absence</button></a> <a href="<?php Flight::link('/deleteEvent/' . $event->id); ?> "><button class="btn btn-danger">Remove Event</button></a> <a target="_blank" href='mailto:<?php foreach ($team->getReadyPlayersInTimerange($players) as $player) { echo $player->email . ";"; } ?> ?subject=<?php echo urlencode($event->title); ?> &body=<?php echo urlencode($event->text); ?> %0D%0A %0D%0AStart: <?php echo $event->start;