Home > php教程 > php手册 > 纯php打造的tab选项卡效果代码(不用js)

纯php打造的tab选项卡效果代码(不用js)

WBOY
Release: 2016-06-06 20:35:43
Original
1867 people have browsed it

用php实现的tab选项卡效果,根据get判断,获取get生成css与对应的内容,当然效率肯定没有静态的好,这里给出的思路与方法。

1.根据get判断,香港虚拟主机,获取get生成css

复制代码 代码如下:




2.点击的时候,美国空间,就可以打开链接

复制代码 代码如下:




  • 北京

  • include_once ("config/db.inc.php");
    $recuit_city_select = "select * from cdb_plugins_city where city_id in(13,14,15,16)";
    $recuit_city_query = mysql_query ( $recuit_city_select );
    while ( $recuit_city_row = mysql_fetch_assoc ( $recuit_city_query ) ) {
    $cid = $recuit_city_row['city_id'];
    echo '
  • ' . $recuit_city_row ['city_name'] . '
  • ';
    }
    ?>


更多招募信息




if(!$_GET['city_id'])
{

$recuit_content_select = "select * from cdb_plugins_recuit where city_id= 12 limit 0,8";
$recuit_content_query = mysql_query($recuit_content_select);
while($recuit_content_row = mysql_fetch_assoc($recuit_content_query))
{
echo '


';
}
}
else
{
$recuit_content_select = "select * from cdb_plugins_recuit where city_id={$_GET['city_id']} limit 0,10";
$recuit_content_query = mysql_query($recuit_content_select);
while($recuit_content_row = mysql_fetch_assoc($recuit_content_query))
{
echo '


';
}
}
?>

'.$recuit_content_row['recuit_name'].'

'.$recuit_content_row['username'].'
'.$recuit_content_row['recuit_name'].' '.$recuit_content_row['username'].'



include_once ("../include/common.inc.php");
$recuit_query = mysql_query("select * from cdb_plugins_recuit_userinfo where uid=$discuz_uid");
$recuit_rows = mysql_fetch_assoc($recuit_query);
if($recuit_rows['uid'] == '')
{
echo '纯php打造的tab选项卡效果代码(不用js) ';
}
else
{
echo '纯php打造的tab选项卡效果代码(不用js) ';
}
?>

,网站空间
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template