1 (edited by 2014-11-23 06:52:39)

Topic: multiple inculde in other category

hello all,

i have build website using bootstrap. i want to showing cutenews using tabs script.
i've using 4 tabs, using this code :

<div role="tabpanel">

  <!-- Nav tabs -->
  <ul class="nav nav-tabs">
    <li role="presentation" class="active">[url=#all-notice]All Notice[/url]</li>
    <li role="presentation">[url=#news]News[/url]</li>
    <li role="presentation">[url=#event]Event[/url]</li>
    <li role="presentation">[url=#change-log]Change Log[/url]</li>
  </ul>

  <!-- Tab panes -->
  <div class="tab-content">
    <div role="tabpanel" class="tab-pane active" id="all-notice">
        <?
        include("cute/show_news.php");
        ?>
    </div>
    <div role="tabpanel" class="tab-pane" id="news">
        <?
        $category = "1";
        include("cute/show_news.php");
        ?>
    </div>
    <div role="tabpanel" class="tab-pane" id="event">
        <?
        $category = "2";
        include("cute/show_news.php");
        ?>
    </div>
    <div role="tabpanel" class="tab-pane" id="change-log">
        <?
        $category = "3";
        include("cute/show_news.php");
        ?>
    </div>
  </div>

</div>

and the result is like this :

http://i.imgur.com/pMVSscK.png


the problem on the tab News, Event, and Change Log is showing all news same like All Notice
they are not showing by category

any solution for this problem ?

thanks for advance, and sorry for my bad language

Re: multiple inculde in other category

any body can help me ?

Re: multiple inculde in other category

You can try enabling news showing using the following code:

<?php
        $category = 1;
        include("cute/show_news.php");
?>


While specifying id categories use no inverted commas.

Best regards,
CN Support team