function login_form($error) { start_page("Login"); printf("<form method=\"POST\" action=\"%s\">\n", $_SERVER['PHP_SELF']); printf("<table>\n"); printf("<tr><td>Username:</td><td><input type=\"textbox\" name=\"user\"></td></tr>\n"); printf("<tr><td>Password:</td><td><input type=\"password\" name=\"pass\"></td></tr>\n"); printf("<tr><td><input type=\"submit\" value=\"Login\"</td><td id=\"error\">%s</td></tr>\n", $error); printf("</table>\n"); printf("</form>\n"); close_page(); }
<?php require_once 'setup.php'; start_page('software.twig');
<?php start_page("Home", 1); ?> <div class="row"> <div class="cols3 search"> <div class="frame cols7"> <div class="hb blue1"><h2 class="hb-title">Recherche</h2></div> <div class="frame-content"> <form method="post" action="#" > <div class="line"> <label id="departure-logo" for="departure"></label> <input type="text" placeholder="Départ" id="departure" class="autocompleteAdr" name="villedep" <?php if (isset($error)) { echo "value={$villedep}"; } ?> required /> </div> <div class="line"> <label id="arrival-logo" for="arrival"></label> <input type="text" placeholder="Arrivée" id="arrival" class="autocompleteAdr" name="villearr" <?php if (isset($error)) { echo "value={$villearr}"; } ?> required /> </div> <!-- <div class="line"> <input id="autocompleteAddress" type="text" /> </div> -->
<?php include_once 'ressources/class.templates.inc'; include_once 'ressources/class.ldap.inc'; include_once 'ressources/class.users.menus.inc'; include_once 'ressources/class.cups.inc'; include_once 'ressources/class.samba.inc'; $usersmenus = new usersMenus(); if ($usersmenus->AsArticaAdministrator == false) { echo "alert('No privileges')"; exit; } if (isset($_GET["start"])) { start_page(); exit; } if (isset($_GET["external-export-resource"])) { save_ressource(); exit; } if (isset($_GET["external-export-progress"])) { buildstatus(); exit; } if (isset($_GET["external-export-launch"])) { LaunchExport(); exit; } if (isset($_GET["Status"])) { echo Status($_GET["Status"]); exit;
<?php require_once 'setup.php'; global $conn; $query = "\r\n SELECT * FROM training_class\r\n JOIN training_subject USING (training_subject_id)\r\n WHERE start > NOW()\r\n ORDER BY start"; $dbResult = mysql_query($query, $conn); $classes = []; while ($row = mysql_fetch_assoc($dbResult)) { $classes[] = $row; } start_page('training_schedule.twig', ['classes' => $classes]);
<?php require_once 'setup.php'; start_page('ourstory.twig');
<?php start_page("Home"); ?> <div class="menu"> <div class="menu-logo"> <a class="menu-logo-link" href="#"></a> </div> <nav class="menu-navigation"> <ul class="inline-block left"> <li class="menu-list"> <a class="menu-link current" href="../dev/home.php">Home <span class="link-notif"><i class="link-notif-i">42</i></span> </a> </li> <li class="menu-list"><a class="menu-link" href="#">Profile</a></li> <li class="menu-list"> <a class="menu-link" href="#">Messages <span class="link-notif"><i class="link-notif-i">3</i></span> </a> </li> </ul> </nav> <div class="menu-user right"> <span class="user-avatar left"><img src="http://gravatar.com/avatar/c71c38340fc94601738c4d0c794cca36?s=512" alt="avatar"></span> <a class="menu-link right" href="../dev/Controller/logout.php">Se déconnecter</a> </div> </div><!-- // menu --> <div class="row"> <div class="cols10"> <div class="frame cols7">
<?php require_once 'setup.php'; start_page('index.twig');
<?php start_page("Changement de l'avatar", 1); ?> <div class="frame cols5"> <div class="hb green3"><h2 class="hb-title">Changement de l'avatar</h2></div> <div class="frame-content"> <form method="post" action="#" enctype="multipart/form-data" class="center"> <label for="avatar">Fichier du format (.jpg,.png,.jpeg,.gif | max. 10 mo)</label> <input type="file" name="avatar" id="avatar" /> <input class="btn green3 center" type="submit" value="Changer" name="change" id="send"> </form> </div> </div> <?php end_page();
<?php require_once 'setup.php'; $successAlertClass = $_REQUEST['success'] ? '' : 'hiddenaway'; start_page('contact.twig', ['successAlertClass' => $successAlertClass]);
<?php require_once 'setup.php'; start_page('ourvalues.twig');
<?php start_page("Login", 3); ?> <div class="row"> <div class="g3"></div> <div class="cols3 logoS2GO"> <img src=<?php echo "" . Img . "/logo.png"; ?> alt="logo-Share2Go"> </div> <div class="g3"></div> </div> <div class="clear"></div> <div class="row"> <div class="frame cols4"> <div class="hb blue2"><h2 class="hb-title">Se connecter</h2></div> <div class="frame-content"> <form method="post" class="center"> <input type="email" placeholder="Email" name="email" id="email"> <input type="password" placeholder="Mot de passe" name="password" id="password"> <input class="btn blue2 center" type="submit" value="Ok" name="send" id="send"> </form> </div> <a class="bb" href="changepass.php">Mot de passe oublié ?</a> </div> <div class="g1"></div> <div class="frame cols6"> <div class="hb blue2"><h2 class="hb-title">Découverte</h2></div> <div class="frame-content">
<?php require_once 'setup.php'; start_page('training.twig');
<?php start_page("Proposer un trajet", 1); ?> <div class="row"> <div class="frame cols5"> <div class="hb red3"><h2 class="hb-title">Nouveau trajet</h2></div> <div class="frame-content"> <form method="post" action="#" class="center"> <input type="text" placeholder="Date : dd/MM/yyyy" name="date" id="date" <?php if (isset($error) && $error != "NoError") { echo "value={$_POST['date2']}"; } ?> required /> <input type="text" placeholder="Ville départ" name="villedep" id="villedep" class="autocompleteAdr" <?php if (isset($error) && $error != "NoError") { echo "value={$villedep}"; } ?> required /> <input type="text" placeholder="Ville arrivée" name="villearr" id="villearr" class="autocompleteAdr" <?php if (isset($error) && $error != "NoError") { echo "value={$villearr}"; } ?> required /> <input type="text" placeholder="Heure départ : hh:mm" name="Hdep" id="Hdep" <?php if (isset($error) && $error != "NoError") { echo "value={$_POST['Hdep']}"; }
<?php start_page("Test maps"); ?> <iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.fr/maps?f=d&source=s_d&saddr=<?php echo $source; ?> &daddr=<?php echo $dest; ?> &hl=fr&geocode=FRSWlAIdOPtUACnLJqXwM6PJEjG8woyx4SGNLA%3BFQWdngIdmFNJACkHnbw5h-u1EjE2ex36bptC5g&aq=&sll=43.949318,4.805529&sspn=0.001634,0.001124&vpsrc=0&mra=ls&ie=UTF8&t=m&ll=43.637317,5.209932&spn=0.692203,0.822113&output=embed"> </iframe> <br /> <small> <a href="https://maps.google.fr/maps?f=d&source=embed&saddr=<?php echo $source; ?> &daddr=<?php echo $dest; ?> &hl=fr&geocode=FRSWlAIdOPtUACnLJqXwM6PJEjG8woyx4SGNLA%3BFQWdngIdmFNJACkHnbw5h-u1EjE2ex36bptC5g&aq=&sll=43.949318,4.805529&sspn=0.001634,0.001124&vpsrc=0&mra=ls&ie=UTF8&t=m&ll=43.637317,5.209932&spn=0.692203,0.822113" style="color:#0000FF;text-align:left">Agrandir le plan</a></small> <?php echo $token; end_page();
<?php require_once 'setup.php'; start_page('ourteam.twig');
function display_history() { global $gCSData; $title = 'History of Database Updates'; if (!empty($_GET['rec'])) { $title .= ' for ' . $_GET['rec'] . ' Records'; } print start_page($title); $query = 'SELECT History.* FROM History '; if (!empty($_GET['rec'])) { $query .= " INNER JOIN History AS H2 on (History.setid=H2.setid AND H2.rectype='" . $_GET['rec'] . "') "; } $query .= ' WHERE History.rectype IS NULL ORDER BY History.setid DESC LIMIT 50'; $res = $gCSData->do_query($query); print "<ul>\n"; while ($row = $gCSData->row_query($res)) { if (empty($_GET['rec'])) { $squery = 'SELECT rectype FROM History WHERE setid=' . $row['setid'] . ' AND rectype is NOT NULL ORDER BY rectype LIMIT 11'; $sres = $gCSData->do_query($squery); $nsub = mysql_num_rows($sres); } print "<li>\n"; print $row['time']; if (!empty($row['text'])) { print ': ' . $row['text']; } print "\n"; if (empty($_GET['rec'])) { print "<ul><li>\n"; if ($nsub > 10) { print 'More than 10 record types updated'; } else { print "{$nsub} record type" . ($nsub == 1 ? '' : 's') . ' updated'; if ($nsub > 0 && $nsub <= 10) { print ': '; for ($s = 0; $srow = $gCSData->row_query($sres); $s++) { if ($s) { print ', '; } print $srow['rectype']; } } } print "</li></ul>\n"; } print "</li>\n"; } print "</ul>\n"; print end_page(); }
<?php start_page("Profil", 1); if (!isset($_GET['traj'])) { ?> <div class="row"> <div class="frame cols4"> <div class="hb red3"><h2 class="hb-title">Modification</h2></div> <div class="frame-content"> <form method="post" action="#" class="center"> <input type="text" placeholder="Nom" name="nom" id="nom" <?php if (isset($error) && $error != "NoError") { echo "value=\"{$_POST['nom']}\""; } else { echo "value=\"{$User->nom}\""; } ?> > <input type="text" placeholder="Prenom" name="prenom" id="prenom" <?php if (isset($error) && $error != "NoError") { echo "value=\"{$_POST['prenom']}\""; } else { echo "value=\"{$User->prenom}\""; } ?> > <input type="email" placeholder="Email" name="email" id="email" <?php if (isset($error) && $error != "NoError") { echo "value=\"{$_POST['email']}\""; } else { echo "value=\"{$User->mail}\"";
function full_page() { start_page("Game"); controls(); play_surface(); logout(); close_page(); }
<?php start_page("Inscription", 2); ?> <div class="row"> <div class="frame cols4"> <div class="hb red3"><h2 class="hb-title">Inscription</h2></div> <div class="frame-content"> <form method="post" action="#" class="center"> <input type="text" placeholder="Nom" name="nom" id="nom" <?php if (isset($error) && $error != "NoError") { echo "value={$_POST['nom']}"; } ?> > <input type="text" placeholder="Prenom" name="prenom" id="prenom" <?php if (isset($error) && $error != "NoError") { echo "value={$_POST['prenom']}"; } ?> > <input type="email" placeholder="Email" name="email" id="email" <?php if (isset($error) && $error != "NoError") { echo "value={$_POST['email']}"; } ?> > <input type="email" placeholder="Email confirmation" name="email2" id="email2" <?php if (isset($error) && $error != "NoError") { echo "value={$_POST['email']}"; }
<?php start_page("Mot de passe oublier", 3); ?> <div class="row"> <div class="g3"></div> <div class=" cols3"> <img src=<?php echo "" . Img . "/logo.png"; ?> width="100%" alt="logo-Share2Go"> </div> <div class="g3"></div> </div> <div class="clear"></div> <div class="row"> <?php if (!$_GET['tok']) { ?> <div class="frame cols6"> <div class="hb green3"><h2 class="hb-title">Demande changement mot de passe</h2></div> <div class="frame-content"> <form method="post" action="#" class="center"> <input type="email" placeholder="Email" name="email" id="email"> <input class="btn green3 center" type="submit" value="Envoyer" name="send" id="send"> </form> </div> </div> <?php } else { ?>
<?php require_once 'setup.php'; start_page('artisanal_portfolio.twig');
<?php require_once 'setup.php'; start_page('artisanal.twig');
<?php start_page("Messagerie", 1); ?> <div class="row"> <div class="frame cols3"> <!-- <div class="frame cols5"> --> <div class="hb cyan3"><h2 class="hb-title">Conversations</h2></div> <div class="frame-content"> <div class="of-y"> <?php if (empty($res)) { echo "Pas de conversation en cours !"; } else { foreach ($res as $conv) { if ($conv->idtrajet) { ?> <a class="conv <?php if ($_GET['traj'] == $conv->idtrajet) { echo 'cur'; } ?> " href="messagerie.php?traj=<?php echo $conv->idtrajet; ?> "> <div class="line"> <div class="icon date"></div> <span class="icon-content">Le <strong><?php echo $conv->date; ?>
<?php start_page("Réservation", 1); ?> <div class="row"> <div class="frame cols5"> <div class="hb <?php echo $_GET['color']; ?> "><h2 class="hb-title"><?php echo $trajet->villedep . " - " . $trajet->villearr; ?> </h2></div> <div class="frame-content"> <span class="price <?php echo $_GET['color']; ?> right"><strong><i class="price-i"><?php echo $trajet->prix . " €"; ?> </i></strong></span> <div class="line"> <div class="icon date"></div> <span class="icon-content">Le <strong><?php echo $trajet->date; ?> </strong> à <strong><?php echo $trajet->heuredep; ?> </strong></span> </div>
<?php start_page("Enregistrer un vehicule", 1); ?> <div class="row"> <div class="frame cols5"> <div class="hb green2"><h2 class="hb-title">Nouveau véhicule</h2></div> <div class="frame-content"> <form method="post" action="#" class="center"> <input type="text" list="marques" placeholder="Marque du vehicule" name="marque" id="marque" <?php if (isset($error) && $error != "NoError") { echo "value={$_POST['marque']}"; } ?> required /> <datalist id="marques"> <option value="Alfa Roméo"> <option value="Audi"> <option value="BMW"> <option value="Chevrolet"> <option value="Chrysler"> <option value="Citroën"> <option value="Dacia"> <option value="Ford"> <option value="Honda"> <option value="Hyundaï"> <option value="KIA"> <option value="Lancia"> <option value="Land Rover"> <option value="Mazda"> <option value="Mercedes-Benz">
<?php require "utils.inc.php"; start_page("Alerte !"); ?> <body> <header> <div id="bandeau"></div> <h2 name="live_info" id="live_info"> Live info </h2> </header> <section id="carte2"></section> <aside id="informations_region"> </aside> <?php end_page(); ?> </body> </html>