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

質問編集履歴

2

formの追加

2019/10/10 04:33

投稿

paruru
paruru

スコア12

title CHANGED
File without changes
body CHANGED
@@ -63,4 +63,22 @@
63
63
  );
64
64
  shuffle($iconlist);
65
65
 
66
+ ```
67
+ ### 該当のソースコード
68
+
69
+ ```form
70
+ <form>
71
+ {foreach from=$iconlist item=iconvalue name=icon}
72
+ {if $smarty.foreach.icon.index == 3}
73
+ <br>
74
+ {/if}
75
+ {if $smarty.foreach.icon.index == 6}
76
+ <br>
77
+ {/if}
78
+ {if $smarty.foreach.icon.index == 9}
79
+ <br>
80
+ {/if}
81
+ {$iconvalue}
82
+ {/foreach}
83
+ </form>
66
84
  ```

1

ボタンのソース追加

2019/10/10 04:33

投稿

paruru
paruru

スコア12

title CHANGED
File without changes
body CHANGED
@@ -48,4 +48,19 @@
48
48
  <input name="password2" class="formtext" id="a2" accesskey="I" style="border-radius:5px;font-size: 150%;
49
49
  cursor: auto; background-color: rgb(204, 204, 255);"
50
50
  cols="45" wrap="hard" autocomplete="off" placeholder="絵文字入力"required>
51
+
52
+ $iconlist = array(
53
+ '<button type="button" value="&#x1f4aa;" class="square_btn">&#x1f4aa;</button>',
54
+ '<button type="button" value="&#x1f347;" class="square_btn">&#x1f347;</button>',
55
+ '<button type="button" value="&#x26bd;" class="square_btn">&#x26bd;</button>',
56
+ '<button type="button" value="&#x1F3B6;" class="square_btn">&#x1F3B6;</button>',
57
+ '<button type="button" value="&#x1f3ae;" class="square_btn">&#x1f3ae;</button>',
58
+ '<button type="button" value="&#x1F340;" class="square_btn">&#x1F340;</button>',
59
+ '<button type="button" value="&#x1F35F;" class="square_btn">&#x1F35F;</button>',
60
+ '<button type="button" value="&#x1F319;" class="square_btn">&#x1F319;</button>',
61
+ '<button type="button" value="&#x1F35E;" class="square_btn">&#x1F35E;</button>',
62
+ '<button type="button" value="&#x1f3a4;" class="square_btn">&#x1f3a4;</button>',
63
+ );
64
+ shuffle($iconlist);
65
+
51
66
  ```