PageRenderTime 44ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/ subfun --username oscar01200012/left.php

http://subfun.googlecode.com/
PHP | 72 lines | 66 code | 5 blank | 1 comment | 3 complexity | b5e7ea47dd98e6051d8b15a5b0051b68 MD5 | raw file
  1. <?php ob_start(); ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
  6. <title></title>
  7. <link href="css/left.css" rel="stylesheet">
  8. </head>
  9. <?php
  10. session_start();
  11. if($_SESSION['login']!=1) {
  12. echo "????";
  13. echo "<meta http-equiv=\"refresh\" content=\"1;URL=index.php\">";
  14. }else{
  15. require_once("conn/conn.php");
  16. $teamID=$_SESSION['log_teamID'];
  17. ?>
  18. <body>
  19. <div id="left_container">
  20. <?php
  21. //????????????????????????????????????
  22. $userId=$_SESSION['log_id'];
  23. $sql="select * from tb_team where createrID=$userId";
  24. $rs=mysql_query($sql);
  25. $info=mysql_fetch_array($rs);
  26. $sql1="select * from tb_user where U_id=$userId AND userAccess >=3";
  27. $rs1=mysql_query($sql1);
  28. $info1=mysql_fetch_array($rs1);
  29. if(($info||$info1)==false)
  30. {
  31. echo "<div class='title'><span class='title'><a href='memberCheck.php' target='rightIframe'>????</a></span></div>";
  32. }
  33. else
  34. {
  35. $sql="select * from tb_apply where teamID='$teamID'";
  36. $rs=mysql_query($sql);
  37. $i=0;
  38. while($info=mysql_fetch_array($rs))
  39. $i=$i+1;
  40. echo "<div class='title'><span class='title'><a href='memberManege.php' target='rightIframe'>????</a></span></div>";
  41. echo "<div class='title'><span class='title'><a href='applyList.php' target='rightIframe'>????("; echo $i; echo ")</a></span></div>";
  42. }
  43. ?>
  44. <div class='title'><span class='title'><a href="teamIntroduce.php" target="rightIframe" >?????</span></div></a>
  45. <div class='title'><span class='title'><a href="left.php" target="leftIframe" >?????</span></div></a>
  46. <ul class="first">
  47. <li class="first"><a href="left.php" target="leftIframe" >????</a>
  48. <?php
  49. $sql="select * from tb_project where teamID=$teamID";
  50. $rs=mysql_query($sql);
  51. while($info=mysql_fetch_array($rs))
  52. {
  53. echo "<ul class='second'><div class='pro_name'>+ ".$info['proname']."</div>";
  54. echo "<li class='second'><a href='project.php?id=".$info['P_id']."' target='rightIframe'>????</a></li>
  55. <li class='second'><a href='anime.php?id=".$info['P_id']."' target='rightIframe'>????</a></li>
  56. <li class='second'><a href='animeDeleteWaring.php?id=".$info['P_id']."' target='rightIframe'>????</a></li>";
  57. echo "</ul>";
  58. }
  59. ?>
  60. </li>
  61. <li class="first"><a href="createPro.php" target="rightIframe" >????</a></li>
  62. </ul>
  63. </ul>
  64. </div>
  65. <?php } ?>
  66. </body>
  67. </html>