$ColorFill = "#ffffff"; } else { $ColorFill = "#F9F9F9"; } if ($count == 0) { echo "<TR>"; } $content = $video['detail']; $Detail = stripslashes(FixQuotes($content)); $res['category'] = $db->select_query("SELECT * FROM web_video_category2 WHERE id='" . $video['category'] . "' "); $arr['category'] = $db->fetch($res['category']); $videoid = $video['id']; $ress['com'] = $db->select_query("SELECT *,count(video_id) as com FROM web_video_comment2 WHERE video_id ='" . $videoid . "' group by video_id"); $arrs['com'] = $db->fetch($ress['com']); if ($video['youtube'] == 1) { $durationx = timeyoutube($video['times']); } else { $durationx = $video['times']; } ?> <TD width="50%" valign=top align="center"> <TABLE width="100%" border=0 cellSpacing=0 cellPadding=0> <tr> <TD align="center" > <TABLE width="200" border=0 cellSpacing=0 cellPadding=0> <tr> <TD align="left" > <img src="images/video_icon.png" border="0"> <a HREF="index.php?name=video2&file=readvideo&id=<?php echo $video['id']; ?>
</B> </td> </tr> <tr> <td bgcolor="#E2E2E2" valign="top" align="right"> <?php echo _FORM_DETAIL; ?> </td><td bgcolor="#E2E2E2" valign="top"><?php echo $arr['video']['detail']; ?> </B> </td> </tr> <?php if ($arr['video']['youtube'] == 1) { $durationx = timeyoutube($arr['video']['times']); } else { $durationx = $arr['video']['times']; } ?> <tr > <td bgcolor="#E2E2E2" valign="top" align="right"> Duration : </td><td bgcolor="#E2E2E2" valign="top"><?php echo "" . $durationx . ""; ?> </B> </td> </tr> <tr> <td bgcolor="#E2E2E2" valign="top" align="right"> <?php echo _FORM_MOD_POSTEDX; ?>
echo _ADMIN_TABLE_TITLE_CAT; ?> </B></CENTER></td> <td width="40"><CENTER><B>Check</B></CENTER></td> </tr> <?php $sql = "SELECT * FROM web_video2 ORDER BY id DESC LIMIT {$goto}, {$limit} "; $res['video'] = $db->select_query($sql); $count = 0; while ($vdo = $db->fetch($res['video'])) { $res['category'] = $db->select_query("SELECT * FROM web_video_category2 WHERE id='" . $vdo['category'] . "' "); $arr['category'] = $db->fetch($res['category']); // $content = $vdo['detail']; // $Detail = stripslashes(FixQuotes($content)); if ($vdo['youtube'] == 1) { $durationx = timeyoutube($vdo['times']); } else { $durationx = $vdo['times']; } //Comment Icon if ($vdo['enable_comment']) { $CommentIcon = " <IMG SRC=\"images/icon/comments-icon.jpg\" WIDTH=\"16\" HEIGHT=\"16\" BORDER=\"0\" ALIGN=\"absmiddle\" alt=\"" . _ADMIN_LINK_ALLOW_COMMENT . "\">"; } else { $CommentIcon = ""; } if ($vdo['youtube'] != 1) { if ($vdo['pic']) { $PicIcon = " <A HREF=video/thumbs/" . $vdo['pic'] . " class=\"highslide\" onclick=\"return hs.expand(this)\"><IMG SRC=\"images/preview.gif\" WIDTH=\"16\" HEIGHT=\"16\" BORDER=\"0\" ALIGN=\"absmiddle\" alt=\"" . _ADMIN_LINK_PICTURE . "\"></a>"; } else { $PicIcon = ""; }