⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.tpl.php

📁 用PHP和MSSQL开发的sspace商城系统
💻 PHP
字号:
<? if (!defined('IN_www.wan-e.net')){exit('Access Denied');}?><table width="<?=TABLEWIDTH?>" border="0" align="center" cellpadding="<?=TABLESPACE?>" cellspacing="<?=TABLECELL?>" class="frontground">
<tr>
<td>
<div style="display:<?=USERINFO_HIDDEN?>" id="fc_userinfo">
<div>
<table width="100%"  border="0" cellpadding="<?=TABLESPACE?>" cellspacing="<?=TABLECELL?>" class="tableborder">
<tr class="categround">
<td>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a href="#" onclick="javascript:hidden_show('userinfo', 0);" title="show object" class="categround"><?=$LANG[USERINFO_TITLE]?></a></td>
<td align="right"><a href="#" onclick="javascript:hidden_show('userinfo', 0);" title="show object"><img src="<?=$default_url?>images/<?=IMGDIR?>/show.gif" border="0"></a></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div>
<!---->
<div style="display:<?=USERINFO_SHOW?>" id="ff_userinfo">
<div>
<table width="100%"  border="0" cellpadding="<?=TABLESPACE?>" cellspacing="<?=TABLECELL?>" class="tableborder">
<tr class="categround">
<td colspan="2">
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a href="#" onclick="javascript:hidden_show('userinfo', 1);" title="hidden object" class="categround"><?=$LANG[USERINFO_TITLE]?></a></td>
<td align="right"><a href="#" onclick="javascript:hidden_show('userinfo', 1);" title="hidden object"><img src="<?=$default_url?>images/<?=IMGDIR?>/hidden.gif" border="0"></a></td>
</tr>
</table>	
</td>
</tr>
<tr class="contentground">
<td colspan="2"><?=$LANG[USERINFO_UID]?><strong><? if ($USER_CFG[LOGINED]){?><?=$wane_user?><?}else{?><?=$LANG[STATUS]?><?}?></strong>[ <? if ($USER_CFG[LOGINED]){?><a href="index.php?action=out"><?=$LANG[LOGIN_OUT]?></a><? if ($USER_CFG[ADMINCP]){?> | <a href="index.php?action=system"><?=$LANG[SYSTEM]?></a><?}?><?}else{?><a href="index.php?action=log"><?=$LANG[LOGIN]?></a> | <a href="index.php?action=reg"><?=$LANG[REGISTER]?></a><?}?> ]</td>
</tr>
<tr class="contentground">
<td width="50%"><?=$LANG[USERINFO_CREDIT]?><strong><?=$USER_CFG[CREDITS]?></strong>&nbsp;|&nbsp;<?=$LANG[USERINFO_GROUP]?><strong><?=$RIGHT[RIGHT_TITLE]?></strong></td>
<td width="50%" align="right"><?=$LANG[USERINFO_BUYPRICE]?><strong><?=$LANG[$RIGHT[BUYPRICE]]?></strong>&nbsp;|&nbsp;<a href="<?=$default_url?>index.php?action=memcp&type=recmail"><?=$LANG[USERINFO_NEWPMS]?><strong><?=$USER_CFG[NEWPMS]?></strong></a></td>
</tr>
<tr class="contentground">
<td><?=$LANG[USERINFO_NOWTIME]?><?=$function->showtime('m-d H:i')?>&nbsp;|&nbsp;<?=$LANG[USERINFO_LASTVISIT]?><?=$function->showtime('m-d H:i',$USER_CFG[LASTLOGIN])?></td>
<td align="right"><?=$LANG[USERINFO_MONEYLEFT]?><strong><?=$USER_CFG[MONEY_LEFT]?></strong>&nbsp;|&nbsp;<?=$LANG[USERINFO_MONEYCHECK]?><strong><?=$USER_CFG[MONEY_TAKE]?></strong></td>
</tr>
</table>
</div>
</div>
</td>
</tr>
</table>



<table width="<?=TABLEWIDTH?>" border="0" align="center" cellpadding="<?=TABLESPACE?>" cellspacing="<?=TABLECELL?>" class="frontground">
<tr align="center" valign="top">
<td>	
<table width="100%" border="0" cellpadding="<?=TABLESPACE?>" cellspacing="<?=TABLECELL?>" class="tableborder">
<tr class="categround">
<td colspan="<?=$category_line?>"><a href="<?=$default_url?>index.php?action=schcate" class="categround"><?=$LANG_INDEX[INDEX_CATE]?></a></td>
</tr>
<tr class="contentground">
<? foreach ($cache_category as $cate_key => $cate_val){$num_cate++?>
<td valign="top" width="<?=$num_cate_width?>">
<table width="100%"  border="0" cellspacing="0" cellpadding="5">
<tr>
<td><a href="<?=$default_url?>index.php?action=schcate&cid=<?=$cate_key?>"><strong><?=$cate_val?></strong></a></td>
</tr>
<tr>
<td>
<? $comma = ''; foreach ($cache_category_sec[$cate_key] as $cates){?>
<?=$comma?><a href="<?=$default_url?>index.php?action=schcate&cid=<?=$cates[cid]?>"><?=$cates[title]?></a>
<? $comma = '&nbsp;';}?>
</td>
</tr>
</table>
</td>
<? if ($num_cate%$category_line=='0' && $num_cate<$num_cates){?></tr><tr class="contentground"><?}?>
<?}?>
<? if ($num_cate%$category_line!='0'){?><td colspan="<?=$category_line-($num_cate%$category_line)?>"></td><?}?>
</tr>
</table>

</td>
<td width="30%">

<table width="100%"  border="0" cellpadding="<?=TABLESPACE?>" cellspacing="<?=TABLECELL?>" class="tableborder">
<tr class="categround">
<td><a href="<?=$default_url?>index.php?action=news" class="categround"><?=$LANG_INDEX[INDEX_NEWS]?></a></td>
</tr>
<? foreach ($cache_news as $news){?>
<tr class="contentground">
<td valign="top">[<?=$news[addtime]?>] <a href="<?=$tpl->linkurl($news[nid],$news[htmlroot],'news')?>" target="_blank"><?=$news[title]?></a>
</td>
<?}?>
</tr>
</table>
<br>
<table width="100%"  border="0" cellpadding="<?=TABLESPACE?>" cellspacing="<?=TABLECELL?>" class="tableborder">
<tr class="categround">
<td colspan="<?=$made_line?>"><a href="<?=$default_url?>index.php?action=schmade" class="categround"><?=$LANG_INDEX[INDEX_MADE]?></a></td>
</tr>
<tr class="contentground">
<? foreach ($cache_made as $made_key => $made_val){$num_made++;?>
<td valign="top" width="<?=$num_made_width?>">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a href="<?=$default_url?>index.php?action=schmade&mid=<?=$made_key?>"><strong><?=$made_val?></strong></a></td>
</tr>
<tr>
<td>
<? $comma = ''; foreach ($cache_made_sec[$made_key] as $mades){?>
<?=$comma?><a href="<?=$default_url?>index.php?action=schmade&mid=<?=$mades[mid]?>"><?=$mades[title]?></a>
<? $comma = '&nbsp;';}?>
</td>
</tr>
</table>
</td>
<? if ($num_made%$made_line=='0' && $num_made<$num_mades){?></tr><tr class="contentground"><?}?>
<?}?>
<? if ($num_made%$made_line!='0'){?><td colspan="<?=$made_line-($num_made%$made_line)?>"></td><?}?>
</tr>
</table>
</td>
</tr>
</table>



<table width="<?=TABLEWIDTH?>" border="0" align="center" cellpadding="<?=TABLESPACE?>" cellspacing="<?=TABLECELL?>" class="frontground">
<tr align="center" valign="top">
<td>
<table width="100%"  border="0" cellpadding="<?=TABLESPACE?>" cellspacing="<?=TABLECELL?>" class="tableborder">
<tr class="categround">
<td colspan="<?=$num_index_spnew_line?>"><a href="<?=$default_url?>index.php?action=splist" class="categround"><?=$LANG_INDEX[INDEX_NEWSP]?></a></td>
</tr>
<tr class="contentground">
<? foreach ($cache_spnew as $spnew){$num_spnew++;?>
<td valign="top" width="<?=$num_spnew_width?>">

<table width="100%"  border="0" cellpadding="2" cellspacing="0">
<tr>
<td width="10%" rowspan="4" align="center"><a href="<?=$tpl->linkurl($spnew[sid],$spnew[htmlroot],'spinfo')?>" target="_blank"><img src="<? if ($spnew[spimg]){?><?=$spnew[spimg]?><?}else{?>images/nophoto.gif<?}?>" width="<?=$num_index_spnew_imgwidth?>" height="<?=$num_index_spnew_imgheight?>" border="0"></a></td>
<td><a href="<?=$tpl->linkurl($spnew[sid],$spnew[htmlroot],'spinfo')?>" target="_blank"><?=$spnew[spname]?></a></td>
</tr>
<tr>
<td><?=$LANG_INDEX[INDEX_PRICE_S]?><?=$spnew[price_market]?></td>
</tr>
<tr>
<td><?=$LANG_INDEX[INDEX_PRICE_M]?><?=$spnew[price_member]?></td>
</tr>
<tr>
<td><?=$LANG_INDEX[INDEX_PRICE_V]?><?=$spnew[price_vip]?></td>
</tr>
</table>

</td>
<? if ($num_spnew%$num_index_spnew_line=='0' && $num_spnew<$num_spnews){?></tr><tr class="contentground"><?}?>
<?}?>
<? if ($num_spnew%$num_index_spnew_line!='0'){?><td colspan="<?=$num_index_spnew_line-($num_spnew%$num_index_spnew_line)?>"></td><?}?>
</tr>
</table>
<br>
<table width="100%"  border="0" cellpadding="<?=TABLESPACE?>" cellspacing="<?=TABLECELL?>" class="tableborder">
<tr class="categround">
<td colspan="<?=$num_index_sptop_line?>"><a href="<?=$default_url?>index.php?action=searchresult&bid=2" class="categround"><?=$LANG_INDEX[INDEX_WELLSP]?></a></td>
</tr>
<tr class="contentground">
<? foreach ($cache_sptop as $sptop){$num_sptop++;?>
<td valign="top" width="<?=$num_top_width?>">

<table width="100%"  border="0" cellpadding="2" cellspacing="0">
<tr>
<td width="10%" rowspan="4" align="center"><a href="<?=$tpl->linkurl($sptop[sid],$sptop[htmlroot],'spinfo')?>" target="_blank"><img src="<? if ($sptop[spimg]){?><?=$sptop[spimg]?><?}else{?>images/nophoto.gif<?}?>" width="<?=$num_index_sptop_imgwidth?>" height="<?=$num_index_sptop_imgheight?>" border="0"></a></td>
<td><a href="<?=$tpl->linkurl($sptop[sid],$sptop[htmlroot],'spinfo')?>" target="_blank"><?=$sptop[spname]?></a></td>
</tr>
<tr>
<td><?=$LANG_INDEX[INDEX_PRICE_S]?><?=$sptop[price_market]?></td>
</tr>
<tr>
<td><?=$LANG_INDEX[INDEX_PRICE_M]?><?=$sptop[price_member]?></td>
</tr>
<tr>
<td><?=$LANG_INDEX[INDEX_PRICE_V]?><?=$sptop[price_vip]?></td>
</tr>
</table>
</td>
<? if ($num_sptop%$num_index_sptop_line=='0' && $num_sptop<$num_sptops){?></tr><tr class="contentground"><?}?>
<?}?>
<? if ($num_sptop%$num_index_sptop_line!='0'){?><td colspan="<?=$num_index_sptop_line-($num_sptop%$num_index_sptop_line)?>"></td><?}?>
</tr>
</table>
</td>
<td width="30%">

<table width="100%"  border="0" cellpadding="<?=TABLESPACE?>" cellspacing="<?=TABLECELL?>" class="tableborder">
<tr class="categround">
<td colspan="<?=$num_index_spper_line?>"><a href="<?=$default_url?>index.php?action=searchresult&bid=1" class="categround"><?=$LANG_INDEX[INDEX_PERSP]?></a></td>
</tr>
<tr class="contentground">
<? foreach ($cache_spper as $spper){$num_spper++;?>
<td valign="top" width="<?=$num_spper_width?>">
<table width="100%"  border="0" cellpadding="<?=TABLESPACE?>" cellspacing="0">
<tr>
<td align="center"><a href="<?=$tpl->linkurl($spper[sid],$spper[htmlroot],'spinfo')?>" target="_blank"><img src="<? if ($spper[spimg]){?><?=$spper[spimg]?><?}else{?>images/nophoto.gif<?}?>" width="<?=$num_index_spper_imgwidth?>" height="<?=$num_index_spper_imgheight?>" border="0"></a></td>
</tr>
<tr>
<td><a href="<?=$tpl->linkurl($spper[sid],$spper[htmlroot],'spinfo')?>" target="_blank"><?=$spper[spname]?></a></td>
</tr>
<tr>
<td><?=$LANG_INDEX[INDEX_PRICE_S]?><?=$spper[price_market]?></td>
</tr>
<tr>
<td><?=$LANG_INDEX[INDEX_PRICE_M]?><?=$spper[price_member]?></td>
</tr>
<tr>
<td><?=$LANG_INDEX[INDEX_PRICE_V]?><?=$spper[price_vip]?></td>
</tr>
</table>
</td>
<? if ($num_spper%$num_index_spper_line=='0' && $num_spper<$num_sppers){?></tr><tr class="contentground"><?}?>
<?}?>
<? if ($num_spper%$num_index_spper_line!='0'){?><td colspan="<?=$num_index_spper_line-($num_spper%$num_index_spper_line)?>"></td><?}?>

</tr>
</table>
</td>
</tr>
</table>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -