<commit_before>---
title: "(9)課程記錄"
layout: post
category: class
order: 14
tags: [hw]
excerpt: "第9週課程。"
---
網頁系統開發課程記錄
github帳號及使用github做blog。。

# 課程目標
- Github 帳號/介面/指令
- Github pages/Jekyll

# 我的學習

##Github



```php
<?php
   //
   //
   //
?>
```
##Github pages

```php
<?php
   //
   //
   //
?>
```


[1]: https://github.com/        "GitHub"
[2]: https://pages.github.com/  "GitHub Pages"
[3]: https://jekyllrb.com/      "Jekyll"
[4]: http://markdown.tw         "Markdown文件"
[5]: http://dillinger.io/       "Dillinger"




<commit_msg>Update 2017-11-15-Class9.md<commit_after>---
title: "(9)課程記錄"
layout: post
category: class
order: 14
tags: [hw]
excerpt: "第9週課程。"
---
網頁系統開發課程記錄
github帳號及使用github做blog。。

# 課程目標
- Github 帳號/介面/指令
- Github pages/Jekyll

# 我的學習
畢業旅行投票登入畫面

##Github



```php
<?php
   //<?php
//2017/11/08
$msgError = "預設密碼是0000";
if(isset($_POST["Enter"])){
    session_start();
    require_once 'db_func5.php';
    //    $GLOBALS['dbconfig'] = $dbconfig;
    $SID = $_POST["SID"];
    $SCode = $_POST["SCode"];
    $UserData = CheckUserTest($SID, $SCode);
    if($UserData != NULL)
    {
        $_SESSION['authenticated'] = time();
        $redir = 'vote2.php';
        header("Location: $redir");
        exit;
    }
    else
    $msgError = "帳號或密碼錯誤";
}

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="zh-Hant-TW">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>登入系統</title>
</head>
<style type="text/css">
<!--
body {
margin:0;
padding:0;
font: bold 18px/1.5em Verdana;
background-repeat:no-repeat;
background-size:cover;
background:url(IU.jpg);
}

h2 {
font: bold 18px Verdana, Arial, Helvetica, sans-serif;
color: #000;
margin: 0px;
padding: 0px 0px 0px 15px;
}

</style>
<body background="IU.jpg">
<div style="text-align:center;">
　<img src="clinic.jpg"/>
<h2> 畢業旅行投票</h2>
</div>
<div style="text-align:center;">
<br/>
<div style="margin:0 auto;border: 2px solid blue; width:300px;">
<form method="POST" action="login.php">
學號<input type="text" name="SID" id="SID" /><br/>
<?php echo $msgError; ?>
<br/>
密碼<input type="password" name="SCode" id="SCode" /><br/>
<input type="submit" name="Enter" id="Enter" value="登入" />
</form></div>
</div>
</body>
</html>
   //
   //
?>
```
##Github pages

```php
<?php
   //
   //
   //
?>
```


[1]: https://github.com/        "GitHub"
[2]: https://pages.github.com/  "GitHub Pages"
[3]: https://jekyllrb.com/      "Jekyll"
[4]: http://markdown.tw         "Markdown文件"
[5]: http://dillinger.io/       "Dillinger"





{'fraction_non_alphanumeric': 0.22158438576349024, 'fraction_numerical': 0.027937236892460773, 'mean_word_length': 3.222940226171244, 'pattern_counts': {'":': 0, '<': 40, '<?xml version=': 0, '>': 39, 'https://': 6, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4009587', 'n_tokens_mistral': 1256, 'n_tokens_neox': 1195, 'n_words': 211}