<?php

if (!$_SERVER["REMOTE_USER"]) {
  echo "Not Allowed";
  exit();
 }

require_once("config.php");

$id=intval($_REQUEST["id"]);

$m=mqone("SELECT * FROM media WHERE id='$id';");

if (!$id || !$m) {
  $error[]="ID de media non fourni ou media non trouv� !";
  require_once("index.php");
  exit();
 }

require_once("head.php");

?>

<iframe id="view" name="view" style="position: fixed; top: 30px; right: 30px; width: 500px; height: 450px; border: 2px inset blue; padding: 2px" src="view.php?id=<?=$id; ?>&size=small"></iframe>

<iframe id="tcedit" name="tcedit" style="position: fixed; top: 90px; left: 30px; width: 500px; height: 200px; border: 2px inset blue" src="edittc_form.php?id=<?=$id; ?>"></iframe>
<iframe id="tclist" name="tclist" style="position: fixed; top: 300px; left: 30px; width: 500px; height: 270px; border: 2px inset blue" src="edittc_list.php?id=<?=$id; ?>"></iframe>


<?php
  require_once("foot.php");
?>