Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Papildomas laukas naujienoje ir dar kaikas

Parašė TBagT· 2011 Geg. 8 21:05:44
#1

Sveiki norėčiau paklausti kaip būtu galima pridėti papildomus laukus naujienai kaip čia http://gerifilmai.net/laukines-a...n1554.html ten kur peržiūra ?. Ir kaip padaryt kad double_panel infusione veiktu title.js ? Ir dar , kaip pritaikyt filmai.php tam tikrai naujienų kategorijai ?


<?php
require_once "maincore.php";
require_once THEMES."templates/header.php";
echo"<script type='text/javascript' src='".INCLUDES."title.js'></script>";
?>
<style type="text/css">
 
tooltip {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px;
	color: #ffffff;
	position: absolute;
	z-index: 3000;
	/*border: 1px solid #111;*/
	background-color: #000;
	padding: 5px;
 
}
 
tooltip h3, #tooltip div { margin: 0;  }
 
div#qTip {
 padding: 5px;
 border: 0px solid #666;
 display: none;
 background: #000;
 color: #FFFFFF;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
 text-align: left;
 position: absolute;
 z-index: 1000;
 
</style>
<?php
 
 
 $items_per_page = 16;
 
 
  if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) { 
  $_GET['rowstart'] = 0; 
}
 
 $rows = dbcount("(*)", DB_NEWS, "news_draft='0'");	
//opentable("");
 
	 //$result = dbquery("SELECT * FROM ".$db_prefix."news ORDER BY news_datestamp DESC LIMIT 0,4");
$result = dbquery(
    "SELECT * FROM ".DB_NEWS." 
     WHERE news_draft='0' ORDER BY news_datestamp DESC 
     LIMIT ".$_GET['rowstart'].",$items_per_page"
 );
 
 
if (dbrows($result) != 0) {
		$counter = 0; $columns = 4;
		echo"<table cellpadding='0' cellspacing='0' width='5%' style='padding:1px;'>\n<tr>\n";
while($data = dbarray($result)) {
//$kat = dbresult(dbquery("SELECT download_cat_name FROM ".$db_prefix."download_cats WHERE download_cat_id='$id'"), 0);
if ($counter != 0 && ($counter % $columns == 0)) { echo "</tr>\n<tr>\n"; }
 
				$wynik = dbquery("SELECT SUM(rating_vote) FROM ".DB_RATINGS." WHERE rating_type='N' AND rating_item_id='".$data['news_id']."'");
                $info2 = dbresult($wynik,0);
                $num_rating = dbcount("(rating_vote)", DB_RATINGS, "rating_type='N' AND rating_item_id='".$data['news_id']."'");
                $wyn_rating = ($num_rating ? $info2 / $num_rating : 0);
$komentarai = dbcount("(comment_id)", DB_COMMENTS, "comment_type='N' AND comment_item_id='".$data['news_id']."' AND comment_hidden='0'");
	// $tas = trimlink($data['news_news'], 600);
	 $tas = $data['news_breaks'] == "y" ? nl2br(stripslashes($data['news_news'])) : stripslashes($data['news_news']);
 
echo"<td  style='padding:10px;'>";
 
	echo "<table cellpadding='0' height='269' cellspacing='0' background='http://kinas.ql.lt/cover.png' width='172' class='borderis' onmouseover=\"className='borderis2'\" onmouseout=\"className='borderis'\">\n<tr>\n";
 
	echo"<td colspan='5' align='center'><a href='/news.php?readmore=".$data['news_id']."' tit='<table width=450px><tr><td class=c>
<b><span style=color:#0099FF;font-size:12px;>".$data['news_subject']."</span></b><br>$tas<br>
<b>&#381;i&#363;r&#279;jo: ".$data['news_reads']."</b>
 
</td></tr>
</table>'>
 
	<img src='".IMAGES_N.$data['news_image']."' width='170' height='248' /></a>";
 
	echo"</tr>
	<td width='105' style='padding:2px;' align='center'><img src='".THEME."images/retitingai/".ceil($wyn_rating).".png' width='80' height='13' alt='".ceil($wyn_rating)."' style='vertical-align:middle;' title='".ceil($wyn_rating)."' />
	<td class='c' align='center'><a href='/news.php?readmore=".$data['news_id']."'><font color = '#eda700'>&#381;i&#363;r&#279;ti</a></font></td></td></td></td>
	</tr>";
 
	echo"</table>";	
 
 
 
echo "</td>\n" ;
$counter++;
}
echo "</tr>\n</table>\n";
 
}
 
//closetable();	
echo"<div align='center'>";
if ($rows > $items_per_page) {
    echo makepagenav($_GET['rowstart'], $items_per_page, $rows, 3);
}
 
require_once THEMES."templates/footer.php";
 
?>
 
<script language=JavaScript>
 <!--
 
 //Disable right mouse click Script
 //By Maximus () w/ mods by DynamicDrive
 //For full source code, visit <a href='http://www.dynami...' target='_blank'><span style='color:005C5B'>http://www.dynami...</span></a>
 
 var message="Kopijuoti negalima!!!";
 
 ///////////////////////////////////
 function clickIE4(){
 if (event.button==2){
 alert(message);
 return false;
 }
 }
 
 function clickNS4(e){
 if (document.layers||document.getElementById&&!document.all){
 if (e.which==2||e.which==3){
 alert(message);
 return false;
 }
 }
 }
 
 if (document.layers){
 document.captureEvents(Event.MOUSEDOWN);
 document.onmousedown=clickNS4;
 }
 else if (document.all&&!document.getElementById){
 document.onmousedown=clickIE4;
 }
 
 document.oncontextmenu=new Function("alert(message);return false")
 
 // -->
 </script>
 
 
<script language="JavaScript1.2">
 
function disableselect(e){
return false
}
 
function reEnable(){
return true
}
 
//if IE4+
document.onselectstart=new Function ("return false")
 
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script> 

Redagavo TBagT· 2011 Geg. 8 22:05:12