Commit 358a0b97 authored by Arnaud Bey's avatar Arnaud Bey
Browse files

Merge pull request #1 from benabri/master

 modif de la dl du fichier druid.card et suppression d'un des 2 </div…
parents 48b1a23c 49e6bd38
...@@ -11,26 +11,32 @@ echo "<style>.lacarte{margin-bottom:1em;padding:3px; position:relative;backgroun ...@@ -11,26 +11,32 @@ echo "<style>.lacarte{margin-bottom:1em;padding:3px; position:relative;backgroun
.thethemes div{font-weight:bold} .thethemes div{font-weight:bold}
.lacarte header{font-weight:normal;font-size:small;text-align:left;} .lacarte header{font-weight:normal;font-size:small;text-align:left;}
.auteur{background-color:white; text-align:left;}</style>"; .auteur{background-color:white; text-align:left;}</style>";
$res = "<div class='lacarte'><div> $res = "<div class='lacarte'>
<div class='niveauMin'>".$card->get_level()."</div> <div>
<div class='lalangue'>ID&nbsp;: ".$card->get_id()." (".$card->get_lang().")</div> <div class='niveauMin'>".$card->get_level()."</div>
<!--div class='categoriecat'>".$card->get_cat()."</div--> <div class='lalangue'>ID&nbsp;: ".$card->get_id()." (".$card->get_lang().")</div>
<div class='thethemes'><header>".$lang['theme']."&nbsp;:</header>"; <!--div class='categoriecat'>".$card->get_cat()."</div-->
foreach($card->get_themes() as $theme){ <div class='thethemes'>
$res .= "<div>$theme</div>"; <header>".$lang['theme']."&nbsp;:</header>";
} foreach($card->get_themes() as $theme){
$res.="</div> $res .= "<div>$theme</div>";
</div> }
<div> $res.="</div>
<div class='motCleCle motVedette'><header>".$lang['word_to_find']."&nbsp;:</header>".$card->get_word()."</div> </div>
<div class='tabous'><header>".$lang["wordForbid"]."&nbsp;:</header>";
foreach($card->get_forbidden_words() as $word){ <div>
$res .= "<div class='motCleCle'>$word</div>\n"; <div class='motCleCle motVedette'>
} <header>".$lang['word_to_find']."&nbsp;:</header>".$card->get_word().
$res .= "</div> "</div>
</div> <div class='tabous'>
<!--div>TODO <header>".$lang["wordForbid"]."&nbsp;:</header>";
<div class='auteur'>".$card->get_author()." (".$card->get_time().")</div> foreach($card->get_forbidden_words() as $word){
</div--> $res .= "<div class='motCleCle'>$word</div>\n";
</div></div>"; }
$res .= "</div>
</div>
<!--div>TODO
<div class='auteur'>".$card->get_author()." (".$card->get_time().")</div>
</div-->
</div>";
?> ?>
\ No newline at end of file
...@@ -11,28 +11,30 @@ include('./views/page.header.html'); ...@@ -11,28 +11,30 @@ include('./views/page.header.html');
<legend>Erreurs</legend> <legend>Erreurs</legend>
<ul> <ul>
<?php foreach ( $this->errors as $error ) { ?> <?php foreach ( $this->errors as $error ) { ?>
<li> <li>
<?php echo $lang[$error]; ?> <?php echo $lang[$error]; ?>
</li> </li>
<?php } ?> <?php } ?>
</ul> </ul>
</fieldset> </fieldset>
<?php } ?> <?php } ?>
<fieldset> <fieldset>
<legend class="form-jr-heading"><?php echo $lang['card_preview']; ?></legend> <legend class="form-jr-heading"><?php echo $lang['card_preview']; ?></legend>
<dl> <dl>
<dt><label for="consigne"><?php echo $lang['id_describe'];?></label></dt> <dt><label for="consigne"><?php echo $lang['id_describe'];?></label></dt>
<dd>
<?php echo $this->card; ?>
</dd>
</dl> </dl>
<dl>
<?php echo $this->card; ?>
</dl>
<div id="form-cmd">
<input class="btn btn-lg btn-primary btn-block" type="submit" id="submit_form" name="submit_form" value="<?php echo $lang['return']; ?>" class="submit_buttons" />
</div>
</fieldset> </fieldset>
</form>
</div> <div id="form-cmd">
<input class="btn btn-lg btn-primary btn-block" type="submit" id="submit_form" name="submit_form" value="<?php echo $lang['return']; ?>" class="submit_buttons" />
</div>
</form>
</div>
<!-- <!--
ici rajouter un message d'erreur quand aucune carte n'existe dans la langue de l'utilisateur ici rajouter un message d'erreur quand aucune carte n'existe dans la langue de l'utilisateur
--> -->
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment