<?PHP
//........................
$table = "$prefix" . "OBJECTS";
$return = "objects.php";
//........................
if (!empty($_GET['id'])) {

        $SQL = "SELECT * from $table WHERE ID = '$_GET[id]'"; 
        $result = mySQL_query( $SQL ); 
        $row = mySQL_fetch_array( $result );

} 
include "dir.php";
$qt = update;
//........................
?>

<form name="form" method="post" action="index.php?page=query&return=<?php echo $_GET['return']; ?><?php if (!empty($_GET['return'])) { ?>&queryjump=1<?PhP } ?>">

<input type="hidden" name="controller" value="<?php echo $table; ?>~<?php echo $qt; ?>~<?php echo $return; ?>~<?php echo $_GET['id']; ?>">

<h1><?PHP /* (LANGUAGE) */ $t = "Video"; $f = "header"; include "langinc.php"; /* (LANGUAGE) */ ?></h1>

<table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr> 

<td style="padding-right:10px;" width="50%" valign="top"> 

<h3><?PHP /* (LANGUAGE) */ $t = "Title"; $f = "title"; include "langinc.php"; /* (LANGUAGE) */ ?></h3>

<input type="text" name="TITLE" class="fieldbox" style="width: 100%; margin-bottom: 20px;" value="<?php echo $row[TITLE]; ?>">

</td>

<td style="padding-left:10px;" width="50%" valign="top"> 

<h3><?PHP /* (LANGUAGE) */ $t = "YouTube Video URL"; $f = "youtubeurl"; include "langinc.php"; /* (LANGUAGE) */ ?></h3>

<input type="text" name="YOUTUBE" class="fieldbox" style="width: 100%;" value="<?php echo $row[YOUTUBE]; ?>">

</td>

</tr>

</table>

<h3>
<?PHP /* (LANGUAGE) */ $t = "Summary"; $f = "summary"; include "langinc.php"; /* (LANGUAGE) */ ?>
</h3>

<input type="text" name="CAPTION" class="fieldbox" style="width: 100%;" value="<?php echo $row[CAPTION]; ?>">
<table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td style="padding-right:10px;" width="100%" valign="top"> 

<h3 style="margin-top: 15px;">
<?PHP /* (LANGUAGE) */ $t = "Choose Categories"; $f = "category"; include "langinc.php"; /* (LANGUAGE) */ ?>
</h3>
<?php include "categorybrowser.php"; ?>

</td>
</tr>

</table>

<div style="float: right;">

<input class="sparklybutton" type="submit" name="Save" value="<?PHP /* (LANGUAGE) */ $t = "Save Entry"; $f = "submit"; include "langinc.php"; /* (LANGUAGE) */ ?>" style="margin-top: 15px;">

</div>

</form>
