Php-only tab effect code (without js) _ php instance

Source: Internet
Author: User
The tab effect implemented by php is determined based on get to obtain the css generated by get and the corresponding content. of course, the efficiency is definitely not static. Here are the ideas and methods. 1. get and generate css based on get

The code is as follows:




2. click to open the link.

The code is as follows:




  • Beijing

  • 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'].'
  • ';
    }
    ?>


More recruitment information






























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 '';
}
Else
{
Echo '';
}
?>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.