質問編集履歴
2
formの追加
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
ボタンのソース追加
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="💪" class="square_btn">💪</button>',
|
54
|
+
'<button type="button" value="🍇" class="square_btn">🍇</button>',
|
55
|
+
'<button type="button" value="⚽" class="square_btn">⚽</button>',
|
56
|
+
'<button type="button" value="🎶" class="square_btn">🎶</button>',
|
57
|
+
'<button type="button" value="🎮" class="square_btn">🎮</button>',
|
58
|
+
'<button type="button" value="🍀" class="square_btn">🍀</button>',
|
59
|
+
'<button type="button" value="🍟" class="square_btn">🍟</button>',
|
60
|
+
'<button type="button" value="🌙" class="square_btn">🌙</button>',
|
61
|
+
'<button type="button" value="🍞" class="square_btn">🍞</button>',
|
62
|
+
'<button type="button" value="🎤" class="square_btn">🎤</button>',
|
63
|
+
);
|
64
|
+
shuffle($iconlist);
|
65
|
+
|
51
66
|
```
|