/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $user = User::findOrFail($id); $days = loopDays(); $months = loopMonths(); $years = loopYears(); $countries = DB::table('countries')->orderBy('title')->lists('title', 'id'); $countries = array('' => '----- Vyberte krajinu -----') + $countries; $roles = DB::table('roles')->orderBy('id', 'desc')->lists('title', 'id'); return view('admin/user/edit', compact('roles', 'user', 'days', 'months', 'years', 'countries')); }
echo $month . "," . $year; ?> )"></td> </tr> <tr> <td style="background-color: red; color: white" width="50px">Sun</td> <td width="50px">Mon</td> <td width="50px">Tue</td> <td width="50px">Wed</td> <td width="50px">Thu</td> <td width="50px">Fri</td> <td style="background-color: red; color: white" width="50px">Sat</td> </tr> <tr> <?php echo loopDays($numDays, $counter, $year, $month); ?> //call the function to fill out the dates in a month </tr> </table> <?php if (isset($_GET['v'])) { echo "<br>"; include "afspraak_formulier.php"; if (isset($_GET['add'])) { $name = $_POST['naam']; $lName = $_POST['Anaam']; $tel = $_POST['tel']; $email = $_POST['mail']; $time = $_POST['time']; $text = $_POST['txtarea'];