Newer
Older
escapegame-2022 / A2teamkadai / input.php
@Yuto Togashi Yuto Togashi on 15 Sep 2 KB add php
<?php
function h($s){
  return htmlspecialchars($s, ENT_QUOTES, 'utf-8');
}
//前ページの情報を持ってくる
session_start();
$input_kind = $_GET['kind'];
$_SESSION['kind'] = $input_kind;
?>

<!DOCTYPE HTML>
<html lang ="ja">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<link href="https://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet">
	<link rel="stylesheet" href="path/to/font-awesome/css/font-awesome.min.css">
	<link rel="stylesheet" href="main.css">
	<link rel="stylesheet" href="https://unpkg.com/leaflet@1.3.0/dist/leaflet.css">
	<script src="https://unpkg.com/leaflet@1.3.0/dist/leaflet.js"></script>
	<script type="text/javascript" src="map.js"></script>
</head>
<title>朝日地区イズ|編集画面</title>
<style media="screen">
  p{
    margin:20px 0;
  }
  textarea{
    margin: auto;
   display: block;
   width: 100%;
   border-radius: 5px;
   font-size: 15px;
   margin-bottom: 3em;
  }
  .main_log{
    padding:20px 30px;
  }
</style>
<body id="log_body">
  <main class="main_log">
<form action="confirm.php" method="post" class="form_log">
<h1>編集画面</h1>
<div id="item-box">
	<div class="item map">
		<div id="editmap"></div>
	</div>
	<div class="item form"> 
		<p class="input_kind">名称:<input id="addName" name="name" type="text"><?php echo $input_kind; ?><br>
		概要:<textarea id="addDesc" name="message" cols="50" rows="5" style="margin-bottom: 1em;"></textarea>
		住所:<input id="addAddress" name="address" type="text" style="width: 40%;"><br>
		URL:<input id="addUrl" name="url" type="text" style="width: 40%;"><br>
		画像:<input id="addImage" name="image" type="file"><br>
		問題文:<input id="addQuiz" name="quiz" type="text" style="width: 80%;"><br>
		選択肢A:<input id="addChoiceA" name="choiceA" type="text"><br>
		選択肢B:<input id="addChoiceB" name="choiceB" type="text"><br>
		選択肢C:<input id="addChoiceC" name="choiceC" type="text"><br>
		解答:<select id="addAnswer" name="answer">
			<option value="a">選択肢A</option>
			<option value="b">選択肢B</option>
			<option value="c">選択肢C</option>
		</select></p>
		<p><input id="send" type="submit" value="内容を確認する" class="log_button">
		<input id="reset" type="reset" value="リセット" class="log_button"></p>
	</div>
</div>
<!--
<table style="margin:0;">
<tr><th>評価:</th>
<td>
<input type="radio" name="kata" value="1" id="one" checked><label for="one">1</label>
<input type="radio" name="kata" value="2" id="two"><label for="two">2</label>
<input type="radio" name="kata" value="3" id="three"><label for="three">3</label>
<input type="radio" name="kata" value="4" id="four"><label for="four">4</label>
<input type="radio" name="kata" value="5" id="five"><label for="five">5</label>
</td></tr>
</table>
-->
</form>
</main>
</body>
</html>