PDA

Voir la version complète : Probleme de Mise en Page !!


DRACULA1
27/03/2007, 17h49
voila mon probleme est simple le cpoyright se met pas au bonne endroit il se met a droite de mon cadre aulieu d'etre en dessous comme normalement :)

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle]</title>
</head>
<body>

$header
$navbar
<if condition="$bbuserinfo[usergroupid] == 6">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="30%" align="left">
<tr>
<td class='tcat' colspan='2'>Ajouter Client...</td>
</tr>
$ajoucli
</table>
<else />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="25%" align="center">
<tr>
<td class="tcat" colspan="1">Accées Interdit...</td>
</tr>
<tr>
<td class="thead" width="25%">Vuiellez Vérifier...</td>
</tr>
<tr>
<td class="thead" width="25%">Désolè Mais vous n'avez pas accés a cette page !!!</td>
</tr>
</table></if>
$footer
</body>
</html>

<?php

// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// ##################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT', 'admin');

// #################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();

// get special data templates from the datastore
$specialtemplates = array();

// pre-cache templates used by all actions
$globaltemplates = array(
'admin',
);

// pre-cache templates used by specific actions
$actiontemplates = array();

// ########################## REQUIRE BACK-END ############################
require_once('./global.php');
if (!$vbulletin->userinfo['userid'])
{
print_no_permission();
}

// ################################################## ######################
// ######################### START MAIN SCRIPT ############################
// ################################################## ######################
$date = date("d/m/y");
$ajoucli .="<tr><td class='thead'><FORM ACTION='admin.php?action=ajout&date=$date' METHOD=POST>Pseudo :</td>
<td class='thead'><input type='text' name='pseudo' size='30'></td>
</tr>
<tr>
<td class='thead'>Mot De Passe :</td>
<td class='thead'><input type='password' name='passe' size='30'></td>
</tr>
<tr>
<td class='thead'>E-Mail :</td>
<td class='thead'><input type='text' name='mail' size='30'></td>
</tr>
<tr>
<td class='thead'>Date d'Inscription :</td>
<td class='thead'>$date</td>
</tr>
<tr>
<td class='thead'>Prenom :</td>
<td class='thead'><input type='text' name='prenom' size='30'></td>
</tr>
<tr>
<td class='thead'>Nom :</td>
<td class='thead'><input type='text' name='nom' size='30'></td>
</tr>
<td class='thead' colspan='2'><center><INPUT TYPE=submit VALUE='Enregistrer Client'></center>
</FORM></td></tr>";

if ($_REQUEST['action'] == 'ajout')
{
$date = $_POST['date'];
$ref = $_POST['ref'];
$pseudo = $_POST['pseudo'];
$mot_passe = $_POST['passe'];
$mail = $_POST['mail'];
$prenom = $_POST['prenom'];
$nom = $_POST['nom'];
// #### Céation De La Réfèrence Client.
$lettres = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
$taille = 7;
$ref = "VBR";
for ($i=0;$i<$taille;$i++)
{
$ref.=substr($lettres,(rand()%(strlen($lettres))), 1);
}
$db->query("INSERT INTO " . TABLE_PREFIX . "gestion_client (id, date, ref, pseudo, mot_passe, mail, prenom, nom) VALUES ('','$date','$ref','$pseudo','$mot_passe','$mail', '$prenom','$nom')");
header("Location: admin.php");
}
$navbits = array();
$navbits[$parent] = 'Espace D\'Administration...';

$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('admin') . '");');

?>

Voila un screen de se que sa donne :) est merci d'avance.

suleiman
27/03/2007, 17h59
Ajoute un <br> après </table> ...

Sinon ...!!

DRACULA1
27/03/2007, 18h48
sa marche pas malheureusement deja tester lol

suleiman
27/03/2007, 22h13
Avant
<if condition="$bbuserinfo[usergroupid] == 6">
Mets :

<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="100%">


&&
Après
</if>

Mets :

</td>
</tr>
</table>

DRACULA1
28/03/2007, 01h11
non marche pas mdr ses bien compliquer tout sa lol en plus chui sur que ses ue erreur toute bete mais bon lol

suleiman
28/03/2007, 09h42
Je ne sais pas , j'ai esseyé moi meme est c'etait bien .

Enfin .. Pourquoi tu as compliqué le template ??

tu peux faire un seul template

Template

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle]</title>
</head>
<body>

$header
$navbar
<if condition="$bbuserinfo[usergroupid] == 6">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<FORM ACTION='admin.php?action=ajout&date=$date' METHOD=POST>
<tr>
<td class='tcat' colspan='2'>Ajouter Client...</td>
</tr>
<tr><td class='thead' width="20%">Pseudo :</td>
<td class='thead'><input type='text' name='pseudo' size='30'></td>
</tr>
<tr>
<td class='thead'>Mot De Passe :</td>
<td class='thead'><input type='password' name='passe' size='30'></td>
</tr>
<tr>
<td class='thead'>E-Mail :</td>
<td class='thead'><input type='text' name='mail' size='30'></td>
</tr>
<tr>
<td class='thead'>Date d'Inscription :</td>
<td class='thead'>$date</td>
</tr>
<tr>
<td class='thead'>Prenom :</td>
<td class='thead'><input type='text' name='prenom' size='30'></td>
</tr>
<tr>
<td class='thead'>Nom :</td>
<td class='thead'><input type='text' name='nom' size='30'></td>
</tr>
<td class='thead' colspan='2'><center><INPUT TYPE=submit VALUE='Enregistrer Client'></center>
</td></tr>
</FORM>
</table>
</if>
$footer
</body>
</html>


et tu mets dans le code :

// ################################################## ######################
// ######################### START MAIN SCRIPT ############################
// ################################################## ######################
$verifie = $vbulletin->userinfo['usergroupid'];
if ($verifie == 6)
{
$date = date("d/m/y");
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('TON_TEMPLATE') . '");');
}else
{
print_no_permission();
}

Allan
28/03/2007, 10h05
Dans cette ligne:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="30%" align="left">

Modifie align="left" par align="center"

;)

DRACULA1
28/03/2007, 19h35
ouai mais bon j'ai trouver une parade lol merci quand meme lol sympas a vous d'avoir repondue :)