vue PhpSimul AgeOfReborn ! :)
Kommunauty
Connexion
Inscription

PhpSimul AgeOfReborn ! :)


bobypoke Messages : 58

Bonjour, voila je reprend phpsimul x-) vieux mais je ne trouve rien de mieux dans se style.

J'aimerais ajouter l'affichage du temps sur la carte/Batiments (voir image)

Code de VoirBatiment.html :

<table border='0' align='center'>
<tr><td align='center'><b>{{nom}}</b></td></tr>
<tr><td align='center'><a href="?mod=infosct&bat={{id}}", "1");'>
<img src='templates/{{theme}}/images/batiments/{{image}}.gif'></a></td></tr>
<tr><td align='center'>Niveau : {{niveau}}</td></tr>
<tr><td align='center'>{{description}}</td></tr>
<tr><td align='center'>{{ressources}} {{temps}}</td></tr>
<tr><td align='center'>{{temps_avant_dispo}}</td></tr>
<tr><td align='center'>{{lien}}</td></tr>
</table>
<button type="button" onclick="window.history.back();" >Retour</button>

Code de la Carte :

<!-- PHPsimul : Carte batiments D -->

<div id="curseur" class="infobulle"></div>

<html>

<table border="0" cellpadding="0" cellspacing="0" align='center' valign='bottom'>

<tr>
<td background='templates/{{theme}}/images/carte/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{1}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{2}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{3}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{4}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{5}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{6}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{7}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{8}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{9}}
</td>
</tr>

<tr>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{10}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{11}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{12}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{13}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{14}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{15}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{16}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{17}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{18}}
</td>
</tr>

<tr>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{19}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{20}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{21}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{22}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{23}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{24}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{25}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{26}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{27}}
</td>
</tr>

<tr>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{28}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{29}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{30}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{31}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{32}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{33}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{34}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{35}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{36}}
</td>
</tr>

<tr>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{37}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{38}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{39}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{40}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{41}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{42}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{43}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{44}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{45}}
</td>
</tr>

<tr>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{46}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{47}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{48}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{49}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{50}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{51}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{52}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{53}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{54}}
</td>
</tr>

<tr>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{55}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{56}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{57}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{58}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{59}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{60}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{61}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{62}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{63}}
</td>
</tr>

<tr>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{64}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{65}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{66}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{67}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{68}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{69}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{70}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{71}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{72}}
</td>
</tr>

<tr>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{73}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{74}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{75}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{76}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{77}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{78}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{79}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{80}}
</td>
<td background='templates/{{theme}}/images/carte/{{ordre_3}}/fond.gif' width='64' height='64' align='center' valign='bottom'>
{{81}}
</td>
</tr>
</table>
</html>
<table border='0' align='center'>
<tr><td align='center'><b>{{nom}}</b></td></tr>
<tr><td align='center'><a href="?mod=infosct&bat={{id}}", "1");'>
<img src='templates/{{theme}}/images/batiments/{{image}}.gif'></a></td></tr>
<tr><td align='center'>Niveau : {{niveau}}</td></tr>
<tr><td align='center'>{{description}}</td></tr>
<tr><td align='center'>{{ressources}} {{temps}}</td></tr>
<tr><td align='center'>{{temps_avant_dispo}}</td></tr>
<tr><td align='center'>{{lien}}</td></tr>
</table>
<!-- PHPsimul : Carte batiments F -->

Code de Batiment.html


<!--AFFICHAGE_CHOIX_TYPE_BATIMENTS_A_VOIR-->

<table>
<tr>
<td>
<a href="?mod=batiments&type=1&case={case}">
Batiments Ressources
</a>
</td>
<td>
     
</td>
<td>
<a href="?mod=batiments&type=2&case={case}">
Batiments Militaire
</a>
</td>
<td>
     
</td>
<td>
<a href="?mod=batiments&type=3&case={case}">
Batiments Scientifique
</a>
</td>
</tr>
</table>
<br>
<br>


<!--/AFFICHAGE_CHOIX_TYPE_BATIMENTS_A_VOIR-->





<table border='1' width='100%'>

{BALISE id=1}

<tr>
<td width="15%">
<a href="?mod=infosct&bat={id}", "1");'>
<img src='templates/{theme}/images/batiments/{image}.gif'>
</a>
</td>
<td width="65%">
<b>{nom}</b> {niveau}<br>{description}<br> {temps_avant_dispo}
</td>
<td align="center" width="20%">
<br> {ressources}
{temps}<br><br>
{lien}
</td>
</tr>

{/BALISE}

</table>

Voila si qqn sais m help

lundi 28 aout 2017

bobypoke Messages : 58

Ou si QQN connais un CMS du style PHPSIMUL mais un peu plus Neuf

lundi 28 aout 2017

Homer Messages : 1925

Hum, si le fonctionnement de phpsimul est comme xnova, tu dois définir tes variables en php via le fichier qui appel ton template, et ensuite tu pourra les afficher dans le template.

En cherchant bien, peut etre dans d'autre langue que le francais, je doit pouvoir trouver un équivalent à jour

mardi 29 aout 2017

Homer Messages : 1925

Comme ça ?

Si tu veux modifier un peu pour le mettre à ton gout :

fichier php pour la déclaration des variables : /modules/system/batiment2.php (tout à la fin )

pour le template : templates/default/voirbatiment-grille.html

mardi 29 aout 2017 (Dernière édition mardi 29 aout 2017)

bobypoke Messages : 58

:O tueur GRAND POUCE VERT LE HAUT

mardi 29 aout 2017

bobypoke Messages : 58

code ?

samedi 5 mai 2018

bobypoke Messages : 58

Tu as le code car tu as mis sa mais aucunes reponses reel lol

dimanche 6 mai 2018

bobypoke Messages : 58

H E L P

S V P

lundi 7 mai 2018

bobypoke Messages : 58

?

mardi 8 mai 2018

OaladesSomatesTignon Messages : 292

!

mardi 8 mai 2018

Page suivante »