Location: PHPKode > projects > UNKNOW > blog/admin/addobjects.php
<?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 = "Post"; $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 = "Summary"; $f = "summary"; include "langinc.php"; /* (LANGUAGE) */ ?></h3>

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

</td>

</tr>

</table>

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

<?PHP
//........................
$width = "898px";
function is_chrome() {
        return(eregi("chrome", $_SERVER['HTTP_USER_AGENT']));
}

if(is_chrome())
        $width = "100%";

function is_firefox() {
        return(eregi("firefox", $_SERVER['HTTP_USER_AGENT']));
}

if(is_firefox())
        $width = "100%";
//........................
?>

<textarea name="DESCRIPTION" id="area1" class="textbox" style="width: <?php echo $width; ?>; height: 300px;"><?php echo $row[DESCRIPTION]; ?></textarea>

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

<tr>

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

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

<?php include "categorybrowser.php"; ?>

</td>

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

<h3 style="margin-top: 15px;"><?PHP /* (LANGUAGE) */ $t = "Add Photos"; $f = "photo"; include "langinc.php"; /* (LANGUAGE) */ ?></h3>

<div class="primebox" style="width: 100%; height: 300px;"> 

<?PHP /* (LANGUAGE) */ $t = "Drag and drop images in to this box (Firefox, Chrome)"; $f = "photocaption"; include "langinc.php"; /* (LANGUAGE) */ ?>

<iframe height="250px" overflow="auto" src="../uploads/<?PHP echo $_GET[id]; ?>/index.php" frameborder="0" style="width: 100%;"> </iframe> </div>

</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>
Return current item: UNKNOW