コード例 #1
0
ファイル: editerActionForm.php プロジェクト: Erf-/lanouvelle
<?php

require_once '../../module/Connection.php';
require_once '../../module/model/auteur/Auteur.php';
$id = isset($_GET["id"]) ? $_GET["id"] : "";
if ($id != "") {
    $model = new Auteur();
    $auteur = $model->getAuteur($id);
    $data = $auteur->fetch();
} else {
    echo "";
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<html>
<head>
<link href="../../css/style.css" rel="stylesheet" type="text/css" >
<meta http-equiv="Content-Type" content="text/html; charset=Cp1252">
<title>Insert title here</title>
<script language="javascript" src="../../js/validation.js"></script>
</head>
    <body>
    	<h3>Modification de la auteur: <?php 
echo $data["nom_auteur"];
?>
</h3>
		<div id="form">
			<form name="auteurForm" action="../../actions/auteur/editerAction.php" method="post"><!-- pour cree le formuulaire  -->
			<table>
				<tr>
				<td colspan=2 id="bloc_erreur">