Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Video galerija

Parašė gintulis· 2010 Vas. 25 19:02:56
#1

Sveiki taigi dabar rodo video kai jį ikeli rodo apačioje.
Gal galite perdaryti kodą, kad kai ikeliu naują video jį roditu viršuje

Štai kodas:
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
require_once "../../maincore.php";
require_once THEMES."templates/header.php";
include LOCALE.LOCALESET."admin/video.php";

$result = dbquery("SELECT * FROM ".$db_prefix."video ORDER by video_id ASC;");
if (dbrows($result) != 0) {

   opentable($locale['804']);
      echo "<table width='425' cellspacing='0' cellpadding='0' align='center' class='tbl1'>\n";      
while ($data = dbarray($result)) {
      echo "<tr>\n";
      echo "<td width='425' align='center'>\n";
      echo "<table width='425' cellspacing='0' cellpadding='0' align='center'>\n";
      echo "<tr>\n";
      echo "<td width='213' align='left'><b>".$data['video_title']."</b></td><td width='212' align='right'><b>".$locale['811']."</b> <a href='".BASEDIR."profile.php?lookup=".$data['video_user_id']."'>".$data['video_user_name']."</a></td>\n";
      echo "</tr>\n";
      echo "</table>\n";
      echo "<table width='425' cellspacing='0' cellpadding='0' align='center' class='tbl1'>\n";
      echo "<tr>\n";
      echo "<td width='425' align='center'><object width='425' height='344'><param name='movie' value='http://www.youtube.com/v/".$data['video_link']."&hl=en&fs=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/".$data['video_link']."&hl=en&fs=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='425' height='344'></embed></object></td>\n";
      echo "</tr>\n";
//add comments and ratings
echo "<tr><td colspan='2'>";
echo "&#302;vertinkite &#353;&#303; filmo trailer&#303;";
include_once INCLUDES."ratings_include.php";
showratings("Y", $data['video_id'], FUSION_SELF."?video=".$data['video_id']);

echo "</td></tr>";
      
      echo "</table>\n";
      echo "</td>\n";
      echo "</tr>\n";
      }
      echo "<tr>\n";
      echo "<td width='425' align='center'>\n";
      echo "<a href='".BASEDIR."messages.php?msg_send=1'><b>".$locale['812']."</b></a>\n";
      echo "</td>\n";
      echo "</tr>\n";
      echo "</table>\n";
   closetable();

} else {

   opentable($locale['804']);
      echo $locale['805'];
   closetable();

}

require_once THEMES."templates/footer.php";
?>