/ subfun --username oscar01200012/left.php
PHP | 72 lines | 66 code | 5 blank | 1 comment | 3 complexity | b5e7ea47dd98e6051d8b15a5b0051b68 MD5 | raw file
- <?php ob_start(); ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
- <title></title>
- <link href="css/left.css" rel="stylesheet">
- </head>
-
- <?php
- session_start();
- if($_SESSION['login']!=1) {
- echo "????";
- echo "<meta http-equiv=\"refresh\" content=\"1;URL=index.php\">";
- }else{
- require_once("conn/conn.php");
- $teamID=$_SESSION['log_teamID'];
- ?>
- <body>
- <div id="left_container">
- <?php
-
- //????????????????????????????????????
- $userId=$_SESSION['log_id'];
- $sql="select * from tb_team where createrID=$userId";
- $rs=mysql_query($sql);
- $info=mysql_fetch_array($rs);
- $sql1="select * from tb_user where U_id=$userId AND userAccess >=3";
- $rs1=mysql_query($sql1);
- $info1=mysql_fetch_array($rs1);
- if(($info||$info1)==false)
- {
- echo "<div class='title'><span class='title'><a href='memberCheck.php' target='rightIframe'>????</a></span></div>";
- }
- else
- {
- $sql="select * from tb_apply where teamID='$teamID'";
- $rs=mysql_query($sql);
- $i=0;
- while($info=mysql_fetch_array($rs))
- $i=$i+1;
- echo "<div class='title'><span class='title'><a href='memberManege.php' target='rightIframe'>????</a></span></div>";
- echo "<div class='title'><span class='title'><a href='applyList.php' target='rightIframe'>????("; echo $i; echo ")</a></span></div>";
- }
-
- ?>
-
- <div class='title'><span class='title'><a href="teamIntroduce.php" target="rightIframe" >?????</span></div></a>
- <div class='title'><span class='title'><a href="left.php" target="leftIframe" >?????</span></div></a>
- <ul class="first">
- <li class="first"><a href="left.php" target="leftIframe" >????</a>
- <?php
- $sql="select * from tb_project where teamID=$teamID";
- $rs=mysql_query($sql);
- while($info=mysql_fetch_array($rs))
- {
- echo "<ul class='second'><div class='pro_name'>+ ".$info['proname']."</div>";
- echo "<li class='second'><a href='project.php?id=".$info['P_id']."' target='rightIframe'>????</a></li>
- <li class='second'><a href='anime.php?id=".$info['P_id']."' target='rightIframe'>????</a></li>
- <li class='second'><a href='animeDeleteWaring.php?id=".$info['P_id']."' target='rightIframe'>????</a></li>";
- echo "</ul>";
- }
- ?>
- </li>
- <li class="first"><a href="createPro.php" target="rightIframe" >????</a></li>
- </ul>
-
- </ul>
- </div>
- <?php } ?>
- </body>
- </html>