1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
| <!-- #include file="_connexion.asp"-->
Ajout de la fiche :
<%
' Sélectionne toutes les fiches de la table "Document"
SQL="SELECT * FROM [Doc]"
Set RS = server.createobject("ADODB.Recordset")
RS.Open SQL,Conn , 3, 3
' Ajoute la nouvelle fiche
RS.addnew
RS("Titre")=Request.form("Titre")
RS("Reference")=Request.form("Reference")
RS.update
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Gestion Docs</title>
<script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
<link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
</head>
<body>
<script type="text/javascript">
function check()
{
if (document.formRecherche.ref.value == '')
{
var erreur = document.getElementById("erreur");
document.erreur.innerHTML = 'Erreur au niveau de la référence !';
document.erreur.style.visibility = 'visible';
return false;
}
return true;
}
<div class="TabbedPanelsContent" align="center">
<p style="color:#0099FF ; font-size:large;">
Ajout de documents </p>
<form name="formAjout" method="post" action="ajout.php" style="width:70%;text-align:left;padding: 10px 10px 10px 10px; margin:auto">
<table width="100%" border="0" cellpadding="10" cellspacing="10">
<tr>
<td>Reference : </td>
<td><input type="text" name="ref" /></td>
</tr>
<tr>
<td>Titre : </td>
<td><input type="text" name="titre" /></td>
</tr>
<tr>
var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
//-->
</script>
</body>
</html> |
Partager