コード例 #1
0
ファイル: forum.php プロジェクト: jdieu/filmatikscopie
						
						<div class="all-50 small-100 tiny-100">
							<form class="ink-form" enctype="multipart/form-data" action="forum.php?er=0" method="post">
								<div class="control-group panel" style="background-color : #ededed">
									<label for="pseudo">Pseudo</label>
									<div class="control">
										<input type="text" name="pseudo" id="pseudo" value="<?php 
    echo $pseudo;
    ?>
" required/>
									</div>
									
									<div style="text-align : right">
										<?php 
    $pseudo = $_SESSION['pseudo_af93b9fd121b211f85c2668c1b96706f'];
    $req_pseudo = req_pseudo($pseudo);
    $nb_message_pseudo = $req_pseudo->fetch();
    if ($nb_message_pseudo['nb_message'] == '0') {
        echo '<small><i>Tu n\'as posté encore aucun message</i></small>';
    } else {
        if ($nb_message_pseudo['nb_message'] == '1') {
            echo '<small><i>Tu as posté <b>' . $nb_message_pseudo['nb_message'] . '</b> message</i></small>';
        } else {
            echo '<small><i>Tu as posté <b>' . $nb_message_pseudo['nb_message'] . '</b> messages</i></small>';
        }
    }
    ?>
									</div>
									
									<label for="message">Message</label>
									<div class="control">
コード例 #2
0
ファイル: forum.php プロジェクト: alexiscotel/walk-away
echo $pseudo;
?>
&er=0" method="post">
								<div class="control-group panel" style="background-color : #ededed">
									<label for="pseudo">Pseudo</label>
									<div class="control">
										<input type="text" name="pseudo" id="pseudo" value="<?php 
echo $pseudo;
?>
" required/>
									</div>
									
									<div style="text-align : right">
										<?php 
include 'model/fonc_connect.php';
$req_pseudo = req_pseudo($_GET['pseudo']);
$nb_message_pseudo = $req_pseudo->fetch();
echo '<small><i><b>' . $_GET['pseudo'] . '</b> a posté <b>' . $nb_message_pseudo['nb_message'] . '</b> messages</i></small>';
?>
									</div>
									
									<label for="message">Message</label>
									<div class="control">
										<textarea name="message" id="message" required/></textarea>
									</div>
									
									<button type="submit" class="ink-button" style="width : 100%; margin-left : 0px; margin-top : 25px">
										Publier
									</button>
									
									<?php