質問編集履歴

1

htmlの方を追加しました

2016/08/17 10:04

投稿

aobatact
aobatact

スコア7

test CHANGED
File without changes
test CHANGED
@@ -159,3 +159,101 @@
159
159
  ###補足情報(言語/FW/ツール等のバージョンなど)
160
160
 
161
161
  XAMPPを使っています。
162
+
163
+
164
+
165
+ ###追記
166
+
167
+ html のフォーム周辺です。
168
+
169
+ ```html
170
+
171
+ <div class="col-md-4 content-margin-top">
172
+
173
+ <!-- form部分 -->
174
+
175
+ <form id="formmo" action=
176
+
177
+ <?= $ownurl; ?> method="post">
178
+
179
+ <!-- nickname -->
180
+
181
+ <div class="form-group">
182
+
183
+ <div class="input-group">
184
+
185
+ <input type="text" name="nickname" class="form-control" id="validate-text" <?= 'value="'.$edname.'"' ?> placeholder="nickname" required>
186
+
187
+ <span class="input-group-addon danger"><span class="glyphicon glyphicon-remove"></span></span>
188
+
189
+ </div>
190
+
191
+ </div>
192
+
193
+ <!-- comment -->
194
+
195
+ <div class="form-group">
196
+
197
+ <div class="input-group" data-validate="length" data-length="4">
198
+
199
+ <textarea type="text" class="form-control" name="comment" id="validate-length" placeholder="comment" required><?php echo htmlspecialchars_decode($edcomment); ?></textarea>
200
+
201
+ <span class="input-group-addon danger"><span class="glyphicon glyphicon-remove"></span></span>
202
+
203
+ </div>
204
+
205
+ </div>
206
+
207
+ <!-- つぶやくボタン -->
208
+
209
+ <button type="submit" class="btn btn-primary col-xs-12" disabled><?= $edbutton ?></button>
210
+
211
+ </form>
212
+
213
+ </div>
214
+
215
+ ```
216
+
217
+
218
+
219
+ 指摘があったので今から直しますがeditのボタン周辺
220
+
221
+ ```html
222
+
223
+ <?php foreach ($data as $d):
224
+
225
+ $id=$d['id']; ?>
226
+
227
+ <a href=<?= $ownurl."?action=edit&id=".$id ?> class="timeline-icon bg-success" >
228
+
229
+ <i class="entypo-feather"></i>
230
+
231
+ <i class="fa fa-cogs"></i>
232
+
233
+ </a>
234
+
235
+ <div class="timeline-label">
236
+
237
+ <?php
238
+
239
+ echo '<h2><a href="#" id="id'.$id.'">'.$id.':'.$d['nickname']; ?></a>
240
+
241
+ <?php
242
+
243
+ $created = strtotime($d['created']);
244
+
245
+ $created = date('Y年m月d日 H時i分s秒',$created);
246
+
247
+ echo '<span>'.$created.'</span>';
248
+
249
+ ?>
250
+
251
+ </h2>
252
+
253
+ <p><?php echo $d['comment'] ?></p>
254
+
255
+ </div>
256
+
257
+ <?php endforeach; ?>
258
+
259
+ ```