首页 > 分享 > show.php

show.php

<?php

         if(isset($_COOKIE["id"]))

        ;

         else{

        echo "<script language='javascript'>window.location.replace('volunteer.php');</script>";

        return;

         }

         $id=$_COOKIE["id"];

         $mysql_host = SAE_MYSQL_HOST_M;

    $mysql_host_s = SAE_MYSQL_HOST_S;

    $mysql_port = SAE_MYSQL_PORT;

    $mysql_user = SAE_MYSQL_USER;

    $mysql_password = SAE_MYSQL_PASS;

    $mysql_database = SAE_MYSQL_DB;

         $mysql_table = "volunteer";

    $con = mysql_connect($mysql_host.':'.$mysql_port, $mysql_user, $mysql_password, true);

    if (!$con){

        die('Could not connect: ' . mysql_error());

    }

    mysql_query("SET NAMES 'UTF8'");

    mysql_select_db($mysql_database, $con);

         $Result = mysql_query("SELECT * FROM ".$mysql_table." WHERE id='".$id."'");

    $row = mysql_fetch_array($Result);

         $name = $row[name];

    $callnamber = $row[callnamber];

         $power = $row[power];

         if ($power == 1){

             $output = '<div class="div_none_decoration font_note_details_dark" style="text-align:center;">学号:'.$id.'   姓名:'.$name.'   支付宝:'.$callnamber.'</div><br/><br/>

        <a href="show.php"><button class="div_button_large">工作情况</button></a><br/>

        <p> </p>

        <a href="change.php"><button class="div_button_large">账户管理</button></a><br/>

        <p> </p>

        <a href="loginout.php"><button class="div_button_large">退出</button></a>';

    }

         else if ($power == 2){

                   $output = '<div class="div_none_decoration font_note_details_dark" style="text-align:center;">学号:'.$id.'   姓名:'.$name.'   支付宝:'.$callnamber.'</div><br/><br/>

        <a href="show.php"><button class="div_button_large">工作情况</button></a><br/>

        <p> </p>

        <a href="add.php"><button class="div_button_large">信息上传</button></a><br/>

        <p> </p>

        <a href="change.php"><button class="div_button_large">账户管理</button></a><br/>

        <p> </p>

        <a href="loginout.php"><button class="div_button_large">退出</button></a>';

         }

    else{

        $output = '<lable><a href="volunteer.php" class="div_none_decoration font_note_details_dark" style="color:#3fb4ff;font-weight:blod; font-size:20px;">您还没有志愿者工作信息</a></lable>';

    }

?>

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<link rel="stylesheet" href="css/index.css">

<link rel="stylesheet" href="css/index_upload.css">

<link rel="stylesheet" href="css/lightbox.css" media="screen"/>

<script src="http://libs.useso.com/js/jquery/1.9.0/jquery.min.js"></script>

<script src="js/lightbox-2.6.min.js"></script>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=2.0, user-scalable=no" />

<title>志愿者查询</title>

</head>

<body>

    <center>

    <DIV class="font_head">东华大学</DIV>

    <DIV class="font_subhead">管院志管工时查询系统</DIV>

    </center>

    <center>

        <?php echo $output; ?>

    </center>

</body>

</html>

相关知识

【公告】寻仙多人骑宠PK赛获奖名单公告
视界网|给猫洗澡时需要准备的宠物洗护用品是什么以及洗澡中的注意事项
T/ZGXX 0008
T/ZGXX 0009
【视界网】袖扣的种类,你了解吗?
T/CGAPA 003
视界网|好的宠物洗护用品助力狗狗干净度过脱毛期
GB 28050
中国宠物医疗放射影像技术领跑者:武汉佳影宠物DR

网址: show.php https://m.mcbbbk.com/newsview235892.html

所属分类:萌宠日常
上一篇: P站 插画 宠物小精灵 长尾火狐
下一篇: Pet ID Tag QR Co