/**
 *	Prints all questions stored in the Mysql database
 */
function printQuestions()
{
    $link = connect();
    $q = "SELECT * FROM " . QUESTIONS_TABLE;
    $result = mysql_query($q) or err("No database configured yet, please use the admin interface!");
    while ($row = mysql_fetch_array($result)) {
        printQuestion($row);
    }
    disconnect();
}
  </div>
</div>

<div class="panel panel-default">
  <div class="panel-heading">
    <h3 class="panel-title">Volunteering</h3>
  </div>
  <div class="panel-body">
    <dl>
      <?php 
printQuestion('How have you been involved with Open Streets Cape Town so far?', 'interaction', 'interaction_options');
?>
      <?php 
printQuestion('How would you like to be involved?', 'involve', 'involvement_options');
?>
      <?php 
printQuestion('Please specify', 'involve-specify');
?>
    </dl>
  </div>
</div>



<?php 
require_once 'include.footer.php';
?>

</body>
</html>
    ?>
</td>
      <td><?php 
    printQuestion($id, 'subscriptions', 'preference_options');
    ?>
</td>
      <td><?php 
    printQuestion($id, 'interaction', 'interaction_options');
    ?>
</td>
      <td><?php 
    printQuestion($id, 'involve', 'involvement_options');
    ?>
</td>
      <td><?php 
    printQuestion($id, 'involve-specify');
    ?>
</td>
</tr>
<?php 
}
?>
</table>

<?php 
require_once 'include.footer.php';
?>

</body>
</html>
Exemple #4
0
  </div>
</nav>
</div>

  
<div class="article">
    <div class="section">
	     <abbr title="You can make some question here.">  <strong><h2>Post a question or idea</h2></strong></abbr>
	   <form action="AddPost.php"  method="post">
	      <span style="float:left;"><input type="text" class="form-control"  name="avtor" placeholder="Name"></span></br>
		<br> <span style="clear:both;"><input type="text" class="form-control" name="tema" placeholder="Your question"></span></br>
	     <textarea class="form-control" name="vapros" cols="50" rows="5" placeholder="Text area"></textarea></br>
	    <span style="float:right;">  <input type="submit" class="btn btn-warning" name="submit" placeholder="Send"> </span>
	   </form>
   
   </div></br><div class="section1">
<?php 
$returned = 1;
include "functions.php";
for ($i = 1; $returned; $i++) {
    $returned = printQuestion($i);
}
?>
</div>
<div class="footer">
Copyright © Sinapse.com
</div>

</body>
</html>
Exemple #5
0
  <input type="text" class="form-control" placeholder="Search...">
  <input type="submit" class="form-control" value="Submit" placeholder="Submit" id="submit">
	
    </form>
   </ul>
  </nav>
  </div>
</nav>
</div>
<div>
	
	<div class="section1">
	<?php 
include "functions.php";
$id = $_GET['id'];
printQuestion($id);
?>
	<div class="commform">
    <form method="post" action="dobavi_otgovor.php">
	  <input type="text" name="postedby" class="form-control" id="postedby" placeholder="Commented By:"></br>	  	
	  <br><textarea class="form-control" name="news" id="news" cols="50" rows="5"></textarea></br>
	  <input type="Submit" name="submit" class="btn btn-primary" id="submit" value="Enter Comments">
</form></div>
   	<?php 
$id = $_GET['id'];
printCOMENT($id);
?>
      
    </div>

</div>