Beispiel #1
0
</head>
<body>
<?php 
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2015/6/3
 * Time: 21:36
 */
require_once "../bin/CYbuInformation.php";
header("Content-type: text/html; charset=gb2312");
$username = $_GET["username"];
$password = $_GET["password"];
$bxqcj = new CYbuInformation($username, $password);
$bxqcj->setURPCookie();
$str = $bxqcj->getStudentThisSemesterGrade();
echo $str;
?>

<button id="bind" type="button" class="btn btn-primary btn-lg btn-block">绑定学籍信息</button>
<button id="clear" type="button" class="btn btn-default btn-lg btn-block">清除学籍信息</button>

</body>

<script>
    $("#bind").click(function () {
        YBUusername = prompt("请输入学生学号");
        YBUpasswd = prompt("请输入综合信息门户登录密码");
        localStorage.setItem("YBUusername", YBUusername);
        localStorage.setItem("YBUpasswd", YBUpasswd);
        alert("绑定成功"):
Beispiel #2
0
<?php

/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2015/6/3
 * Time: 21:52
 */
include_once "./bin/CYbuInformation.php";
$test = new CYbuInformation("2134022308", "19940326");
$test->setURPCookie();
echo $test->getStudentThisSemesterGrade();
?>



<!--<html>-->
<!--<title></title>-->
<!--<head>-->
<!--    <meta charset="utf-8">-->
<!--    <meta http-equiv="X-UA-Compatible" content="IE=edge">-->
<!--    <meta name="viewport" content="width=device-width,height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">-->
<!--    <link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.4/css/bootstrap.min.css">-->
<!--    <script src="http://cdn.bootcss.com/jquery/1.11.2/jquery.min.js"></script>-->
<!--    <script src="http://cdn.bootcss.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>-->
<!--</head>-->
<!--<body style="background-color: #F8F8F8">-->
<!--	<div class="container">-->
<!--		<div class="row">-->
<!--		   <div class="col-md-3">ssssssssssss</div>-->
<!--		   <div class="col-md-3">sssssssssssss</div>-->