1/* 2 * This file is part of EC-CUBE 3 * 4 * Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved. 5 * 6 * http://www.ec-cube.co.jp/ 7 * 8 * This program is free software; you can redistribute it and/or 9 * modify it under the terms of the GNU General Public License 10 * as published by the Free Software Foundation; either version 2 11 * of the License, or (at your option) any later version. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with this program; if not, write to the Free Software 20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 21 */ 22 23function chgImg(fileName,img){ 24 if (typeof(img) == "object") { 25 img.src = fileName; 26 } else { 27 document.images[img].src = fileName; 28 } 29} 30 31function chgImgImageSubmit(fileName,imgObj){ 32 imgObj.src = fileName; 33} 34 35function win01(URL,Winname,Wwidth,Wheight){ 36 var option = {scrollbars: "no", resizable: "no"}; 37 eccube.openWindow(URL,Winname,Wwidth,Wheight,option); 38} 39 40function win02(URL,Winname,Wwidth,Wheight){ 41 eccube.openWindow(URL,Winname,Wwidth,Wheight); 42} 43 44function win03(URL,Winname,Wwidth,Wheight){ 45 var option = {menubar: "no"}; 46 eccube.openWindow(URL,Winname,Wwidth,Wheight,option); 47} 48 49function winSubmit(URL,formName,Winname,Wwidth,Wheight){ 50 var option = {menubar: "no", formTarget: formName}; 51 eccube.openWindow(URL,Winname,Wwidth,Wheight,option); 52} 53 54// 親ã¦ã£ã³ãã¦ã®åå¨ç¢ºèª. 55function fnIsopener() { 56 return eccube.isOpener(); 57} 58 59// éµä¾¿çªå·å ¥åå¼ã³åºã. 60function fnCallAddress(php_url, tagname1, tagname2, input1, input2) { 61 eccube.getAddress(php_url, tagname1, tagname2, input1, input2); 62} 63 64// éµä¾¿çªå·ããæ¤ç´¢ããä½æãæ¸¡ã. 65function fnPutAddress(input1, input2, state, city, town) { 66 eccube.putAddress(input1, input2, state, city, town); 67} 68 69function fnOpenNoMenu(URL) { 70 window.open(URL,"nomenu","scrollbars=yes,resizable=yes,toolbar=no,location=no,directories=no,status=no"); 71} 72 73function fnOpenWindow(URL,name,width,height) { 74 var option = {resizable: "no", focus: false}; 75 eccube.openWindow(URL,name,width,height,option); 76} 77 78function fnSetFocus(name) { 79 eccube.setFocus(name); 80} 81 82// ã»ã¬ã¯ãããã¯ã¹ã«é ç®ãå²ãå½ã¦ã. 83function fnSetSelect(name1, name2, val) { 84 sele1 = document.form1[name1]; 85 sele2 = document.form1[name2]; 86 87 if(sele1 && sele2) { 88 index=sele1.selectedIndex; 89 90 // ã»ã¬ã¯ãããã¯ã¹ã®ã¯ãªã¢ 91 count=sele2.options.length 92 for(i = count; i >= 0; i--) { 93 sele2.options[i]=null; 94 } 95 96 // ã»ã¬ã¯ãããã¯ã¹ã«å¤ãå²ãå½ã¦ãã 97 len = lists[index].length 98 for(i = 0; i < len; i++) { 99 sele2.options[i]=new Option(lists[index][i], vals[index][i]); 100 if(val != "" && vals[index][i] == val) { 101 sele2.options[i].selected = true; 102 } 103 } 104 } 105} 106 107// Enterãã¼å ¥åããã£ã³ã»ã«ããã(IEã«å¯¾å¿) 108function fnCancelEnter() 109{ 110 if (gCssUA.indexOf("WIN") != -1 && gCssUA.indexOf("MSIE") != -1) { 111 if (window.event.keyCode == 13) 112 { 113 return false; 114 } 115 } 116 return true; 117} 118 119// ã¢ã¼ãã¨ãã¼ãæå®ãã¦SUBMITãè¡ãã 120function fnModeSubmit(mode, keyname, keyid) { 121 eccube.setModeAndSubmit(mode, keyname, keyid); 122} 123 124function fnFormModeSubmit(form, mode, keyname, keyid) { 125 eccube.fnFormModeSubmit(form, mode, keyname, keyid); 126} 127 128function fnSetFormSubmit(form, key, val) { 129 return eccube.setValueAndSubmit(form, key, val); 130} 131 132function fnSetVal(key, val) { 133 eccube.setValue(key, val); 134} 135 136function fnSetFormVal(form, key, val) { 137 eccube.setValue(key, val, form); 138} 139 140function fnChangeAction(url) { 141 eccube.changeAction(url); 142} 143 144// ãã¼ã¸ããã§ä½¿ç¨ããã 145function fnNaviPage(pageno) { 146 eccube.movePage(pageno); 147} 148 149function fnSearchPageNavi(pageno) { 150 eccube.movePage(pageno, 'search'); 151} 152 153function fnSubmit(){
154 eccube.submitForm(); 155} 156 157// ãã¤ã³ãå ¥åå¶éã 158function fnCheckInputPoint() { 159 eccube.togglePointForm(); 160} 161 162// å¥ã®ãå±ãå å ¥åå¶éã 163function fnCheckInputDeliv() { 164 eccube.toggleDeliveryForm(); 165} 166 167// æåã«è¨å®ããã¦ããè²ãä¿åãã¦ããã 168var g_savecolor = new Array(); 169 170function fnChangeDisabled(list, color) { 171 eccube.changeDisabled(list, color); 172} 173 174// ãã°ã¤ã³æã®å ¥åãã§ã㯠175function fnCheckLogin(formname) { 176 return eccube.checkLoginFormInputted(formname); 177} 178 179// æéã®è¨æ¸¬. 180function fnPassTime(){ 181 end_time = new Date(); 182 time = end_time.getTime() - start_time.getTime(); 183 customAlert((time/1000)); 184} 185start_time = new Date(); 186 187//親ã¦ã£ã³ãã¦ã®ãã¼ã¸ã夿´ãã. 188function fnUpdateParent(url) { 189 eccube.changeParentUrl(url); 190} 191 192//ç¹å®ã®ãã¼ãSUBMITãã. 193function fnKeySubmit(keyname, keyid) { 194 var values = {}; 195 values[keyname] = keyid; 196 eccube.submitForm(values); 197} 198 199//æåæ°ãã«ã¦ã³ãããã 200//弿°1ï¼ãã©ã¼ã åç§° 201//弿°2ï¼æåæ°ã«ã¦ã³ã対象 202//弿°3ï¼ã«ã¦ã³ãçµææ ¼ç´å¯¾è±¡ 203function fnCharCount(form,sch,cnt) { 204 eccube.countChars(form,sch,cnt); 205} 206 207// ããã¹ãã¨ãªã¢ã®ãµã¤ãºã夿´ãã. 208function ChangeSize(buttonSelector, textAreaSelector, max, min) { 209 eccube.toggleRows(buttonSelector, textAreaSelector, max, min); 210} 211 212/** 213 * è¦æ ¼2ã®ãã«ãã¦ã³ãè¨å®ãã. 214 */ 215function setClassCategories($form, product_id, $sele1, $sele2, selected_id2) { 216 eccube.setClassCategories($form, product_id, $sele1, $sele2, selected_id2); 217} 218 219/** 220 * è¦æ ¼ã®é¸æç¶æ ã«å¿ãã¦, ãã£ã¼ã«ããè¨å®ãã. 221 */ 222function checkStock($form, product_id, classcat_id1, classcat_id2) { 223 eccube.checkStock($form, product_id, classcat_id1, classcat_id2); 224} 225 226/** 227 * èªåä¿åãã. 228 */ 229function autoSave(form_id, page) { 230 eccube.autoSave(form_id, page); 231} 232 233/** 234 * å°å·ãããã©ãã. 235 */ 236function changePrint(name, value) { 237 eccube.changePrint(name, value); 238} 239 240/** 241 * ãã¼ã¹ã¿ã¼ã§ã¡ãã»ã¼ã¸ã表示ãã. 242 */ 243function showToast(type, message, title, okFunction, cancelFunction) { 244 eccube.showToast(type, message, title, okFunction, cancelFunction); 245} 246 247/** 248 * ãã¼ã¹ã¿ã¼ã§ç¢ºèªã¡ãã»ã¼ã¸ã表示ãã. 249 */ 250function customConfirm(message, title, okFunction, cancelFunction) { 251 eccube.customConfirm(message, title, okFunction, cancelFunction); 252} 253 254/** 255 * ãã¼ã¹ã¿ã¼ã§ã¢ã©ã¼ãã¡ãã»ã¼ã¸ã表示ãã. 256 */ 257function customAlert(message, title) { 258 eccube.customAlert(message, title); 259} 260 261gCssUA = navigator.userAgent.toUpperCase(); 262gCssBrw = navigator.appName.toUpperCase(); 263 264with (document) { 265 write("<style type=\"text/css\"><!--"); 266 267 //WIN-IE 268 if (gCssUA.indexOf("WIN") != -1 && gCssUA.indexOf("MSIE") != -1) { 269 write(".fs10 {font-size: 62.5%; line-height: 150%; letter-spacing:1px;}"); 270 write(".fs12 {font-size: 75%; line-height: 150%; letter-spacing:1.5px;}"); 271 write(".fs14 {font-size: 87.5%; line-height: 150%; letter-spacing:2px;}"); 272 write(".fs18 {font-size: 117.5%; line-height: 130%; letter-spacing:2.5px;}"); 273 write(".fs22 {font-size: 137.5%; line-height: 130%; letter-spacing:3px;}"); 274 write(".fs24 {font-size: 150%; line-height: 130%; letter-spacing:3px;}"); 275 write(".fs30 {font-size: 187.5%; line-height: 125%; letter-spacing:3.5px;}"); 276 write(".fs10n {font-size: 62.5%; letter-spacing:1px;}"); 277 write(".fs12n {font-size: 75%; letter-spacing:1.5px;}"); 278 write(".fs14n {font-size: 87.5%; letter-spacing:2px;}"); 279 write(".fs18n {font-size: 117.5%; letter-spacing:2.5px;}"); 280 write(".fs22n {font-size: 137.5%; letter-spacing:1px;}"); 281 write(".fs24n {font-size: 150%; letter-spacing:1px;}"); 282 write(".fs30n {font-size: 187.5%; letter-spacing:1px;}"); 283 write(".fs12st {font-size: 75%; line-height: 150%; letter-spacing:1.5px; font-weight: bold;}"); 284 } 285 286 //WIN-NN 287 if (gCssUA.indexOf("WIN") != -1 && gCssBrw.indexOf("NETSCAPE") != -1) { 288 write(".fs10 {font-size:72%; line-height:130%;}"); 289 write(".fs12 {font-size: 75%; line-height: 150%;}"); 290 write(".fs14 {font-size: 87.5%; line-height: 140%;}"); 291 write(".fs18 {font-size: 117.5%; line-height: 130%;}"); 292 write(".fs22 {font-size: 137.5%; line-height: 130%;}"); 293 write(".fs24 {font-size: 150%; line-height: 130%;}"); 294 write(".fs30 {font-size: 187.5%; line-height: 120%;}"); 295 write(".fs10n {font-size:72%;}"); 296 write(".fs12n {font-size: 75%;}"); 297 write(".fs14n {font-size: 87.5%;}"); 298 write(".fs18n {font-size: 117.5%;}"); 299 write(".fs22n {font-size: 137.5%;}"); 300 write(".fs24n {font-size: 150%;}"); 301 write(".fs30n {font-size: 187.5%;}"); 302 write(".fs12st {font-size: 75%; line-height: 150%; font-weight: bold;}"); 303 } 304 305 //WIN-NN4.x
306 if ( navigator.appName == "Netscape" && navigator.appVersion.substr(0,2) == "4." ) { 307 write(".fs10 {font-size:90%; line-height: 130%;}"); 308 write(".fs12 {font-size: 100%; line-height: 140%;}"); 309 write(".fs14 {font-size: 110%; line-height: 135%;}"); 310 write(".fs18 {font-size: 130%; line-height: 175%;}"); 311 write(".fs24 {font-size: 190%; line-height: 240%;}"); 312 write(".fs30 {font-size: 240%; line-height: 285%;}"); 313 write(".fs10n {font-size:90%;}"); 314 write(".fs12n {font-size: 100%;}"); 315 write(".fs14n {font-size: 110%;}"); 316 write(".fs18n {font-size: 130%;}"); 317 write(".fs24n {font-size: 190%;}"); 318 write(".fs30n {font-size: 240%;}"); 319 write(".fs12st {font-size: 100%; line-height: 140%; font-weight: bold;}"); 320 } 321 322 //MAC 323 if (gCssUA.indexOf("MAC") != -1) { 324 write(".fs10 {font-size: 10px; line-height: 14px;}"); 325 write(".fs12 {font-size: 12px; line-height: 18px;}"); 326 write(".fs14 {font-size: 14px; line-height: 18px;}"); 327 write(".fs18 {font-size: 18px; line-height: 23px;}"); 328 write(".fs22 {font-size: 22px; line-height: 27px;}"); 329 write(".fs24 {font-size: 24px; line-height: 30px;}"); 330 write(".fs30 {font-size: 30px; line-height: 35px;}"); 331 write(".fs10n {font-size: 10px;}"); 332 write(".fs12n {font-size: 12px;}"); 333 write(".fs14n {font-size: 14px;}"); 334 write(".fs18n {font-size: 18px;}"); 335 write(".fs22n {font-size: 22px;}"); 336 write(".fs24n {font-size: 24px;}"); 337 write(".fs30n {font-size: 30px;}"); 338 write(".fs12st {font-size: 12px; line-height: 18px; font-weight: bold;}"); 339 } 340 341 write("--></style>"); 342}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.