Esempio n. 1
0
<?php

require '/var/www/archive/modele/get_info.php';
$cne = null;
if (!empty($_GET['cne'])) {
    $cne = $_REQUEST['cne'];
}
if (null == $cne) {
    header("Location : admin.php");
} else {
    $data = get_cne($cne);
}
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <link   href="/bootstrap/bootstrap.min.css" rel="stylesheet">
    <script src="/bootstrap/bootstrap.min.js"></script>
</head>
 
<body>
    <div class="container">
     
                <div class="span10 offset1">
                    <div class="row">
                        <h3>Read a Student</h3>
                    </div>
                     
                    <div class="form-horizontal" >
Esempio n. 2
0
        }
    }
    if ($valid) {
        updateStudent($cne, $nom, $prenom, $email, $password, $ville, $codePostale);
        header("Location: admin.php");
    } else {
        $data = get_cne($_GET['cne']);
        $cne = $date['cne'];
        $nom = $date['nom'];
        $prenom = $date['prenom'];
        $email = $date['email'];
        $password = $date['password'];
        $ville = $date['ville'];
        $codePostale = $date['codePostale'];
    }
    $data = get_cne($_GET['cne']);
} else {
    echo "no";
}
        ;
?>
<!DOCTYPE html>
<html>
<head>
    <link   href="/bootstrap/bootstrap.min.css" rel="stylesheet">
    <script src="/bootstrap/bootstrap.min.js"></script>
</head>
 
<body>
    <div class="container">