dongzhi7641 2013-12-19 05:18
浏览 62

PHP应用程序中的选项卡 - Fusion图表

How can i display please wait or progress wheel while tab content is loading .

When i click on the tab "current status " it will load " dashboard_sla.php " which has fusion charts . while the chart is loading i want to display progress wheel or please wait .

Please find my code

<?php

if($status == AUTH_LOGGED){
    ?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Dashboard</title>

<style>
#tabs{
    padding-right:20px;    /* The right most tab will be padded 20px from its right */
    margin:0px;
    float:right;        /* For right aligned tabs */
}
#tabs a{
    background:#000 url(images/left_tab.gif) top left no-repeat;    /* Background image is positioned top, left */
    color:#FFF;
    padding-left:5px;    /* Change this padding according to the size of image slices used to create tab */
    text-decoration:none;
}
#tabs a:hover{
    background:#EDCB27 url(images/selected_left_tab.gif) top left no-repeat;
    color:#000;
    text-decoration:none;
}
#tabs a span{
    background:#000 url(images/right_tab.gif) top right no-repeat;    /* Note the position of background image */
    color:#FFF;
    padding-right:15px;
}
#tabs a:hover span{
    background:#EDCB27 url(images/selected_right_tab.gif) top right no-repeat;
    color:#000;
}
#tabs li{
    list-style:none;
    float:left;
    padding-left:3px;
}
#tabs b{
    background:#EDCB27 url(images/selected_left_tab.gif) top left no-repeat;
    color:#FFF;
    padding-left:5px;
    font-weight:normal;
}
#tabs b span{
    background:#EDCB27 url(images/selected_right_tab.gif) top right no-repeat;
    color:#000;
    padding-right:15px;
}
#tabs span{
    font-family:Arial, Helvetica, sans-serif;
    font-size:12px;
    padding:6px;
    cursor:pointer;
}
#tabs a,#tabs a span,#tabs b,#tabs b span{
    display:block;        /* Set display to block, otherwise background images will not work*/
    float:left;
}
</style>

</head>

<body>
 <?php
    $tab=$_REQUEST['tab'];
    if($tab=='') $tab='Dashboard1';
?>
    <ul id="tabs">

        <?php if($tab=='Dashboard1'){ ?>
        <li><b><span>Current Status</span></b></li>
        <?php }else{ ?>
        <li><a href="?tab=Dashboard1"><span>Current Status</span></a></li>
        <?php } ?>

        <?php if($tab=='Dashboard2'){ ?>
        <li><b><span>SLA Trend IT</span></b></li>
        <?php }else{ ?>
        <li><a href="?tab=Dashboard2"><span>SLA Trend IT</span></a></li>
        <?php } ?>


    </ul>
<div style="clear:both; background-color:#FFFFFF; height:0px; overflow:hidden"></div>
    <div style="border:solid 3px #FFFFFF; background-color:#FFFFFF; padding:10px; font-family:Verdana, Geneva, sans-serif; font-size:11px;">
<?php if($tab=='Dashboard1'){
     include('dashboard_sla.php');
     } else if($tab=='Dashboard2'){
        include('dashboard_sla6.php');
     } 


}
else{
echo "<center>You must log in First</center>";
echo "</td>";
echo "<td style='padding:0 0 0 28px;' valign=top>";
echo "<iframe frameborder=0 width=100% name=mainf scrolling=auto src=dashboard.php marginwidth=0 marginheight=0 style=margin:0px; padding:0px; height=600></iframe>";
echo "</td></tr></table>";
echo "  </div>
";
echo "</div>
";
echo "
";
} ?>


</div>
</body>
</html>
  • 写回答

2条回答 默认 最新

  • dougou3871 2013-12-19 06:02
    关注

    Add jquery progress bar when you click on the tab. Add Jquery UI Plug-in.

    <script>
    $(function() {
    $( "#progressbar" ).progressbar({
    });
    });
    </script>
    
    评论

报告相同问题?

悬赏问题

  • ¥15 想问一下树莓派接上显示屏后出现如图所示画面,是什么问题导致的
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
  • ¥500 火焰左右视图、视差(基于双目相机)
  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号