📄 new.php
字号:
<?php
include_once( "inc/auth.php" );
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n<head>\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 language=\"javascript\" src=\"/inc/common.js\" ></script>\r\n<title>生日贺卡设计</title>\r\n</head>\r\n<body>\r\n<form name=\"form1\" action=\"add.php\" method=\"post\" enctype=\"multipart/form-data\">\r\n\t<table border=\"0\" width=\"100%\" cellspacing=\"1\" cellpadding=\"0\">\r\n\t\t<tr class=\"tablehead1\">\r\n\t\t\t<td ><img src=\"/images/workflow.gif\" align=\"absmiddle\">生日卡设置(新建)\r\n\t\t\t</td>\r\n\t\t</tr>\r\n\t\t<tr class=\"tablehead2\">\r\n\t\t\t<td>";
echo "\r\n\t\t\t\t<button onclick=\"savebircard();\" class=\"btn\" title=\"保存\"><table><tr valign=\"top\"><td><img src=\"/images/littlegif/b_u.gif\"></td><td>";
echo "<s";
echo "pan id=\"savebir\">保存</span></td></tr></table></button><button onclick=\"javascript:history.back();\" class=\"btn\" title=\"返回\"><table><tr valign=\"top\"><td><img src=\"/images/littlegif/b_u.gif\"></td><td>";
echo "<s";
echo "pan id=\"returnback\">返回</span></td></tr></table></button>\r\n\t\t\t</td>\r\n\t\t</tr>\r\n\t</table>\r\n\t<br />\r\n\t<table border=\"0\" width=\"100%\" cellspacing=\"1\" cellpadding=\"0\">\r\n\t\t<tr>\r\n\t\t\t<td class=\"Tableline2\">\r\n\t\t\t\t标题:\r\n\t\t\t</td>\r\n\t\t\t<td class=\"Tableline1\">\r\n\t\t\t\t<input type=\"text\" name=\"birthday_title\" value=\"\" /> (生日卡片标题)\r\n\t\t\t</td>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<td class=\"Tableline2\">\r\n\t\t\t\t发送人:\r\n\t\t\t</td>\r\n\t\t\t <td class";
echo "=\"Tableline1\">\r\n\t\t\t \t<input type=\"text\" name=\"sentperson_name\" value=\"\" readonly=\"\"/> <input type=\"button\" name=\"sentpersonbt\" class=\"SmallButton\" value=\"选 择\" onclick=\"LoadWindowUserSingle('sentperson_id','sentperson_name','form1')\" /><input type=\"hidden\" name=\"sentperson_id\" id=\"sentperson_id\" value=\"\" />\r\n\t\t\t </td>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<td class=\"Tableline2\">\r\n\t\t\t\t短信提醒\r\n\t\t\t</td>\r\n\t\t\t<td clas";
echo "s=\"Tableline1\">\r\n\t\t\t\t<input type=\"checkbox\" name=\"sms\" value=\"1\" id=\"sms\" /> (设定生日卡后,员工过生日系统将会自动发出邮件祝福.)\r\n\t\t\t</td>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<td class=\"Tableline1\" colspan=\"2\">\r\n\t\t\t\t<textarea id=\"fckeditor1\" name=\"fckeditor1\" ></textarea>\r\n\t\t\t</td>\r\n\t\t</tr>\r\n\t\t\r\n\t</table>\r\n\t";
echo "<s";
echo "cript type=\"text/javascript\">\r\n\t\tcreatepicdiv();\r\n\t\tvar oFCKeditor = new FCKeditor('fckeditor1') ;\r\n\t\toFCKeditor.BasePath = \"/fck/\" ;\r\n\t\toFCKeditor.Width = '100%' ;\r\n\t\toFCKeditor.Height = '430' ;\r\n\t\toFCKeditor.ToolbarSet = 'Eoffice' ;\r\n\t\toFCKeditor.ReplaceTextarea() ;\r\n\t</script>\r\n</form>\r\n</body>\r\n</html>\r\n";
echo "<s";
echo "cript language=\"javascript\" >\r\nfunction savebircard()\r\n{\r\n\tvar title = document.getElementById(\"birthday_title\").value ;\r\n\tvar oEditor = FCKeditorAPI.GetInstance('fckeditor1') ;\r\n\tvar content = oEditor.GetXHTML();\r\n\tvar sentperson = document.getElementById(\"sentperson_name\").value ;\r\n\tif(title&&content&&sentperson)\r\n\t{\r\n\t\tdocument.getElementById(\"form1\").submit();\r\n\t}\r\n\telse if(title==\"";
echo "\")\r\n\t{\r\n\t\talert(\"标题不能为空!\");\r\n\t}else if(content==\"\")\r\n\t{\r\n\t\talert(\"内容不能为空!\");\r\n\t}\r\n\telse if(sentperson===\"\")\r\n\t{\r\n\t\talert(\"请选择发送人!\");\r\n\t}\r\n\t\r\n}\r\n</script>\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -