website logo
Auteur
avatar
Hotfirenet

Forum » » Le coin des codeurs » » [Résolu] - admin de module


Posté : 2 févr. 2004 à 21:34 icone du post

voila g repris l'exemple de l'admin de ipban car elle semblait me convenir pour l'admin de mon module ...
je pense savoir d'ouvien l'erreur mais je ne c pas comme,t la resoudre ..
remarquer dans les input il me mank la variable que l'on inscrit mais comment faire ???

dsl pour la longueur ..

if (!strstr($PHP_SELF,"admin.php")) { Access_Error(); }

function Configureentravo($ModPath, $ModStart) {

OpenTable();

echo"<form action=\"admin.php\" method=\"post\">";
if (file_exists("modules/$ModPath/admin/config.php"))
!include! ("modules/$ModPath/admin/config.php");

echo "<table width=\"75%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=center>
<tr>
<td colspan=\"3\" align=\"center\" CLASS=\"HEADER\">Administration de votre de page de travaux<br></td>
</tr>
<tr>
<td colspan=\"3\" align=\"center\"> </td>
</tr>
<tr>
<td>Titre de votre site</td>
<td colspan=\"2\"><input type=\"text\" name=\"titre\" CLASS=\"TEXTBOX_STANDARD\" onblur=\"if (this.value=='') this.value='Titre de votre site'\" onfocus=\"if (this.value=='Titre de votre site') this.value=''\" value=\"Titre de votre site\" size=15></td>
</tr>
<tr>
<td>le chemin de votre logo</td>
<td colspan=\"2\"><input type=\"text\" name=\"logo\" CLASS=\"TEXTBOX_STANDARD\" onblur=\"if (this.value=='') this.value='le chemin de votre logo'\" onfocus=\"if (this.value=='le chemin de votre logo') this.value=''\" value=\"le chemin de votre logo\" size=15></td>
</tr>
<tr>
<td>Couleur du fond de votre page</td>
<td><input type=\"text\" name='fonpag' value='' CLASS=\"TEXTBOX_STANDARD\"></td>
<td><input name='fonpagn' type='button' style='backgroundColor:fonpag.value;width:50px' onclick=\"fonpag.value=showModalDialog('modules/entravo/admin/couleurs.php','','dialogWidth:296px;dialogHeight:315px;center:yes;help:no;resizable:no;scroll:no;status:no;unadorned:yes;'); this.style.backgroundColor=fonpag.value;\"></td>
</tr>
<tr>
<td>Couleurs du fond de votre tableau</td>
<td><input type=\"text\" name='fontab' value='' CLASS=\"TEXTBOX_STANDARD\"></td>
<td><input name='fontabn' type='button' style='backgroundColor:fontab.value;width:50px' onclick=\"fontab.value=showModalDialog('modules/entravo/admin/couleurs.php','','dialogWidth:296px;dialogHeight:315px;center:yes;help:no;resizable:no;scroll:no;status:no;unadorned:yes;'); this.style.backgroundColor=fontab.value;\"></td>
</tr>
<tr>
<td>Couleur de la bordertab du tableau</td>
<td><input type=\"text\" name='bordertab' value='' CLASS=\"TEXTBOX_STANDARD\"></td>
<td><input name='bordertabn' type='button' style='backgroundColorordertab.value;width:50px' onclick=\"bordertab.value=showModalDialog('modules/entravo/admin/couleurs.php','','dialogWidth:296px;dialogHeight:315px;center:yes;help:no;resizable:no;scroll:no;status:no;unadorned:yes;'); this.style.backgroundColor=bordertab.value;\"></td>
</tr>
<tr>
<td>Votre police d'ecriture</td>
<td colspan=\"2\"> </td>
</tr>
<tr>
<td>Votre page d'accueil</td>
<td colspan=\"2\"><input type=\"text\" name=\"accueil\" CLASS=\"TEXTBOX_STANDARD\" onblur=\"if (this.value=='') this.value='Votre page d'accueil'\" onfocus=\"if (this.value=='Votre page d'accueil') this.value=''\" value=\"Votre page d'accueil\" size=15></td>
</tr>
<tr>
<td>Votre Adresse Email</td>
<td colspan=\"2\"><input type=\"text\" name=\"mail\" CLASS=\"TEXTBOX_STANDARD\" onblur=\"if (this.value=='') this.value='Votre Adresse Email'\" onfocus=\"if (this.value=='Votre Adresse Email') this.value=''\" value=\"Votre Adresse Email\" size=15></td>
</tr>
<tr>
<td>Décalage par rapport à l'heure de votre serveur</td>
<td colspan=\"2\"><input type=\"text\" name=\"hd\" CLASS=\"TEXTBOX_STANDARD\" onblur=\"if (this.value=='') this.value='Décalage'\" onfocus=\"if (this.value=='Décalage') this.value=''\" value=\"Décalage\" size=15></td>
</tr>
<tr>
<td>Explication des travaux</td>
<td colspan=\"2\"><textarea CLASS=\"TEXTBOX\" name=\"expli\" cols=\"60\" rows=\"8\">$expli

Cet article provient de NPDS
https://www.npds.org/viewtopic.php?topic=9869&forum=5