⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 textfield.php

📁 泛微协同办公系统标准版E-office V5.5的源代码内含泛微办公系统V5.5自动注册文件。
💻 PHP
字号:
<?php

include_once( "inc/auth.php" );
echo "\r\n<html>\r\n<head>\r\n<title>单行输入框设定</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n";
echo "<s";
echo "cript language=\"javascript\" src=\"/fck/fckeditor.js\" ></script>\r\n";
echo "<s";
echo "cript language=\"javascript\" src=\"/fck/added.js\" ></script>\r\n";
echo "<s";
echo "cript>\r\nfunction my_submit()\r\n{\r\n\tif(ITEM_NAME.value==\"\")\r\n\t{\r\n\t\talert(\"控件名称不能为空\");\r\n\t\treturn;\r\n\t}\r\n\tif(edit_flag==0)\r\n\t{\r\n\t\tvar parent_window = parent.dialogArguments;\r\n\t\tcontrol_html=\"<INPUT type=text title=\\\"\"+ITEM_NAME.value.replace(\"\\\"\",\"&quot;\")+\"\\\" value=\\\"\"+ITEM_VALUE.value.replace(\"\\\"\",\"&quot;\")+\"\\\" style=\\\"font-size:\"+ITEM_SIZE.value+\"\\\">\";\r\n\t\tvar oEditor = parent_window.FCKeditor";
echo "API.GetInstance('fckeditor1') ;\r\n\t\toEditor.EditorDocument.focus();\r\n\t\toEditor.InsertHtml(control_html);\r\n\t}\r\n\telse\r\n\t{\r\n\t\toSelection = dialogArguments.document.selection.createRange();\r\n\t\tsRangeType = dialogArguments.document.selection.type; \r\n\t\tif (sRangeType == \"Control\") \r\n\t\t{\r\n\t\t\toSelection(0).title = ITEM_NAME.value;\r\n\t\t\toSelection(0).value = ITEM_VALUE.value;\r\n\t\t\toSelection(0).style.fontSize";
echo " = ITEM_SIZE.value;\r\n\t\t}\r\n\t}\r\n\twindow.close();\r\n}\r\n//-- 获取控件属性 --\r\nvar edit_flag=0;\r\nfunction LoadDo()\r\n{\r\n\toSelection = dialogArguments.document.selection.createRange();\r\n\tsRangeType = dialogArguments.document.selection.type;\r\n\tif (sRangeType == \"Control\") \r\n\t{\r\n\t\tedit_flag=1;\r\n\t\tITEM_NAME.value = oSelection(0).title;\r\n\t\tITEM_VALUE.value = oSelection(0).value;\r\n\t\tITEM_SIZE.value = oSelectio";
echo "n(0).style.fontSize.replace(\"px\",\"\");\r\n\t}\r\n\tITEM_NAME.focus();\r\n}\r\n</script>\r\n</head>\r\n<body topmargin=\"0\" onLoad=\"LoadDo();\">\r\n<table border=\"0\" cellspacing=\"1\" width=\"100%\" class=\"small\" bgcolor=\"#000000\" cellpadding=\"3\" align=\"center\">\r\n\t<tr class=\"TableLine1\">\r\n\t\t<td nowrap>控件名称:\r\n\t\t</td>\r\n\t\t<td nowrap>\r\n\t\t\t<Input name=\"ITEM_NAME\" type=\"text\" class=\"SmallInput\" size=\"20\">\r\n\t\t</td>\r\n\t</tr>\r\n\t<tr class";
echo "=\"TableLine1\">\r\n\t\t<td nowrap>默认值:\r\n\t\t</td>\r\n\t\t<td nowrap>\r\n\t\t\t<Input name=\"ITEM_VALUE\" type=\"text\" class=\"SmallInput\" size=\"20\">\r\n\t\t</td>\r\n\t</tr>\r\n\t<tr class=\"TableLine1\">\r\n\t\t<td nowrap>字体大小:\r\n\t\t</td>\r\n\t\t<td nowrap>\r\n\t\t\t<Input name=\"ITEM_SIZE\" type=\"text\" class=\"SmallInput\" size=\"20\" title=\"可选,默认13像素\">\r\n\t\t</td>\r\n\t</tr>\r\n\t<tr>\r\n\t\t<td class=\"TableLine2\" colspan=\"2\" align=\"center\">\r\n\t\t\t<input type=\"s";
echo "ubmit\" onClick=\"my_submit();\" value=\"确 定\" class=\"SmallButton\">\r\n\t\t</td>\r\n\t</tr>\r\n</table>\r\n</body>\r\n</html>\r\n";
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -