Fork me on GitHub






Validation XHTML 1.0 Transitional! petit souci de xoops
Régulier
Inscrit: 19/04/2003 11:57
Messages: 276
Bonjour,

Cette fois c'est sur une installation propre de xoops en partant de zéro.
Juste les modules xoopsprotector xoopsinfo et news d'installer.
Avec le thème morpho v110 non modifier et le petit hack pour la gestion de la pub installer.

Je teste la validation haaa suis content cela passe au vert
Je recommence une fois et la suis passer au rouge :-o :-o

Voici les erreurs reconnus pas w3c :
Citation :

Below are the results of checking this document for XML well-formedness and validity.

1. Error Line 58 column 430: there is no attribute "src".

...ity" value="high"></param><embed src="http://segadance.org/images/banners/ban

You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.


2. Error Line 58 column 487: there is no attribute "quality".

...g/images/banners/banner.swf" quality="high" pluginspage="http://www.macromedi


3. Error Line 58 column 506: there is no attribute "pluginspage".

...nner.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/dow


4. Error Line 58 column 593: character ";" not allowed in attribute specification list.

...x.cgi?P1_Prod_Version=ShockwaveFlash"; type="application/x-shockwave-flash" w


5. Error Line 58 column 593: element "embed" undefined.

...x.cgi?P1_Prod_Version=ShockwaveFlash"; type="application/x-shockwave-flash" w

You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:
* incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element),
* by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
* by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case.



J'en déduis qu'il y a un souci avec la gestion de la pub flash mise par défaut à l'install
Donc on ne peut pas avoir de validation permanente avec ce type de souci.

Kris => Toi qui à modifier justement le fonctionnement de la gestion du module de pub, peut-être que ta pas fais de test avec les pubs flash

C'est tous je voulais juste vous en informer. Maintenant si une personne connais la modif à faire pour que cela disparaisse suis preneur.

Merci ... et bonne année à tous :banane: champagne :xfsuper:

Posté le : 01/01/2007 08:11

Cordialement,
Theking83
www.ltdw.net
Partager Twitter Partagez cette article sur GG+
Re: Validation XHTML 1.0 Transitional! petit souci de xoops
Supporter Xoops
Inscrit: 09/01/2005 13:37
De Breizh
Messages: 16972
Bonjour,

Les tests ont été fait avec les différentes extensions des bannières, par contre, as tu mis le fichier banners.php que j'ai modifié ?
Ton test de validation est bien en xhtml "transitional" ?
Ton problème ne viendrait pas plutôt de ton "petit hack pour la gestion de la pub installée"

A +

Posté le : 01/01/2007 15:29

La connaissance s'accroît quand on la partage ...
Partager Twitter Partagez cette article sur GG+
Re: Validation XHTML 1.0 Transitional! petit souci de xoops
Régulier
Inscrit: 19/04/2003 11:57
Messages: 276
Citation :

kris a écrit:
Bonjour,

Les tests ont été fait avec les différentes extensions des bannières, par contre, as tu mis le fichier banners.php que j'ai modifié ?
Ton test de validation est bien en xhtml "transitional" ?
Ton problème ne viendrait pas plutôt de ton "petit hack pour la gestion de la pub installée"

A +



En faite le "petit hack" dont je parle c'est effectivement du fichier banners.php dont il est question.
Il est bien en place.

Pour en être sur voila ce que je viens de faire avant de poster cette réponse.
J'ai recopier de nouveau "banners.php" j'ai fais une mise à jour du module système, Actualisation des thèmes et templates sur OUI et pour finir pour être bien sur qu'il est plus aucune trace vidage des dossiers cache et templates_c

Résultat du test ci-dessous :


Citation :

This page is not Valid XHTML 1.0 Transitional!

Below are the results of checking this document for XML well-formedness and validity.

1. Error Line 57 column 432: there is no attribute "src".

...ity" value="high"></param><embed src="http://segadance.org/images/banners/ban

You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.


2. Error Line 57 column 489: there is no attribute "quality".

...g/images/banners/banner.swf" quality="high" pluginspage="http://www.macromedi


3. Error Line 57 column 508: there is no attribute "pluginspage".

...nner.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/dow


4. Error Line 57 column 595: character ";" not allowed in attribute specification list.

...x.cgi?P1_Prod_Version=ShockwaveFlash"; type="application/x-shockwave-flash" w


5. Error Line 57 column 595: element "embed" undefined.

...x.cgi?P1_Prod_Version=ShockwaveFlash"; type="application/x-shockwave-flash" w

You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:
* incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element),
* by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
* by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case.



Je précise que c'est pour se site : www.segadance.org que le test à été fais.

A ne pas confondre avec mon site perso qui lui est bourré de bug en tous genre (5 ans de mise à jour les une derrière les autres) mais il seras re-fais bientôt en version "super propre"

Posté le : 01/01/2007 16:07

Cordialement,
Theking83
www.ltdw.net
Partager Twitter Partagez cette article sur GG+
Re: Validation XHTML 1.0 Transitional! petit souci de xoops
Supporter Xoops
Inscrit: 09/01/2005 13:37
De Breizh
Messages: 16972
banners.php - ligne 267 - retires le ";"

et essayes de nous mettre la totalité du message, sans les lignes coupées

A +

Posté le : 01/01/2007 16:14

La connaissance s'accroît quand on la partage ...
Partager Twitter Partagez cette article sur GG+
Re: Validation XHTML 1.0 Transitional! petit souci de xoops
Régulier
Inscrit: 19/04/2003 11:57
Messages: 276
Pour en être sur voila ce que je viens de faire avant de poster cette réponse.
J'ai corriger le fichiers "banners.php" comme tu m'as dis de le faire.

J'ai recopier de nouveau "banners.php" j'ai fais une mise à jour du module système, Actualisation des thèmes et templates sur OUI et pour finir pour être bien sur qu'il est plus aucune trace vidage des dossiers cache et templates_c

Voila le résultat :
Citation :

This page is not Valid XHTML 1.0 Transitional!

Below are the results of checking this document for XML well-formedness and validity.

1. Error Line 57, column 432: there is no attribute "src" .

...ity" value="high"></param><embed src="http://segadance.org/images/banners/ban

You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.


2. Error Line 57, column 489: there is no attribute "quality" .

...g/images/banners/banner.swf" quality="high" pluginspage="http://www.macromedi


3. Error Line 57, column 508: there is no attribute "pluginspage" .

...nner.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/dow


4. Error Line 57, column 595: character ";" not allowed in attribute specification list .

...x.cgi?P1_Prod_Version=ShockwaveFlash"; type="application/x-shockwave-flash" w


5. Error Line 57, column 595: element "embed" undefined .

...x.cgi?P1_Prod_Version=ShockwaveFlash"; type="application/x-shockwave-flash" w

You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:
* incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element),
* by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
* by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case.



Le code comme demander :
Below is the source input I used for this validation:
1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   
2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
   
3. ><html
   4. xmlns
="http://www.w3.org/1999/xhtml"
   
5. lang="fr" xml:lang="fr"
   
6. ><head>
   
7.
   8.
   9. 
<title> : SegaDance Organisation Spectacle</title>
  
10.
  11.
  12. 
<meta name="robots" content="index,follow" />
  
13. <meta name="keywords" content="news, technology, headlines, xoops, xoop, nuke, myphpnuke, myphp-nuke, phpnuke, SE, geek, geeks, hacker, hackers, linux, software, download, downloads, free, community, mp3, forum, forums, bulletin, board, boards, bbs, php, survey, poll, polls, kernel, comment, comments, portal, odp, open, source, opensource, FreeSoftware, gnu, gpl, license, Unix, *nix, mysql, sql, database, databases, web site, weblog, guru, module, modules, theme, themes, cms, content management" />
  
14. <meta name="description" content="XOOPS is a dynamic Object Oriented based open source portal script written in PHP." />
  
15. <meta name="rating" content="general" />
  
16. <meta name="author" content="XOOPS" />
  
17. <meta name="copyright" content="Copyright &amp;copy; 2001-2006" />
  
18. <meta name="generator" content="XOOPS" />
  
19.
  20.
  21.
  22. 
<link href="http://www.segadance.org/favicon.ico" rel="SHORTCUT ICON" />
  
23.
  24. 
<link rel="stylesheet" type="text/css" media="screen" title="Grey" href="http://www.segadance.org/themes/zetareticuli/style.css" />
  
25.
  26.
  27. 
<meta http-equiv="Content-Script-Type" content="text/javascript" />
  
28. <meta http-equiv="Content-Style-Type" content="text/css" />
  
29. <script type="text/javascript" src="http://www.segadance.org/include/xoops.js">
  
30. </script>
  31.
  32.
  33. <script type="text/javascript" src="http://www.segadance.org/themes/zetareticuli/xoops.js"></script>
  34. <script type="text/javascript" src="http://www.segadance.org/themes/zetareticuli/prototype.js"></script>
  35. <script type="text/javascript" src="http://www.segadance.org/themes/zetareticuli/reticulian.js"></script>
  36.
  37. <!--[if lt IE 7]>
  38. <script type="text/javascript">
  39. var IE7_PNG_SUFFIX=".*/icons/.*.png";
  40. var IE7_BOX_MODEL = true;
  41. </script>
  42. <script src="http://www.segadance.org/themes/zetareticuli/ie7/ie7-standard-p.js" type="text/javascript"></script>
  43. <![endif]-->
  44. <!--[if lt IE 8]>
  45. <link rel="stylesheet" type="text/css" href="http://www.segadance.org/themes/zetareticuli/ie-only.css" />
  46. <![endif]-->
  47.
  48. <!--[if IE]><![if !IE]><![endif]-->
  49. <link rel="stylesheet" type="text/css" href="http://www.segadance.org/themes/zetareticuli/ie-never.css" />
  50. <!--[if IE]><![endif]><![endif]-->
  51.
  52. </head>
  53. <body class="system theme-page">
  54. <div id="xo-canvas" class="leftcolumn-layout">
  55. <div id="xo-banner">
  56. <a id="xo-main-logo" href="http://www.segadance.org/"><img src="http://www.segadance.org/themes/zetareticuli/img/header-logo.png" alt="SegaDance Organisation Spectacle" /></a>
  57. <div id="xo-banner-ad"><div><a href="http://www.segadance.org/banners.php?op=click&amp;bid=3" target="_blank"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="468" height="60"><param name="movie" value="http://segadance.org/images/banners/banner.swf"></param><param name="quality" value="high"></param><embed src="http://segadance.org/images/banners/banner.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"; type="application/x-shockwave-flash" width="468" height="60"></embed></object></a></div></div>
  58. <div id="xo-userbar">
  59. <form method="post" action="http://www.segadance.org/user.php?op=login">
  60. Connexion
  61. <input name="uname" type="text" /><input name="pass" type="password" />
  62. <input type="hidden" name="xoops_redirect" value="/" />
  63. <button type="submit"><img src="http://www.segadance.org/themes/zetareticuli/icons/22x22/login.png" alt="Connexion" /></button>
  64. </form>
  65. <a href="http://www.segadance.org/register.php" class="register">Register</a>
  66. </div>
  67. </div>
  68. <ul id="xo-globalnav" class="x2-nl x2-navigation">
  69. <li class="x2-label">Main navigation</li>
  70. <li><a href="http://www.segadance.org/">Home</a></li>
  71. <li><a href="http://www.segadance.org/modules/news/">News</a></li>
  72. <li><a href="http://www.segadance.org/modules/filereleases/">Downloads</a></li>
  73. <li><a href="http://www.segadance.org/modules/newbb/">About us</a></li>
  74. </ul>
  75. <div id="xo-canvas-content">
  76. <div id="xo-canvas-columns">
  77. <div id="pagebg">
  78. <div id="corners-pagetop"><div>&#160;</div></div>
  79.
  80. <div class="xo-blockszone zeta_Collapsible x2-secondary xo-canvas-column" id="xo-canvas-leftcolumn">
  81. <div id="leftcol-switch" onclick="zeta_switchLeftCol()">Show/hide column</div>
  82. <div class="xo-block system">
  83. <div class="xo-blocktitle">Login</div> <div class="xo-blockcontent">
  84. <form class="system-login" action="http://www.segadance.org/user.php" method="post">
  85. <label>
  86. Pseudo :&nbsp;
  87. <input type="text" name="uname" size="12" value="" maxlength="25" />
  88. </label>
  89. <label>
  90. Mot de passe :&nbsp;
  91. <input type="password" name="pass" size="12" maxlength="32" />
  92. </label>
  93. <!-- <input type="checkbox" name="rememberme" value="On" class ="formButton" /><br /> //-->
  94. <input type="hidden" name="xoops_redirect" value="/" />
  95. <input type="hidden" name="op" value="login" />
  96. <div class="formButtons">
  97. <button type="submit">
  98. Connexion
  99. </button>
 100. </div>
 101.
 102. </form>
 103. <a href="http://www.segadance.org/user.php#lost">Perdu le mot de passe ?</a><br />
 104. <a href="http://www.segadance.org/register.php">Inscrivez-vous maintenant !</a></div>
 105. </div>
 106. <div class="xo-block system">
 107. <div class="xo-blocktitle">Main Menu</div> <div class="xo-blockcontent">
 108. <ul class="xo-navbar">
 109. <li class="home"><a href="http://www.segadance.org/">Accueil</a></li>
 110. </ul></div>
 111. </div>
 112. </div>
 113. <div id="xo-page">
 114.
 115. <div id="xo-content"></div>
 116.
 117. </div>
 118. <div id="corners-pagebottom"><div>&#160;</div></div>
 119. </div>
 120. </div>
 121. </div>
 122. <!--{xo-logger-output}-->
 123. <div id="xo-footer">
 124. Powered by XOOPS 2.0 &copy; 2001-2006 <a href="http://www.xoops.org/" target="_blank">The XOOPS Project</a>
 125. </div>
 126. </div>
 127. </body>
 128. </html>


Mais apparament ce foutus " ; " est toujours la :-o :-o

Posté le : 01/01/2007 17:04

Cordialement,
Theking83
www.ltdw.net
Partager Twitter Partagez cette article sur GG+
Re: Validation XHTML 1.0 Transitional! petit souci de xoops
Supporter Xoops
Inscrit: 09/01/2005 13:37
De Breizh
Messages: 16972
vides "templates_c" et mets ensuite à jour le module "system" dans l'interface d'administration

A +

ps : c'est zetareticulli ton thème ? bon courage pour la validation

Posté le : 01/01/2007 17:15

La connaissance s'accroît quand on la partage ...
Partager Twitter Partagez cette article sur GG+
Re: Validation XHTML 1.0 Transitional! petit souci de xoops
Régulier
Inscrit: 19/04/2003 11:57
Messages: 276
Ben quoi !!
Je test pour voir

Mais la je viens de remettre le morpho 110 mais wc3 est trop occuper pour le moment j'arrive pas à refaire des tests de validation. Mais j'en referais à pas de raison de pas arriver à avoir du vert tous le temps.

Je voulais juste dire que pour tes thèmes 111 et 112 quand on mets le menu général sur la gauche et bien on n'a une partie de texte sur la gauche et ensuite sur la droite quand on passe la sourie dessus :-o et cela fais aussi une belle jolie ligne horizontale sur toute la largeur du site.

Sinon il sont très jolie Bravo, dommage que je ne soit pas aussi douer pour la création de thèmes.
Et j'avoue que avec le morpho suis grave perdus mais c'est tous une question d'adaptation, pas toujours facile pour les autodidactes.

Posté le : 01/01/2007 18:56

Cordialement,
Theking83
www.ltdw.net
Partager Twitter Partagez cette article sur GG+
Re: Validation XHTML 1.0 Transitional! petit souci de xoops
Régulier
Inscrit: 19/04/2003 11:57
Messages: 276
Pour en être sur voila ce que je viens de faire avant de poster cette réponse.
Citation :

kris a écrit:
vides "templates_c" et mets ensuite à jour le module "system" dans l'interface d'administration


j'ai fais Actualisation des thèmes et templates sur OUI pour être bien sur qu'il est plus aucune trace vidage des dossiers cache et templates_c et pour finir une mise à jour du module système.
Test fais avec morpho 110 sur le site www.segadance.org voila le résultat :
Citation :

This page is not Valid XHTML 1.0 Transitional!

Below are the results of checking this document for XML well-formedness and validity.

1. Error Line 58, column 430: there is no attribute "src" .

...ity" value="high"></param><embed src="http://segadance.org/images/banners/ban

You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.


2. Error Line 58, column 487: there is no attribute "quality" .

...g/images/banners/banner.swf" quality="high" pluginspage="http://www.macromedi


3. Error Line 58, column 506: there is no attribute "pluginspage" .

...nner.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/dow


4. Error Line 58, column 593: character ";" not allowed in attribute specification list .

...x.cgi?P1_Prod_Version=ShockwaveFlash"; type="application/x-shockwave-flash" w


5. Error Line 58, column 593: element "embed" undefined .

...x.cgi?P1_Prod_Version=ShockwaveFlash"; type="application/x-shockwave-flash" w

You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:
* incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element),
* by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
* by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case.


Le code comme demander :
Below is the source input I used for this validation:

1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
   
2. <html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
   
3. <head>
   
4. <!-- paramètres pour le positionnement des blocs haut et bas -->
   
5. <!-- indique le nom du thème -->
   
6.
   7. 
<!-- titre de la page et meta descriptions -->
   
8. <title>Sega Dance Organisation Spectacle Site</title>
   
9. <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
  
10. <meta name="robots" content="index,follow" />
  
11. <meta name="keywords" content="news, technology, headlines, xoops, xoop, nuke, myphpnuke, myphp-nuke, phpnuke, SE, geek, geeks, hacker, hackers, linux, software, download, downloads, free, community, mp3, forum, forums, bulletin, board, boards, bbs, php, survey, poll, polls, kernel, comment, comments, portal, odp, open, source, opensource, FreeSoftware, gnu, gpl, license, Unix, *nix, mysql, sql, database, databases, web site, weblog, guru, module, modules, theme, themes, cms, content management" />
  
12. <meta name="description" content="XOOPS is a dynamic Object Oriented based open source portal script written in PHP." />
  
13. <meta name="rating" content="general" />
  
14. <meta name="author" content="XOOPS" />
  
15. <meta name="copyright" content="Copyright &amp;copy; 2001-2006" />
  
16. <meta name="generator" content="XOOPS" />
  
17.
  18. 
<!-- Pour la transition des pages -->
  
19. <meta http-equiv="Page-Enter" content="revealtrans(duration=1, transition=23)" />
  
20. <meta http-equiv="Page-Exit" content="revealtrans(duration=1, transition=23)" />
  
21.
  22. 
<!-- chemin du favicon -->
  
23. <link rel="shortcut icon" type="image/ico" href="http://www.segadance.org/favicon.ico" />
  
24. <link rel="icon" type="image/png" href="http://www.segadance.org/icon.png" />
  
25.
  26. 
<!-- Css du thème -->
  
27. <link rel="stylesheet" type="text/css" media="screen" href="http://www.segadance.org/themes/Morphogenesis/layout-soup.css" />
  
28. <!--<link rel="stylesheet" type="text/css" media="screen" title="Blue" href="http://www.segadance.org/themes/Morphogenesis/style.css" />--> <!-- lien à utiliser en association avec la feuille print.css -->
  
29. <link rel="stylesheet" type="text/css" media="all" title="Blue" href="http://www.segadance.org/themes/Morphogenesis/style.css" /> <!-- à commenter si la ligne ci-dessus est active -->
  
30. <!--<link rel="stylesheet" type="text/css" media="print" href="http://www.segadance.org/print.css" />--> <!-- feuille de style pour l'impression -->
  31. <!--<link rel="stylesheet" type="text/css" media="aural" href="http://www.segadance.org/aural.css" />--> <!-- feuille de style pour la fonction audio de certains navigateurs -->
  32.
  33.
  34. <meta http-equiv="Content-Script-Type" content="text/javascript" />
  35. <meta http-equiv="Content-Style-Type" content="text/css" />
  36. <script type="text/javascript" src="http://www.segadance.org/include/xoops.js">
  37. </script>
  38.
  39.
  40. <!-- pour la transparence des images au format png sous ie -->
  41. <!--[if lt IE 8]>
  42. <script type="text/javascript">
  43. var WEBFX_PNG_PATTERN=".*.png";
  44. var WEBFX_PNG_BLANK = "http://www.segadance.org/jseffects/img/blank.gif";
  45. </script>
  46. <style type="text/css">
  47. img { behavior: url(http://www.segadance.org/jseffects/pngbehavior.htc); }
  48. </style>
  49. <![endif]-->
  50.
  51. </head>
  52. <body class="system theme-default" id="system">
  53. <div id="xo-canvas" class="leftcolumn-layout">
  54. <div id="xo-banner" class="commercial"><!-- avec affichage activée de la bannière -->
  55. <a id="xo-main-logo" href="http://www.segadance.org/"><img src="http://www.segadance.org/themes/Morphogenesis/img/header-logo_small.gif" alt="Sega Dance Organisation Spectacle - Site" /></a>
  56. <a id="xo-site-title" class="commercial" href="http://www.segadance.org/">Mor·pho·gen·e·sis 1.1.0</a>
  57. <div id="xo-site-slogan">"birth of evolution"</div>
  58. <div id="xo-banner-ad"><div><a href="http://www.segadance.org/banners.php?op=click&amp;bid=3" target="_blank"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="468" height="60"><param name="movie" value="http://segadance.org/images/banners/banner.swf"></param><param name="quality" value="high"></param><embed src="http://segadance.org/images/banners/banner.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"; type="application/x-shockwave-flash" width="468" height="60"></embed></object></a></div></div>
  59. <!-- include du bloc Utilisateur dans le header -->
  60. <div id="xo-userbar">
  61. <!-- menu en mode anonyme -->
  62. <form method="post" action="http://www.segadance.org/user.php?op=login">
  63. Connexion&nbsp;
  64. <input name="uname" type="text" />&nbsp;&nbsp;<input name="pass" type="password" />
  65. <input type="hidden" name="xoops_redirect" value="/" />
  66. <button type="submit"><img src="http://www.segadance.org/themes/Morphogenesis/img/home.png" alt="Connexion" /></button>
  67. </form>
  68. <a href="http://www.segadance.org/register.php" class="register">S'
enregistrer</a>
  
69. </div> <!-- fin de l'include du bloc Utilisateur dans le header -->
  70. </div>
  71. <!-- menu horizontal du header -->
  72. <ul id="xo-globalnav" class="x2-nl x2-navigation">
  73. <!-- menu en mode anonyme -->
  74. <li><a href="http://www.segadance.org/" accesskey="a" title="Accueil">Accueil</a></li>
  75. <li><a href="http://www.segadance.org/modules/myCredits/" accesskey="" title="Modules 1a">Module 1a</a></li>
  76. <li><a href="http://www.segadance.org/modules/google/" accesskey="" title="Modules 2a">Module 2a</a></li>
  77. <li><a href="http://www.segadance.org/modules/contact/" accesskey="c" title="Contact">Contact</a></li>
  78. </ul><!-- fin du menu horizontal du header -->
  79.
  80. <!-- Ne pas modifier la partie ci-dessous, c'
est supposé être l'architecture standard que chacun doit utiliser -->
  81. <div id="xo-canvas-content">
  82. <table id="xo-canvas-columns" cellspacing="0">
  83. <tr>
  84.
  85. <td class="xo-blockszone x2-secondary xo-canvas-column" id="xo-canvas-leftcolumn">
  86. <div class="xo-block system">
  87. <div class="xo-blocktitle">Login</div> <div class="xo-blockcontent"><form style="margin-top: 0px;" action="http://www.segadance.org/user.php" method="post">
  88. Pseudo :&nbsp;<br />
  89. <input type="text" name="uname" size="12" value="" maxlength="25" /><br />
  90. Mot de passe :&nbsp;<br />
  91. <input type="password" name="pass" size="12" maxlength="32" /><br />
  92. <!-- <input type="checkbox" name="rememberme" value="On" class ="formButton" /><br /> //-->
  93. <input type="hidden" name="xoops_redirect" value="/" />
  94. <input type="hidden" name="op" value="login" />
  95. <input class="xo-formbuttons" type="submit" value="Connexion" /><br />
  96.
  97. </form>
  98. <a href="http://www.segadance.org/user.php#lost">Perdu le mot de passe ?</a>
  99. <br /><br />
 100. <a href="http://www.segadance.org/register.php">Inscrivez-vous maintenant !</a></div>
 101. </div>
 102. <div class="xo-block system">
 103. <div class="xo-blocktitle">Main Menu</div> <div class="xo-blockcontent"><table cellspacing="0">
 104. <tr>
 105. <td id="mainmenu">
 106. <a class="menuTop" href="http://www.segadance.org/">Accueil</a>
 107. <!-- start module menu loop -->
 108. <!-- end module menu loop -->
 109. </td>
 110. </tr>
 111. </table></div>
 112. </div>
 113. </td>
 114. <td id="xo-page">
 115. </td>
 116. </tr>
 117. </table>
 118. </div>
 119. <!--{xo-logger-output}-->
 120. <div id="xo-footer">
 121. Powered by XOOPS 2.0 &copy; 2001-2006 <a href="http://www.xoops.org/" target="_blank">The XOOPS Project</a>
 122. </div>
 123. </div>
 124. </body>
 125. </html>


Mais ce foutus " ; " est toujours la j'arrive pas à m'en débarrassé
Suis larguer

Edit :

J'ai trouver :banane: il a fallus que j'efface la banniere de la base mysql de xoops pour la remettre et la le code à été mis à jour
J'avais bien penser à faire cette manip mais seulement en éditant la banniere et en l'enregistrant à nouveau mais cela n'as pas suffit.

Ce qui est bon dans cette histoire Kris c'est que ton fichier avais quand même un souci. Ce foutus " ; "
Et comme les "bugs" me colle à la peau c'est moi qui suis tomber dessus le premier

Posté le : 01/01/2007 21:57

Cordialement,
Theking83
www.ltdw.net
Partager Twitter Partagez cette article sur GG+
Re: Validation XHTML 1.0 Transitional! petit souci de xoops
Supporter Xoops
Inscrit: 09/01/2005 13:37
De Breizh
Messages: 16972
voici mon fichier banners.php :
<?php
// $Id: banners.php 756 2006-09-24 21:31:29Z phppp $
//  ------------------------------------------------------------------------ //
//                XOOPS - PHP Content Management System                      //
//                    Copyright (c) 2000 XOOPS.org                           //
//                       <http://www.xoops.org/>   ... nbsp;   //
//  ------------------------------------------------------------------------ //
//  This program is free software; you can redistribute it and/or modify     //
//  it under the terms of the GNU General Public License as published by     //
//  the Free Software Foundation; either version 2 of the License, or        //
//  (at your option) any later version.                                      //
//                                                                           //
//  You may not change or alter any portion of this comment or credits       //
//  of supporting developers from this source code or any supporting         //
//  source code which is considered copyrighted (c) material of the          //
//  original comment or credit authors.                                      //
//                                                                           //
//  This program is distributed in the hope that it will be useful,          //
//  but WITHOUT ANY WARRANTY; without even the implied warranty of           //
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            //
//  GNU General Public License for more details.                             //
//                                                                           //
//  You should have received a copy of the GNU General Public License        //
//  along with this program; if not, write to the Free Software              //
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
//  ------------------------------------------------------------------------ //
// Author: Kazumi Ono (AKA onokazu)                                          //
// URL: http://www.myweb.ne.jp/http://www.xoops.org/http://jp.xoops.org/ //
// Project: The XOOPS Project                                                //
// ------------------------------------------------------------------------- //

if (!is_object($xoopsUser) || !is_object($xoopsModule) || !$xoopsUser->isAdmin($xoopsModule->mid()) ) {
    exit(
"Access Denied");
} else {
/*********************************************************/
/* Banners Administration Functions                      */
/*********************************************************/
function BannersAdmin()
{
    global 
$xoopsConfig$xoopsModule;
    
$xoopsDB =& Database::getInstance();
    
xoops_cp_header();
    
// Banners List
    
echo "<a name='top'></a>";
    echo 
"<table width='100%' border='0' cellspacing='1' class='outer'><tr><td class="odd">";
    echo 
"<div style='text-align:center'><b>"._AM_CURACTBNR."</b></div><br />
    <table width='100%' border='0'><tr>
    <td align='center'>"
._AM_BANNERID."</td>
    <td align='center'>"
._AM_IMPRESION."</td>
    <td align='center'>"
._AM_IMPLEFT."</td>
    <td align='center'>"
._AM_CLICKS."</td>
    <td align='center'>"
._AM_NCLICKS."</td>
    <td align='center'>"
._AM_CLINAME."</td>
    <td align='center'>"
._AM_FUNCTION."</td></tr><tr align='center'>";
    
$result $xoopsDB->query("SELECT bid, cid, imptotal, impmade, clicks, date FROM ".$xoopsDB->prefix("banner")." ORDER BY bid");
    
$myts =& MyTextSanitizer::getInstance();
    while(list(
$bid$cid$imptotal$impmade$clicks$date) = $xoopsDB->fetchRow($result)) {
        
$result2 $xoopsDB->query("SELECT cid, name FROM ".$xoopsDB->prefix("bannerclient")." WHERE cid=$cid");
        list(
$cid$name) = $xoopsDB->fetchRow($result2);
        
$name $myts->makeTboxData4Show($name);
        if ( 
$impmade == ) {
            
$percent 0;
        } else {
            
$percent substr(100 $clicks $impmade05);
        }
        if ( 
$imptotal == ) {
            
$left ""._AM_UNLIMIT."";
        } else {
            
$left $imptotal-$impmade;
        }
        echo 
"<td align='center'>$bid</td>
        <td align='center'>
$impmade</td>
        <td align='center'>
$left</td>
        <td align='center'>
$clicks</td>
        <td align='center'>
$percent%</td>
        <td align='center'>
$name</td>
        <td align='center'><a href='admin.php?fct=banners&amp;op=BannerEdit&amp;bid=
$bid'>"._AM_EDIT."</a> | <a href='admin.php?fct=banners&amp;op=BannerDelete&amp;bid=$bid&amp;ok=0'>"._AM_DELETE."</a></td><tr>";
    }
    echo 
"</td></tr></table>";
    echo 
"</td></tr></table>";
    echo 
"<br />";
    
// Finished Banners List
    
echo "<a name='top'></a>";
    echo 
"<table width='100%' border='0' cellspacing='1' class='outer'><tr><td class="odd">";
    echo 
"<div style='text-align:center'><b>"._AM_FINISHBNR."</b></div><br />
    <table width='100%' border='0'><tr>
    <td align='center'>"
._AM_BANNERID."</td>
    <td align='center'>"
._AM_IMPD."</td>
    <td align='center'>"
._AM_CLICKS."</td>
    <td align='center'>"
._AM_NCLICKS."</td>
    <td align='center'>"
._AM_STARTDATE."</td>
    <td align='center'>"
._AM_ENDDATE."</td>
    <td align='center'>"
._AM_CLINAME."</td>
    <td align='center'>"
._AM_FUNCTION."</td></tr>
    <tr>"
;
    
$result $xoopsDB->query("SELECT bid, cid, impressions, clicks, datestart, dateend FROM ".$xoopsDB->prefix("bannerfinish")." ORDER BY bid");
    while(list(
$bid$cid$impressions$clicks$datestart$dateend) = $xoopsDB->fetchRow($result)) {
        
$result2 $xoopsDB->query("SELECT cid, name FROM ".$xoopsDB->prefix("bannerclient")." WHERE cid=$cid");
        list(
$cid$name) = $xoopsDB->fetchRow($result2);
        
$name $myts->makeTboxData4Show($name);
        
$percent substr(100 $clicks $impressions05);
        echo 
"
        <td align='center'>
$bid</td>
        <td align='center'>
$impressions</td>
        <td align='center'>
$clicks</td>
        <td align='center'>
$percent%</td>
        <td align='center'>"
.formatTimestamp($datestart,"m")."</td>
        <td align='center'>"
.formatTimestamp($dateend,"m")."</td>
        <td align='center'>
$name</td>
        <td align='center'><a href='admin.php?fct=banners&amp;op=BannerFinishDelete&amp;bid=
$bid'>"._AM_DELETE."</a></td><tr>";
    }
    echo 
"</td></tr></table>";
    echo 
"</td></tr></table>";
    echo 
"<br />";
    
// Clients List
    
echo "<table width='100%' border='0' cellspacing='1' class='outer'><tr><td class="odd">";
    echo 
"
    <div style='text-align:center'><b>"
._AM_ADVCLI."</b></div><br />
    <table width='100%' border='0'><tr align='center'>
    <td align='center'>"
._AM_BANNERID."</td>
    <td align='center'>"
._AM_CLINAME."</td>
    <td align='center'>"
._AM_ACTIVEBNR."</td>
    <td align='center'>"
._AM_CONTNAME."</td>
    <td align='center'>"
._AM_CONTMAIL."</td>
    <td align='center'>"
._AM_FUNCTION."</td></tr><tr align='center'>";
    
$result $xoopsDB->query("SELECT cid, name, contact, email FROM ".$xoopsDB->prefix("bannerclient")." ORDER BY cid");
    while(list(
$cid$name$contact$email) = $xoopsDB->fetchRow($result)) {
        
$name htmlspecialchars($name,ENT_QUOTES);
        
$contact htmlspecialchars($contact,ENT_QUOTES);
        
$email htmlspecialchars($email,ENT_QUOTES);
        
$result2 $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("banner")." WHERE cid=$cid");
        list(
$numrows) = $xoopsDB->fetchRow($result2);
        echo 
"
        <td align='center'>
$cid</td>
        <td align='center'>
$name</td>
        <td align='center'>
$numrows</td>
        <td align='center'>
$contact</td>
        <td align='center'>
$email</td>
        <td align='center'><a href='admin.php?fct=banners&amp;op=BannerClientEdit&amp;cid=
$cid'>"._AM_EDIT."</a> | <a href='admin.php?fct=banners&amp;op=BannerClientDelete&amp;cid=$cid'>"._AM_DELETE."</a></td><tr>";
    }
    echo 
"</td></tr></table>";
    echo 
"</td></tr></table>";
    echo 
"<br />";
    
// Add Banner
    
$result $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("bannerclient"));
    list(
$numrows) = $xoopsDB->fetchRow($result);
        if ( 
$numrows ) {
            echo
"<table width='100%' border='0' cellspacing='1' class='outer'><tr><td class="odd">";
            echo
"
            <h4>"
._AM_ADDNWBNR."</h4>
            <form action='admin.php' method='post'>
            "
._AM_CLINAMET."
            <select name='cid'>"
;
            
$result $xoopsDB->query("SELECT cid, name FROM ".$xoopsDB->prefix("bannerclient"));
            while(list(
$cid$name) = $xoopsDB->fetchRow($result)) {
                
$name $myts->makeTboxData4Show($name);
                echo 
"<option value='$cid'>$name</option>";

            }
            echo 
"
            </select><br />
            "
._AM_IMPPURCHT."<input type='text' name='imptotal' size='12' maxlength='11' /> 0 = "._AM_UNLIMIT."<br />
            "
._AM_IMGURLT."<input type='text' name='imageurl' size='50' maxlength='255' /><br />
            "
._AM_CLICKURLT."<input type='text' name='clickurl' size='50' maxlength='255' /><br />
            "
._AM_USEHTML." <input type='checkbox' name='htmlbanner' value='1'>
            <br />
            "
._AM_CODEHTML."
            <br />
            <textarea name='htmlcode' rows='6'></textarea>
            <br />
            <input type='hidden' name='fct' value='banners' />
            <input type='hidden' name='op' value='BannersAdd' />
            "
.$GLOBALS['xoopsSecurity']->getTokenHTML()."
            <input type='submit' value='"
._AM_ADDBNR."' />
            </form>"
;
            echo
"</td></tr></table>";
        }
    
// Add Client
    
echo "<br />";
    echo 
"<table width='100%' border='0' cellspacing='1' class='outer'><tr><td class="odd">";
    echo 
"
    <h4>"
._AM_ADDNWCLI."</h4>
    <form action='admin.php' method='post'>
    "
._AM_CLINAMET."<input type='text' name='name' size='30' maxlength='60' /><br />
    "
._AM_CONTNAMET."<input type='text' name='contact' size='30' maxlength='60' /><br />
    "
._AM_CONTMAILT."<input type='text' name='email' size='30' maxlength='60' /><br />
    "
._AM_CLILOGINT."<input type='text' name='login' size='12' maxlength='10' /><br />
    "
._AM_CLIPASST."<input type='text' name='passwd' size='12' maxlength='10' /><br />
    "
._AM_EXTINFO."<br /><textarea name='extrainfo' cols='60' rows='10' /></textarea><br />
    <input type='hidden' name='op' value='BannerAddClient' />
    "
.$GLOBALS['xoopsSecurity']->getTokenHTML()."
    <input type='hidden' name='fct' value='banners' />
    <input type='submit' value='"
._AM_ADDCLI."' />
    </form>"
;
    echo 
"</td></tr></table>";
    
xoops_cp_footer();
}


function 
BannerDelete($bid)
{
    global 
$xoopsConfig$xoopsModule;
    
$xoopsDB =& Database::getInstance();
    
$myts =& MyTextSanitizer::getInstance();
    
xoops_cp_header();
    
$result=$xoopsDB->query("SELECT cid, imptotal, impmade, clicks, imageurl, clickurl, htmlbanner, htmlcode FROM ".$xoopsDB->prefix("banner")." where bid=$bid");
    list(
$cid$imptotal$impmade$clicks$imageurl$clickurl$htmlbanner$htmlcode) = $xoopsDB->fetchRow($result);
    
$imageurl htmlspecialchars($imageurlENT_QUOTES);
    
$clickurl htmlspecialchars($clickurlENT_QUOTES);
    echo
"<table width='100%' border='0' cellspacing='1' class='outer'><tr><td class="odd">";
    echo 
"<h4>"._AM_DELEBNR."</h4>";
    if (
$htmlbanner){
        echo 
$myts->displayTarea($htmlcode,1);
    }else{
        if(
strtolower(substr($imageurl,strrpos($imageurl,".")))==".swf") {
            echo 
"<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/ swflash.cab#version=6,0,40,0" width="468" height="60">";
            
echo "<param name=movie value="$imageurl">";
            echo 
"<param name=quality value=high>";
            echo 
"<embed src="$imageurl" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"  type="application/x-shockwave-flash" width="468" height="60">";
            
echo "</embed>";
            echo 
"</object>";
        } else {
            echo 
"<img src='$imageurl' alt='' />";
        }
    }
    echo 
"<a href='$clickurl'>$clickurl</a><br /><br /><table width='100%' border='0'><tr align='center'><td align='center'>"._AM_BANNERID."</td><td align='center'>"._AM_IMPRESION."</td><td align='center'>"._AM_IMPLEFT."</td><td align='center'>"._AM_CLICKS."</td><td align='center'>"._AM_NCLICKS."</td><td align='center'>"._AM_CLINAME."</td></tr><tr align='center'>";
    
$result2 $xoopsDB->query("SELECT cid, name FROM ".$xoopsDB->prefix("bannerclient")." WHERE cid=$cid");
    list(
$cid$name) = $xoopsDB->fetchRow($result2);
    
$name $myts->makeTboxData4Show($name);
    
$percent substr(100 $clicks $impmade05);
    if ( 
$imptotal == ) {
        
$left 'unlimited';
    } else {
        
$left $imptotal-$impmade;
    }
    echo 
"
        <td align='center'>
$bid</td>
        <td align='center'>
$impmade</td>
        <td align='center'>
$left</td>
        <td align='center'>
$clicks</td>
        <td align='center'>
$percent%</td>
        <td align='center'>
$name</td>
        </tr></table><br />"
;
    
xoops_confirm(array('fct' => 'banners''op' => 'BannerDelete2''bid' => $bid), 'admin.php'_AM_SUREDELE);
    echo
"</td></tr></table>";
    
xoops_cp_footer();
}

function 
BannerEdit($bid)
{
    global 
$xoopsConfig$xoopsModule;
    
$bid intval($bid);
    
xoops_cp_header();
    
$xoopsDB =& Database::getInstance();
    
$myts =& MyTextSanitizer::getInstance();
    
$result=$xoopsDB->query("SELECT cid, imptotal, impmade, clicks, imageurl, clickurl, htmlbanner, htmlcode FROM ".$xoopsDB->prefix("banner")." where bid=".$bid);
    list(
$cid$imptotal$impmade$clicks$imageurl$clickurl$htmlbanner$htmlcode) = $xoopsDB->fetchRow($result);
    echo
"<table width='100%' border='0' cellspacing='1' class='outer'><tr><td class="odd">";
    echo
"<h4>"._AM_EDITBNR."</h4>";
    if (
$htmlbanner){
        echo 
$myts->displayTarea($htmlcode10000);
    }else{
        if(
strtolower(substr($imageurl,strrpos($imageurl,".")))==".swf") {
            echo 
"<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/ swflash.cab#version=6,0,40,0" width="468" height="60">";
            
echo "<param name=movie value="$imageurl">";
            echo 
"<param name=quality value=high>";
            echo 
"<embed src="$imageurl" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"  type="application/x-shockwave-flash" width="468" height="60">";
            
echo "</embed>";
            echo 
"</object>";
        } else {
            echo 
"<img src='$imageurl' alt='' />";
        }
    }
    echo 
"<form action='admin.php' method='post'>
    "
._AM_CLINAMET."
    <select name='cid'>n"
;
    
$result $xoopsDB->query("SELECT cid, name FROM ".$xoopsDB->prefix("bannerclient")." where cid=$cid");
    list(
$cid$name) = $xoopsDB->fetchRow($result);
    
$name $myts->makeTboxData4Show($name);
    echo 
"<option value='$cid' selected='selected'>$name</option>";
    
$result $xoopsDB->query("SELECT cid, name FROM ".$xoopsDB->prefix("bannerclient"));
    while(list(
$ccid$name) = $xoopsDB->fetchRow($result)) {
        
$name $myts->makeTboxData4Show($name);
        if ( 
$cid != $ccid ) {
            echo 
"<option value='$ccid'>$name</option>";
        }
    }
    echo 
"</select><br />";
    if ( 
$imptotal == ) {
        
$impressions ""._AM_UNLIMIT."";
    } else {
        
$impressions $imptotal;
    }
    echo 
"
    "
._AM_ADDIMPT."<input type='text' name='impadded' size='12' maxlength='11' /> "._AM_PURCHT."<b>$impressions</b> "._AM_MADET."<b>$impmade</b><br />
    "
._AM_IMGURLT."<input type='text' name='imageurl' size='50' maxlength='200' value='".htmlspecialchars($imageurlENT_QUOTES)."'><br />
    "
._AM_CLICKURLT."<input type='text' name='clickurl' size='50' maxlength='200' value='".htmlspecialchars($clickurlENT_QUOTES)."' /><br />
    "
._AM_USEHTML;
    if (
$htmlbanner){
        echo 
" <input type='checkbox' name='htmlbanner' value='1' checked='checked' />";
    }else{
        echo 
" <input type='checkbox' name='htmlbanner' value='1' />";
    }
    echo 
"
    <br />
    "
._AM_CODEHTML."
    <br />
    <textarea name='htmlcode' rows='6'>"
.$myts->displayTarea($htmlcode$htmlbanner0000)."</textarea>
    <br />
    <input type='hidden' name='bid' value='
$bid' />
    <input type='hidden' name='imptotal' value='
$imptotal' />
    <input type='hidden' name='fct' value='banners' />
    "
.$GLOBALS['xoopsSecurity']->getTokenHTML()."
    <input type='hidden' name='op' value='BannerChange' />
    <input type='submit' value='"
._AM_CHGBNR."' />
    </form>"
;
    echo
"</td></tr></table>";
    
xoops_cp_footer();
}

function 
BannerClientDelete($cid)
{
    global 
$xoopsConfig$xoopsModule;
    
$xoopsDB =& Database::getInstance();
    
$myts =& MyTextSanitizer::getInstance();
    
xoops_cp_header();
    
$result $xoopsDB->query("SELECT cid, name FROM ".$xoopsDB->prefix("bannerclient")." WHERE cid=$cid");
    list(
$cid$name) = $xoopsDB->fetchRow($result);
    
$name $myts->makeTboxData4Show($name);
    echo 
"<table width='100%' border='0' cellspacing='1' class='outer'><tr><td class="odd">";
    echo 
"<h4>"._AM_DELEADC."</h4>".sprintf(_AM_SUREDELCLI,$name)."<br /><br />";
    
$result2 $xoopsDB->query("SELECT imageurl, clickurl, htmlbanner, htmlcode FROM ".$xoopsDB->prefix("banner")." WHERE cid=$cid");
    
$numrows $xoopsDB->getRowsNum($result2);
    if ( 
$numrows == ) {
        echo 
""._AM_NOBNRRUN."<br /><br />";
    } else {
        echo 
"<font color='#ff0000'><b>"._AM_WARNING."</b></font><br />"._AM_ACTBNRRUN."<br /><br />";
    }
    while(list(
$imageurl$clickurl$htmlbanner$htmlcode) = $xoopsDB->fetchRow($result2)) {
        
$imageurl htmlspecialchars($imageurlENT_QUOTES);
        
$clickurl htmlspecialchars($clickurlENT_QUOTES);
        
$bannerobject "";
        if (
$htmlbanner){
            
$bannerobject $myts->displayTarea($htmlcode,1);
        } else {
            
$bannerobject '<div><a href="'.$clickurl.'" target="_blank">';
            if(
strtolower(substr($imageurl,strrpos($imageurl,".")))==".swf") {
                
$bannerobject $bannerobject
                        
.'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="468" height="60">'
                        
.'<param name="movie" value="'.$imageurl.'"></param>'
                        
.'<param name="quality" value="high"></param>'
                        
.'<embed src="'.$imageurl.'" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="468" height="60">'
                        
.'</embed>'
                        
.'</object>';
            } else {
                
$bannerobject $bannerobject.'<img src="'.$imageurl.'" alt="" />';
            }
            
$bannerobject $bannerobject.'</a></div>';
        }
        echo 
$bannerobject."<a href='".$clickurl."'>".$clickurl."</a><br /><br />";
    }
    
xoops_confirm(array('fct' => 'banners''op' => 'BannerClientDelete2''cid' => $cid), 'admin.php'_AM_SUREDELBNR);
    echo 
"</td></tr></table>";
    
xoops_cp_footer();
}

function 
BannerClientEdit($cid)
{
    global 
$xoopsConfig$xoopsModule;
    
$xoopsDB =& Database::getInstance();
    
$myts =& MyTextSanitizer::getInstance();
    
xoops_cp_header();
    
$result $xoopsDB->query("SELECT name, contact, email, login, passwd, extrainfo FROM ".$xoopsDB->prefix("bannerclient")." WHERE cid=$cid");
    list(
$name$contact$email$login$passwd$extrainfo) = $xoopsDB->fetchRow($result);
    
$name $myts->makeTboxData4Edit($name);
    
$contact $myts->makeTboxData4Edit($contact);
    
$email $myts->makeTboxData4Edit($email);
    
$login $myts->makeTboxData4Edit($login);
    
$passwd $myts->makeTboxData4Edit($passwd);
    
$extrainfo $myts->makeTareaData4Edit($extrainfo);
    echo 
"<table width='100%' border='0' cellspacing='1' class='outer'><tr><td class="odd">";
    echo 
"
    <h4>"
._AM_EDITADVCLI."</h4>
    <form action='admin.php' method='post'>
    "
._AM_CLINAMET."<input type='text' name='name' value='$name' size='30' maxlength='60' /><br />
    "
._AM_CONTNAMET."<input type='text' name='contact' value='$contact' size='30' maxlength='60' /><br />
    "
._AM_CONTMAILT ."<input type='text' name='email' size='30' maxlength='60' value='$email' /><br />
    "
._AM_CLILOGINT."<input type='text' name='login' size='12' maxlength='10' value='$login' /><br />
    "
._AM_CLIPASST."<input type='text' name='passwd' size='12' maxlength='10' value='$passwd' /><br />
    "
._AM_EXTINFO."<br /><textarea name='extrainfo' cols='60' rows='10' />$extrainfo</textarea><br />
    <input type='hidden' name='cid' value='
$cid' />
    <input type='hidden' name='op' value='BannerClientChange' />
    "
.$GLOBALS['xoopsSecurity']->getTokenHTML()."
    <input type='hidden' name='fct' value='banners' />
    <input type='submit' value='"
._AM_CHGCLI."' />";
    echo 
"</td></tr></table>";
    
xoops_cp_footer();
}

}

?>

Posté le : 01/01/2007 22:07

La connaissance s'accroît quand on la partage ...
Partager Twitter Partagez cette article sur GG+
Re: Validation XHTML 1.0 Transitional! petit souci de xoops
Régulier
Inscrit: 19/04/2003 11:57
Messages: 276
Hahaha

J'était en train d'éditer quand tu as répondus lol

Citation :

Edit :

J'ai trouver il a fallut que j'efface la bannière de la base mysql de xoops pour la remettre et la le code à été mis à jour
J'avais bien penser à faire cette manip mais seulement en éditant la bannière et en l'enregistrant à nouveau mais cela n'as pas suffit.

Ce qui est bon dans cette histoire Kris c'est que ton fichier avais quand même un souci. Ce foutus " ; "
Et comme les "bugs" me colle à la peau c'est moi qui suis tomber dessus le premier



En faite le code était stocker dans la base de donnée
Merci pour ton aide Kris

Posté le : 01/01/2007 22:22

Cordialement,
Theking83
www.ltdw.net
Partager Twitter Partagez cette article sur GG+

 Haut   Précédent   Suivant



Vous pouvez voir les sujets.
Vous ne pouvez pas débuter de nouveaux sujets.
Vous ne pouvez pas répondre aux contributions.
Vous ne pouvez pas éditer vos contributions.
Vous ne pouvez pas effacez vos contributions.
Vous ne pouvez pas ajouter de nouveaux sondages.
Vous ne pouvez pas voter en sondage.
Vous ne pouvez pas attacher des fichiers à vos contributions.
Vous ne pouvez pas poster sans approbation.

Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

64 Personne(s) en ligne (51 Personne(s) connectée(s) sur Forum) | Utilisateur(s): 0 | Invité(s): 64 | Plus ...