1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
|
<!DOCTYPE html>
<html>
<head>
<title>E-O.me</title>
<link rel="stylesheet" type="text/css" href="../design/questions.css" media="all"/>
<link rel="stylesheet" type="text/css" href="../design/profile.css" media="all"/>
<link rel="stylesheet" type="text/css" href="../design/index.css" media="all"/>
<link rel="stylesheet" type="text/css" href="../design/footer.css" media="all"/>
<link rel="stylesheet" type="text/css" href="../design/signup.css" media="all"/>
<script src="js/jquery-1.4.3.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
<script type="text/javascript" src="http://jquery-elastic.googlecode.com/svn/trunk/jquery.elastic.source.js"></script>
<?php include('../config.php'); ?>
<!--[if IE]>
<link rel="shortcut icon" type="image/x-icon" href="../design/images/favicon.ico" />
<![endif]-->
<link rel="shortcut icon" type="image/gif" href="../design/images/favicon.gif" />
<script type="text/javascript">
$(".deletebox").click(function() {
// mettre un point d'arrêt ici
var idSupprime = $(this).is("div") ? $(this).attr("id") : $(this).parent().parent().attr("id");
$.ajax({
type: "POST",
url: "scripts/del.php",
data: { id: idSupprime },
success: function(data, textStatus, jqXHR) {
// et éventuellement un autre ici pour voir si le serveur répond
if (textStatus === "OK")
$("#" + idSupprime).fadeOut(200).hide();
}
});
});
</script>
</head>
<body>
<?php
include '../menu/connected_question.php';
include 'set_wallpaper_not_profil.php';
?>
<div id="central" style="background:url(settings/<?php echo $row_wall[0];?>);">
<div id="wrapper">
<div id="container">
<div id="headline">
Questions
</div>
<?php
$login = $_SESSION['login'];
$sqlquest = "UPDATE questions SET unread='non' WHERE pagename='".$login."'";
$reqquest = mysqli_query($aVar, $sqlquest);
$sql = "SELECT * FROM questions WHERE pagename='".$login."' ORDER BY dateheure DESC";
$req = mysqli_query($aVar, $sql);
$only_id = 0;
while ($data = mysqli_fetch_array($req))
{
?>
<p><div class="fantome">
<div class="deletebox" id="deletebox<?php echo $only_id?>">
<form method="post", action="#" id="form_del">
<input type="hidden" name="id" value="<?php echo $data['id']?>">
<input type="submit" class="deletebox" value=""/>
</form>
</div>
<div id="questiontotal">
<span class="questionquestion"><?php echo ''.$data['question'].' </span>';
?>
</div>
<div id="timequestion">
<?php $sqlid = "SELECT id FROM questions WHERE id='".$data['id']."'";
$nameid = mysqli_query($aVar, $sqlid);
$id = mysqli_fetch_array($nameid);
$sqldate = "SELECT dateheure FROM questions WHERE id='".$id[0]."'";
$resultdate = mysqli_query($aVar, $sqldate);
$rowdate = mysqli_fetch_array($resultdate);
?>
<?php include('affiche_temps.php'); ?>
</div>
<div id="repondre">
<a class="repondrelink" href="questions/reply.php?question=<?php echo $data['id'];?>">Répondre</a> <font color="gray"> / </font> Enregistrer une réponse vidéo
</div>
<div id="borderquestion"></div>
</div></p> <?php
++$only_id;
}
mysqli_free_result ($req);
mysqli_close ($aVar);
?>
</div>
<?php include '../footer/footer.php'; ?>
</div>
</div>
</body>
</html> |
Partager