/*============================================================================== 頁切り替え --------------------------------------------------------------------------------*/ function page( set ){ cm( 'page', set ); } /*============================================================================== メソッド(アンパック) --------------------------------------------------------------------------------*/ function method_unpack(){ var param = location.search.substr( 1 ).split( '&' ); var method = new Object(); for( i = 0; i < param.length; i ++ ){ var temp = param[i].split( '=' ); method[ temp[0] ] = temp[1]; } return method; } /*============================================================================== メソッド(パック) --------------------------------------------------------------------------------*/ function method_pack( set_obj ){ var method = new Array(); for( i in set_obj ){ if( set_obj[i] == undefined ) continue; method.push( i + '=' + set_obj[i] ); } return method.join( '&' ); } /* 編集 --------------------------------------*/ function edit_easy( cid, mid ){ location.href='/edit/easy.php?id='+cid+(mid?'&mid='+mid:''); } function edit_hard( cid, mid ){ location.href='/edit/index.php?id='+cid+(mid?'&mid='+mid:''); } /*============================================================================== 特定のメソッド入れ替えchange method ------------------------------------------------------------------------------*/ function cm( set_key, set_value ){ var hash = method_unpack();//new Object(); hash[ set_key ] = set_value; location.href = location.pathname + '?' + method_pack( hash ); } /*============================================================================== 特定のメソッド入れ替えchange method ------------------------------------------------------------------------------*/ function href( set ){ location.href = set; } /*============================================================================== 特定のメソッド入れ替えchange method ------------------------------------------------------------------------------*/ function execPost_login() { var scrw = window.innerWidth; var scrh = window.innerHeight; //var cid = cardid; var form = document.createElement("form"); var request = document.createElement('input'); request.type = 'hidden'; form.method = 'POST'; form.action = '../login.php'; const sscrw = document.createElement('input'); sscrw.value = scrw; sscrw.name = 'scrw'; form.appendChild(sscrw); const sscrh = document.createElement('input'); sscrh.value = scrh; sscrh.name = 'scrh'; form.appendChild(sscrh); document.body.appendChild(form); form.submit(); } function execPost_login2() { var scrw = window.innerWidth; var scrh = window.innerHeight; var mail = document.getElementById("mail2").value; var passwd2 = document.getElementById("passwd2").value; var form = document.createElement("form"); var request = document.createElement('input'); request.type = 'hidden'; form.method = 'POST'; form.action = '../login.php'; const sscrw = document.createElement('input'); sscrw.value = scrw; sscrw.name = 'scrw'; form.appendChild(sscrw); const sscrh = document.createElement('input'); sscrh.value = scrh; sscrh.name = 'scrh'; form.appendChild(sscrh); const scmd = document.createElement('input'); scmd.value = 'login'; scmd.name = 'cmd'; form.appendChild(scmd); const smail = document.createElement('input'); smail.value = mail; smail.name = 'mail'; form.appendChild(smail); const spassword = document.createElement('input'); spassword.value = passwd2; spassword.name = 'password'; form.appendChild(spassword); document.body.appendChild(form); form.submit(); } function execPost_login3() { var scrw = window.innerWidth; var scrh = window.innerHeight; var mail = document.getElementById("mail3").value; var passwd2 = document.getElementById("passwd3").value; var form = document.createElement("form"); var request = document.createElement('input'); request.type = 'hidden'; form.method = 'POST'; form.action = '../login.php'; const sscrw = document.createElement('input'); sscrw.value = scrw; sscrw.name = 'scrw'; form.appendChild(sscrw); const sscrh = document.createElement('input'); sscrh.value = scrh; sscrh.name = 'scrh'; form.appendChild(sscrh); const scmd = document.createElement('input'); scmd.value = 'login'; scmd.name = 'cmd'; form.appendChild(scmd); const smail = document.createElement('input'); smail.value = mail; smail.name = 'mail'; form.appendChild(smail); const spassword = document.createElement('input'); spassword.value = passwd2; spassword.name = 'password'; form.appendChild(spassword); document.body.appendChild(form); form.submit(); } function execPost_register() { var scrw = window.innerWidth; var scrh = window.innerHeight; var form = document.createElement("form"); var request = document.createElement('input'); request.type = 'hidden'; form.method = 'POST'; form.action = '../register.php'; const sscrw = document.createElement('input'); sscrw.value = scrw; sscrw.name = 'scrw'; form.appendChild(sscrw); const sscrh = document.createElement('input'); sscrh.value = scrh; sscrh.name = 'scrh'; form.appendChild(sscrh); document.body.appendChild(form); form.submit(); } function execPost_register2() { var scrw = window.innerWidth; var scrh = window.innerHeight; var ImageNinsho = document.getElementById("ImageNinsho").value; var mail = document.getElementById("mail").value; var password = document.getElementById("password").value; var form = document.createElement("form"); var request = document.createElement('input'); request.type = 'hidden'; form.method = 'POST'; form.action = '../register.php'; const sscrw = document.createElement('input'); sscrw.value = scrw; sscrw.name = 'scrw'; form.appendChild(sscrw); const sscrh = document.createElement('input'); sscrh.value = scrh; sscrh.name = 'scrh'; form.appendChild(sscrh); const scmd = document.createElement('input'); scmd.value = 'entry'; scmd.name = 'cmd'; form.appendChild(scmd); const smail = document.createElement('input'); smail.value = mail; smail.name = 'mail'; form.appendChild(smail); const spassword = document.createElement('input'); spassword.value = password; spassword.name = 'pass'; form.appendChild(spassword); const sImageNinsho = document.createElement('input'); sImageNinsho.value = ImageNinsho; sImageNinsho.name = 'ImageNinsho'; form.appendChild(sImageNinsho); document.body.appendChild(form); form.submit(); } function execPost_attest() { var scrw = window.innerWidth; var scrh = window.innerHeight; var form = document.createElement("form"); var request = document.createElement('input'); request.type = 'hidden'; form.method = 'POST'; form.action = '../attest.php'; const sscrw = document.createElement('input'); sscrw.value = scrw; sscrw.name = 'scrw'; form.appendChild(sscrw); const sscrh = document.createElement('input'); sscrh.value = scrh; sscrh.name = 'scrh'; form.appendChild(sscrh); document.body.appendChild(form); form.submit(); } function execPost_attest2() { var scrw = window.innerWidth; var scrh = window.innerHeight; var maila = document.getElementById('mailx').value; var form = document.createElement("form"); var request = document.createElement('input'); request.type = 'hidden'; form.method = 'POST'; form.action = '../attest.php'; const sscrw = document.createElement('input'); sscrw.value = scrw; sscrw.name = 'scrw'; form.appendChild(sscrw); const sscrh = document.createElement('input'); sscrh.value = scrh; sscrh.name = 'scrh'; form.appendChild(sscrh); const scmd = document.createElement('input'); scmd.value = 'entry'; scmd.name = 'cmd'; form.appendChild(scmd); const smaila = document.createElement('input'); smaila.value = maila; smaila.name = 'mail'; form.appendChild(smaila); document.body.appendChild(form); form.submit(); } function execPost(sideid,cpcid) { var scrw = window.innerWidth; var scrh = window.innerHeight; var sid = sideid; var mid = document.getElementById('midw').innerHTML; var form = document.createElement("form"); var request = document.createElement('input'); request.type = 'hidden'; form.method = 'POST'; form.action = '/edit/index.php'; const sscrw = document.createElement('input'); sscrw.value = scrw; sscrw.name = 'scrw'; form.appendChild(sscrw); const sscrh = document.createElement('input'); sscrh.value = scrh; sscrh.name = 'scrh'; form.appendChild(sscrh); const ssid = document.createElement('input'); ssid.value = sid; ssid.name = 'sid0'; form.appendChild(ssid); const smid = document.createElement('input'); smid.value = mid; smid.name = 'mid'; form.appendChild(smid); const sfrom = document.createElement('input'); sfrom.value = 'side'; sfrom.name = 'from'; form.appendChild(sfrom); const spage = document.createElement('input'); spage.value = cpcid; spage.name = 'page'; form.appendChild(spage); document.body.appendChild(form); form.submit(); } function execPost_free(sideid) { var scrw = window.innerWidth; var scrh = window.innerHeight; var sid = sideid; var form = document.createElement("form"); var request = document.createElement('input'); request.type = 'hidden'; form.method = 'POST'; form.action = '/edit/easy.php'; const sscrw = document.createElement('input'); sscrw.value = scrw; sscrw.name = 'scrw'; form.appendChild(sscrw); const sscrh = document.createElement('input'); sscrh.value = scrh; sscrh.name = 'scrh'; form.appendChild(sscrh); const ssid = document.createElement('input'); ssid.value = sid; ssid.name = 'sid0'; form.appendChild(ssid); const sfrom = document.createElement('input'); sfrom.value = 'side'; sfrom.name = 'from'; form.appendChild(sfrom); document.body.appendChild(form); form.submit(); } function execPost_sumaho(sideid,cpcid) { var scrw = window.innerWidth; var scrh = window.innerHeight; var sid = sideid; var form = document.createElement("form"); var request = document.createElement('input'); request.type = 'hidden'; form.method = 'POST'; form.action = '/edit/edit_sumaho.php'; const sscrw = document.createElement('input'); sscrw.value = scrw; sscrw.name = 'scrw'; form.appendChild(sscrw); const sscrh = document.createElement('input'); sscrh.value = scrh; sscrh.name = 'scrh'; form.appendChild(sscrh); const ssid = document.createElement('input'); ssid.value = sid; ssid.name = 'sid0'; form.appendChild(ssid); const spage = document.createElement('input'); spage.value = cpcid; spage.name = 'page'; form.appendChild(spage); const sfrom = document.createElement('input'); sfrom.value = 'side_sumaho'; sfrom.name = 'from'; form.appendChild(sfrom); document.body.appendChild(form); form.submit(); } function aon() { target1 = document.getElementById("a_on"); target2 = document.getElementById("b_on"); target3 = document.getElementById("c_on"); target4 = document.getElementById("d_on"); target5 = document.getElementById("e_on"); target6 = document.getElementById("f_on"); target7 = document.getElementById("g_on"); target8 = document.getElementById("h_on"); target9 = document.getElementById("i_on"); target10 = document.getElementById("j_on"); target1.style.backgroundColor = 'red'; target2.style.backgroundColor = 'blue'; target3.style.backgroundColor = 'blue'; target4.style.backgroundColor = 'blue'; target5.style.backgroundColor = 'blue'; target6.style.backgroundColor = 'blue'; target7.style.backgroundColor = 'blue'; target8.style.backgroundColor = 'blue'; target9.style.backgroundColor = 'blue'; target10.style.backgroundColor = 'blue'; } function bon() { target1 = document.getElementById("a_on"); target2 = document.getElementById("b_on"); target3 = document.getElementById("c_on"); target4 = document.getElementById("d_on"); target5 = document.getElementById("e_on"); target6 = document.getElementById("f_on"); target7 = document.getElementById("g_on"); target8 = document.getElementById("h_on"); target9 = document.getElementById("i_on"); target10 = document.getElementById("j_on"); target1.style.backgroundColor = 'blue'; target2.style.backgroundColor = 'red'; target3.style.backgroundColor = 'blue'; target4.style.backgroundColor = 'blue'; target5.style.backgroundColor = 'blue'; target6.style.backgroundColor = 'blue'; target7.style.backgroundColor = 'blue'; target8.style.backgroundColor = 'blue'; target9.style.backgroundColor = 'blue'; target10.style.backgroundColor = 'blue'; } function con() { target1 = document.getElementById("a_on"); target2 = document.getElementById("b_on"); target3 = document.getElementById("c_on"); target4 = document.getElementById("d_on"); target5 = document.getElementById("e_on"); target6 = document.getElementById("f_on"); target7 = document.getElementById("g_on"); target8 = document.getElementById("h_on"); target9 = document.getElementById("i_on"); target10 = document.getElementById("j_on"); target1.style.backgroundColor = 'blue'; target2.style.backgroundColor = 'blue'; target3.style.backgroundColor = 'red'; target4.style.backgroundColor = 'blue'; target5.style.backgroundColor = 'blue'; target6.style.backgroundColor = 'blue'; target7.style.backgroundColor = 'blue'; target8.style.backgroundColor = 'blue'; target9.style.backgroundColor = 'blue'; target10.style.backgroundColor = 'blue'; } function don() { target1 = document.getElementById("a_on"); target2 = document.getElementById("b_on"); target3 = document.getElementById("c_on"); target4 = document.getElementById("d_on"); target5 = document.getElementById("e_on"); target6 = document.getElementById("f_on"); target7 = document.getElementById("g_on"); target8 = document.getElementById("h_on"); target9 = document.getElementById("i_on"); target10 = document.getElementById("j_on"); target1.style.backgroundColor = 'blue'; target2.style.backgroundColor = 'blue'; target3.style.backgroundColor = 'blue'; target4.style.backgroundColor = 'red'; target5.style.backgroundColor = 'blue'; target6.style.backgroundColor = 'blue'; target7.style.backgroundColor = 'blue'; target8.style.backgroundColor = 'blue'; target9.style.backgroundColor = 'blue'; target10.style.backgroundColor = 'blue'; } function eon() { target1 = document.getElementById("a_on"); target2 = document.getElementById("b_on"); target3 = document.getElementById("c_on"); target4 = document.getElementById("d_on"); target5 = document.getElementById("e_on"); target6 = document.getElementById("f_on"); target7 = document.getElementById("g_on"); target8 = document.getElementById("h_on"); target9 = document.getElementById("i_on"); target10 = document.getElementById("j_on"); target1.style.backgroundColor = 'blue'; target2.style.backgroundColor = 'blue'; target3.style.backgroundColor = 'blue'; target4.style.backgroundColor = 'blue'; target5.style.backgroundColor = 'red'; target6.style.backgroundColor = 'blue'; target7.style.backgroundColor = 'blue'; target8.style.backgroundColor = 'blue'; target9.style.backgroundColor = 'blue'; target10.style.backgroundColor = 'blue'; } function fon() { target1 = document.getElementById("a_on"); target2 = document.getElementById("b_on"); target3 = document.getElementById("c_on"); target4 = document.getElementById("d_on"); target5 = document.getElementById("e_on"); target6 = document.getElementById("f_on"); target7 = document.getElementById("g_on"); target8 = document.getElementById("h_on"); target9 = document.getElementById("i_on"); target10 = document.getElementById("j_on"); target1.style.backgroundColor = 'blue'; target2.style.backgroundColor = 'blue'; target3.style.backgroundColor = 'blue'; target4.style.backgroundColor = 'blue'; target5.style.backgroundColor = 'blue'; target6.style.backgroundColor = 'red'; target7.style.backgroundColor = 'blue'; target8.style.backgroundColor = 'blue'; target9.style.backgroundColor = 'blue'; target10.style.backgroundColor = 'blue'; } function gon() { target1 = document.getElementById("a_on"); target2 = document.getElementById("b_on"); target3 = document.getElementById("c_on"); target4 = document.getElementById("d_on"); target5 = document.getElementById("e_on"); target6 = document.getElementById("f_on"); target7 = document.getElementById("g_on"); target8 = document.getElementById("h_on"); target9 = document.getElementById("i_on"); target10 = document.getElementById("j_on"); target1.style.backgroundColor = 'blue'; target2.style.backgroundColor = 'blue'; target3.style.backgroundColor = 'blue'; target4.style.backgroundColor = 'blue'; target5.style.backgroundColor = 'blue'; target6.style.backgroundColor = 'blue'; target7.style.backgroundColor = 'red'; target8.style.backgroundColor = 'blue'; target9.style.backgroundColor = 'blue'; target10.style.backgroundColor = 'blue'; } function hon() { target1 = document.getElementById("a_on"); target2 = document.getElementById("b_on"); target3 = document.getElementById("c_on"); target4 = document.getElementById("d_on"); target5 = document.getElementById("e_on"); target6 = document.getElementById("f_on"); target7 = document.getElementById("g_on"); target8 = document.getElementById("h_on"); target9 = document.getElementById("i_on"); target10 = document.getElementById("j_on"); target1.style.backgroundColor = 'blue'; target2.style.backgroundColor = 'blue'; target3.style.backgroundColor = 'blue'; target4.style.backgroundColor = 'blue'; target5.style.backgroundColor = 'blue'; target6.style.backgroundColor = 'blue'; target7.style.backgroundColor = 'blue'; target8.style.backgroundColor = 'red'; target9.style.backgroundColor = 'blue'; target10.style.backgroundColor = 'blue'; } function ion() { target1 = document.getElementById("a_on"); target2 = document.getElementById("b_on"); target3 = document.getElementById("c_on"); target4 = document.getElementById("d_on"); target5 = document.getElementById("e_on"); target6 = document.getElementById("f_on"); target7 = document.getElementById("g_on"); target8 = document.getElementById("h_on"); target9 = document.getElementById("i_on"); target10 = document.getElementById("j_on"); target1.style.backgroundColor = 'blue'; target2.style.backgroundColor = 'blue'; target3.style.backgroundColor = 'blue'; target4.style.backgroundColor = 'blue'; target5.style.backgroundColor = 'blue'; target6.style.backgroundColor = 'blue'; target7.style.backgroundColor = 'blue'; target8.style.backgroundColor = 'blue'; target9.style.backgroundColor = 'red'; target10.style.backgroundColor = 'blue'; } function jon() { target1 = document.getElementById("a_on"); target2 = document.getElementById("b_on"); target3 = document.getElementById("c_on"); target4 = document.getElementById("d_on"); target5 = document.getElementById("e_on"); target6 = document.getElementById("f_on"); target7 = document.getElementById("g_on"); target8 = document.getElementById("h_on"); target9 = document.getElementById("i_on"); target10 = document.getElementById("j_on"); target1.style.backgroundColor = 'blue'; target2.style.backgroundColor = 'blue'; target3.style.backgroundColor = 'blue'; target4.style.backgroundColor = 'blue'; target5.style.backgroundColor = 'blue'; target6.style.backgroundColor = 'blue'; target7.style.backgroundColor = 'blue'; target8.style.backgroundColor = 'blue'; target9.style.backgroundColor = 'blue'; target10.style.backgroundColor = 'red'; } function side_select( set_id,cpcid ){ var acrw = window.innerWidth; var acrh = window.innerHeight; var asid = set_id; var form = document.createElement("form"); var request = document.createElement('input'); request.type = 'hidden'; form.method = 'POST'; form.action = '../side.php'; const ascrw = document.createElement('input'); ascrw.value = acrw; ascrw.name = 'scrw'; form.appendChild(ascrw); const ascrh = document.createElement('input'); ascrh.value = acrh; ascrh.name = 'scrh'; form.appendChild(ascrh); const aasid = document.createElement('input'); aasid.value = asid; aasid.name = 'id'; form.appendChild(aasid); const afrom = document.createElement('input'); afrom.value = set_id; afrom.name = 'from'; form.appendChild(afrom); const apage = document.createElement('input'); apage.value = cpcid; apage.name = 'page'; form.appendChild(apage); document.body.appendChild(form); form.submit(); } function side_select_easy( set_id,cpcid ){ var acrw = window.innerWidth; var acrh = window.innerHeight; var asid = set_id; var form = document.createElement("form"); var request = document.createElement('input'); request.type = 'hidden'; form.method = 'POST'; form.action = '../side.php'; const ascrw = document.createElement('input'); ascrw.value = acrw; ascrw.name = 'scrw'; form.appendChild(ascrw); const ascrh = document.createElement('input'); ascrh.value = acrh; ascrh.name = 'scrh'; form.appendChild(ascrh); const aasid = document.createElement('input'); aasid.value = asid; aasid.name = 'id'; form.appendChild(aasid); const afrom = document.createElement('input'); afrom.value = set_id; afrom.name = 'from'; form.appendChild(afrom); const apage = document.createElement('input'); apage.value = cpcid; apage.name = 'page'; form.appendChild(apage); document.body.appendChild(form); form.submit(); } function side_select_sumaho( set_id ){ var acrw = window.innerWidth; var acrh = window.innerHeight; var asid = set_id; var form = document.createElement("form"); var request = document.createElement('input'); request.type = 'hidden'; form.method = 'POST'; form.action = '../side.php'; const ascrw = document.createElement('input'); ascrw.value = acrw; ascrw.name = 'scrw'; form.appendChild(ascrw); const ascrh = document.createElement('input'); ascrh.value = acrh; ascrh.name = 'scrh'; form.appendChild(ascrh); const aasid = document.createElement('input'); aasid.value = asid; aasid.name = 'id'; form.appendChild(aasid); document.body.appendChild(form); form.submit(); } function card_folder_select( set_folder ){ var acrw = window.innerWidth; var acrh = window.innerHeight; var afolder = set_folder; var form = document.createElement("form"); var request = document.createElement('input'); request.type = 'hidden'; form.method = 'POST'; form.action = 'card.php'; const ascrw = document.createElement('input'); ascrw.value = acrw; ascrw.name = 'scrw'; form.appendChild(ascrw); const aafolder = document.createElement('input'); aafolder.value = afolder; aafolder.name = 'folder'; form.appendChild(aafolder); document.body.appendChild(form); form.submit(); } function card_folder_select_side( set_folder ){ var acrw = window.innerWidth; var acrh = window.innerHeight; var afolder = set_folder; var form = document.createElement("form"); var request = document.createElement('input'); request.type = 'hidden'; form.method = 'POST'; form.action = 'card.php'; const ascrw = document.createElement('input'); ascrw.value = acrw; ascrw.name = 'scrw'; form.appendChild(ascrw); const aafolder = document.createElement('input'); aafolder.value = afolder; aafolder.name = 'folder'; form.appendChild(aafolder); document.body.appendChild(form); form.submit(); } function card_folder_select_side_nologin( set_folder ){ var acrw = window.innerWidth; var acrh = window.innerHeight; var afolder = set_folder; var form = document.createElement("form"); var request = document.createElement('input'); request.type = 'hidden'; form.method = 'POST'; form.action = 'login/card.php'; const ascrw = document.createElement('input'); ascrw.value = acrw; ascrw.name = 'scrw'; form.appendChild(ascrw); const aafolder = document.createElement('input'); aafolder.value = afolder; aafolder.name = 'folder'; form.appendChild(aafolder); document.body.appendChild(form); form.submit(); }