From 81b5c8875cfcfca6db3fe095438441fe0b9adf4f Mon Sep 17 00:00:00 2001 From: Codekpy <1942171924@qq.com> Date: Mon, 14 Nov 2022 13:23:33 +0800 Subject: [PATCH 01/12] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E5=A4=A7=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ide.html | 119 ++++++++++++++++++++++++++++++++++++++++++++++++++ kzhzbcphp.php | 4 ++ 2 files changed, 123 insertions(+) diff --git a/ide.html b/ide.html index 13a4f9d..c4a37b9 100644 --- a/ide.html +++ b/ide.html @@ -11,6 +11,125 @@ + diff --git a/kzhzbcphp.php b/kzhzbcphp.php index 30fda81..34b7022 100644 --- a/kzhzbcphp.php +++ b/kzhzbcphp.php @@ -18,6 +18,9 @@ $make = fopen("./blockly/ini/blocks/get.js.js", "r") or die("Unable to open file!"); $mak = ''; fclose($make); + $css = fopen("./blockly/ini/ide_files/style.css", "r") or die("Unable to open file!"); + $cs = fread($css,filesize("./blockly/ini/ide_files/style.css")); + fclose($css); echo $text = <<<__ @@ -32,6 +35,7 @@ echo $text = <<<__ + $wx -- Gitee From a49cf14e17e72f7b0e46445a9c13251dc4a41335 Mon Sep 17 00:00:00 2001 From: Codekpy <1942171924@qq.com> Date: Mon, 14 Nov 2022 13:32:03 +0800 Subject: [PATCH 02/12] bug --- blockly/ini/blocks/get.js.js | 8 ++++---- ide.html | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/blockly/ini/blocks/get.js.js b/blockly/ini/blocks/get.js.js index 838b9e9..336b648 100644 --- a/blockly/ini/blocks/get.js.js +++ b/blockly/ini/blocks/get.js.js @@ -233,21 +233,21 @@ Blockly.PHP['shuxing'] = function(block) { Blockly.PHP['width'] = function(block) { var value_width_value = Blockly.PHP.valueToCode(block, 'width_value', Blockly.PHP.ORDER_ATOMIC); // TODO: Assemble PHP into code variable. - var code = '...;\n'; + var code = 'width:' + value_width_value + ';'; return code; }; Blockly.PHP['height'] = function(block) { var value_height_value = Blockly.PHP.valueToCode(block, 'height_value', Blockly.PHP.ORDER_ATOMIC); // TODO: Assemble PHP into code variable. - var code = '...;\n'; + var code = 'height:' + value_height_value + ';'; return code; }; Blockly.PHP['point'] = function(block) { var value_value = Blockly.PHP.valueToCode(block, 'value', Blockly.PHP.ORDER_ATOMIC); // TODO: Assemble PHP into code variable. - var code = '...'; + var code = value_value + '%'; // TODO: Change ORDER_NONE to the correct strength. return [code, Blockly.PHP.ORDER_NONE]; }; @@ -255,7 +255,7 @@ Blockly.PHP['point'] = function(block) { Blockly.PHP['px'] = function(block) { var value_value = Blockly.PHP.valueToCode(block, 'value', Blockly.PHP.ORDER_ATOMIC); // TODO: Assemble PHP into code variable. - var code = '...'; + var code = value_value + 'px'; // TODO: Change ORDER_NONE to the correct strength. return [code, Blockly.PHP.ORDER_NONE]; }; \ No newline at end of file diff --git a/ide.html b/ide.html index c4a37b9..6f99202 100644 --- a/ide.html +++ b/ide.html @@ -1442,21 +1442,21 @@ Blockly.PHP['shuxing'] = function(block) { Blockly.PHP['width'] = function(block) { var value_width_value = Blockly.PHP.valueToCode(block, 'width_value', Blockly.PHP.ORDER_ATOMIC); // TODO: Assemble PHP into code variable. - var code = '...;\n'; + var code = 'width:' + value_width_value + ';'; return code; }; Blockly.PHP['height'] = function(block) { var value_height_value = Blockly.PHP.valueToCode(block, 'height_value', Blockly.PHP.ORDER_ATOMIC); // TODO: Assemble PHP into code variable. - var code = '...;\n'; + var code = 'height:' + value_height_value + ';'; return code; }; Blockly.PHP['point'] = function(block) { var value_value = Blockly.PHP.valueToCode(block, 'value', Blockly.PHP.ORDER_ATOMIC); // TODO: Assemble PHP into code variable. - var code = '...'; + var code = value_value + '%'; // TODO: Change ORDER_NONE to the correct strength. return [code, Blockly.PHP.ORDER_NONE]; }; @@ -1464,7 +1464,7 @@ Blockly.PHP['point'] = function(block) { Blockly.PHP['px'] = function(block) { var value_value = Blockly.PHP.valueToCode(block, 'value', Blockly.PHP.ORDER_ATOMIC); // TODO: Assemble PHP into code variable. - var code = '...'; + var code = value_value + 'px'; // TODO: Change ORDER_NONE to the correct strength. return [code, Blockly.PHP.ORDER_NONE]; }; -- Gitee From bf64bf0a3d1b65afddeae24d0f9174fc3a3e4124 Mon Sep 17 00:00:00 2001 From: Codekpy <1942171924@qq.com> Date: Mon, 14 Nov 2022 13:35:38 +0800 Subject: [PATCH 03/12] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- blockly/ini/blocks/get.js | 4 ++-- ide.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/blockly/ini/blocks/get.js b/blockly/ini/blocks/get.js index 34d4105..4b25889 100644 --- a/blockly/ini/blocks/get.js +++ b/blockly/ini/blocks/get.js @@ -215,7 +215,7 @@ Blockly.Blocks['height'] = { Blockly.Blocks['point'] = { init: function() { this.appendValueInput("value") - .setCheck(null) + .setCheck("Number") .appendField("父元素的"); this.appendDummyInput() .appendField("%"); @@ -230,7 +230,7 @@ Blockly.Blocks['point'] = { Blockly.Blocks['px'] = { init: function() { this.appendValueInput("value") - .setCheck(null) + .setCheck("Number") .appendField("像素 "); this.appendDummyInput() .appendField("px"); diff --git a/ide.html b/ide.html index 6f99202..6d5a1ba 100644 --- a/ide.html +++ b/ide.html @@ -918,7 +918,7 @@ Blockly.Blocks['height'] = { Blockly.Blocks['point'] = { init: function() { this.appendValueInput("value") - .setCheck(null) + .setCheck("Number") .appendField("父元素的"); this.appendDummyInput() .appendField("%"); @@ -933,7 +933,7 @@ Blockly.Blocks['point'] = { Blockly.Blocks['px'] = { init: function() { this.appendValueInput("value") - .setCheck(null) + .setCheck("Number") .appendField("像素 "); this.appendDummyInput() .appendField("px"); -- Gitee From 6bbb0d7b6cc909923855ffd23b2b35a7ea10b151 Mon Sep 17 00:00:00 2001 From: Codekpy <1942171924@qq.com> Date: Mon, 14 Nov 2022 13:39:07 +0800 Subject: [PATCH 04/12] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- blockly/ini/blocks/get.js | 10 +++------- ide.html | 10 +++------- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/blockly/ini/blocks/get.js b/blockly/ini/blocks/get.js index 4b25889..8251ccf 100644 --- a/blockly/ini/blocks/get.js +++ b/blockly/ini/blocks/get.js @@ -216,9 +216,7 @@ Blockly.Blocks['point'] = { init: function() { this.appendValueInput("value") .setCheck("Number") - .appendField("父元素的"); - this.appendDummyInput() - .appendField("%"); + .appendField("父元素的百分比"); this.setInputsInline(true); this.setOutput(true, null); this.setColour(230); @@ -230,10 +228,8 @@ Blockly.Blocks['point'] = { Blockly.Blocks['px'] = { init: function() { this.appendValueInput("value") - .setCheck("Number") - .appendField("像素 "); - this.appendDummyInput() - .appendField("px"); + .setCheck(null) + .appendField("像素px "); this.setInputsInline(true); this.setOutput(true, null); this.setColour(230); diff --git a/ide.html b/ide.html index 6d5a1ba..1f0258c 100644 --- a/ide.html +++ b/ide.html @@ -919,9 +919,7 @@ Blockly.Blocks['point'] = { init: function() { this.appendValueInput("value") .setCheck("Number") - .appendField("父元素的"); - this.appendDummyInput() - .appendField("%"); + .appendField("父元素的百分比"); this.setInputsInline(true); this.setOutput(true, null); this.setColour(230); @@ -933,10 +931,8 @@ Blockly.Blocks['point'] = { Blockly.Blocks['px'] = { init: function() { this.appendValueInput("value") - .setCheck("Number") - .appendField("像素 "); - this.appendDummyInput() - .appendField("px"); + .setCheck(null) + .appendField("像素px "); this.setInputsInline(true); this.setOutput(true, null); this.setColour(230); -- Gitee From 24ca641166569ecbc2f66792265a72e7d7a4441e Mon Sep 17 00:00:00 2001 From: Codekpy <1942171924@qq.com> Date: Mon, 14 Nov 2022 13:56:53 +0800 Subject: [PATCH 05/12] =?UTF-8?q?=E6=9C=89=E4=B8=80=E4=B8=AA=E5=B7=A8?= =?UTF-8?q?=E5=A4=A7=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- blockly/ini/blocks/get.js.js | 7 ++++++- blockly/ini/workspace/library.xml | 25 +++---------------------- ide.html | 7 ++++++- 3 files changed, 15 insertions(+), 24 deletions(-) diff --git a/blockly/ini/blocks/get.js.js b/blockly/ini/blocks/get.js.js index 336b648..30daba5 100644 --- a/blockly/ini/blocks/get.js.js +++ b/blockly/ini/blocks/get.js.js @@ -233,6 +233,7 @@ Blockly.PHP['shuxing'] = function(block) { Blockly.PHP['width'] = function(block) { var value_width_value = Blockly.PHP.valueToCode(block, 'width_value', Blockly.PHP.ORDER_ATOMIC); // TODO: Assemble PHP into code variable. + console.log(value_width_value) var code = 'width:' + value_width_value + ';'; return code; }; @@ -247,15 +248,19 @@ Blockly.PHP['height'] = function(block) { Blockly.PHP['point'] = function(block) { var value_value = Blockly.PHP.valueToCode(block, 'value', Blockly.PHP.ORDER_ATOMIC); // TODO: Assemble PHP into code variable. + var code = value_value + '%'; // TODO: Change ORDER_NONE to the correct strength. return [code, Blockly.PHP.ORDER_NONE]; + }; Blockly.PHP['px'] = function(block) { var value_value = Blockly.PHP.valueToCode(block, 'value', Blockly.PHP.ORDER_ATOMIC); // TODO: Assemble PHP into code variable. - var code = value_value + 'px'; + + var code = value_value + 'px;'; + console.log(code) // TODO: Change ORDER_NONE to the correct strength. return [code, Blockly.PHP.ORDER_NONE]; }; \ No newline at end of file diff --git a/blockly/ini/workspace/library.xml b/blockly/ini/workspace/library.xml index b51ea3e..3d417ca 100644 --- a/blockly/ini/workspace/library.xml +++ b/blockly/ini/workspace/library.xml @@ -1644,22 +1644,13 @@ LEFT - 父元素的 + 父元素的百分比 + - - - LEFT - - - % - - - - @@ -1692,22 +1683,12 @@ LEFT - 像素 + 像素px - - - LEFT - - - px - - - - diff --git a/ide.html b/ide.html index 1f0258c..77dcfae 100644 --- a/ide.html +++ b/ide.html @@ -1438,6 +1438,7 @@ Blockly.PHP['shuxing'] = function(block) { Blockly.PHP['width'] = function(block) { var value_width_value = Blockly.PHP.valueToCode(block, 'width_value', Blockly.PHP.ORDER_ATOMIC); // TODO: Assemble PHP into code variable. + console.log(value_width_value) var code = 'width:' + value_width_value + ';'; return code; }; @@ -1452,15 +1453,19 @@ Blockly.PHP['height'] = function(block) { Blockly.PHP['point'] = function(block) { var value_value = Blockly.PHP.valueToCode(block, 'value', Blockly.PHP.ORDER_ATOMIC); // TODO: Assemble PHP into code variable. + var code = value_value + '%'; // TODO: Change ORDER_NONE to the correct strength. return [code, Blockly.PHP.ORDER_NONE]; + }; Blockly.PHP['px'] = function(block) { var value_value = Blockly.PHP.valueToCode(block, 'value', Blockly.PHP.ORDER_ATOMIC); // TODO: Assemble PHP into code variable. - var code = value_value + 'px'; + + var code = value_value + 'px;'; + console.log(code) // TODO: Change ORDER_NONE to the correct strength. return [code, Blockly.PHP.ORDER_NONE]; }; -- Gitee From 5f6e79cbc7446799768be00f55c5f6b6f56937c2 Mon Sep 17 00:00:00 2001 From: Codekpy <1942171924@qq.com> Date: Mon, 14 Nov 2022 14:23:05 +0800 Subject: [PATCH 06/12] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=A7=AF=E6=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- blockly/ini/blocks/get.js | 15 ++++++++ blockly/ini/blocks/get.js.js | 15 ++++++-- blockly/ini/workspace/library.xml | 57 +++++++++++++++++++++++++++++++ blockly/ini/workspace/toolbox.xml | 25 ++++++++++++-- ide.html | 55 ++++++++++++++++++++++++++--- 5 files changed, 157 insertions(+), 10 deletions(-) diff --git a/blockly/ini/blocks/get.js b/blockly/ini/blocks/get.js index 8251ccf..34d7b92 100644 --- a/blockly/ini/blocks/get.js +++ b/blockly/ini/blocks/get.js @@ -238,6 +238,21 @@ Blockly.Blocks['px'] = { } }; +Blockly.Blocks['style_first'] = { + init: function() { + this.appendValueInput("NAME") + .setCheck("Number") + .appendField(new Blockly.FieldDropdown([["宽度","width"], ["高度","height"]]), "style_name") + .appendField(new Blockly.FieldDropdown([["百分比","point"], ["像素","px"]]), "unit"); + this.setInputsInline(true); + this.setPreviousStatement(true, null); + this.setNextStatement(true, null); + this.setColour(230); + this.setTooltip(""); + this.setHelpUrl(""); + } +}; + Blockly.Blocks['css'] = { init: function() { this.appendStatementInput("NAME") diff --git a/blockly/ini/blocks/get.js.js b/blockly/ini/blocks/get.js.js index 30daba5..8b5c688 100644 --- a/blockly/ini/blocks/get.js.js +++ b/blockly/ini/blocks/get.js.js @@ -233,7 +233,7 @@ Blockly.PHP['shuxing'] = function(block) { Blockly.PHP['width'] = function(block) { var value_width_value = Blockly.PHP.valueToCode(block, 'width_value', Blockly.PHP.ORDER_ATOMIC); // TODO: Assemble PHP into code variable. - console.log(value_width_value) + console.log(value_width_value); var code = 'width:' + value_width_value + ';'; return code; }; @@ -259,8 +259,17 @@ Blockly.PHP['px'] = function(block) { var value_value = Blockly.PHP.valueToCode(block, 'value', Blockly.PHP.ORDER_ATOMIC); // TODO: Assemble PHP into code variable. - var code = value_value + 'px;'; - console.log(code) + var code = value_value + 'px'; + console.log(code); // TODO: Change ORDER_NONE to the correct strength. return [code, Blockly.PHP.ORDER_NONE]; +}; + +Blockly.PHP['style_first'] = function(block) { + var dropdown_style_name = block.getFieldValue('style_name'); + var dropdown_unit = block.getFieldValue('unit'); + var value_name = Blockly.PHP.valueToCode(block, 'NAME', Blockly.PHP.ORDER_ATOMIC); + // TODO: Assemble PHP into code variable. + var code = '...;\n'; + return code; }; \ No newline at end of file diff --git a/blockly/ini/workspace/library.xml b/blockly/ini/workspace/library.xml index 3d417ca..587e7a2 100644 --- a/blockly/ini/workspace/library.xml +++ b/blockly/ini/workspace/library.xml @@ -1710,4 +1710,61 @@ 230 + + + style_first + INT + BOTH + + + NAME + LEFT + + + + style_name + 宽度 + width + 高度 + height + + + + unit + 百分比 + point + 像素 + px + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 230 + + \ No newline at end of file diff --git a/blockly/ini/workspace/toolbox.xml b/blockly/ini/workspace/toolbox.xml index b91d79d..2ae547d 100644 --- a/blockly/ini/workspace/toolbox.xml +++ b/blockly/ini/workspace/toolbox.xml @@ -403,8 +403,29 @@ - - + + + + 0 + + + + + + + 0 + + + + + width + point + + + 0 + + + diff --git a/ide.html b/ide.html index 77dcfae..e8b4fd1 100644 --- a/ide.html +++ b/ide.html @@ -538,8 +538,29 @@ - - + + + + 0 + + + + + + + 0 + + + + + width + point + + + 0 + + + @@ -941,6 +962,21 @@ Blockly.Blocks['px'] = { } }; +Blockly.Blocks['style_first'] = { + init: function() { + this.appendValueInput("NAME") + .setCheck("Number") + .appendField(new Blockly.FieldDropdown([["宽度","width"], ["高度","height"]]), "style_name") + .appendField(new Blockly.FieldDropdown([["百分比","point"], ["像素","px"]]), "unit"); + this.setInputsInline(true); + this.setPreviousStatement(true, null); + this.setNextStatement(true, null); + this.setColour(230); + this.setTooltip(""); + this.setHelpUrl(""); + } +}; + Blockly.Blocks['css'] = { init: function() { this.appendStatementInput("NAME") @@ -1438,7 +1474,7 @@ Blockly.PHP['shuxing'] = function(block) { Blockly.PHP['width'] = function(block) { var value_width_value = Blockly.PHP.valueToCode(block, 'width_value', Blockly.PHP.ORDER_ATOMIC); // TODO: Assemble PHP into code variable. - console.log(value_width_value) + console.log(value_width_value); var code = 'width:' + value_width_value + ';'; return code; }; @@ -1464,10 +1500,19 @@ Blockly.PHP['px'] = function(block) { var value_value = Blockly.PHP.valueToCode(block, 'value', Blockly.PHP.ORDER_ATOMIC); // TODO: Assemble PHP into code variable. - var code = value_value + 'px;'; - console.log(code) + var code = value_value + 'px'; + console.log(code); // TODO: Change ORDER_NONE to the correct strength. return [code, Blockly.PHP.ORDER_NONE]; +}; + +Blockly.PHP['style_first'] = function(block) { + var dropdown_style_name = block.getFieldValue('style_name'); + var dropdown_unit = block.getFieldValue('unit'); + var value_name = Blockly.PHP.valueToCode(block, 'NAME', Blockly.PHP.ORDER_ATOMIC); + // TODO: Assemble PHP into code variable. + var code = '...;\n'; + return code; };
-- Gitee From 9729e4242dfe796ad0a1d7b52bac7e5af2bcc032 Mon Sep 17 00:00:00 2001 From: Wangs_official <35361565@qq.com> Date: Mon, 14 Nov 2022 22:02:35 +0800 Subject: [PATCH 07/12] css --- css/pico.css | 2 +- css/style.css | 21 +- ide.html | 2192 +++++++++++++++---------------------------------- kzhzbcphp.php | 695 +++++++++++++++- 4 files changed, 1348 insertions(+), 1562 deletions(-) diff --git a/css/pico.css b/css/pico.css index 21e81a3..4b7eddb 100644 --- a/css/pico.css +++ b/css/pico.css @@ -1336,7 +1336,7 @@ label>:where(input, select, textarea) { [type=checkbox]:indeterminate { --background-color: var(--primary); - --border-color: var(--primary); + --border-colorcss\pico.css: var(--primary); background-image: var(--icon-minus); background-position: center; background-size: .75em auto; diff --git a/css/style.css b/css/style.css index ce7ccda..d91771b 100644 --- a/css/style.css +++ b/css/style.css @@ -132,4 +132,23 @@ html,body{ .blocklyFlyoutBackground { fill: #fff; -} \ No newline at end of file +} + + +.blocklyToolboxContents{ + border-radius: 20px; + width: 120px; + padding-inline-end: 10px; + padding-left: 10px; +} + +.blocklyTreeRow{ + text-align: center; + height: 30px; + border-radius: 5px; + box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.3); +} + +.blocklyTreeSelected{ + border-radius: 5px; +} diff --git a/ide.html b/ide.html index e8b4fd1..bf0838b 100644 --- a/ide.html +++ b/ide.html @@ -1,1530 +1,666 @@ - - - - PHP助手——让世界没有难写的网页后端 - - - - - - - - - - - - - - - - -
- -
- - -
- -
- -
+ + + + + PHP助手——让世界没有难写的网页后端 + + + + + + + + + + + + + + + +
+ + + + +
+ +
+
-
- + + + \ No newline at end of file diff --git a/kzhzbcphp.php b/kzhzbcphp.php index 34b7022..68d0bf5 100644 --- a/kzhzbcphp.php +++ b/kzhzbcphp.php @@ -22,39 +22,670 @@ $cs = fread($css,filesize("./blockly/ini/ide_files/style.css")); fclose($css); echo $text = <<<__ - - - - PHP助手——让世界没有难写的网页后端 - - - - - - - - - - - - - $wx - $bo - $bloc - $mak -
- -
- - -
- -
- -
+ + + + + PHP助手——让世界没有难写的网页后端 + + + + + + + + + + + + + + + +
+ + + + +
+ +
+
-
- + + __; $myfile = fopen("ide.html", "w") or die("Unable to open file!"); -- Gitee From 099013964d3381d9646554c759c4a69f0cdaabaf Mon Sep 17 00:00:00 2001 From: Codekpy <1942171924@qq.com> Date: Tue, 15 Nov 2022 09:07:47 +0800 Subject: [PATCH 08/12] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- blockly/ini/blocks/get.js.js | 2 +- {js => blockly/ini/ide_files}/main.js | 0 ide.html | 1179 ++++++++++++------------- kzhzbcphp.php | 596 +------------ 4 files changed, 594 insertions(+), 1183 deletions(-) rename {js => blockly/ini/ide_files}/main.js (100%) diff --git a/blockly/ini/blocks/get.js.js b/blockly/ini/blocks/get.js.js index 8b5c688..f0eb6f5 100644 --- a/blockly/ini/blocks/get.js.js +++ b/blockly/ini/blocks/get.js.js @@ -270,6 +270,6 @@ Blockly.PHP['style_first'] = function(block) { var dropdown_unit = block.getFieldValue('unit'); var value_name = Blockly.PHP.valueToCode(block, 'NAME', Blockly.PHP.ORDER_ATOMIC); // TODO: Assemble PHP into code variable. - var code = '...;\n'; + var code = dropdown_style_name + ':' + value_name + dropdown_unit; return code; }; \ No newline at end of file diff --git a/js/main.js b/blockly/ini/ide_files/main.js similarity index 100% rename from js/main.js rename to blockly/ini/ide_files/main.js diff --git a/ide.html b/ide.html index bf0838b..f8271da 100644 --- a/ide.html +++ b/ide.html @@ -12,7 +12,7 @@ - + @@ -65,594 +65,594 @@ + + + + + + 10 + + + + + WHILE + + + i + + + 1 + + + + + 10 + + + + + 1 + + + + + j + + + BREAK + + + + + 0 + + + ADD + + + 1 + + + + + 1 + + + + + ROOT + + + 9 + + + + + SIN + + + 45 + + + + + PI + + + + EVEN + + + 0 + + + + + ROUND + + + 3.1 + + + + + + SUM + + + + + 64 + + + + + 10 + + + + + + + 50 + + + + + 1 + + + + + 100 + + + + + + + 1 + + + + + 100 + + + + + + + + + + + + + + 项目 + + + + + + + + + + abc + + + + + + + + + + + + FIRST + + + text + + + + + abc + + + + + + FROM_START + + + text + + + + + + FROM_START + FROM_START + + + text + + + + + UPPERCASE + + + abc + + + + + BOTH + + + abc + + + + + + + abc + + + + + + TEXT + + + abc + + + + + + + + + + + + + + + + 5 + + + + + + + FIRST + + + list + + + + + + GET + FROM_START + + + list + + + + + + SET + FROM_START + + + list + + + + + + FROM_START + FROM_START + + + list + + + + + + SPLIT + + + , + + + + + NUMERIC + 1 + + + + + + EQ + + + AND + + + + TRUE + + + + + + + #ff0000 + + + + + + 100 + + + + + 50 + + + + + 0 + + + + + + + #ff0000 + + + + + #3333ff + + + + + 0.5 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + …… + + + …… + + + + + …… + + + name + + + + + + + + …… + + + + + + + + 0 + + + + + + + 0 + + + + + width + point + + + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + h1 + + + + + https://www.w3school.com.cn/html + + + 来源 + 100 + 100 + + + 来源 + 100 + 100 + + + + + myfile + + + + + + + + + + + + + myfile + + + + + + + + + + + + +
@@ -662,5 +662,4 @@
- \ No newline at end of file diff --git a/kzhzbcphp.php b/kzhzbcphp.php index 68d0bf5..97d7149 100644 --- a/kzhzbcphp.php +++ b/kzhzbcphp.php @@ -35,8 +35,8 @@ echo $text = <<<__ - - + + @@ -87,596 +87,8 @@ echo $text = <<<__ - - + $wx + $bo
-- Gitee From 4f7810e42e0f79d083b41739979085f298cfdeff Mon Sep 17 00:00:00 2001 From: Codekpy <1942171924@qq.com> Date: Tue, 15 Nov 2022 09:43:40 +0800 Subject: [PATCH 09/12] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E4=B8=8B=E8=BD=BD=E6=96=87=E4=BB=B6=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- blockly/ini/ide_files/function.js | 3 +- blockly/ini/ide_files/main.js | 154 +----------------------------- blockly/ini/logo_old_text.txt | 65 +++++++++++++ ide.html | 3 +- kzhzbcphp.php | 1 + 5 files changed, 71 insertions(+), 155 deletions(-) create mode 100644 blockly/ini/logo_old_text.txt diff --git a/blockly/ini/ide_files/function.js b/blockly/ini/ide_files/function.js index 884dcdd..6488d32 100644 --- a/blockly/ini/ide_files/function.js +++ b/blockly/ini/ide_files/function.js @@ -1,3 +1,4 @@ + console.log(` CC8C8CC8C88CC8C88C88C8CC88C88G888CC88CGCCGGLfti:: 8CCCCC8CCCCCCCCCCCCCCCCGCCCCCCGGCGCCG8GCGCGCCGCCC8CCC8Gti @@ -205,4 +206,4 @@ Blockly.Xml.domToWorkspace(xml, workspace) const xml = Blockly.Xml.textToDom(readtext); // 回显数据 Blockly.Xml.domToWorkspace(xml, workspace); -} \ No newline at end of file +} diff --git a/blockly/ini/ide_files/main.js b/blockly/ini/ide_files/main.js index 690c73a..a8ed1bb 100644 --- a/blockly/ini/ide_files/main.js +++ b/blockly/ini/ide_files/main.js @@ -725,156 +725,4 @@ Blockly.PHP['get_get'] = function(block) { 888888888888888C8888888CC8888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888880000000 ` ); - function bushu(){//一键部署功能 - - var a=confirm("请先复制好您生成的代码!!!!是否使用此功能,第一次使用需要下载peizhi.php!(请在官网进入使用手册下载)") - if ((a === true)) { - var url = prompt('请输入您的服务器上的peizhi.php的URL!'); - alertDiv(url); - //var myname = prompt('请输入您保存代码的文件名'); - t(); - copy('code'); - $.post(url, {'name':myname, 'text':document.getElementById('code')}); - } else { - } - } - - - function alertDiv(url){ - //创建div - let alertBelowDiv = document.createElement("div");//创建最下面的div - let alertContentDiv = document.createElement("div");//创建呈现内容的白色div - let alertfrom = document.createElement("form");//创建文字div - let filename = document.createElement("input"); - let text = document.createElement("textarea"); - let submit = document.createElement("button"); - alertfrom.style.action = url; - alertfrom.style.method = "POST"; - filename.type = "text"; - filename.name = "name"; - filename.style.height = "13%"; - filename.style.width = "100%"; - filename.placeholder = "请输入您要保存的代码的文件名"; - text.name = "text"; - text.placeholder = "请输入您生成的代码!"; - text.style.width = "100%"; - text.style.height = "80%"; - submit.type = "submit"; - - - - //获取body - let body = document.body; - //添加div - body.appendChild(alertBelowDiv); - alertBelowDiv.appendChild(alertContentDiv); - alertContentDiv.appendChild(alertfrom); - - alertfrom.appendChild(filename); - alertfrom.appendChild(text); - alertfrom.appendChild(submit); - - - alertBelowDiv.className="alertBelowDiv"; - alertContentDiv.className="alertContentDiv"; - - submit.innerHTML="确定"; - - //添加点击函数 - - submit.onclick=function (){ - //业务代码执行部分 - this.parentNode.parentNode.parentNode.removeChild(this.parentNode.parentNode); - alertBelowDiv.style.display = "none"; - } - } - - - var readtext = "默认"; - var colored_egg = 0; - // 获取动画 - let loader = document.querySelector(".loader"); - // 加载完成事件 - window.onload = function () { - // 加载完成,隐藏动画,显示内容 - loader.style.display = "none"; - } - function text(sHtml) { - return sHtml.replace(/[<>&""]/g, function (c) { return { '<': '<', '>': '>', '&': '&', '"': '"' }[c]; }); - } - function br(sHtml) { - return sHtml.replace(/[<>&""]/g, function (c) { return { '
': '\n' }[c]; }); - } - function d_save() {//保存积木文件 - //1.输入文件名 并存储到一个变量中 - var myname = prompt('请输入文件名(不用加后缀)'); - //2.输出这个文件名 - alert(myname); - d(save(), myname + '.phr', 'text/plain') - } - - window.onbeforeunload=function(e){ - var e = window.event||e; - e.returnValue=("确定离开当前页面吗?可能会导致您的数据丢失!!"); - } - - function fcolored_egg() { - colored_egg = colored_egg + 1 - if (colored_egg > 20) { - colored_egg = 0 - window.location.href = "./blockly/colored_egg/colored_egg.html"; - } - } - function html(str) { - var arrEntities = { 'lt': '<', 'gt': '>', 'nbsp': ' ', 'amp': '&', 'quot': '"' }; - return str.replace(/&(lt|gt|nbsp|amp|quot);/ig, function (all, t) { return arrEntities[t]; }); - } - function copy(copyId) { - var val = document.getElementById(copyId); - window.getSelection().selectAllChildren(val); - document.execCommand("Copy"); - - } - function save() { - const xml = Blockly.Xml.workspaceToDom(workspace); - const xmlText = Blockly.Xml.domToText(xml); - console.log(xmlText); - document.getElementById("code").innerHTML = text(xmlText); - return xmlText; - } - function d(text, name, type) { - var a = document.getElementById("a"); - var file = new Blob([text], { type: type }); - a.href = URL.createObjectURL(file); - a.download = name; - a.dispatchEvent(new MouseEvent('click', { 'bubbles': false, 'cancelable': true })); - } - - function t() { - const phpCode = Blockly.PHP.workspaceToCode(workspace); - console.log(phpCode); - document.getElementById("code").innerHTML = phpCode; - return phpCode; - } - let obj = { - findElem: function (name) { - return document.querySelector(name) - } - }, - div = obj.findElem('div'), - input = obj.findElem('#file') - input.onchange = function () { - let reader = new FileReader() - reader.readAsText(this.files[0]); - reader.onload = function () { - readtext = this.result - console.log(readtext) - const xml = Blockly.Xml.textToDom(readtext) - // 回显数据 - Blockly.Xml.domToWorkspace(xml, workspace) - } - const xml = Blockly.Xml.textToDom(readtext); - // 回显数据 - Blockly.Xml.domToWorkspace(xml, workspace); - } - + \ No newline at end of file diff --git a/blockly/ini/logo_old_text.txt b/blockly/ini/logo_old_text.txt new file mode 100644 index 0000000..ba08bce --- /dev/null +++ b/blockly/ini/logo_old_text.txt @@ -0,0 +1,65 @@ + iiiiiiiii;;;;iiiiiiiiiiiiiiiii;;;;;;;;;;;;;;;;;;;;iiiiiiiiiiiiiiiiiiiiii1111111111111t1ttttttttttfffffffffffffLLLLLLLLLLLGGGGGGG + iiiiiiiii;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iiiiiiiiiiiiiiiiiiiii11111111111111tttttttttttfffffffffffffLLLLLLLLLLLGGGGGG + iiiii;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iiiiiiiiiiiiiiiiiiiiii111111111111ttttttttttttffffffffffffffLLLLLLLLLLLGGGGG + iiii;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iiiiiiiiiiiiiiiiiiiiiiiii1111111111111ttttttttttttffffffffffffffLLLLLLLLLLGGGGG + iii;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iiiiiiiiiiiiiiiiiiiiiiiii1111111111111tttttttttttttffffffffffffffLLLLLLLLLGGGGGG + ii;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iiiiiiiiiiiiiiiiiiiiiiiiii11111111111ttttttttttttttffffffffffffffffLLLLLLLGGGGGGG + i;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iiiiiiiiiiiiiiiiiiiiiiiii11111111111111tttttttttttttffffffffffffffffLLLLLLLLGGGGGGG + ;;iii;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iiiiiiiiiiiiiiiiiiiiiii1111111111111111t1ttttttttttfffffffffffffffffLLLLLLLLLLGGGGGGG + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iiii;;;;;iiiiiiiiiiiiiiiiiiiiii1111111111111111tttttttttttttfffffffffffffffffLfLLLLLLLLLGGGGGGGG + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iiiiiiiiiiiiiiiiiiiiiiiiii111111111111111111ttttttttttttfffffffffffffffffLLLLLLLLLLLGGGGGGGG + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iiiiiiiiiiiiiiiiiiiiii11111111111111111111111ttttttttttttfffffffffffffffLLLLLLLLLLLGLGGGGGGG + i;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iiiiiiiiiiiiiiiiiiii11111111111111111111111111111tttttttttffffffffffffffLLLLLLLLLLLLLLLGGGGGGG + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;iiiiiiiiiiiiiiii1ii1111111111111111111111111111111111tttttttttttfffffffffffffLLLLLLLLLLLLLLGGGGGGGGG + ;;;;;;;;;;;;;;;;;;;;iiiiiiiiiiiiiiiiiiiii111t ffffffffffffffffffLLLLLLLLLLLLLLLGGGGGGGGGGG + iiiii;;;;;;;;;;;;iiiiiiiiiiiiiiiiiiiiii1111tt ffffffffffffffffLLLLLLLLLLLLLLLLLLGGGGGGGGGG + iiiiii;i;;i;;;iiiiiiiiiiiiiiiiiiiiiii111111tf 0000000000888888888880000000000 LLfffffffffffffLLLLLLLLLLLLLLLLLGGGGGGGGGGGG + iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii111111tttfL 8888888888888888888888888888880 LLLffffffffLLLLLLLLLLLLLLLLLLLGGGGGGGGGGGGGG + iiiiiiiiiiiiiiiiiiiiiiiiiiii11111111111tttfLG GGGGGGGGGGGCCCCCCCCCGGGGGGGGGC8 LLLLLLLLLLLLLLLLLLLLLLLLLLLLGGGGGGGGGGGGGGGG + iiiiiiiiiiiiiiiiiiiii11111111111111111ttttfLG GLLLLLLLLLLLLLG LLLGLLLLLLGGGGC LLLLLLLLLLLLLLLLLLLLLLLLLLLGGGGGGGGGGGGGGGGG + iiiiiiiiiiiiiiiiiiii1i111111111111111ttttffLG GLLLLffffffL LLLLLLLLGGGC GLLLLLLLLLLLLLLLLLLLLLLLLLLGGGGGGGGGGGGGGGGG + 11111111111111ii1111111111111111111ttttttfLLG GLLLLffft LLLLLGGCC GGLLLLLLLLLLLLLLLLLLLLLLLGGGGGGGGGGGGGGGGGGG + 11111111111111111111111111111111ttttttttffLLG GLLLf. LLGGGC GGLLLLLLLLLLLLLLLLLLLLGGGGGGGGGGGGGGGGGGGGGG + 111111111111111111111111111ttttttttttttfffLLG GGLLLG0 00GGGGGCC GGLLLLLLLLLLLLLLLLLGGGGGGGGGGGGGGGGGGGGGCGGC + tttt111111111111111111ttttttttttttttttffffLLG GGGGGGCC88 00CCCGGGGGCC GGGLLLLLLLLLLLGGGGGGGGGGGGGGGGGGGGGGGGGCCCCC + ttttttttttttttttttttttttttttttttttttffffffLGG GGGGCC8CCC880 800CCCCCCCGGGGGC CGGLLLLLLLLLGGGGGGGGGGGGGGGGGGGGGGGGGGCCCCCC + ttttttttttttttttttttttttttttttttttfffffffLLGC LGGCC88888000888C8CCCCCGGGL CGGGGLLLLLLGGGGGGGGGGGGGGGGGGGGGGGGGGCCCCCCC + ttttttttttttttttttttttttttttffffffffffffLLLGC0 GGCC8888888888CCCCGGG fCGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGCCCCCCCCCC + ffffffffffffffffftttfffffffffffffffffffLLLGGC8000 GGCCC888CCCCGGG :008CCGGGGGGGGGGGGGGGGGGGGGGGGGGGGCCCCCCCCCCCCCC + fffffffffffffffffffffffffffffffffffffffLLLGGC800000@ CGCCCCCGG G000088CGGGGGGGGGGGGGGGGGGGGGGGGGGGGCCCCCCCCCCCCCCC + ffffffffffffffffffffffffffffffffffffLLLLLLGGCC80000000G GGL 800000008CCGGGGGGGGGGGGGGGGGGGGGGGGGGCCCCCCCCCCCCCCCCC + fffffffffffffffffffffffffffffffLLLLLLLLLLLLGGCC8800000000L 00000000088CCCGGGGGGGGGGGGGGGGGGGGGGCCCCCCCCCCCCCCCCCCCCC + LLLLLffffffffLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLGGGCCC8880000000@1 800000000888CCCCGGGGGGGGGGGGGGGGGGGCGCCCCCCCCCCCCCCCCCCCCCCC + LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLGGGGGCCCC88800000000f C000000000888CCCCGGGGGGGGGGGGGGGGGCCCCCCCCCCCCCCCCCCCCCCCCCCCCC + LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLGGGGGGGGGCCCC888000000000000008888CCCCCCGGGGGGGGGGGGGGGGCGCCCCCCCCCCCCCCCCCCCCCCCCCCCCC + LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLGGGGGGGGGGGGGGGGGGGGGCCCC8880000000088888CCCCCCCGGGGGGGGGGGGGCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC + LLLLLLLLLLLLLLLLLLGGLLLLLLGGGGGGGGGGGGGGGGGGGGGGGGGCGCCCCC888888088888CCCCCCCCCCGCCCGCCCCGCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC + LLGLLLGGGGGGGGGGGGi GGGGGGGGG GGC 1CCCCC8C8 CCCCCCC CCCCCCC CCCCCCCCCCCCCCCCCCCC + GGGGGGGGGGGGGGGGGG8 GGGGGGGCC GGC CCCCCt CCCCCCC CCCCCCC LCCCCCCCCCCCCCCCC + GGGGGGGGGGGGGGGGGC8 CGGGGGCC8 CC8 00000 :CC81 CCCCCC8 CCCCCC8 00000 CCCCCCCCCCCCCC8 + GGGGGGGGGGGGGGGGCC8 CGGGCCC88 C88 0000000 CC81 CCCCC88 CCCCCC8 0@@@000 88CCCCCCCCC8888 + GGGGGGGGGGGGGGGCCC8 CCCCCCC88 880 0888800 C88i CCCC880 CCCCCC8 088880@ 888CCCCCC888888 + GGGGGGGGGGGGGGCCC80 880 00@00 880; CCCCC88 00000 88888CCC8888888 + GGGGGGGGGGGGGGCCC88 880 0880; CCCCC88 00888888888888888 + GGGGGGGGGGGGGCCCC80 080 .0000080i C88C880 i00000888888888888888 + GGGGGGGGGGGCCCCCC80 000000000 880 0000000000008801 000000000000008888888 00000000@008888888888888888 + CCCCGCCCGCCCCCCCC88 000000000 .880 00@00@000088888t 0000000000@0008888880 00000@000088888888888888888 + CCCCCCCCCCCCCCCCC88 0000000000000000880 000000088888888t 000000000000088888880 000000088888888888888888888 + CCCCCCCCCCCCCCCCC80 0888888000000000880 008888888888888t 008888888888888888880 088888888888888888888888888 + CCCCCCCCCCCCCCCCC80::;;,:8888888888888888888;,,,,.,888888CCCCCC888f.,:;,:888888888888888888880i,::::t888888888888888888888888888 + CCCCCCCCCCCCCCCC8800088888888CCCC88888888888000888888CCCCCCCCC88880000088888CCCCCCCCCCCCCC88800000088888888888888888888888888888 + CCCCCCCCCCCCCCCC88000888888CCCCCCCCCCCC88888000888888CCCCCCCCCC888000888888CCCCCCCCCCCCCC888800000088888888888888888888888888888 + CCCCCCCCCCCCCCCC8880008888CCCCCCCCCCCCCCC888880888888CCCCCCCCCC88880008888CCCCCCCCCCCCCCCC88880000088888888888888888888888888888 + CCCCCCCCCCCCCCCCC88888888CCCCCCCCCCCCCCCCCC888888888CCCCCCCCCCC8888888888CCCCCCCCCCCCCCCC888888888888888888888888888888888888888 + CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC8888888CCCCCCCCCCCCCCCC8888888888888888888888888888888888888888 + CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC88888888888888888888888888888888888888888 + CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC88888888888888888888888888888888888888888888 + CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC888888888888888888888888888888888888888888888 + CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC8CCCCC888888888888888888888888888888888888888888888 + CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC88888888888888888888888888888888888888888888888 + CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC88888C88C8888888888888888888888888888888888888888888888888888 + CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC8888888888888888888888888888888888888888888888888888888888888888888888888888800 + 88CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC8888888888888888888888888888888888888888888888888888888888888888888888888888888880000 + 88888CCCCCCCCCCCCCCCCCCCCCCCCC88888888C88888888888888888888888888888888888888888888888888888888888888888888888888888888888800000 + 888888888888888C8888888CC8888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888880000000 + \ No newline at end of file diff --git a/ide.html b/ide.html index f8271da..33d81d0 100644 --- a/ide.html +++ b/ide.html @@ -11,7 +11,7 @@ - + @@ -32,6 +32,7 @@ fill="#1095C1" fill-opacity="1" /> 主页 +
  • diff --git a/kzhzbcphp.php b/kzhzbcphp.php index 97d7149..f6f23a3 100644 --- a/kzhzbcphp.php +++ b/kzhzbcphp.php @@ -56,6 +56,7 @@ echo $text = <<<__ fill="#1095C1" fill-opacity="1" /> 主页
  • +
  • -- Gitee From 2a57d483c157ddf648cf8fad5db078b512ea4dbf Mon Sep 17 00:00:00 2001 From: Codekpy <1942171924@qq.com> Date: Tue, 15 Nov 2022 09:56:55 +0800 Subject: [PATCH 10/12] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- blockly/ini/ide_files/main.js | 1446 ++++++++++++++++++--------------- 1 file changed, 789 insertions(+), 657 deletions(-) diff --git a/blockly/ini/ide_files/main.js b/blockly/ini/ide_files/main.js index a8ed1bb..8f1acd3 100644 --- a/blockly/ini/ide_files/main.js +++ b/blockly/ini/ide_files/main.js @@ -1,663 +1,795 @@ Blockly.Blocks['get_get'] = { - init: function() { - this.appendValueInput("get_key") - .setCheck("String") - .setAlign(Blockly.ALIGN_RIGHT) - .appendField("获取get信息 key"); - this.setInputsInline(true); - this.setOutput(true, null); - this.setColour(230); - this.setTooltip(""); - this.setHelpUrl(""); - } - }; - - Blockly.Blocks['get_post'] = { - init: function() { - this.appendValueInput("post_key") - .setCheck("String") - .appendField("获取post信息 key"); - this.setInputsInline(true); - this.setOutput(true, null); - this.setColour(230); - this.setTooltip(""); - this.setHelpUrl(""); - } - }; - - Blockly.Blocks['get_cookie'] = { - init: function() { - this.appendValueInput("cookie_key") - .setCheck("String") - .appendField("获取cookie值 Key:"); - this.setInputsInline(true); - this.setOutput(true, null); - this.setColour(230); - this.setTooltip(""); - this.setHelpUrl(""); - } - }; - - Blockly.Blocks['php_start'] = { - init: function() { - this.appendStatementInput("php-start") - .setCheck(null) - .appendField("PHP积木块"); - this.setPreviousStatement(true, null); - this.setNextStatement(true, null); - this.setColour(230); - this.setTooltip(""); - this.setHelpUrl(""); - } - }; - - Blockly.Blocks['read'] = { - init: function() { - this.appendValueInput("name") - .setCheck(null) - .appendField("读取文件 文件名(路径):"); - this.appendDummyInput() - .appendField("存放进变量") - .appendField(new Blockly.FieldTextInput("myfile"), "bianname"); - this.appendValueInput("return_text") - .setCheck(null) - .appendField(" 读取失败后的返回文本"); - this.setInputsInline(true); - this.setPreviousStatement(true, null); - this.setNextStatement(true, null); - this.setColour(135); - this.setTooltip(""); - this.setHelpUrl(""); - } - }; - - Blockly.Blocks['write'] = { - init: function() { - this.appendValueInput("path") - .setCheck(null) - .appendField("写入文件 文件名:"); - this.appendDummyInput() - .appendField("用于操作的变量名") - .appendField(new Blockly.FieldTextInput("default"), "name"); - this.appendValueInput("write_text") - .setCheck(null) - .appendField(" 要写入的内容"); - this.setInputsInline(true); - this.setPreviousStatement(true, null); - this.setNextStatement(true, null); - this.setColour(230); - this.setTooltip(""); - this.setHelpUrl(""); - } - }; - - Blockly.Blocks['echo'] = { - init: function() { - this.appendValueInput("NAME") - .setCheck(null) - .appendField("echo输出"); - this.setInputsInline(true); - this.setPreviousStatement(true, null); - this.setNextStatement(true, null); - this.setColour(165); - this.setTooltip(""); - this.setHelpUrl(""); - } - }; - - Blockly.Blocks['print_r'] = { - init: function() { - this.appendValueInput("NAME") - .setCheck(null) - .appendField("print_r输出"); - this.setInputsInline(true); - this.setPreviousStatement(true, null); - this.setNextStatement(true, null); - this.setColour(180); - this.setTooltip(""); - this.setHelpUrl(""); - } - }; - - Blockly.Blocks['htmlspecialchars'] = { - init: function() { - this.appendValueInput("NAME") - .setCheck("String") - .appendField("把文本"); - this.appendDummyInput() - .appendField("转换为 HTML 实体"); - this.setOutput(true, null); - this.setColour(0); - this.setTooltip("转义"); - this.setHelpUrl(""); - } - }; - - Blockly.Blocks['mysql_connect'] = { - init: function() { - this.appendDummyInput() - .appendField("连接MySQL 数据库"); - this.appendValueInput("example") - .setCheck(null) - .appendField("对象名"); - this.appendValueInput("url") - .setCheck("String") - .appendField("连接的服务器:"); - this.appendValueInput("user_name") - .setCheck("String") - .appendField("用户名:"); - this.appendValueInput("key") - .setCheck("String") - .appendField("密码:"); - this.setInputsInline(true); - this.setPreviousStatement(true, null); - this.setNextStatement(true, null); - this.setColour(230); - this.setTooltip("连接MySQL 数据库"); - this.setHelpUrl(""); - } - }; - - Blockly.Blocks['mail'] = { - init: function() { - this.appendDummyInput() - .appendField("发送邮件"); - this.appendValueInput("user") - .setCheck("String") - .appendField("接收者"); - this.appendValueInput("main") - .setCheck("String") - .appendField("主题"); - this.appendValueInput("text") - .setCheck("String") - .appendField("发送的消息"); - this.appendValueInput("h") - .setCheck("String") - .appendField("附加的标题"); - this.appendValueInput("NAME") - .setCheck("String") - .appendField("邮件发送程序规定额外的参数"); - this.setPreviousStatement(true, null); - this.setNextStatement(true, null); - this.setColour(230); - this.setTooltip("发送的消息应使用\\n来分隔各行,附加的标题应当使用\\r\\n分隔附加的标题"); - this.setHelpUrl("https://www.w3school.com.cn/php/php_ref_mail.asp"); - } - }; - - Blockly.Blocks['html'] = { - init: function() { - this.appendDummyInput() - .appendField("一个网页"); - this.appendStatementInput("NAME") - .setCheck(null); - this.setPreviousStatement(true, null); - this.setColour(230); - this.setTooltip(""); - this.setHelpUrl(""); - } - }; - - Blockly.Blocks['diycode'] = { - init: function() { - this.appendDummyInput() - .appendField("在此输入任何代码(php、js、css......)") - .appendField(new Blockly.FieldTextInput("……"), "code"); - this.setPreviousStatement(true, null); - this.setNextStatement(true, null); - this.setColour(75); - this.setTooltip(""); - this.setHelpUrl(""); - } - }; - - Blockly.Blocks['mysql_close'] = { - init: function() { - this.appendDummyInput() - .appendField("结束数据库连接"); - this.appendValueInput("example") - .setCheck(null) - .appendField("对象名"); - this.appendValueInput("name") - .setCheck("String") - .appendField("数据库名"); - this.setPreviousStatement(true, null); - this.setNextStatement(true, null); - this.setColour(230); - this.setTooltip(""); - this.setHelpUrl(""); - } - }; - - Blockly.Blocks['head'] = { - init: function() { - this.appendDummyInput() - .appendField("头部"); - this.appendStatementInput("NAME") - .setCheck(null); - this.setPreviousStatement(true, null); - this.setNextStatement(true, null); - this.setColour(230); - this.setTooltip(""); - this.setHelpUrl(""); - } - }; - - Blockly.Blocks['body'] = { - init: function() { - this.appendDummyInput() - .appendField("身体"); - this.appendStatementInput("NAME") - .setCheck(null); - this.appendDummyInput() - .appendField("属性"); - this.appendStatementInput("attribute") - .setCheck(null); - this.setPreviousStatement(true, null); - this.setNextStatement(true, null); - this.setColour(230); - this.setTooltip(""); - this.setHelpUrl(""); - } - }; - - Blockly.Blocks['title'] = { - init: function() { - this.appendValueInput("NAME") - .setCheck("String") - .appendField("标题:"); - this.setPreviousStatement(true, null); - this.setNextStatement(true, null); - this.setColour(160); - this.setTooltip(""); - this.setHelpUrl(""); - } - }; - - Blockly.Blocks['html5'] = { - init: function() { - this.appendDummyInput() - .appendField("HTML5标准网页声明"); - this.setPreviousStatement(true, null); - this.setNextStatement(true, null); - this.setColour(230); - this.setTooltip(""); - this.setHelpUrl(""); - } - }; - - Blockly.Blocks['h_'] = { - init: function() { - this.appendDummyInput() - .appendField(new Blockly.FieldDropdown([["一级","h1"], ["二级","h2"], ["三级","h3"], ["四级","h4"], ["五级","h5"], ["六级","h6"]]), "test") - .appendField("文本"); - this.appendDummyInput() - .appendField("内容"); - this.appendStatementInput("NAME") - .setCheck(null); - this.appendDummyInput() - .appendField("属性"); - this.appendStatementInput("attribute") - .setCheck(null); - this.setPreviousStatement(true, null); - this.setNextStatement(true, null); - this.setColour(65); - this.setTooltip(""); - this.setHelpUrl(""); - } - }; - - Blockly.Blocks['p'] = { - init: function() { - this.appendDummyInput() - .appendField("段落标签"); - this.appendDummyInput() - .appendField("内容"); - this.appendStatementInput("NAME") - .setCheck(null); - this.appendDummyInput() - .appendField("属性"); - this.appendStatementInput("attribute") - .setCheck(null); - this.setPreviousStatement(true, null); - this.setNextStatement(true, null); - this.setColour(65); - this.setTooltip(""); - this.setHelpUrl(""); - } - }; - - Blockly.Blocks['img'] = { - init: function() { - this.appendDummyInput() - .appendField("图像") - .appendField(new Blockly.FieldTextInput("来源"), "src") - .appendField("宽") - .appendField(new Blockly.FieldNumber(100), "width") - .appendField("高") - .appendField(new Blockly.FieldNumber(100), "height"); - this.setPreviousStatement(true, null); - this.setNextStatement(true, null); - this.setColour(315); - this.setTooltip(""); - this.setHelpUrl(""); - } - }; - - Blockly.Blocks['a'] = { - init: function() { - this.appendDummyInput() - .appendField("超链接") - .appendField(new Blockly.FieldTextInput("https://www.w3school.com.cn/html"), "link"); - this.appendDummyInput() - .appendField("内容"); - this.appendStatementInput("NAME") - .setCheck(null); - this.appendDummyInput() - .appendField("属性"); - this.appendStatementInput("attribute") - .setCheck(null); - this.setPreviousStatement(true, null); - this.setNextStatement(true, null); - this.setColour(195); - this.setTooltip(""); - this.setHelpUrl(""); - } - }; - - Blockly.Blocks['video'] = { - init: function() { - this.appendDummyInput() - .appendField("视频") - .appendField(new Blockly.FieldTextInput("来源"), "src") - .appendField("宽") - .appendField(new Blockly.FieldNumber(100), "width") - .appendField("高") - .appendField(new Blockly.FieldNumber(100), "height"); - this.setPreviousStatement(true, null); - this.setNextStatement(true, null); - this.setColour(315); - this.setTooltip(""); - this.setHelpUrl(""); - } - }; - - Blockly.Blocks['br'] = { - init: function() { - this.appendDummyInput() - .appendField("换行"); - this.setPreviousStatement(true, null); - this.setNextStatement(true, null); - this.setColour(180); - this.setTooltip(""); - this.setHelpUrl(""); - } - }; - Blockly.Blocks['shuxing'] = { - init: function() { - this.appendValueInput("value") - .setCheck("String") - .appendField("属性名") - .appendField(new Blockly.FieldTextInput("name"), "name") - .appendField("属性值"); - this.setInputsInline(true); - this.setPreviousStatement(true, null); - this.setNextStatement(true, null); - this.setColour(230); - this.setTooltip(""); - this.setHelpUrl(""); - } - }; - - Blockly.Blocks['diycode2'] = { - init: function() { - this.appendDummyInput() - .appendField("在此输入任何代码") - .appendField(new Blockly.FieldTextInput("……"), "code"); - this.setOutput(true, null); - this.setColour(75); - this.setTooltip(""); - this.setHelpUrl(""); - } - }; - - Blockly.Blocks['css'] = { - init: function() { - this.appendStatementInput("NAME") - .setCheck(null) - .appendField("CSS样式(属性)"); - this.setPreviousStatement(true, null); - this.setNextStatement(true, null); - this.setColour(230); - this.setTooltip(""); - this.setHelpUrl(""); - } - }; + init: function() { + this.appendValueInput("get_key") + .setCheck("String") + .setAlign(Blockly.ALIGN_RIGHT) + .appendField("获取get信息 key"); + this.setInputsInline(true); + this.setOutput(true, null); + this.setColour(230); + this.setTooltip(""); + this.setHelpUrl(""); + } +}; + +Blockly.Blocks['get_post'] = { + init: function() { + this.appendValueInput("post_key") + .setCheck("String") + .appendField("获取post信息 key"); + this.setInputsInline(true); + this.setOutput(true, null); + this.setColour(230); + this.setTooltip(""); + this.setHelpUrl(""); + } +}; + +Blockly.Blocks['get_cookie'] = { + init: function() { + this.appendValueInput("cookie_key") + .setCheck("String") + .appendField("获取cookie值 Key:"); + this.setInputsInline(true); + this.setOutput(true, null); + this.setColour(230); + this.setTooltip(""); + this.setHelpUrl(""); + } +}; + +Blockly.Blocks['php_start'] = { + init: function() { + this.appendStatementInput("php-start") + .setCheck(null) + .appendField("PHP积木块"); + this.setPreviousStatement(true, null); + this.setNextStatement(true, null); + this.setColour(230); + this.setTooltip(""); + this.setHelpUrl(""); + } +}; + +Blockly.Blocks['read'] = { + init: function() { + this.appendValueInput("name") + .setCheck(null) + .appendField("读取文件 文件名(路径):"); + this.appendDummyInput() + .appendField("存放进变量") + .appendField(new Blockly.FieldTextInput("myfile"), "bianname"); + this.appendValueInput("return_text") + .setCheck(null) + .appendField(" 读取失败后的返回文本"); + this.setInputsInline(true); + this.setPreviousStatement(true, null); + this.setNextStatement(true, null); + this.setColour(135); + this.setTooltip(""); + this.setHelpUrl(""); + } +}; + +Blockly.Blocks['write'] = { + init: function() { + this.appendValueInput("path") + .setCheck(null) + .appendField("写入文件 文件名:"); + this.appendDummyInput() + .appendField("用于操作的变量名") + .appendField(new Blockly.FieldTextInput("default"), "name"); + this.appendValueInput("write_text") + .setCheck(null) + .appendField(" 要写入的内容"); + this.setInputsInline(true); + this.setPreviousStatement(true, null); + this.setNextStatement(true, null); + this.setColour(230); + this.setTooltip(""); + this.setHelpUrl(""); + } +}; + +Blockly.Blocks['echo'] = { + init: function() { + this.appendValueInput("NAME") + .setCheck(null) + .appendField("echo输出"); + this.setInputsInline(true); + this.setPreviousStatement(true, null); + this.setNextStatement(true, null); + this.setColour(165); + this.setTooltip(""); + this.setHelpUrl(""); + } +}; + +Blockly.Blocks['print_r'] = { + init: function() { + this.appendValueInput("NAME") + .setCheck(null) + .appendField("print_r输出"); + this.setInputsInline(true); + this.setPreviousStatement(true, null); + this.setNextStatement(true, null); + this.setColour(180); + this.setTooltip(""); + this.setHelpUrl(""); + } +}; + +Blockly.Blocks['htmlspecialchars'] = { + init: function() { + this.appendValueInput("NAME") + .setCheck("String") + .appendField("把文本"); + this.appendDummyInput() + .appendField("转换为 HTML 实体"); + this.setOutput(true, null); + this.setColour(0); + this.setTooltip("转义"); + this.setHelpUrl(""); + } +}; + +Blockly.Blocks['mysql_connect'] = { + init: function() { + this.appendDummyInput() + .appendField("连接MySQL 数据库"); + this.appendValueInput("example") + .setCheck(null) + .appendField("对象名"); + this.appendValueInput("url") + .setCheck("String") + .appendField("连接的服务器:"); + this.appendValueInput("user_name") + .setCheck("String") + .appendField("用户名:"); + this.appendValueInput("key") + .setCheck("String") + .appendField("密码:"); + this.setInputsInline(true); + this.setPreviousStatement(true, null); + this.setNextStatement(true, null); + this.setColour(230); + this.setTooltip("连接MySQL 数据库"); + this.setHelpUrl(""); + } +}; + +Blockly.Blocks['mail'] = { + init: function() { + this.appendDummyInput() + .appendField("发送邮件"); + this.appendValueInput("user") + .setCheck("String") + .appendField("接收者"); + this.appendValueInput("main") + .setCheck("String") + .appendField("主题"); + this.appendValueInput("text") + .setCheck("String") + .appendField("发送的消息"); + this.appendValueInput("h") + .setCheck("String") + .appendField("附加的标题"); + this.appendValueInput("NAME") + .setCheck("String") + .appendField("邮件发送程序规定额外的参数"); + this.setPreviousStatement(true, null); + this.setNextStatement(true, null); + this.setColour(230); + this.setTooltip("发送的消息应使用\\n来分隔各行,附加的标题应当使用\\r\\n分隔附加的标题"); + this.setHelpUrl("https://www.w3school.com.cn/php/php_ref_mail.asp"); + } +}; +Blockly.Blocks['width'] = { + init: function() { + this.appendValueInput("width_value") + .setCheck(null) + .appendField("设置元素宽度为"); + this.setInputsInline(true); + this.setPreviousStatement(true, null); + this.setNextStatement(true, null); + this.setColour(230); + this.setTooltip(""); + this.setHelpUrl(""); + } +}; + +Blockly.Blocks['height'] = { + init: function() { + this.appendValueInput("height_value") + .setCheck(null) + .appendField("设置元素高度为"); + this.setInputsInline(true); + this.setPreviousStatement(true, null); + this.setNextStatement(true, null); + this.setColour(230); + this.setTooltip(""); + this.setHelpUrl(""); + } +}; + +Blockly.Blocks['point'] = { + init: function() { + this.appendValueInput("value") + .setCheck("Number") + .appendField("父元素的百分比"); + this.setInputsInline(true); + this.setOutput(true, null); + this.setColour(230); + this.setTooltip(""); + this.setHelpUrl(""); + } +}; + +Blockly.Blocks['px'] = { + init: function() { + this.appendValueInput("value") + .setCheck(null) + .appendField("像素px "); + this.setInputsInline(true); + this.setOutput(true, null); + this.setColour(230); + this.setTooltip(""); + this.setHelpUrl(""); + } +}; + +Blockly.Blocks['style_first'] = { + init: function() { + this.appendValueInput("NAME") + .setCheck("Number") + .appendField(new Blockly.FieldDropdown([["宽度","width"], ["高度","height"]]), "style_name") + .appendField(new Blockly.FieldDropdown([["百分比","point"], ["像素","px"]]), "unit"); + this.setInputsInline(true); + this.setPreviousStatement(true, null); + this.setNextStatement(true, null); + this.setColour(230); + this.setTooltip(""); + this.setHelpUrl(""); + } +}; + +Blockly.Blocks['css'] = { + init: function() { + this.appendStatementInput("NAME") + .setCheck(null) + .appendField("style属性"); + this.setPreviousStatement(true, null); + this.setNextStatement(true, null); + this.setColour(230); + this.setTooltip(""); + this.setHelpUrl(""); + } +}; + +Blockly.Blocks['html'] = { + init: function() { + this.appendDummyInput() + .appendField("一个网页"); + this.appendStatementInput("NAME") + .setCheck(null); + this.setPreviousStatement(true, null); + this.setColour(230); + this.setTooltip(""); + this.setHelpUrl(""); + } +}; + +Blockly.Blocks['diycode'] = { + init: function() { + this.appendDummyInput() + .appendField("在此输入任何代码(php、js、css......)") + .appendField(new Blockly.FieldTextInput("……"), "code"); + this.setPreviousStatement(true, null); + this.setNextStatement(true, null); + this.setColour(75); + this.setTooltip(""); + this.setHelpUrl(""); + } +}; + +Blockly.Blocks['mysql_close'] = { + init: function() { + this.appendDummyInput() + .appendField("结束数据库连接"); + this.appendValueInput("example") + .setCheck(null) + .appendField("对象名"); + this.appendValueInput("name") + .setCheck("String") + .appendField("数据库名"); + this.setPreviousStatement(true, null); + this.setNextStatement(true, null); + this.setColour(230); + this.setTooltip(""); + this.setHelpUrl(""); + } +}; + +Blockly.Blocks['head'] = { + init: function() { + this.appendDummyInput() + .appendField("头部"); + this.appendStatementInput("NAME") + .setCheck(null); + this.setPreviousStatement(true, null); + this.setNextStatement(true, null); + this.setColour(230); + this.setTooltip(""); + this.setHelpUrl(""); + } +}; + +Blockly.Blocks['body'] = { + init: function() { + this.appendDummyInput() + .appendField("身体"); + this.appendStatementInput("NAME") + .setCheck(null); + this.appendDummyInput() + .appendField("属性"); + this.appendStatementInput("attribute") + .setCheck(null); + this.setPreviousStatement(true, null); + this.setNextStatement(true, null); + this.setColour(230); + this.setTooltip(""); + this.setHelpUrl(""); + } +}; + +Blockly.Blocks['title'] = { + init: function() { + this.appendValueInput("NAME") + .setCheck("String") + .appendField("标题:"); + this.setPreviousStatement(true, null); + this.setNextStatement(true, null); + this.setColour(160); + this.setTooltip(""); + this.setHelpUrl(""); + } +}; + +Blockly.Blocks['html5'] = { + init: function() { + this.appendDummyInput() + .appendField("HTML5标准网页声明"); + this.setPreviousStatement(true, null); + this.setNextStatement(true, null); + this.setColour(230); + this.setTooltip(""); + this.setHelpUrl(""); + } +}; + +Blockly.Blocks['h_'] = { + init: function() { + this.appendDummyInput() + .appendField(new Blockly.FieldDropdown([["一级","h1"], ["二级","h2"], ["三级","h3"], ["四级","h4"], ["五级","h5"], ["六级","h6"]]), "test") + .appendField("文本"); + this.appendDummyInput() + .appendField("内容"); + this.appendStatementInput("NAME") + .setCheck(null); + this.appendDummyInput() + .appendField("属性"); + this.appendStatementInput("attribute") + .setCheck(null); + this.setPreviousStatement(true, null); + this.setNextStatement(true, null); + this.setColour(65); + this.setTooltip(""); + this.setHelpUrl(""); + } +}; + +Blockly.Blocks['p'] = { + init: function() { + this.appendDummyInput() + .appendField("段落标签"); + this.appendDummyInput() + .appendField("内容"); + this.appendStatementInput("NAME") + .setCheck(null); + this.appendDummyInput() + .appendField("属性"); + this.appendStatementInput("attribute") + .setCheck(null); + this.setPreviousStatement(true, null); + this.setNextStatement(true, null); + this.setColour(65); + this.setTooltip(""); + this.setHelpUrl(""); + } +}; + +Blockly.Blocks['img'] = { + init: function() { + this.appendDummyInput() + .appendField("图像") + .appendField(new Blockly.FieldTextInput("来源"), "src") + .appendField("宽") + .appendField(new Blockly.FieldNumber(100), "width") + .appendField("高") + .appendField(new Blockly.FieldNumber(100), "height"); + this.setPreviousStatement(true, null); + this.setNextStatement(true, null); + this.setColour(315); + this.setTooltip(""); + this.setHelpUrl(""); + } +}; + +Blockly.Blocks['a'] = { + init: function() { + this.appendDummyInput() + .appendField("超链接") + .appendField(new Blockly.FieldTextInput("https://www.w3school.com.cn/html"), "link"); + this.appendDummyInput() + .appendField("内容"); + this.appendStatementInput("NAME") + .setCheck(null); + this.appendDummyInput() + .appendField("属性"); + this.appendStatementInput("attribute") + .setCheck(null); + this.setPreviousStatement(true, null); + this.setNextStatement(true, null); + this.setColour(195); + this.setTooltip(""); + this.setHelpUrl(""); + } +}; + +Blockly.Blocks['video'] = { + init: function() { + this.appendDummyInput() + .appendField("视频") + .appendField(new Blockly.FieldTextInput("来源"), "src") + .appendField("宽") + .appendField(new Blockly.FieldNumber(100), "width") + .appendField("高") + .appendField(new Blockly.FieldNumber(100), "height"); + this.setPreviousStatement(true, null); + this.setNextStatement(true, null); + this.setColour(315); + this.setTooltip(""); + this.setHelpUrl(""); + } +}; + +Blockly.Blocks['br'] = { + init: function() { + this.appendDummyInput() + .appendField("换行"); + this.setPreviousStatement(true, null); + this.setNextStatement(true, null); + this.setColour(180); + this.setTooltip(""); + this.setHelpUrl(""); + } +}; +Blockly.Blocks['shuxing'] = { + init: function() { + this.appendValueInput("value") + .setCheck("String") + .appendField("属性名") + .appendField(new Blockly.FieldTextInput("name"), "name") + .appendField("属性值"); + this.setInputsInline(true); + this.setPreviousStatement(true, null); + this.setNextStatement(true, null); + this.setColour(230); + this.setTooltip(""); + this.setHelpUrl(""); + } +}; + +Blockly.Blocks['diycode2'] = { + init: function() { + this.appendDummyInput() + .appendField("在此输入任何代码") + .appendField(new Blockly.FieldTextInput("……"), "code"); + this.setOutput(true, null); + this.setColour(75); + this.setTooltip(""); + this.setHelpUrl(""); + } +}; + +Blockly.Blocks['css'] = { + init: function() { + this.appendStatementInput("NAME") + .setCheck(null) + .appendField("CSS样式(属性)"); + this.setPreviousStatement(true, null); + this.setNextStatement(true, null); + this.setColour(230); + this.setTooltip(""); + this.setHelpUrl(""); + } +}; + Blockly.PHP['get_get'] = function(block) { - var value_get_key = Blockly.PHP.valueToCode(block, 'get_key', Blockly.PHP.ORDER_ATOMIC); - // TODO: Assemble PHP into code variable. - var l = value_get_key; - var value_get_key = l.slice(2, l.length - 1); - var code = '$_GET["' + value_get_key + '"]'; - // TODO: Change ORDER_NONE to the correct strength. - return [code, Blockly.PHP.ORDER_NONE]; - }; - - Blockly.PHP['get_post'] = function(block) { - var value_post_key = Blockly.PHP.valueToCode(block, 'post_key', Blockly.PHP.ORDER_ATOMIC); - // TODO: Assemble PHP into code variable. - var l = value_get_key; - var value_get_key = l.slice(2, l.length - 1); - var code = '$_POST["' + value_post_key + '"]'; - // TODO: Change ORDER_NONE to the correct strength. - return [code, Blockly.PHP.ORDER_NONE]; - }; - - Blockly.PHP['get_cookie'] = function(block) { - var value_cookie_key = Blockly.PHP.valueToCode(block, 'cookie_key', Blockly.PHP.ORDER_ATOMIC); - // TODO: Assemble PHP into code variable. - var l = value_cookie_key; - var value_cookie_key = l.slice(2, l.length - 1); - var code = '$_COOKIE["' + value_cookie_key + '"]'; - // TODO: Change ORDER_NONE to the correct strength. - return [code, Blockly.PHP.ORDER_NONE]; - }; - - Blockly.PHP['php_start'] = function(block) { - var statements_php_start = Blockly.PHP.statementToCode(block, 'php-start'); - // TODO: Assemble PHP into code variable. - var code = '<?php\n' + statements_php_start + '\n?>'; - return code; - }; - - Blockly.PHP['read'] = function(block) { - var value_name = Blockly.PHP.valueToCode(block, 'name', Blockly.PHP.ORDER_ATOMIC); - var l = value_name; - var value_name = l.slice(2, l.length - 1); - var text_bianname = block.getFieldValue('bianname'); - var value_return_text = Blockly.PHP.valueToCode(block, 'return_text', Blockly.PHP.ORDER_ATOMIC); - // TODO: Assemble PHP into code variable. - var code = `$` + text_bianname + ` = fopen("` + value_name + `", "r") or die ("` + value_return_text + `");
    ` - + '$' + text_bianname + ' = fread(' + '$' + text_bianname + ',filesize("' + value_name + '"));
    ' - + 'fclose($' + text_bianname + ');
    ' - return code; - }; - - Blockly.PHP['write'] = function(block) { - var value_path = Blockly.PHP.valueToCode(block, 'path', Blockly.PHP.ORDER_ATOMIC); - var l = value_path; - var value_path = l.slice(2, l.length - 1); - var text_name = block.getFieldValue('name');//变量名 - var value_write_text = Blockly.PHP.valueToCode(block, 'write_text', Blockly.PHP.ORDER_ATOMIC); - // TODO: Assemble PHP into code variable. - var code = '$' + text_name + ' = fopen("' + value_path + '", "w") or die ("' + 'Unable to open file!' + '");
    ' + '$' + text_name + ' = fwrite(' + '$' + text_name + ',"' + value_path + '");
    ' + 'fclose($' + text_name + ');
    '; - return code; - }; - - Blockly.PHP['print_r'] = function(block) { - var value_name = Blockly.PHP.valueToCode(block, 'NAME', Blockly.PHP.ORDER_ATOMIC); - // TODO: Assemble PHP into code variable. - var code = 'print_r(' + value_name + ');
    '; - return code; - }; - - Blockly.PHP['echo'] = function(block) { - var value_name = Blockly.PHP.valueToCode(block, 'NAME', Blockly.PHP.ORDER_ATOMIC); - // TODO: Assemble PHP into code variable. - var code = 'echo ' + value_name + ';
    '; - return code; - }; - - Blockly.PHP['htmlspecialchars'] = function(block) { - var value_name = Blockly.PHP.valueToCode(block, 'NAME', Blockly.PHP.ORDER_ATOMIC); - // TODO: Assemble PHP into code variable. - var code = 'htmlentities(' + value_name + ')'; - // TODO: Change ORDER_NONE to the correct strength. - return [code, Blockly.PHP.ORDER_NONE]; - }; - - Blockly.PHP['mysql_close'] = function(block) { - var value_example = Blockly.PHP.valueToCode(block, 'example', Blockly.PHP.ORDER_ATOMIC); - var value_name = Blockly.PHP.valueToCode(block, 'name', Blockly.PHP.ORDER_ATOMIC); - // TODO: Assemble PHP into code variable. - var code = 'mysql_close($' + value_example + ');
    '; - return code; - }; - - Blockly.PHP['mysql_connect'] = function(block) { - var value_example = Blockly.PHP.valueToCode(block, 'example', Blockly.PHP.ORDER_ATOMIC); - var l = value_example; - var value_example = l.slice(1, l.length - 1); - var value_url = Blockly.PHP.valueToCode(block, 'url', Blockly.PHP.ORDER_ATOMIC); - var l = value_url; - var value_url = l.slice(1, l.length - 1); - var value_user_name = Blockly.PHP.valueToCode(block, 'user_name', Blockly.PHP.ORDER_ATOMIC); - var l = value_user_name; - var value_user_name = l.slice(1, l.length - 1); - var value_key = Blockly.PHP.valueToCode(block, 'key', Blockly.PHP.ORDER_ATOMIC); - var l = value_key; - var value_key = l.slice(1, l.length - 1); - // TODO: Assemble PHP into code variable. - var code = '$' + value_example + ' = mysql_connect("' + value_url + '","' + value_user_name + '","' + value_key + '");
    ' + 'if (!$' + value_example + ')
    {
    die("Could not connect: ".mysql_error());
    }
    '; - return code; - }; - - Blockly.PHP['mail'] = function(block) { - var value_user = Blockly.PHP.valueToCode(block, 'user', Blockly.PHP.ORDER_ATOMIC); - var value_main = Blockly.PHP.valueToCode(block, 'main', Blockly.PHP.ORDER_ATOMIC); - var value_text = Blockly.PHP.valueToCode(block, 'text', Blockly.PHP.ORDER_ATOMIC); - var value_h = Blockly.PHP.valueToCode(block, 'h', Blockly.PHP.ORDER_ATOMIC); - var value_name = Blockly.PHP.valueToCode(block, 'NAME', Blockly.PHP.ORDER_ATOMIC); - // TODO: Assemble PHP into code variable. - var code = 'mail('+value_user+','+value_main+','+value_text+','+value_h+','+value_h+','+value_name+');
    '; - return code; - }; - Blockly.PHP['html'] = function(block) { - var statements_name = Blockly.PHP.statementToCode(block, 'NAME'); - // TODO: Assemble PHP into code variable. - var code = '<html>
    ' + statements_name + '</html>
    '; - return code; - }; - Blockly.PHP['head'] = function(block) { - var statements_name = Blockly.PHP.statementToCode(block, 'NAME'); - // TODO: Assemble PHP into code variable. - var code = '<head>
    ' + statements_name + '
    </head>
    '; - return code; - }; - - Blockly.PHP['diycode'] = function(block) { - var text_code = block.getFieldValue('code'); - // TODO: Assemble PHP into code variable. - var code = text_code; - return code; - }; - Blockly.PHP['h_'] = function(block) { - var dropdown_test = block.getFieldValue('test'); - var statements_name = Blockly.PHP.statementToCode(block, 'NAME'); - var statements_attribute = Blockly.PHP.statementToCode(block, 'attribute'); - // TODO: Assemble PHP into code variable. - var code = '<'+dropdown_test + ' ' + statements_attribute + '>
    '+statements_name+'
    </'+dropdown_test+'>
    '; - return code; - }; - - Blockly.PHP['body'] = function(block) { - var statements_name = Blockly.PHP.statementToCode(block, 'NAME'); - var statements_attribute = Blockly.PHP.statementToCode(block, 'attribute'); - // TODO: Assemble PHP into code variable. - var code = '<body ' + statements_attribute +'>
    ' + statements_name + '
    </body>
    '; - return code; - }; - - Blockly.PHP['html5'] = function(block) { - // TODO: Assemble PHP into code variable. - var code = '<!DOCTYPE HTML>
    '; - return code; - }; - - Blockly.PHP['p'] = function(block) { - var statements_name = Blockly.PHP.statementToCode(block, 'NAME'); - var statements_attribute = Blockly.PHP.statementToCode(block, 'attribute'); - // TODO: Assemble PHP into code variable. - var code = '<p ' + statements_attribute +'">
    ' + statements_name + '
    </p>
    '; - return code; - }; - - Blockly.PHP['img'] = function(block) { - var text_src = block.getFieldValue('src'); - var number_width = block.getFieldValue('width'); - var number_height = block.getFieldValue('height'); - // TODO: Assemble PHP into code variable. - var code = '<img '+' src="'+text_src+'"'+' width="'+number_width+'"'+' heigth="'+number_height+'"'+'">
    ' + statements_name + '
    '; - return code; - }; - - Blockly.PHP['title'] = function(block) { - var value_name = Blockly.PHP.valueToCode(block, 'NAME', Blockly.PHP.ORDER_ATOMIC); - // TODO: Assemble PHP into code variable. - var l = value_name; - var value_name = l.slice(2, l.length - 1); - var code = '<title>' + value_name + '</title>
    '; - return code; - }; - - Blockly.PHP['diycode2'] = function(block) { - var text_code = block.getFieldValue('code'); - - return [text_code, Blockly.PHP.ORDER_NONE]; - }; - - Blockly.PHP['br'] = function(block) { - // TODO: Assemble PHP into code variable. - var code = '<br>'; - return code; - }; - Blockly.PHP['a'] = function(block) { - var text_link = block.getFieldValue('link'); - var statements_name = Blockly.PHP.statementToCode(block, 'NAME'); - var statements_attribute = Blockly.PHP.statementToCode(block, 'attribute'); - // TODO: Assemble PHP into code variable. - var code = '<img '+' src="'+text_link+'" '+statements_attribute+'>'+ statements_name + '</a>
    '; - return code; - }; - - Blockly.PHP['video'] = function(block) { - var text_src = block.getFieldValue('src'); - var number_width = block.getFieldValue('width'); - var number_height = block.getFieldValue('height'); - // TODO: Assemble PHP into code variable. - var code = '<video '+' src="'+text_src+'"'+' width="'+number_width+'"'+' heigth="'+number_height+'"'+'">
    </video>
    '; - return code; - }; - Blockly.PHP['shuxing'] = function(block) { - var text_name = block.getFieldValue('name'); - var value_value = Blockly.PHP.valueToCode(block, 'value', Blockly.PHP.ORDER_ATOMIC); - // TODO: Assemble PHP into code variable. - var l = value_value; - var value_value = l.slice(1, l.length - 1); - var code = text_name + ':' + value_value + ';
    '; - return code; - }; + var value_get_key = Blockly.PHP.valueToCode(block, 'get_key', Blockly.PHP.ORDER_ATOMIC); + // TODO: Assemble PHP into code variable. + var l = value_get_key; + var value_get_key = l.slice(2, l.length - 1); + var code = '$_GET["' + value_get_key + '"]'; + // TODO: Change ORDER_NONE to the correct strength. + return [code, Blockly.PHP.ORDER_NONE]; +}; + +Blockly.PHP['get_post'] = function(block) { + var value_post_key = Blockly.PHP.valueToCode(block, 'post_key', Blockly.PHP.ORDER_ATOMIC); + // TODO: Assemble PHP into code variable. + var l = value_get_key; + var value_get_key = l.slice(2, l.length - 1); + var code = '$_POST["' + value_post_key + '"]'; + // TODO: Change ORDER_NONE to the correct strength. + return [code, Blockly.PHP.ORDER_NONE]; +}; + +Blockly.PHP['get_cookie'] = function(block) { + var value_cookie_key = Blockly.PHP.valueToCode(block, 'cookie_key', Blockly.PHP.ORDER_ATOMIC); + // TODO: Assemble PHP into code variable. + var l = value_cookie_key; + var value_cookie_key = l.slice(2, l.length - 1); + var code = '$_COOKIE["' + value_cookie_key + '"]'; + // TODO: Change ORDER_NONE to the correct strength. + return [code, Blockly.PHP.ORDER_NONE]; +}; + +Blockly.PHP['php_start'] = function(block) { + var statements_php_start = Blockly.PHP.statementToCode(block, 'php-start'); + // TODO: Assemble PHP into code variable. + var code = '<?php\n' + statements_php_start + '\n?>'; + return code; +}; + +Blockly.PHP['read'] = function(block) { + var value_name = Blockly.PHP.valueToCode(block, 'name', Blockly.PHP.ORDER_ATOMIC); + var l = value_name; + var value_name = l.slice(2, l.length - 1); + var text_bianname = block.getFieldValue('bianname'); + var value_return_text = Blockly.PHP.valueToCode(block, 'return_text', Blockly.PHP.ORDER_ATOMIC); + // TODO: Assemble PHP into code variable. + var code = `$` + text_bianname + ` = fopen("` + value_name + `", "r") or die ("` + value_return_text + `");
    ` + + '$' + text_bianname + ' = fread(' + '$' + text_bianname + ',filesize("' + value_name + '"));
    ' + + 'fclose($' + text_bianname + ');
    ' + return code; +}; + +Blockly.PHP['write'] = function(block) { + var value_path = Blockly.PHP.valueToCode(block, 'path', Blockly.PHP.ORDER_ATOMIC); + var l = value_path; + var value_path = l.slice(2, l.length - 1); + var text_name = block.getFieldValue('name');//变量名 + var value_write_text = Blockly.PHP.valueToCode(block, 'write_text', Blockly.PHP.ORDER_ATOMIC); + // TODO: Assemble PHP into code variable. + var code = '$' + text_name + ' = fopen("' + value_path + '", "w") or die ("' + 'Unable to open file!' + '");
    ' + '$' + text_name + ' = fwrite(' + '$' + text_name + ',"' + value_path + '");
    ' + 'fclose($' + text_name + ');
    '; + return code; +}; + +Blockly.PHP['print_r'] = function(block) { + var value_name = Blockly.PHP.valueToCode(block, 'NAME', Blockly.PHP.ORDER_ATOMIC); + // TODO: Assemble PHP into code variable. + var code = 'print_r(' + value_name + ');
    '; + return code; +}; + +Blockly.PHP['echo'] = function(block) { + var value_name = Blockly.PHP.valueToCode(block, 'NAME', Blockly.PHP.ORDER_ATOMIC); + // TODO: Assemble PHP into code variable. + var code = 'echo ' + value_name + ';
    '; + return code; +}; + +Blockly.PHP['htmlspecialchars'] = function(block) { + var value_name = Blockly.PHP.valueToCode(block, 'NAME', Blockly.PHP.ORDER_ATOMIC); + // TODO: Assemble PHP into code variable. + var code = 'htmlentities(' + value_name + ')'; + // TODO: Change ORDER_NONE to the correct strength. + return [code, Blockly.PHP.ORDER_NONE]; +}; + +Blockly.PHP['mysql_close'] = function(block) { + var value_example = Blockly.PHP.valueToCode(block, 'example', Blockly.PHP.ORDER_ATOMIC); + var value_name = Blockly.PHP.valueToCode(block, 'name', Blockly.PHP.ORDER_ATOMIC); + // TODO: Assemble PHP into code variable. + var code = 'mysql_close($' + value_example + ');
    '; + return code; +}; + +Blockly.PHP['css'] = function(block) { + var statements_name = Blockly.PHP.statementToCode(block, 'NAME'); + // TODO: Assemble PHP into code variable. + var code = 'style="' + statements_name + '" '; + return code; +}; + +Blockly.PHP['mysql_connect'] = function(block) { + var value_example = Blockly.PHP.valueToCode(block, 'example', Blockly.PHP.ORDER_ATOMIC); + var l = value_example; + var value_example = l.slice(1, l.length - 1); + var value_url = Blockly.PHP.valueToCode(block, 'url', Blockly.PHP.ORDER_ATOMIC); + var l = value_url; + var value_url = l.slice(1, l.length - 1); + var value_user_name = Blockly.PHP.valueToCode(block, 'user_name', Blockly.PHP.ORDER_ATOMIC); + var l = value_user_name; + var value_user_name = l.slice(1, l.length - 1); + var value_key = Blockly.PHP.valueToCode(block, 'key', Blockly.PHP.ORDER_ATOMIC); + var l = value_key; + var value_key = l.slice(1, l.length - 1); + // TODO: Assemble PHP into code variable. + var code = '$' + value_example + ' = mysql_connect("' + value_url + '","' + value_user_name + '","' + value_key + '");
    ' + 'if (!$' + value_example + ')
    {
    die("Could not connect: ".mysql_error());
    }
    '; + return code; +}; + +Blockly.PHP['mail'] = function(block) { + var value_user = Blockly.PHP.valueToCode(block, 'user', Blockly.PHP.ORDER_ATOMIC); + var value_main = Blockly.PHP.valueToCode(block, 'main', Blockly.PHP.ORDER_ATOMIC); + var value_text = Blockly.PHP.valueToCode(block, 'text', Blockly.PHP.ORDER_ATOMIC); + var value_h = Blockly.PHP.valueToCode(block, 'h', Blockly.PHP.ORDER_ATOMIC); + var value_name = Blockly.PHP.valueToCode(block, 'NAME', Blockly.PHP.ORDER_ATOMIC); + // TODO: Assemble PHP into code variable. + var code = 'mail('+value_user+','+value_main+','+value_text+','+value_h+','+value_h+','+value_name+');
    '; + return code; +}; +Blockly.PHP['html'] = function(block) { + var statements_name = Blockly.PHP.statementToCode(block, 'NAME'); + // TODO: Assemble PHP into code variable. + var code = '<html>
    ' + statements_name + '</html>
    '; + return code; +}; +Blockly.PHP['head'] = function(block) { + var statements_name = Blockly.PHP.statementToCode(block, 'NAME'); + // TODO: Assemble PHP into code variable. + var code = '<head>
    ' + statements_name + '
    </head>
    '; + return code; +}; + +Blockly.PHP['diycode'] = function(block) { + var text_code = block.getFieldValue('code'); + // TODO: Assemble PHP into code variable. + var code = text_code; + return code; +}; +Blockly.PHP['h_'] = function(block) { + var dropdown_test = block.getFieldValue('test'); + var statements_name = Blockly.PHP.statementToCode(block, 'NAME'); + var statements_attribute = Blockly.PHP.statementToCode(block, 'attribute'); + // TODO: Assemble PHP into code variable. + var code = '<'+dropdown_test + ' ' + statements_attribute + '>
    '+statements_name+'
    </'+dropdown_test+'>
    '; + return code; +}; + +Blockly.PHP['body'] = function(block) { + var statements_name = Blockly.PHP.statementToCode(block, 'NAME'); + var statements_attribute = Blockly.PHP.statementToCode(block, 'attribute'); + // TODO: Assemble PHP into code variable. + var code = '<body ' + statements_attribute +'>
    ' + statements_name + '
    </body>
    '; + return code; +}; + +Blockly.PHP['html5'] = function(block) { + // TODO: Assemble PHP into code variable. + var code = '<!DOCTYPE HTML>
    '; + return code; +}; + +Blockly.PHP['p'] = function(block) { + var statements_name = Blockly.PHP.statementToCode(block, 'NAME'); + var statements_attribute = Blockly.PHP.statementToCode(block, 'attribute'); + // TODO: Assemble PHP into code variable. + var code = '<p ' + statements_attribute +'">
    ' + statements_name + '
    </p>
    '; + return code; +}; + +Blockly.PHP['img'] = function(block) { + var text_src = block.getFieldValue('src'); + var number_width = block.getFieldValue('width'); + var number_height = block.getFieldValue('height'); + // TODO: Assemble PHP into code variable. + var code = '<img '+' src="'+text_src+'"'+' width="'+number_width+'"'+' heigth="'+number_height+'"'+'">
    ' + statements_name + '
    '; + return code; +}; + +Blockly.PHP['title'] = function(block) { + var value_name = Blockly.PHP.valueToCode(block, 'NAME', Blockly.PHP.ORDER_ATOMIC); + // TODO: Assemble PHP into code variable. + var l = value_name; + var value_name = l.slice(2, l.length - 1); + var code = '<title>' + value_name + '</title>
    '; + return code; +}; + +Blockly.PHP['diycode2'] = function(block) { + var text_code = block.getFieldValue('code'); + + return [text_code, Blockly.PHP.ORDER_NONE]; +}; + +Blockly.PHP['br'] = function(block) { + // TODO: Assemble PHP into code variable. + var code = '<br>'; + return code; +}; +Blockly.PHP['a'] = function(block) { + var text_link = block.getFieldValue('link'); + var statements_name = Blockly.PHP.statementToCode(block, 'NAME'); + var statements_attribute = Blockly.PHP.statementToCode(block, 'attribute'); + // TODO: Assemble PHP into code variable. + var code = '<img '+' src="'+text_link+'" '+statements_attribute+'>'+ statements_name + '</a>
    '; + return code; +}; + +Blockly.PHP['video'] = function(block) { + var text_src = block.getFieldValue('src'); + var number_width = block.getFieldValue('width'); + var number_height = block.getFieldValue('height'); + // TODO: Assemble PHP into code variable. + var code = '<video '+' src="'+text_src+'"'+' width="'+number_width+'"'+' heigth="'+number_height+'"'+'">
    </video>
    '; + return code; +}; +Blockly.PHP['shuxing'] = function(block) { + var text_name = block.getFieldValue('name'); + var value_value = Blockly.PHP.valueToCode(block, 'value', Blockly.PHP.ORDER_ATOMIC); + // TODO: Assemble PHP into code variable. + var l = value_value; + var value_value = l.slice(1, l.length - 1); + var code = text_name + ':' + value_value + ';
    '; + return code; +}; + +Blockly.PHP['width'] = function(block) { + var value_width_value = Blockly.PHP.valueToCode(block, 'width_value', Blockly.PHP.ORDER_ATOMIC); + // TODO: Assemble PHP into code variable. + console.log(value_width_value); + var code = 'width:' + value_width_value + ';'; + return code; +}; + +Blockly.PHP['height'] = function(block) { + var value_height_value = Blockly.PHP.valueToCode(block, 'height_value', Blockly.PHP.ORDER_ATOMIC); + // TODO: Assemble PHP into code variable. + var code = 'height:' + value_height_value + ';'; + return code; +}; + +Blockly.PHP['point'] = function(block) { + var value_value = Blockly.PHP.valueToCode(block, 'value', Blockly.PHP.ORDER_ATOMIC); + // TODO: Assemble PHP into code variable. + + var code = value_value + '%'; + // TODO: Change ORDER_NONE to the correct strength. + return [code, Blockly.PHP.ORDER_NONE]; + +}; + +Blockly.PHP['px'] = function(block) { + var value_value = Blockly.PHP.valueToCode(block, 'value', Blockly.PHP.ORDER_ATOMIC); + // TODO: Assemble PHP into code variable. + + var code = value_value + 'px'; + console.log(code); + // TODO: Change ORDER_NONE to the correct strength. + return [code, Blockly.PHP.ORDER_NONE]; +}; +Blockly.PHP['style_first'] = function(block) { + var dropdown_style_name = block.getFieldValue('style_name'); + var dropdown_unit = block.getFieldValue('unit'); + var value_name = Blockly.PHP.valueToCode(block, 'NAME', Blockly.PHP.ORDER_ATOMIC); + // TODO: Assemble PHP into code variable. + var code = dropdown_style_name + ':' + value_name + dropdown_unit; + return code; +}; console.log(` iiiiiiiii;;;;iiiiiiiiiiiiiiiii;;;;;;;;;;;;;;;;;;;;iiiiiiiiiiiiiiiiiiiiii1111111111111t1ttttttttttfffffffffffffLLLLLLLLLLLGGGGGGG iiiiiiiii;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iiiiiiiiiiiiiiiiiiiii11111111111111tttttttttttfffffffffffffLLLLLLLLLLLGGGGGG -- Gitee From 5fde2f81131ee9af9fd683162c77878f71b26552 Mon Sep 17 00:00:00 2001 From: Codekpy <1942171924@qq.com> Date: Tue, 15 Nov 2022 10:05:09 +0800 Subject: [PATCH 11/12] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E4=B8=BB=E9=A1=B5?= =?UTF-8?q?=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ide.html | 2 +- index.php | 2 +- kzhzbcphp.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ide.html b/ide.html index 33d81d0..72800c5 100644 --- a/ide.html +++ b/ide.html @@ -23,7 +23,7 @@
  •    PHP助手
  • -
    诗岸单推人
    diff --git a/kzhzbcphp.php b/kzhzbcphp.php index f6f23a3..659bc1d 100644 --- a/kzhzbcphp.php +++ b/kzhzbcphp.php @@ -47,7 +47,7 @@ echo $text = <<<__
  •    PHP助手