|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
bymuzik Smarty n00b
Joined: 16 Sep 2006 Posts: 2
|
Posted: Sat Sep 16, 2006 8:24 pm Post subject: problem sur index.tpl |
|
|
mon site http://www.uploadfile.fr/
dans index.tpl il ya un party qui ce prononce pas dans le index.php home page
index.tpl
-------------------------------------------------------------------
{if $total gt "0"}
<tr>
<td align="center" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td width="5" height="24" background="images/nv_2_l.jpg"><img src="images/nv_2_l.jpg" width="5" height="24" alt=""></td>
<th background="images/nv_2_bg.jpg"><div align="left">
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td class="white_bold">Today's Featured Videos</td>
<td width="150"><A href="{$baseurl}/video.php"><span class="white_regular">See More Videos</span></a></td>
</tr>
</table>
</div></th>
<td width="5" background="images/nv_2_r.jpg"><img src="images/nv_2_r.jpg" width="5" height="24" alt=""></td>
</tr>
</table></td>
</tr>
{section name=i loop=$answers}
<tr>
<td align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-bottom: 1px dashed #999999;">
<tr>
<td align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="1" bgcolor="#C0C0C0"></td>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="154" align="center" valign="top" background="images/background_1-_bg.jpg" style="background-repeat:repeat-x; " bgcolor="#F3F3F3"><table width="100%" border="0" cellspacing="11" cellpadding="0">
<tr>
<td width="120" valign="top"><A href="{$baseurl}/view_video.php?viewkey={$answers[i].vkey}"><IMG class=moduleFeaturedThumb height=90 src="{$tmburl}/1_{$answers[i].VID}.jpg" width=120></a></td>
<td align="center" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><span class="bold_blue"><A href="{$baseurl}/view_video.php?viewkey={$answers[i].vkey}">{$answers[i].title}</A></span><br>
<span class="normal_gray">{if $answers[i].featuredesc ne ""}{$answers[i].featuredesc}<br><br>{/if}{$answers[i].description}<br><br>
Tags // </span><span class="normal_blue">{insert name=video_keyword assign=keyword vid=$answers[i].VID}
{section name=j loop=$keyword}
<A href="{$baseurl}/search_result.php?search_id={$keyword[j]}">{$keyword[j]}</A>&
{/section}
</span><span class="normal_gray"><br>
Added: {insert name=time_range assign=rtime field=addtime IDFR=VID id=$answers[i].VID tbl=video}{$rtime} by </span>
<span class="normal_blue">{insert name=id_to_name assign=uname un=$answers[i].UID}
<A href="{$baseurl}/uprofile.php?UID={$answers[i].UID}">{$uname}</A>
</span><span class="normal_gray"><br>
Runtime: {$answers[i].duration|string_format:"%.2f"} |
Views: {$answers[i].viewnumber} |
{insert name=comment_count assign=commentcount vid=$answers[i].VID}
Comments: {$commentcount} </span>
</td>
</tr>
<tr><td height="5"></td></tr>
<tr>
<td>
{if $answers[i].ratedby gt "0"}
{insert name=show_rate assign=rate rte=$answers[i].rate}
{$rate}
<SPAN class=rating>({$answers[i].ratedby} ratings)</SPAN>
{else}
( Not yet rated )
{/if}
</td>
</tr>
<tr><td align="center">{insert name=advertise adv_name='home_feature_banner'}</td></tr>
</table>
</td></tr>
--------------------------------------------------
la celui ci nest prononce pas dans www.uploadfile.fr
index.php
------------------------------------
<?php
session_start();
include("include/config.php");
include("include/function.php");
# Find the vote information
$mydate= date('Y-m-d');
$sql ="select * from poll_question where start_date<='$mydate' and end_date>='$mydate'";
$rs = $conn->Execute($sql);
$x=$rs->getarray();
$list=explode("|", $x[0]['poll_answer']);
STemplate::assign('poll_id',$x[0]['poll_id']);
STemplate::assign('poll_qty',$x[0]['poll_qty']);
STemplate::assign('list',$list);
//PAGING
$items_per_page=($config[rows_per_page]*$config[cols_per_page]);
$sql="SELECT * from video where type='public' and featured='yes' order by addtime desc";
$rs = $conn->Execute($sql);
if($rs->recordcount()>0)$users = $rs->getrows();
//END PAGING
$sql1 = "select VID, title, viewtime, vkey from video where viewtime<>'0000-00-00 00:00:00' order by viewtime desc limit 0, ".$config['recently_viewed_video'];
$rs_v = $conn->execute($sql1);
$recent = $rs_v->getrows();
STemplate::assign('recent', $recent);
STemplate::assign('recent_total', count($recent));
if ($_REQUEST[msg]!=""){
$msg=$_REQUEST[msg];
}
STemplate::assign('err',$err);
STemplate::assign('msg',$msg);
STemplate::assign('answers',$users);
STemplate::assign('total',$rs->recordcount());
$tags=group_tags($sql);
STemplate::assign('tags',$tags);
STemplate::assign('head_bottom',"homelinks.tpl");
if($config['enable_package']=="yes" and $_SESSION[UID]!="")
{
$sql = "select * from subscriber where UID=$_SESSION[UID]";
$rs = $conn->execute($sql);
$u_info = $rs->getrows();
STemplate::assign('u_info', $u_info[0]);
$rs->movefirst();
$sql = "select * from package where pack_id=".$rs->fields['pack_id'];
$rs = $conn->execute($sql);
$pack = $rs->getrows();
STemplate::assign('pack', $pack[0]);
}
STemplate::display('head1.tpl');
STemplate::display('err_msg.tpl');
STemplate::display('search.tpl');
STemplate::display('index.tpl');
STemplate::display('right.tpl');
STemplate::display('footer.tpl');
?>
-----------------------------
veulleiz svp m'expliquer pourqoi cett parti du index.tpl on le voie pas dan index.php est en plus jai pas de code error qui s'affiche
merci |
|
Back to top |
|
ciboulette Smarty Regular
Joined: 13 Jul 2006 Posts: 45
|
Posted: Sun Sep 17, 2006 12:23 pm Post subject: |
|
|
tu a bien fermer ton : {if $total gt "0"}
?
tu a regardé si ct pas une erreur de tableau? genre il te manquerai un </td> ou un </tr> etc ...
ta question est un peu flou |
|
Back to top |
|
bymuzik Smarty n00b
Joined: 16 Sep 2006 Posts: 2
|
Posted: Sun Sep 17, 2006 1:52 pm Post subject: |
|
|
cest cette parti la on voit pas sur le home page
<td class="white_bold">Today's Featured Videos</td> |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|