Ejemplo n.º 1
0
	<body>
		<a href="index.php"><h1>Simple StackExchange</h1></a>
		<form action="search.php" method="GET" name="search">
			<p align="center">
				<input type="text" name="search" class="search" placeholder="Search here..."></input>
				<input class="button" type="submit" value="Search" onclick="search.php">
			</p>
		</form>
		
		<h5>Cannot find what you are  looking for? <a href="ask.php"><span id="link">Ask here</span></a></h5>
		<h4>Recently Asked Questions</h4>
		
		<div class="garis"></div>
		<?php 
include 'dbact.php';
$dislplay_question = getAllQuestion();
$number = count($dislplay_question);
if ($dislplay_question != NULL && $number != 0) {
    foreach ($dislplay_question as $q) {
        ?>
					<table class="question">
						<tr>
							<td class="number">
								<?php 
        echo $q['nvote'];
        ?>
							</td>
							<td class="number">
								<?php 
        echo $q['nAns'];
        ?>
Ejemplo n.º 2
0
</strong></p>
                    <p>Région: <strong><?php 
    echo $unContact['IDREGION_CONTACT'];
    ?>
</strong></p>
                    <!--<a type="button" href="sip:<?php 
    echo $unContact['NUMTEL_CONTACT'];
    ?>
" id="btnAppel" class="btn btn-success"><i class="fa fa-phone"></i> Appeler</a>-->
                </div>
            </div>
        </div>
        <?php 
    $note = $unContact['notes'];
}
$allQuestion = $nbQuestion = getAllQuestion($bdd, $idForm);
$nbQuestion = $nbQuestion->rowCount();
$numQuestion = 1;
while ($uneQuestion = $allQuestion->fetch()) {
    ?>
        <form id="form<?php 
    echo $numQuestion;
    ?>
" class="question" method="post" action=""
              title="<?php 
    echo $uneQuestion['TYPE_QUESTION'];
    ?>
">
            <div id="panel<?php 
    echo $numQuestion;
    ?>