IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Mise en page CSS Discussion :

Comment afficher date CSS


Sujet :

CSS

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre averti
    Inscrit en
    Janvier 2007
    Messages
    22
    Détails du profil
    Informations forums :
    Inscription : Janvier 2007
    Messages : 22
    Par défaut Comment afficher date CSS
    Bonjour,
    Voila j 'ai recuperer un template pour Joomla, ( d'accord ce n'est pas de la vrai programmation mais je suis pas tres fort dans ce domaine et joomla me suffit).
    Par contre dans le fichier CSS j'ai ceci :

    .date{
    font-family : Geneva, Arial, Helvetica, sans-serif;
    color : #000000;
    font-size : 14px;
    font-weight: : bold;
    }

    il m'affiche une date de ce type: 23-06-2008
    J'aimerais quelque chose du genre " Nous sommes le lundi 23 juin 2008" voir seulement " lundi 23 juin"

    Que rajouter de plus ?
    j'ai recherché sur Google mais je n'ai rien trouvé qui se rapprochai de mon exemple.

    Merci

  2. #2
    Membre Expert Avatar de Er3van
    Homme Profil pro
    Architecte Logiciel
    Inscrit en
    Avril 2008
    Messages
    1 430
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Architecte Logiciel
    Secteur : Industrie

    Informations forums :
    Inscription : Avril 2008
    Messages : 1 430
    Par défaut
    Ca ne se fait pas au niveau du CSS mais au niveau du code PHP.

    Montre ton code/template et on pourra t'aider

  3. #3
    Rédacteur

    Avatar de Bovino
    Homme Profil pro
    Développeur Web
    Inscrit en
    Juin 2008
    Messages
    23 647
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 55
    Localisation : France, Gironde (Aquitaine)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Juin 2008
    Messages : 23 647
    Billets dans le blog
    20
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    .date{
    font-family : Geneva, Arial, Helvetica, sans-serif;
    color : #000000;
    font-size : 14px;
    font-weight: : bold;
    }
    n'a rien à voir avec une date... ça détermine juste l'affichage visuel des élément ayant la classe "date" dans la page...
    Pas de question technique par MP !
    Tout le monde peut participer à developpez.com, vous avez une idée, contactez-moi !
    Mes formations video2brain : La formation complète sur JavaScriptJavaScript et le DOM par la pratiquePHP 5 et MySQL : les fondamentaux
    Mon livre sur jQuery
    Module Firefox / Chrome d'intégration de JSFiddle et CodePen sur le forum

  4. #4
    Membre averti
    Inscrit en
    Janvier 2007
    Messages
    22
    Détails du profil
    Informations forums :
    Inscription : Janvier 2007
    Messages : 22
    Par défaut
    C'est vrai que je viens de me rappeler que le CSS ne sert seulement qu'a modéliser l'aspect du site et non d'ajouter certains éléments c'est ça ?

    Alors voici mon code PHP:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
     
     
    <?php defined( "_VALID_MOS" ) or die( "Direct Access to this location is not allowed." );?>
    <!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>
    <?php if ( $my->id ) { initEditor(); } ?>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9">
    <?php mosShowHead(); ?>
    <?php echo "<link rel=\"stylesheet\" href=\"$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/css/template_css.css\" type=\"text/css\"/>" ; ?><?php echo "<link rel=\"shortcut icon\" href=\"$GLOBALS[mosConfig_live_site]/images/favicon.ico\" />" ; ?>
    <link href="css/template_css.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    body {
    	background-color: #FFFFFF;
    }
    body,td,th {
    	font-family: Geneva, Arial, Helvetica, sans-serif;
    }
    .style1 {color: #FFFFFF}
    .style2 {font-size: 2px}
    -->
    </style></head>
     
    <body>
     
    <div align="center">
      <table width="999" height="547" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td height="150" align="center" valign="top" bgcolor="#666666"><table width="999" height="200" border="0" cellpadding="0" cellspacing="0">
            <tr align="center">
              <td height="180" colspan="3" class="banner"><span class="style2"><br />
                <br />
                <br />
                </span><br />
     
                </td>
            </tr>
            <tr>
              <td width="32" height="13" class="sol">&nbsp;</td>
              <td width="935"><div align="left">
                <?php mosPathWay(); ?>
                </div></td>
              <td width="32" class="sag">&nbsp;</td>
              </tr>
          </table></td>
        </tr>
        <tr>
          <td height="353" align="center" valign="top"><table width="100%" height="359" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr align="left" valign="top">
              <td width="32" height="359" class="sol">&nbsp;</td>
              <td width="934"><table width="100%" height="365" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td width="155" align="center" valign="top" class="mod"><div align="left">
                    <?php mosLoadModules ( 'left' ); ?>
              </div></td>
                  <td width="624" align="center" valign="top" class="ana"><div align="left">
                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                      <tr>
                        <td colspan="3"><div align="center"><span class="date"><?php echo mosCurrentDate(); ?></span></div></td>
                        </tr>
                      <tr>
                        <td width="1%">&nbsp;</td>
                        <td width="50%"><?php mosLoadModules ( 'user1' ); ?></td>
                        <td width="49%"><div align="left">
                          <?php mosLoadModules ( 'user2' ); ?>
                        </div></td>
                        </tr>
                    </table>
                                <table width="100%" height="346" border="0" cellpadding="0" cellspacing="0">
                                  <tr>
                                    <td>&nbsp;</td>
                                    <td><?php mosMainBody(); ?></td>
                                  </tr>
                                  <tr>
                                    <td width="1%">&nbsp;</td>
                                    <td width="98%" align="center" valign="top"><table width="612" border="0" cellpadding="0" cellspacing="0">
                                      <tr>
                                        <td>&nbsp;</td>
                                        <td>&nbsp;</td>
                                      </tr>
                                      <tr>
                                        <td width="306"><?php mosLoadModules ( 'user3' ); ?></td>
                                        <td width="306"><?php mosLoadModules ( 'user4' ); ?></td>
                                      </tr>
                                      <tr>
                                        <td colspan="2"><div align="center">
                                          <div align="center"></div>
                                          </div></td>
                                      </tr>
                                    </table>
                                    </td>
                                  </tr>
                          </table>
                  </div></td>
                  <td width="155" align="center" valign="top" background="gif" class="mod"><div align="left">
                    <?php mosLoadModules ( 'right' ); ?>
                  </div></td>
                </tr>
              </table></td>
              <td width="32" class="sag">&nbsp;</td>
            </tr>
          </table></td>
        </tr>
        <tr>
          <td height="29" align="center" valign="top"><table width="100%" height="42" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td width="50" height="42" class="sol_alt">&nbsp;</td>
              <td width="899" class="alt_orta"><div align="center"><br />
                  <span class="style1">created by <a href="mailto:RakipG@hotmail.com">RakipG</a></span></div></td>
              <td width="50" class="sag_alt">&nbsp;</td>
            </tr>
          </table></td>
        </tr>
      </table>
    </div>
    </body>
    </html>

  5. #5
    Membre émérite Avatar de pop_up
    Profil pro
    Inscrit en
    Avril 2006
    Messages
    877
    Détails du profil
    Informations personnelles :
    Localisation : France, Rhône (Rhône Alpes)

    Informations forums :
    Inscription : Avril 2006
    Messages : 877
    Par défaut
    Tout d'abord, merci de modifier tes posts et de mettre ton code entre balises [code] représenté par le symbole #.

    Sinon ton problème n'étant pas css, autant demander dans le forum php.

    enfin, une solution à l'ai d'avoir été trouvé à cette adresse

    je te laisse regarder

  6. #6
    Membre averti
    Inscrit en
    Janvier 2007
    Messages
    22
    Détails du profil
    Informations forums :
    Inscription : Janvier 2007
    Messages : 22
    Par défaut
    Une question peut être bête.... comment on déplace le sujet dans une autre catégorie ?

  7. #7
    Membre émérite Avatar de pop_up
    Profil pro
    Inscrit en
    Avril 2006
    Messages
    877
    Détails du profil
    Informations personnelles :
    Localisation : France, Rhône (Rhône Alpes)

    Informations forums :
    Inscription : Avril 2006
    Messages : 877
    Par défaut
    pour le déplacer il faudra demander a un modérateur je pense.

    Sinon tu peux recréer un post dans le forum php en mettant le lien vers celui-ci.


Discussions similaires

  1. Comment afficher les fichier css?
    Par tnounou82 dans le forum Internet
    Réponses: 3
    Dernier message: 15/05/2007, 12h27
  2. [JS] comment afficher la date actuel?
    Par adil_vpb dans le forum Général JavaScript
    Réponses: 2
    Dernier message: 02/03/2007, 11h05
  3. [C#] Comment afficher une date sur un <asp:calendar> ?
    Par fresh94 dans le forum ASP.NET
    Réponses: 3
    Dernier message: 20/07/2006, 15h55
  4. Réponses: 4
    Dernier message: 16/06/2006, 04h29
  5. [XML/CSS] Comment afficher le fond pour l'impression
    Par askeur dans le forum Mise en page CSS
    Réponses: 4
    Dernier message: 09/11/2005, 01h19

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo