Location: PHPKode > scripts > UNKNOW > videogallery/objects.php
<?PHP
//........................
if ($_GET[page] == browse) {
//........................
?>
<h1><?PHP
//........................
$link = h1;
$desc = "Edit main heading style.";
include "dmtop.php";
//........................
?><?php
//........................

$langtable = "$prefix" . "CATEGORIES";
$id = $_GET[id];
$t = "$title";
$field = "TITLE" . "$_GET[ln]";
include "langinccontent.php";
//........................
?><?PHP include "dmbot.php"; ?></h1><?PHP } ?>
<?PHP
        $link = listcontainer;
        $desc = "Edit main content box inner container style.";
        include "dmtop.php";
        include "dmbot.php";
?><div class="listcontainer"><?PHP
//........................

$table = "$prefix" . "OBJECTS";
$editpage = "addobjects";
$return = "objects";

if ($_GET[page] == browse) {
        $query = "WHERE CATEGORY LIKE '%$_GET[id]%' AND TITLE != '' ORDER BY TITLE ASC";
        $title = "$categorytitle";
}

if (empty($_GET[page]) || $_GET[page] == home) {
        $query = "WHERE TITLE != '' ORDER BY ID DESC";
        $title = "$rowxxx[TITLE]";
}

//........................
?>

<?php
$n = 0;
//........................

if (empty($rowxxx[RECORDS]))
        $rowxxx[RECORDS] = 12;

$number = 1;

$query1 = @mysql_query ("SELECT * FROM $table $query");
$numrows = @mysql_num_rows ($query1);

if (!isset ($_GET['show']))
        $display = 1;
else
        $display = $_GET['show'];

$start = (($display * $rowxxx[RECORDS]) - $rowxxx[RECORDS]);
$query2 = @mysql_query ("SELECT * FROM $table $query LIMIT $start,$rowxxx[RECORDS]");
while ($row = @mysql_fetch_array ($query2)) {

$focuslink = "index.php?page=focus&id=$row[ID]&ln=$_GET[ln]";
$row[TITLE] = strtolower($row[TITLE]);
$row[TITLE] = EdURL($row[TITLE]);
if ($rowxxx[MR] == Enabled) {
        if ($row[TITLE] != '')
                $focuslink = "$row[TITLE].html";
}
$n = $n+1;
//........................
?><?PHP
if (empty($gallerycontainer)) {
        $link = gallerycontainer;
        $desc = "Edit gallery box container style.";
        include "dmtop.php";
}
$gallerycontainer = 1;
?><?PHP
//........................
include "dmbot.php";
//........................
?>
<?PHP
//........................
if (empty($gallerybox)) {
        $link = gallerybox;
        $desc = "Edit gallery box style.";
        include "dmtop.php";
}
$gallerybox = 1;
//........................
?><?PHP
//........................
include "dmbot.php";
//........................
?>

<div class="gallerycontainer">
<div class="gallerybox">
<?PHP
//........................
if (empty($galleryobjectthumb)) {
        $link = galleryobjectthumb;
        $desc = "Edit thumbnail style.";
        include "dmtop.php";
}
$galleryobjectthumb = 1;
//........................
?><?PHP
//........................
if (empty($linklarge)) {
        $link = linklarge;
        $desc = "Edit large link stye.";
        include "dmtop.php";
}
$linklarge = 1;
//........................
?><?PHP
$pieces = explode("&", "$row[YOUTUBE]");
$row[URL] = $pieces[0];
$pieces = explode("&", "$row[YOUTUBE]");
$row[URL] = $pieces[0];
$pieces = explode("&", "$row[YOUTUBE]");
$row[URL] = $pieces[0];
$pieces = explode("v=", "$row[YOUTUBE]");
$video = "$pieces[1]";
?><span class="large"><?php $langtable = "$prefix" . "OBJECTS"; $t = "$row[TITLE]"; $field = "TITLE" . "$_GET[ln]"; $id = $row[ID]; include "langinccontent.php"; ?></span>
<?PHP
//........................
include "dmbot.php";
//........................
?><?php
//........................
if (!empty($_SESSION[adminusername])) {
//........................
?>
<a title="<?PHP /* (LANGUAGE) */ $t = "Delete Entry"; $f = "adminobjectdeletetip"; $altpage = homefront; include "langinc.php"; /* (LANGUAGE) */ ?>" style="float:right; margin-right: 5px;" href="index.php?page=delete&del=<?php echo $row[ID]; ?>&return=home&id=<?php echo $_GET[id]; ?>&ln=<?php echo $_GET[ln]; ?>" onclick="return confirm('Are you sure that you want to delete this?')"> <img src="http://<?php echo $_SERVER[HTTP_HOST]; ?>/webifycore/images/delete.png" width="16" height="16" border="0"></a>
<a title="<?PHP /* (LANGUAGE) */ $t = "Edit Entry"; $f = "adminobjectedittip"; $altpage = homefront; include "langinc.php"; /* (LANGUAGE) */ ?>" style="float:right; margin-right: 5px;" href="admin/index.php?page=addobjects&id=<?php echo $row[ID]; ?>&return=<?php echo $_GET[page];?>-<?php echo $_GET[id]; ?>&ln=<?php echo $_GET[ln]; ?>"> <img src="http://<?php echo $_SERVER[HTTP_HOST]; ?>/webifycore/images/edit.png" width="16" height="16" border="0"></a>
<?PHP
//........................
}
//........................
?><?PHP
//........................
if (empty($hr)) {
        $link = hr;
        $desc = "Edit horizontal rule style.";
        include "dmtop.php";
}
$hr = 1;
//........................
?><hr><?PHP
//........................
include "dmbot.php";
//........................
?><a id="youtube<?php echo $n; ?>" title="<?php echo $row[CAPTION]; ?>" href="http://youtube.com/embed/<?php echo $video; ?>"><img class = "galleryobjectthumb" style="margin-right: 10px;" src="http://img.youtube.com/vi/<?php echo $video; ?>/0.jpg"></a>
<?PHP
//........................
include "dmbot.php";
//........................
?></div></div>
<?PHP
//........................
$number = $number + 1;
//........................
?><?PHP
//........................
}
//........................
?><?php
//........................
if ($_GET[page] == browse) {
//........................
?>
<?PHP
//........................
$link = pagination;
$desc = "Edit pagination link style.";
include "dmtop.php";
//........................
?><?php
//........................
include "pagination.php";
//........................
?><?PHP
//........................
include "dmbot.php";
//........................
?>
<?PHP
//........................
}
//........................
?></div>
Return current item: UNKNOW