diff --git a/lib/read_footer_i.inc.php b/lib/read_footer_i.inc.php index 42ba6efc3..229cb6a60 100644 --- a/lib/read_footer_i.inc.php +++ b/lib/read_footer_i.inc.php @@ -55,6 +55,37 @@ echo ''; +// {{{書き込みフォーム +if ($_conf['bottom_res_form']) { + $bbs = $aThread->bbs; + $key = $aThread->key; + $host = $aThread->host; + $rescount = $aThread->rescount; + $ttitle_en = UrlSafeBase64::encode($aThread->ttitle); + + $submit_value = '書き込む'; + + $key_idx = $aThread->keyidx; + + // フォームのオプション読み込み + require_once P2_LIB_DIR . '/post_form_options.inc.php'; + + $htm['resform_ttitle'] = <<{$aThread->ttitle_hd}

+EOP; + + require_once P2_LIB_DIR . '/post_form.inc.php'; + + echo << +{$htm['dpreview']} +{$htm['post_form']} +{$htm['dpreview2']} +\n +EOP; +} +// }}} + // {{{ その他ボタン類 echo ''; @@ -89,8 +120,12 @@ echo '
'; if (!$aThread->diedat) { if (empty($_conf['disable_res'])) { - $escaped_url = "post_form.php?{$host_bbs_key_q}&rescount={$aThread->rescount}{$ttitle_en_q}{$_conf['k_at_a']}"; - echo toolbar_i_standard_button('img/glyphish/icons2/08-chat.png', '書込', $escaped_url); + if ($_conf['bottom_res_form']) { + echo toolbar_i_showhide_button('img/glyphish/icons2/08-chat.png', '書込', 'kakiko'); + } else { + $escaped_url = "post_form.php?{$host_bbs_key_q}&rescount={$aThread->rescount}{$ttitle_en_q}{$_conf['k_at_a']}"; + echo toolbar_i_standard_button('img/glyphish/icons2/08-chat.png', '書込', $escaped_url); + } } else { echo toolbar_i_opentab_button('img/glyphish/icons2/08-chat.png', '元スレ', $motothre_url); } diff --git a/lib/read_header.inc.php b/lib/read_header.inc.php index 104d781b9..248f8fd50 100755 --- a/lib/read_header.inc.php +++ b/lib/read_header.inc.php @@ -305,11 +305,6 @@ EOP; } -if ($_conf['expack.editor.savedraft'] != '0') { - echo << -EOP; -} if ($_conf['wiki.idsearch.spm.mimizun.enabled'] || $_conf['wiki.idsearch.spm.hissi.enabled'] || $_conf['wiki.idsearch.spm.stalker.enabled']) { @@ -325,6 +320,11 @@ if ($_conf['expack.editor.dpreview']) { echo "\t\n"; } + if ($_conf['expack.editor.savedraft'] != '0') { + echo << +EOP; + } echo "\t\n"; $onload_script .= 'checkSage();'; } diff --git a/lib/read_header_i.inc.php b/lib/read_header_i.inc.php index 0d3f955fb..1a9b0f309 100644 --- a/lib/read_header_i.inc.php +++ b/lib/read_header_i.inc.php @@ -106,6 +106,14 @@ EOS; } +if ($_conf['bottom_res_form']) { + $_conf['extra_headers_ht'] .= "\t\n"; + if ($_conf['expack.editor.savedraft'] != '0') { + $_conf['extra_headers_ht'] .= << +EOP; + } +} // }}} // }}} // {{{ HTMLプリント diff --git a/rep2/css/iphone.css b/rep2/css/iphone.css index 3767537b5..b403ce2c3 100644 --- a/rep2/css/iphone.css +++ b/rep2/css/iphone.css @@ -107,6 +107,15 @@ p.empty { color: #333;; } +/* }}} * +/* {{{ Res */ +textarea#MESSAGE { + padding: 6px; + line-height: 132%; + width: 100%; + box-sizing: border-box; + -webkit-box-sizing: border-box; +} /* }}} * /* {{{ Forms */ diff --git a/rep2/iui/backButton.png b/rep2/iui/backButton.png index 70b416f99..224da7208 100644 Binary files a/rep2/iui/backButton.png and b/rep2/iui/backButton.png differ diff --git a/rep2/js/iphone.js b/rep2/js/iphone.js index 6108d42ee..94f341e88 100644 --- a/rep2/js/iphone.js +++ b/rep2/js/iphone.js @@ -778,6 +778,12 @@ iutil.toolbarShowHide = function(element, event) { } } } + + // 書き込みフォームなら画面をスクロール(本家より) + if(id=='kakiko') { + var to = parseInt(target.offsetTop); + document.body.scrollTop = to - 60; + } } } }