teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

修正しました

2019/05/20 14:33

投稿

maguzo
maguzo

スコア57

title CHANGED
File without changes
body CHANGED
@@ -120,12 +120,12 @@
120
120
  <td style="width:15%;"><?php echo $sports[$i]?></td>
121
121
  <td style="width:3%;"><a href="<?php echo 'https://tokyo2020.org/jp/games/sport/olympic/'.$url[$i].'/'?>" target="_blank"><i class="fas fa-link"></i></a></td>
122
122
  <td style="width:17%;"><?php echo $price[$i]?></td>
123
- <td class="minori"><input type="radio" name="<?php echo "mimori_".$i ?>" value="YES">YES<br><input type="radio" name="<?php echo "mimori_".$i ?>" value="NO" checked="checked">NO</td>
123
+ <td class="mim"><input type="radio" name="<?php echo "mim_".$i ?>" value="YES">YES<br><input type="radio" name="<?php echo "mim_".$i ?>" value="NO" checked="checked">NO</td>
124
- <td class="kobayashi">-</td>
124
+ <td class="kob">-</td>
125
- <td class="tatsumi">-</td>
125
+ <td class="tats">-</td>
126
- <td class="terami">-</td>
126
+ <td class="tera">-</td>
127
- <td class="sakata">-</td>
127
+ <td class="saka">-</td>
128
- <td class="egawa">-</td>
128
+ <td class="egg">-</td>
129
129
  </tr>
130
130
  <?php endfor;?>
131
131
  <div class="posting"><button type='submit' name='action' value='send'>送信</button></div>

1

加筆しました

2019/05/20 14:33

投稿

maguzo
maguzo

スコア57

title CHANGED
File without changes
body CHANGED
@@ -30,4 +30,107 @@
30
30
  </tr>
31
31
  <?php endfor;?>
32
32
  </form>
33
+ ```
34
+
35
+ ```html
36
+ <table>
37
+ <tr>
38
+ <th style="width:5%;">#</th>
39
+ <th style="width:15%;">種目</th>
40
+ <th style="width:5%;">リンク</th>
41
+ <th style="width:15%;">チケット代金</th>
42
+ <th>mim</th>
43
+ <th>kob</th>
44
+ <th>taus</th>
45
+ <th>tera</th>
46
+ <th>sak</th>
47
+ <th>egg</th>
48
+
49
+ </tr>
50
+
51
+ <?php
52
+ $sports=array(
53
+ "水泳/競泳","水泳/飛込","水泳/水球","水泳/シンクロ","陸上/トラック","陸上/フィールド","陸上/混成","陸上/混成",
54
+ "アーチェリー","バトミントン","野球","ソフト","バスケ/5X5","バスケ/3X3","ボクシング","カヌー","自転車",
55
+ "馬術","フェンシング","サッカー","ゴルフ","体操","新体操","トランポリン","ハンドボール","ホッケー",
56
+ "柔道","空手","近代五種","ボート","ラグビー","セーリング","射撃","スケボー","スポーツクライミング","サーフィン",
57
+ "卓球","テコンドー","テニス","トライアスロン","バレーボール","ウェイトリフティング","レスリング"
58
+ );?>
59
+
60
+ <?php
61
+ $url=array(
62
+ "swimming","swimming","swimming","swimming","athletics","athletics","athletics","athletics",
63
+ "archery","badminton","baseball-softball","baseball-softball","basketball","basketball","boxing","canoe","road-cycling",
64
+ "equestrian","fencing","football","golf","gymnastics","gymnastics","gymnastics","handball","hockey",
65
+ "judo","karate","modern-pentathlon","rowing","rugby-sevens","sailing","shooting","skateboarding","sport-climbing","surfing",
66
+ "table-tennis","taekwondo","tennis","triathlon","volleyball","weightlifting","wrestling"
67
+ );?>
68
+
69
+ <?php
70
+ $price=array(
71
+ "<ul><li>予選:¥5,800-¥37,500</li><li>決勝:¥11,800-¥108,000</li></ul>",//水泳/競泳
72
+ "<ul><li>予選:¥3,500-¥10,000</li><li>準決勝:¥5,000-¥12,500</li><li>決勝:¥8,000-¥30,500</li></ul>",
73
+ "<ul><li>予選:¥3,000-¥14,500</li><li>決勝:¥5,000-¥18,000</li></ul>",
74
+ "<ul><li>予選:¥4,000-¥13,800</li><li>決勝:¥5,800-¥45,000</li></ul>",
75
+ "<ul><li>予選:¥3,000-¥13,500</li><li>決勝:¥4,000-¥130,000</li></ul>",
76
+ "<ul><li>予選:¥3,000-¥13,500</li><li>決勝:¥4,000-¥130,000</li></ul>",
77
+ "<ul><li>予選:¥3,000-¥13,500</li><li>決勝:¥4,000-¥130,000</li></ul>",
78
+ "<ul><li>予選:¥3,000-¥13,500</li><li>決勝:¥4,000-¥130,000</li></ul>",//陸上/混成
79
+ "<ul><li>予選:¥3,000</li><li>決勝:¥7,000</li></ul>",//アーチェリー
80
+ "<ul><li>予選:¥4,000-¥21,000</li><li>決勝:¥8,000-¥45,000</li></ul>",//バトミントン
81
+ "<ul><li>予選:¥4,000-¥45,000</li><li>決勝:¥10,000-¥67,500</li></ul>",//野球
82
+ "<ul><li>予選:¥3,500-¥18,000</li><li>決勝:¥7,500-¥25,500</li></ul>",//ソフト
83
+ "<ul><li>予選:¥5,800-¥72,000</li><li>決勝:¥18,800-¥108,000</li></ul>",//バスケ 5*5
84
+ "<ul><li>予選:¥3,000-¥16,000</li><li>決勝:¥9,000-¥18,000</li></ul>",//バスケ 3*3
85
+ "<ul><li>未定</li></ul>",//ボクシング
86
+ "<ul><li>予選:¥3,000-¥5,500</li><li>決勝:¥5,000-¥10,000</li></ul>",//カヌー
87
+ "<ul><li>予選:¥2,500-¥5,500</li><li>決勝:¥5,000-¥14,500</li></ul>",//自転車
88
+ "<ul><li>予選:¥3,000-¥6,500</li><li>決勝:¥5,500-¥16,000</li></ul>",//馬術
89
+ "<ul><li>予選:¥3,000-¥7,500</li><li>決勝:¥6,500-¥11,500</li></ul>",//フェンシング
90
+ "<ul><li>予選:¥3,000-¥9,800</li><li><li>準決等:¥5,800-¥30,500</li>決勝:¥9,800-¥67,500</li></ul>",//サッカー
91
+ "<ul><li>予選:¥7,000</li><li>決勝:¥10,00</li></ul>",//ゴルフ
92
+ "<ul><li>予選:¥4,000-¥25,500</li><li>決勝:¥11,800-¥72,000</li></ul>",//体操
93
+ "<ul><li>予選:¥4,000-¥12,000</li><li>決勝:¥5,800-¥36,000</li></ul>",//新体操
94
+ "<ul><li>決勝:¥5,500-¥16,000</li></ul>",//トランポリン
95
+ "<ul><li>予選:¥3,500-¥12,800</li><li>決勝:¥7,500-¥20,000</li></ul>",//ハンドボール
96
+ "<ul><li>予選:¥2,500-¥9,500</li><li>決勝:¥6,000-¥10,000</li></ul>",//ホッケー
97
+ "<ul><li>予選:¥4,000-¥15,500</li><li>決勝:¥10,000-¥54,000</li></ul>",//柔道
98
+ "<ul><li>予選:¥3,500-¥8,000</li><li>決勝:¥5,500-¥12,800</li></ul>",//空手
99
+ "<ul><li>予選:¥2,500</li><li>決勝:¥2,500-¥4,000</li></ul>",//近代ごしゅ
100
+ "<ul><li>予選:¥3,000-¥5,500</li><li>決勝:¥5,000-¥9,500</li></ul>",//ボート
101
+ "<ul><li>予選:¥3,500-¥16,000</li><li>決勝:¥7,500-¥25,500</li></ul>",//ラグビー
102
+ "<ul><li>予選:¥3,000</li><li>決勝:¥5,500</li></ul>",//セーリング
103
+ "<ul><li>予選:¥2,500</li><li>決勝:¥5,500</li></ul>",//射撃
104
+ "<ul><li><li>決勝:¥11,500</li></ul>",//スケボー
105
+ "<ul><li>予選:¥3,000-¥5,000</li><li>決勝:¥6,000-¥12,500</li></ul>",//くらいみんぐ
106
+ "<ul><li><li>決勝:¥3,000</li></ul>",//サーフィン
107
+ "<ul><li>予選:¥3,500-¥14,500</li><li>決勝:¥8,000-¥36,000</li></ul>",//卓球
108
+ "<ul><li>予選:¥3,000-¥5,500</li><li>決勝:¥5,000-¥9,500</li></ul>",//テコンドー
109
+ "<ul><li>予選:¥4,000-¥24,500</li><li>決勝:¥10,000-¥54,000</li></ul>",//テニス
110
+ "<ul><li><li>決勝:¥4,000-¥8,000</li></ul>",//トライアスロン
111
+ "<ul><li>予選:¥4,000-¥30,500</li><li>決勝:¥10,000-¥54,000</li></ul>",//バレーボール
112
+ "<ul><li>予選:¥2,500-¥5,000</li><li>決勝:¥7,000-¥12,800</li></ul>",//ウェイリフティング
113
+ "<ul><li>予選:¥4,000-¥13,500</li><li>決勝:¥8,000-¥45,000</li></ul>",//レスリング
114
+
115
+ );?>
116
+ <form class="" action="xxx.php" method="post">
117
+ <?php for ($i=0; $i <count($sports) ; $i++):?>
118
+ <tr>
119
+ <td style="width:5%;"><?php echo $i+1?></td>
120
+ <td style="width:15%;"><?php echo $sports[$i]?></td>
121
+ <td style="width:3%;"><a href="<?php echo 'https://tokyo2020.org/jp/games/sport/olympic/'.$url[$i].'/'?>" target="_blank"><i class="fas fa-link"></i></a></td>
122
+ <td style="width:17%;"><?php echo $price[$i]?></td>
123
+ <td class="minori"><input type="radio" name="<?php echo "mimori_".$i ?>" value="YES">YES<br><input type="radio" name="<?php echo "mimori_".$i ?>" value="NO" checked="checked">NO</td>
124
+ <td class="kobayashi">-</td>
125
+ <td class="tatsumi">-</td>
126
+ <td class="terami">-</td>
127
+ <td class="sakata">-</td>
128
+ <td class="egawa">-</td>
129
+ </tr>
130
+ <?php endfor;?>
131
+ <div class="posting"><button type='submit' name='action' value='send'>送信</button></div>
132
+ </form>
133
+
134
+
135
+ </table>
33
136
  ```