cid_show.tpl.php
来自「用PHP和MSSQL开发的sspace商城系统」· PHP 代码 · 共 45 行
PHP
45 行
<? if (!defined('IN_www.wan-e.net')){exit('Access Denied');}?><table align="center" width="<?=TABLEWIDTH?>" border="0" 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="2"><?=$VIEW_CID[NAV_CID]?></td>
</tr>
<tr class="contentground">
<? while ($row=$db->row($query)){ $cids++; $upid=$row[cid]?>
<td width="50%" valign="top">
<table width="100%" border="0" cellpadding="<?=TABLESPACE?>" cellspacing="<?=TABLECELL?>" class="tableborder">
<tr class="titleground">
<td colspan="4"><strong><a href="<?=$tpl->linkurl($row[cid],'','cid')?>"><?=$row[title]?></a></strong></td>
</tr>
<tr class="contentground">
<?
$query_s = $db->query("select * from {$tablepre}class where upid='$upid' order by orderid");
$scs = 0;
$scss = $db->num($query_s);
while ($row_s=$db->row($query_s)){ $scs++;?>
<td align="center"><a href="<?=$tpl->linkurl($row_s[cid],'','cid')?>"><?=$row_s[title]?></a></td>
<? if ($scs%4=='0' && $scs<$scss){?></tr><tr class="contentground"><?}?>
<?}$db->free($query_s)?>
<? if ($scss%4!='0' && $scss>4){?><td colspan="<?=4-($scss%4)?>"></td><?}?>
</tr>
</table>
</td>
<? if ($cids%2=='0' && $cids<$cidss){?></tr><tr class="contentground"><?}?>
<?}?>
<? if ($cidss%2!='0' && $cidss>2){?><td></td><?}?>
</tr>
</table>
</td>
</tr>
</table>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?