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

📄 cell.php

📁 学校网站源码http://您的网址/admin/admin_login.asp 默认登录用户:admin 默认登录密码:admin
💻 PHP
字号:
<?php


include( "../../config.inc.php" );
include( "../language/".$aLan."_".$charset.".php" );
include( "../../includes/version.php" );
include( "../../includes/pro.php" );
echo "<html>\r\n<head >\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=";
echo $charset;
echo "\">\r\n<link rel=stylesheet type=text/css href=style.css>\r\n<title>";
echo $strHtmlCellTitle;
echo "</title>\r\n\r\n";
echo "<s";
echo "cript language=javascript>\r\nvar sInitColor;\r\n\r\nfunction InsertImg(){\r\n\tvar imgstr = showModalDialog ('imagepage.php', window, 'dialogWidth: 350px; dialogHeight: 120px; center: yes; resizable: no; scroll: no; status: no; help: no');\r\n\tif (imgstr != null && imgstr != \"piclib\"  && imgstr != \"undefined\") {\r\n\t\treturn imgstr;\r\n\t} else if (imgstr != null && imgstr == \"piclib\"  && imgstr != \"undefined\") {";
echo "\r\n\t\tvar imgstr = showModalDialog ('piclib.php', window, 'dialogWidth: 650px; dialogHeight: 420px; center: yes; resizable: no; scroll: no; status: no; help: no');\r\n\t\tif (imgstr != null  && imgstr != \"undefined\") {\r\n\t\t\treturn imgstr;\r\n\t\t}else{\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t}else{\r\n\t\t\r\n\t\treturn \"\";\r\n\t}\r\n\r\n }\r\n\r\nfunction callColorDlg (src){\r\n\tif(sInitColor == null)\r\n   \t\tvar sColor = dlgHelper.ChooseColorDlg(";
echo ");\r\n  \telse\r\n   \t\tvar sColor = dlgHelper.ChooseColorDlg(sInitColor);\r\n\r\n  \tsColor = sColor.toString(16);\r\n  \tif (sColor.length < 6) {\r\n   \t\tvar sTempString = \"000000\".substring(0,6-sColor.length);\r\n   \t\tsColor = sTempString.concat(sColor);\r\n  \t}\r\n\r\n  \tsrc.style.backgroundColor = '#' + sColor;\r\n  \ttableForm.bgcolor.value = \"#\" + sColor;\r\n  \tsInitColor = sColor;\r\n}\r\n\r\nwindow.onload = function(){\r\n  \t";
echo "tableForm.cell_width.value = cellWidth;\r\n \ttableForm.cell_height.value = cellHeight;\r\n  \ttableForm.col_span.value = dialogArguments.colSpan;\r\n  \ttableForm.row_span.value = dialogArguments.rowSpan;\r\n  \tfor (i = 0; i < tableForm.align.options.length; i ++) {\r\n \t \tif(tableForm.align.options[i].value.toLowerCase() == dialogArguments.align.toLowerCase())\r\n    \ttableForm.align.options[i].selected = true;";
echo "\r\n\t}\r\n  \tfor (i=0; i<tableForm.valign.options.length; i++) {\r\n \t \tif(tableForm.valign.options[i].value.toLowerCase() == dialogArguments.vAlign.toLowerCase())\r\n    \ttableForm.valign.options[i].selected = true;\r\n\t}\r\n  \tif(dialogArguments.bgColor){\r\n   tableForm.bg_color.style.backgroundColor = dialogArguments.bgColor;\r\n\ttableForm.bgcolor.value = dialogArguments.bgColor;\r\n  \t\ttableForm.bgtype.options[";
echo "1].selected = true;\r\n  \t}else if(dialogArguments.background){\r\n   \t\ttableForm.bgfile.value = dialogArguments.background;\r\n   \t\ttableForm.bgtype.options[2].selected = true;\r\n  \t}\r\n  \tsBgType();\r\n \tthis.focus();\r\n}\r\n\r\nvar cellBgColor = dialogArguments.bgColor;\r\nvar cellWidth = dialogArguments.width;\r\nvar cellHeight = dialogArguments.height;\r\nvar cellAlign = dialogArguments.align;\r\nvar cellvAlign = d";
echo "ialogArguments.vAlign;\r\n\r\nfunction sBgType (){\r\n\tswitch (tableForm.bgtype.options[tableForm.bgtype.selectedIndex].value){\r\n   \tcase 'none':\r\n    \tsImage.style.display = 'none';\r\n    \tsColor.style.display = 'none';\r\n    break;\r\n   \tcase 'color':\r\n    \tsImage.style.display = 'none';\r\n    \tsColor.style.display = 'block';\r\n    break;\r\n   \tcase 'image':\r\n    \tsImage.style.display = 'block';\r\n    \tsColo";
echo "r.style.display = 'none';\r\n    break;\r\n  \t}\r\n}\r\n\r\nfunction doModify() {\r\n\tvar error = 0;\r\n\tif (tableForm.cell_width.value < 0) {\r\n\t\talert(\"请填写数字\")\r\n\t\terror = 1\r\n\t\ttableForm.cell_width.select()\r\n\t\ttableForm.cell_width.focus()\r\n\t}\r\n\r\n\tif (tableForm.cell_height.value < 0) {\r\n\t\talert(\"请填写数字\")\r\n\t\terror = 1\r\n\t\ttableForm.cell_height.select()\r\n\t\ttableForm.cell_height.focus()\r\n\t}\r\n\r\n\tif (!error){\r\n";
echo "\r\n\t\treturnValue = new Object();\r\n  \t\treturnValue.width = tableForm.cell_width.value;\r\n  \t\treturnValue.height = tableForm.cell_height.value;\r\n  \t\treturnValue.colSpan = tableForm.col_span.value;\r\n  \t\treturnValue.rowSpan = tableForm.row_span.value;\r\n  \t\treturnValue.align = tableForm.align[tableForm.align.selectedIndex].value;\r\n  \t\treturnValue.vAlign = tableForm.valign[tableForm.valign.selectedIndex].";
echo "value;\r\n  \t\tswitch (tableForm.bgtype.options[tableForm.bgtype.selectedIndex].value){\r\n   \t\tcase 'color':\r\n    \t\treturnValue.bgColor = tableForm.bgcolor.value;\r\n    \tbreak;\r\n   \t\tcase 'image':\r\n    \t\treturnValue.background = tableForm.bgfile.value;\r\n    \tbreak;\r\n  \t\t}\r\n  \t\twindow.close()\r\n\t}\r\n}\r\n\r\n</script>\r\n</head>\r\n<body class=\"bodybackground\">\r\n<form name=tableForm>\r\n  <table width=\"100%\" cellpadding";
echo "=0 cellspacing=15>\r\n    <tr> \r\n      <td><fieldset> <legend>";
echo $strHtmlCellTitle;
echo "</legend> \r\n        <table width=\"20\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n          <tr> \r\n            <td><img src=\"dot.gif\" height=\"7\" width=\"1\"></td>\r\n          </tr>\r\n        </table>\r\n        <table width=\"100%\" cellpadding=3 cellspacing=0>\r\n          <tr> \r\n            <td rowspan=\"2\" style=\"padding-left:10px;\">";
echo $strHtmlCellBack;
echo "</td>\r\n            <td rowspan=\"2\"> \r\n              ";
echo "<s";
echo "elect name=bgtype onchange=\"sBgType();\">\r\n                <option value=none>";
echo $strHtmlCellBackNone;
echo "</option>\r\n                <option value=color>";
echo $strHtmlCellBackColor;
echo "</option>\r\n                <option value=image>";
echo $strHtmlCellBackpic;
echo "</option>\r\n              </select>\r\n            </td>\r\n            <td colspan=2 valign=top id=\"sColor\" style=\"display:none\">\r\n              <table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n                <tr> \r\n                  <td width=\"19\"><img src=\"images/btcolor.gif\" id=\"bg_color\" onClick=\"callColorDlg(this)\"></td>\r\n                  <td width=\"45\" align=\"center\"> \r\n                    <input name";
echo "=\"bgcolor\" type=\"text\" size=\"6\" style=\"font-size:12px\">\r\n                  </td>\r\n                </tr>\r\n              </table>\r\n            </td>\r\n          </tr>\r\n          <tr> \r\n            <td colspan=2 valign=top id=\"sImage\" style=\"display:none\">\r\n              <table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n                <tr> \r\n                  <td>\r\n                    <input type=text readonl";
echo "y style=\"font-size:12px;width:115\" name=bgfile>\r\n                  </td>\r\n                  <td width=\"22\" align=\"right\"><img src=\"images/folder.gif\" width=\"16\" height=\"16\" onClick=\"tableForm.bgfile.value = InsertImg();\" style=\"cursor:hand\"></td>\r\n                </tr>\r\n              </table>\r\n            </td>\r\n          </tr>\r\n          <tr> \r\n            <td  style=\"padding-left:10px;\">";
echo $strHtmlCellWidth;
echo "</td>\r\n            <td> \r\n              <input type=text name=cell_width size=4 maxlength=4>\r\n            </td>\r\n            <td>";
echo $strHtmlCellHorz;
echo " \r\n              <input type=hidden name=col_span size=3 maxlength=3>\r\n            </td>\r\n            <td> \r\n              ";
echo "<s";
echo "elect name=align>\r\n                <option value=\"None\" selected>";
echo $strHtmlCellHorzDefault;
echo "</option>\r\n                <option value=\"left\">";
echo $strHtmlCellHorzLeft;
echo "</option>\r\n                <option value=\"center\">";
echo $strHtmlCellHorzCenter;
echo "</option>\r\n                <option value=\"right\">";
echo $strHtmlCellHorzRight;
echo "</option>\r\n              </select>\r\n            </td>\r\n          </tr>\r\n          <tr> \r\n            <td  style=\"padding-left:10px;\">";
echo $strHtmlCellHeight;
echo "</td>\r\n            <td> \r\n              <input type=text name=cell_height size=4 maxlength=4>\r\n            </td>\r\n            <td>";
echo $strHtmlCellVert;
echo " \r\n              <input type=hidden name=row_span size=3 maxlength=3>\r\n            </td>\r\n            <td> \r\n              ";
echo "<s";
echo "elect name=valign>\r\n                <option value=\"None\" selected>";
echo $strHtmlCellVertDefault;
echo "</option>\r\n                <option value=\"top\">";
echo $strHtmlCellVertTop;
echo "</option>\r\n                <option value=\"middle\">";
echo $strHtmlCellVertMiddle;
echo "</option>\r\n                <option value=\"bottom\">";
echo $strHtmlCellVertBottom;
echo "</option>\r\n              </select>\r\n            </td>\r\n          </tr>\r\n        </table>\r\n        </fieldset></td>\r\n    </tr>\r\n    <tr> \r\n      <td><input name=\"button\" type=button onClick=\"javascript:doModify();\" value=\"";
echo $strModify;
echo "\"> \r\n        <input name=\"button\" type=button onClick=\"javascript:window.close();\" value=\"";
echo $strCancel;
echo "\"> \r\n      </td>\r\n    </tr>\r\n  </table>\r\n</form>\r\n<OBJECT id=dlgHelper CLASSID=\"clsid:3050f819-98b5-11cf-bb82-00aa00bdce0b\" width=\"0px\" height=\"0px\"></OBJECT>\r\n</body>\r\n</html>";
?>

⌨️ 快捷键说明

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