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

📄 modifyimage.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 $strImageProp;
echo "</title>\r\n\r\n";
echo "<s";
echo "cript language=javascript>\r\nvar sCurrentAling,sInitColor;\r\n\r\n function callColorDlg(src){\r\n  if(sInitColor == null)\r\n   var sColor = dlgHelper.ChooseColorDlg();\r\n  else\r\n   var sColor = dlgHelper.ChooseColorDlg(sInitColor);\r\n\r\n  sColor = sColor.toString(16);\r\n  if (sColor.length < 6) {\r\n   var sTempString = \"000000\".substring(0,6-sColor.length);\r\n   sColor = sTempString.concat(sColor);\r\n  }\r\n\r\n  sr";
echo "c.style.backgroundColor = '#' + sColor;\r\n  imageForm.bordercolor.value = '#' + sColor;\r\n  sInitColor = sColor;\r\n }\r\n\r\nfunction setvalue () {\r\n\timageForm.srcimg.value = dialogArguments.src;\r\n\timageForm.image_width.value = dialogArguments.width;\r\n\timageForm.image_height.value = dialogArguments.height;\r\n\timageForm.border.value = dialogArguments.border ? dialogArguments.border : 0;\r\n\timageForm.alt_tag";
echo ".value = dialogArguments.alt;\r\n\timageForm.hspace.value = dialogArguments.hspace;\r\n\timageForm.vspace.value = dialogArguments.vspace;\r\n\timageForm.bordercolor.value = dialogArguments.style.borderColor;\r\n\timageForm.bgcolor.style.backgroundColor = dialogArguments.style.borderColor;\r\n  \tif(dialogArguments.style.position == 'absolute'){\r\n   \t\tif(dialogArguments.style.zIndex < 0)\r\n    \t\tsCurrentAling = 'be";
echo "hind';\r\n   \t\telse\r\n    \t\tsCurrentAling = 'over';\r\n  \t}else{\r\n   \t\tswitch(dialogArguments.align.toLowerCase()){\r\n    \t\tcase 'left' : sCurrentAling = 'left';\r\n     \t\tbreak;\r\n    \t\tcase 'right' : sCurrentAling = 'right';\r\n     \t\tbreak;\r\n    \t\tdefault : sCurrentAling = 'none';\r\n     \t\tbreak;\r\n   \t\t}\r\n  \t}\r\n  \tsSetAlign();\r\n}\r\nfunction sSetAlign () {\r\n\tsImgs = document.all.tags('IMG');\r\n  \tfor(i=0; i";
echo "<s";
echo "Imgs.length; i++)\r\n   \t\tif(sImgs[i].src.match('align_' + sCurrentAling + '.gif'))\r\n    \t\tsImgs[i].border = 1;\r\n\t\t//  else if(sImgs[i].id = 'bordercolor')\r\n\t\t//  sImgs[i].border = 1;\r\n   \t\telse\r\n    \t\tsImgs[i].border = 0;\r\n}\r\nfunction sChangeAlign(param){\r\n\tsCurrentAling = param;\r\n\tsSetAlign();\r\n}\r\nfunction doModify () {\r\n  var error = 0;\r\n  if(isNaN(imageForm.image_width.value) || imageForm.image_";
echo "width.value < 0) {\r\n   alert(\"";
echo $strImagePropNotice1;
echo "\");\r\n   error = 1\r\n   imageForm.image_width.select()\r\n   imageForm.image_width.focus()\r\n  }else if(isNaN(imageForm.image_height.value) || imageForm.image_height.value < 0) {\r\n   alert(\"";
echo $strImagePropNotice2;
echo "\")\r\n   error = 1\r\n   imageForm.image_height.select()\r\n   imageForm.image_height.focus()\r\n  }else if (isNaN(imageForm.border.value) || imageForm.border.value < 0 || imageForm.border.value == \"\") {\r\n   alert(\"";
echo $strImagePropNotice3;
echo "\")\r\n   error = 1\r\n   imageForm.border.select()\r\n   imageForm.border.focus()\r\n  }else if (isNaN(imageForm.hspace.value) || imageForm.hspace.value < 0) {\r\n   alert(\"";
echo $strImagePropNotice4;
echo "\")\r\n   error = 1\r\n   imageForm.hspace.select()\r\n   imageForm.hspace.focus()\r\n  }else if (isNaN(imageForm.vspace.value) || imageForm.vspace.value < 0) {\r\n   alert(\"";
echo $strImagePropNotice5;
echo "\")\r\n   error = 1\r\n   imageForm.vspace.select()\r\n   imageForm.vspace.focus()\r\n  }\r\n\r\n  if(error != 1){\r\n   returnValue = new Object();\r\n   returnValue.style = new Object();\r\n   if (imageForm.image_width.value != \"\") returnValue.width = imageForm.image_width.value;\r\n   if (imageForm.image_height.value != \"\") returnValue.height = imageForm.image_height.value;\r\n   returnValue.alt = imageForm.alt_tag.v";
echo "alue;\r\n   returnValue.border = imageForm.border.value;\r\n   returnValue.src = imageForm.srcimg.value;\r\n   returnValue.style.borderColor = imageForm.bordercolor.value;\r\n    \r\n   if(imageForm.hspace.value != \"\")\r\n    returnValue.hspace = imageForm.hspace.value\r\n   else\r\n    returnValue.hspace = 0;\r\n\r\n   if(imageForm.vspace.value != \"\")\r\n    returnValue.vspace = imageForm.vspace.value\r\n   else\r\n    re";
echo "turnValue.vspace = 0;\r\n\r\n   switch(sCurrentAling){\r\n    case 'left':\r\n     returnValue.style.position = 'static';\r\n     returnValue.align = 'left';\r\n     break;\r\n    case 'right':\r\n     returnValue.style.position = 'static';\r\n     returnValue.align = 'right';\r\n     break;\r\n    case 'over':\r\n     returnValue.style.position = 'absolute';\r\n     returnValue.style.zIndex = 100;\r\n     break;\r\n    case '";
echo "behind':\r\n     returnValue.style.position = 'absolute';\r\n     returnValue.style.zIndex = -100;\r\n     break;\r\n    default:\r\n     returnValue.style.position = 'static';\r\n     returnValue.style.align = '';\r\n   }\r\n\r\n   window.close()\r\n  }else{\r\n   return false;\r\n  }\r\n}\r\nfunction InsertImg(){\r\n\timageForm.image_width.value = \"\";\r\n\timageForm.image_height.value = \"\";\r\n\tvar imgstr = showModalDialog ('image";
echo "page.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\") {\r\n\t\tvar imgstr = showModalDialog ('piclib.php', window, 'dialogWidth: 650px; dialogHeight: 420px; center: y";
echo "es; 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\treturn \"\";\r\n\t}\r\n }\r\n\r\nwindow.onload = setvalue;\r\n</script>\r\n</head>\r\n<body class=\"bodybackground\">\r\n<table width=\"20\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"11\">\r\n  <tr> \r\n    <td><img src=\"dot.gif\" height=\"7\" width=\"1\"></td>\r\n  ";
echo "</tr>\r\n</table>\r\n<table align=center>\r\n  <tr align=\"right\"> \r\n    <td> \r\n      <form name=imageForm onsubmit='doModify();'>\r\n        <fieldset><legend>";
echo $strImagePropLocat;
echo "</legend>\r\n\t\t<img src=images/align_none.gif vspace=10 hspace=10 onclick='sChangeAlign(\"none\");' width=\"54\" height=\"55\"> \r\n        <img src=images/align_left.gif vspace=10 hspace=10 onclick='sChangeAlign(\"left\");' width=\"54\" height=\"55\"> \r\n        <img src=images/align_right.gif vspace=10 hspace=10 onclick='sChangeAlign(\"right\");' width=\"54\" height=\"55\"> \r\n        <img src=images/align_over.gif vspace=1";
echo "0 hspace=10 onclick='sChangeAlign(\"over\");' width=\"54\" height=\"55\"> \r\n        <!-- img src=../img/align_behind.gif vspace=10 hspace=10 onclick='sChangeAlign(\"behind\");' --> \r\n        </fieldset><table width=\"20\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n    <tr>\r\n      <td><img src=\"dot.gif\" height=\"12\" width=\"1\"></td>\r\n    </tr>\r\n  </table> <fieldset><legend>";
echo $strImagePropOther;
echo "</legend> <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=\"98%\">\r\n          <tr> \r\n            <td class=t1>";
echo $strImagePropPath;
echo "</td>\r\n            <td colspan=3> \r\n              <input type=text name=srcimg size=34>\r\n              <img src=\"images/folder.gif\" width=\"16\" height=\"16\" onClick=\"imageForm.srcimg.value = InsertImg();\" style=\"cursor:hand\"> \r\n            </td>\r\n          </tr>\r\n          <tr> \r\n            <td class=t1>";
echo $strImagePropAlt;
echo "</td>\r\n            <td colspan=3> \r\n              <input type=text name=alt_tag size=38>\r\n            </td>\r\n          </tr>\r\n          <tr> \r\n            <td class=t1>";
echo $strImagePropWidth;
echo "</td>\r\n            <td> \r\n              <input type=text name=image_width size=3 maxlength=4>\r\n            </td>\r\n            <td class=t1>";
echo $strImagePropHeight;
echo "</td>\r\n            <td> \r\n              <input type=text name=image_height size=3 maxlength=4>\r\n            </td>\r\n          </tr>\r\n          <tr> \r\n            <td class=t1>";
echo $strImagePropHspace;
echo "</td>\r\n            <td> \r\n              <input type=text name=hspace size=3 maxlength=4>\r\n            </td>\r\n            <td class=t1>";
echo $strImagePropVspace;
echo "</td>\r\n            <td> \r\n              <input type=text name=vspace size=3 maxlength=4>\r\n            </td>\r\n          </tr>\r\n          <tr> \r\n            <td class=t1>";
echo $strImagePropBorderWidth;
echo "</td>\r\n            <td> \r\n              <input type=text name=border size=3 maxlength=4>\r\n            </td>\r\n            <td class=t1>";
echo $strImagePropBorderColor;
echo "</td>\r\n            <td>\r\n              <table border=\"0\" cellspacing=\"1\" cellpadding=\"0\">\r\n                <tr> \r\n                  <td width=\"15\"><img src=\"images/btcolor.gif\" id=\"bgcolor\" onClick=\"callColorDlg(this)\"></td>\r\n                  <td width=\"45\" align=\"center\"> \r\n                    <input name=\"bordercolor\" type=\"text\" size=\"6\">\r\n                  </td>\r\n                </tr>\r\n              </ta";
echo "ble>\r\n            </td>\r\n          </tr>\r\n        </table>\r\n        </fieldset> \r\n        <table width=\"100%\" border=\"0\" cellspacing=\"3\" cellpadding=\"1\">\r\n          <tr>\r\n            <td align=\"right\">\r\n<input name=\"button\" type=button onClick=\"doModify();\" value=\"";
echo $strConfirm;
echo "\"> \r\n              <input name=\"button\" type=button onClick=\"self.close();\" value=\"";
echo $strCancel;
echo "\">\r\n            </td>\r\n          </tr>\r\n        </table>\r\n        \r\n      </form></td></tr></table>\r\n<object id=dlgHelper CLASSID=\"clsid:3050f819-98b5-11cf-bb82-00aa00bdce0b\" width=\"0px\" height=\"0px\">\r\n</OBJECT>\r\n</body>\r\n</html>";
?>

⌨️ 快捷键说明

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