Browse Source

reorganisation des jauges d eco

master
heuzef 9 years ago
parent
commit
28ef8f0c75
2 changed files with 55 additions and 38 deletions
  1. +6
    -6
      medias/c0f08ae603e364cb554fe71c9fc94ffd/player.xml
  2. +49
    -32
      play/gamers.php

+ 6
- 6
medias/c0f08ae603e364cb554fe71c9fc94ffd/player.xml View File

@@ -7,12 +7,12 @@
<xp>0</xp> <xp>0</xp>
<money>0</money> <money>0</money>
<ecos> <ecos>
<verte>0</verte>
<bleue>0</bleue>
<jaune>0</jaune>
<rouge>0</rouge>
<blanche>0</blanche>
<noire>0</noire>
<verte>5</verte>
<bleue>5</bleue>
<jaune>5</jaune>
<rouge>5</rouge>
<blanche>5</blanche>
<noire>5</noire>
</ecos> </ecos>
<trans>default</trans> <trans>default</trans>
<notes>...</notes> <notes>...</notes>


+ 49
- 32
play/gamers.php View File

@@ -71,90 +71,107 @@ foreach($xml->entry as $entry) {
</div> </div>
<div class="panel-body"> <div class="panel-body">
<div class="row">
<div class="col-lg-1">
<?php button_modif_ecos("eco_verte_moins", $entry->nom, "<span style='color:green'>-</span>"); ?>
</div>
<div class="col-lg-4">
<p>Lorem ipsum dolor sit amet</p>
</div>
<div class="col-lg-1">
<?php button_modif_ecos("eco_verte_plus", $entry->nom, "<span style='color:green'>+</span>"); ?>
</div>
<div class="col-lg-1">
<?php button_modif_ecos("eco_bleue_moins", $entry->nom, "<span style='color:blue'>-</span>"); ?>
</div>
<div class="col-lg-4">
<p>Lorem ipsum dolor sit amet</p>
</div>
<div class="col-lg-1">
<?php button_modif_ecos("eco_bleue_plus", $entry->nom, "<span style='color:green'>+</span>"); ?>
</div>
</div>
<div class="row"> <div class="row">
<div class="col-lg-1"> <div class="col-lg-1">
<?php button_modif_ecos("eco_verte_moins", $entry->nom, "-"); ?>
<?php button_modif_ecos("eco_verte_moins", $entry->nom, "<span style='color:green'>-</span>"); ?>
</div> </div>
<div class="col-lg-9">
<div class="col-lg-4">
<div class="progress progress-striped active"> <div class="progress progress-striped active">
<div class="progress-bar-eco verte glow"><span style="width: <?php echo ($entry->ecos->verte)*20; ?>%"><?php echo $entry->ecos->verte; ?></span></div> <div class="progress-bar-eco verte glow"><span style="width: <?php echo ($entry->ecos->verte)*20; ?>%"><?php echo $entry->ecos->verte; ?></span></div>
</div> </div>
</div> </div>
<div class="col-lg-2">
<?php button_modif_ecos("eco_verte_plus", $entry->nom, "+"); ?>
<div class="col-lg-1">
<?php button_modif_ecos("eco_verte_plus", $entry->nom, "<span style='color:green'>+</span>"); ?>
</div> </div>
</div>
<div class="row">
<div class="col-lg-1"> <div class="col-lg-1">
<?php button_modif_ecos("eco_bleue_moins", $entry->nom, "-"); ?>
<?php button_modif_ecos("eco_bleue_moins", $entry->nom, "<span style='color:blue'>-</span>"); ?>
</div> </div>
<div class="col-lg-9">
<div class="col-lg-4">
<div class="progress progress-striped active"> <div class="progress progress-striped active">
<div class="progress-bar-eco bleue glow"><span style="width: <?php echo ($entry->ecos->bleue)*20; ?>%"><?php echo $entry->ecos->bleue; ?></span></div> <div class="progress-bar-eco bleue glow"><span style="width: <?php echo ($entry->ecos->bleue)*20; ?>%"><?php echo $entry->ecos->bleue; ?></span></div>
</div> </div>
</div> </div>
<div class="col-lg-2">
<?php button_modif_ecos("eco_bleue_plus", $entry->nom, "+"); ?>
<div class="col-lg-1">
<?php button_modif_ecos("eco_bleue_plus", $entry->nom, "<span style='color:green'>+</span>"); ?>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-lg-1"> <div class="col-lg-1">
<?php button_modif_ecos("eco_jaune_moins", $entry->nom, "-"); ?>
<?php button_modif_ecos("eco_jaune_moins", $entry->nom, "<span style='color:#FFD700'>-</span>"); ?>
</div> </div>
<div class="col-lg-9">
<div class="col-lg-4">
<div class="progress progress-striped active"> <div class="progress progress-striped active">
<div class="progress-bar-eco jaune glow"><span style="width: <?php echo ($entry->ecos->jaune)*20; ?>%"><?php echo $entry->ecos->jaune; ?></span></div> <div class="progress-bar-eco jaune glow"><span style="width: <?php echo ($entry->ecos->jaune)*20; ?>%"><?php echo $entry->ecos->jaune; ?></span></div>
</div> </div>
</div> </div>
<div class="col-lg-2">
<?php button_modif_ecos("eco_jaune_plus", $entry->nom, "+"); ?>
<div class="col-lg-1">
<?php button_modif_ecos("eco_jaune_plus", $entry->nom, "<span style='color:#FFD700'>+</span>"); ?>
</div> </div>
</div>
<div class="row">
<div class="col-lg-1"> <div class="col-lg-1">
<?php button_modif_ecos("eco_rouge_moins", $entry->nom, "-"); ?>
<?php button_modif_ecos("eco_rouge_moins", $entry->nom, "<span style='color:red'>-</span>"); ?>
</div> </div>
<div class="col-lg-9">
<div class="col-lg-4">
<div class="progress progress-striped active"> <div class="progress progress-striped active">
<div class="progress-bar-eco rouge glow"><span style="width: <?php echo ($entry->ecos->rouge)*20; ?>%"><?php echo $entry->ecos->rouge; ?></span></div> <div class="progress-bar-eco rouge glow"><span style="width: <?php echo ($entry->ecos->rouge)*20; ?>%"><?php echo $entry->ecos->rouge; ?></span></div>
</div> </div>
</div> </div>
<div class="col-lg-2">
<?php button_modif_ecos("eco_rouge_plus", $entry->nom, "+"); ?>
<div class="col-lg-1">
<?php button_modif_ecos("eco_rouge_plus", $entry->nom, "<span style='color:red'>+</span>"); ?>
</div> </div>
</div> </div>
<hr />
<div class="row"> <div class="row">
<div class="col-lg-1"> <div class="col-lg-1">
<?php button_modif_ecos("eco_blanche_moins", $entry->nom, "-"); ?>
<?php button_modif_ecos("eco_blanche_moins", $entry->nom, "<span style='color:#ADDFFF'>-</span>"); ?>
</div> </div>
<div class="col-lg-9">
<div class="col-lg-4">
<div class="progress progress-striped active"> <div class="progress progress-striped active">
<div class="progress-bar-eco blanche glow"><span style="width: <?php echo ($entry->ecos->blanche)*20; ?>%"><?php echo $entry->ecos->blanche; ?></span></div> <div class="progress-bar-eco blanche glow"><span style="width: <?php echo ($entry->ecos->blanche)*20; ?>%"><?php echo $entry->ecos->blanche; ?></span></div>
</div> </div>
</div> </div>
<div class="col-lg-2">
<?php button_modif_ecos("eco_blanche_plus", $entry->nom, "+"); ?>
<div class="col-lg-1">
<?php button_modif_ecos("eco_blanche_plus", $entry->nom, "<span style='color:#ADDFFF'>+</span>"); ?>
</div> </div>
</div>
<div class="row">
<div class="col-lg-1"> <div class="col-lg-1">
<?php button_modif_ecos("eco_noire_moins", $entry->nom, "-"); ?>
<?php button_modif_ecos("eco_noire_moins", $entry->nom, "<span style='color:#8128B5'>-</span>"); ?>
</div> </div>
<div class="col-lg-9">
<div class="col-lg-4">
<div class="progress progress-striped active"> <div class="progress progress-striped active">
<div class="progress-bar-eco noire glow"><span style="width: <?php echo ($entry->ecos->noire)*20; ?>%"><?php echo $entry->ecos->noire; ?></span></div> <div class="progress-bar-eco noire glow"><span style="width: <?php echo ($entry->ecos->noire)*20; ?>%"><?php echo $entry->ecos->noire; ?></span></div>
</div> </div>
</div> </div>
<div class="col-lg-2">
<?php button_modif_ecos("eco_noire_plus", $entry->nom, "+"); ?>
<div class="col-lg-1">
<?php button_modif_ecos("eco_noire_plus", $entry->nom, "<span style='color:#8128B5'>+</span>"); ?>
</div> </div>
</div> </div>
<hr />
<hr />
<div class="list-group col-lg-9"> <div class="list-group col-lg-9">
<a class="list-group-item"> <a class="list-group-item">
<button class="btn btn-default btn-xs" data-toggle="modal" data-target="#notes<?php echo $itemnb; ?>" style="float:right;"><i class="ionicons ion-edit"></i></button> <button class="btn btn-default btn-xs" data-toggle="modal" data-target="#notes<?php echo $itemnb; ?>" style="float:right;"><i class="ionicons ion-edit"></i></button>


Loading…
Cancel
Save