for ($i=1;$i<=5;$i++) {
$dice_key = "dice_".$i;
print '<td class="nodisplay"><form onsubmit="return false;"></td>'."\n";
- print '<td><input type="text" name="dice" class="diceShortCut" id="dice_'.$i.'" value="'.$cookies[$dice_key].'" onfocus="javascript:selectedColumnId(this, false);javascript:expandDiceShortcut(this);" onblur="javascript:selectedColumnId(this, false);shrinkDiceShortcut(this);"></td>'."\n";
+ print '<td><input type="text" name="dice" class="diceShortCut" id="dice_'.$i.'" value="';
+ if (isset($cookies[$dice_key])) {
+ print $cookies[$dice_key];
+ }
+ print '" onfocus="javascript:selectedColumnId(this, false);javascript:expandDiceShortcut(this);" onblur="javascript:selectedColumnId(this, false);shrinkDiceShortcut(this);"></td>'."\n";
print "<td>\n";
show_icon(DICE_ICON, "", "", "", "D", "右欄に設定のダイスを入力します", "insert(document.getElementById(columnId), 'dice_$i', $('#dice_$i').attr('value'), 0);");
print "</td>\n";
print '<td class="nodisplay"></form></td>'."\n";
}
print "<td>";
- show_icon(DICE_SHORTCUT_SHOW_ICON, $img2, "", "dice_shortcut_icon", "↓", "ダイスショートカット欄2行目をON/OFFします", 'toggleColumn(\'dice_shortcut_2\')');
+ show_icon(DICE_SHORTCUT_SHOW_ICON, "", "", "dice_shortcut_icon", "↓", "ダイスショートカット欄2行目をON/OFFします", 'toggleColumn(\'dice_shortcut_2\')');
print "</td></tr>\n";
print '<tr id="dice_shortcut_2" style="display:none;">'."\n";
for ($i=6;$i<=10;$i++) {
$dice_key = "dice_".$i;
print '<td class="nodisplay"><form onsubmit="return false;"></td>'."\n";
- print '<td><input type="text" name="dice" class="diceShortCut" id="dice_'.$i.'" value="'.$cookies[$dice_key].'" onfocus="javascript:selectedColumnId(this, false);javascript:expandDiceShortcut(this);" onblur="selectedColumnId(this, false);shrinkDiceShortcut(this);"></td>'."\n";
+ print '<td><input type="text" name="dice" class="diceShortCut" id="dice_'.$i.'" value="';
+ if (isset($cookies[$dice_key])) {
+ print $cookies[$dice_key];
+ }
+ print '" onfocus="javascript:selectedColumnId(this, false);javascript:expandDiceShortcut(this);" onblur="selectedColumnId(this, false);shrinkDiceShortcut(this);"></td>'."\n";
print '<td>';
show_icon(DICE_ICON, "", "", "dice", "D", "右欄に設定のダイスを入力します", "insert(document.getElementById(columnId), 'dice_$i', $('#dice_$i').attr('value'), 0);");
print "</td>\n";
print '<tr>'."\n";
print '<td class="nodisplay"><form onsubmit="return false;" id="'.$i.'"></td>'."\n";
print '<td><input type="submit" value="発言" class="" id="submit" style="display:inline" name="submit" onclick="comment(this.form, false)"></td>'."\n";
- print '<td align="left" nowrap><input type="text" name="pc_name" value="'.$cookies[$pc_name_key].'" size="6" class="pc_name inputmain" id="pc_name_'.$i.'" style="font-weight:bold; color:#'.$cookies[$pc_color_key].'" onblur="selectedColumnId(this, true)"></td>'."\n";
+ print '<td align="left" nowrap><input type="text" name="pc_name" value="';
+ if (isset($cookies[$pc_name_key])) {
+ $cookies[$pc_name_key];
+ }
+ print '" size="6" class="pc_name inputmain" id="pc_name_'.$i.'" style="font-weight:bold;';
+ if (isset($cookies[$pc_color_key])) {
+ print ' color:#'.$cookies[$pc_color_key];
+ }
+ print '" onblur="selectedColumnId(this, true)"></td>'."\n";
if (USER_WHISPER) {
print "<td>\n";
print '<td nowrap>名前色</td>'."\n";
print '<td id="select_color_'.$i.'">';
print '<select onChange=\'changeColor(this)\' style="font-weight: bold;" id="pc_color_select_'.$i.'" class="inputmain" name="pc_color_select">'."\n";
- colorbox("pc_color", $cookies[$pc_color_select_key]);
+ if (isset($cookies[$pc_color_select_key])) {
+ colorbox("pc_color", $cookies[$pc_color_select_key]);
+ } else {
+ colorbox("pc_color");
+ }
print '</select></td>'."\n";
- print '<td id="free_color_'.$i.'" style="display:none;"><input type="text" value="'.$cookies[$pc_color_key].'" size="10" name="pc_color" id="pc_color_'.$i.'" style="font-weight: bold; color:#'.$cookies[$pc_color_key].';" onkeyup="changeColor(this)" class="inputmain"></td>'."\n";
+ print '<td id="free_color_'.$i.'" style="display:none;"><input type="text" value="';
+ if (isset($cookies[$pc_color_key])) {
+ print $cookies[$pc_color_key];
+ }
+ print '" size="10" name="pc_color" id="pc_color_'.$i.'" style="font-weight: bold;';
+ if (isset($cookies[$pc_color_key])) {
+ print ' color:#'.$cookies[$pc_color_key];
+ }
+ print ';" onkeyup="changeColor(this)" class="inputmain"></td>'."\n";
print '<td>';
show_icon(PC_FONT_ICON, "", "", "", "F", "クリックでPC名文字色入力方法を変更できます", "toggleColumn('free_color_$i');toggleColumn('select_color_$i');");
print "</td>\n";
print '<td nowrap>ステータス:<input type="text" name="status" class="status inputmain" value="';
- if ($cookies[$pc_status_key]) {
+ if (isset($cookies[$pc_status_key]) && $cookies[$pc_status_key]) {
print $cookies[$pc_status_key];
} else {
print STATUS;
<table border="0" cellspacing="3" cellpadding="0" id="offline" style="display:inline; height:30px;">
<tr>
<td class="nodisplay"><form id="chat_off" name="chat" onsubmit="return false;" action=""></td>
-<td nowrap>お名前<input type="text" name="name_off" value="<?php if ($cookies[name_off]) { print $cookies[name_off]; } else { print NONAME; } ?>" size="8" class="inputname" id="name_off"></td>
+<td nowrap>お名前<input type="text" name="name_off" value="<?php if (isset($cookies['name_off']) && $cookies['name_off']) { print $cookies['name_off']; } else { print NONAME; } ?>" size="8" class="inputname" id="name_off"></td>
<td nowrap>パスワード<input type="password" name="pwd_off" size="6" class="inputpwd" id="pwd_off"></td>
<td width="35"><input type="submit" value="入室" name="login" class="login_btn_area" id="login" /></td>
<td><?php show_icon(RELOAD_ICON, "", "", "reload", "R", "チャット画面をリフレッシュ!", "window.mainframe.location.reload()"); ?></td>