📄 index.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\r\n";
echo "<s";
echo "cript Language=\"JavaScript\">\r\nfunction CheckForm()\r\n{\r\n if(document.form1.CONTENT.value==\"\")\r\n { alert(\"事务内容不能为空!\");\r\n return (false);\r\n }\r\n return (true);\r\n}\r\n\r\nvar aff_type=\"day\";\r\nfunction sel_change()\r\n{\r\n if(aff_type!=\"\")\r\n document.all(aff_type).style.display=\"none\";\r\n if(form1.TYPE.value==\"2\")\r\n aff_type=\"day\";\r\n if(form1.TYPE.value==\"3\")\r\n aff_type";
echo "=\"week\";\r\n if(form1.TYPE.value==\"4\")\r\n aff_type=\"mon\";\r\n if(form1.TYPE.value==\"5\")\r\n aff_type=\"year\";\r\n document.all(aff_type).style.display=\"\";\r\n}\r\n\r\nfunction td_calendar(fieldname)\r\n{\r\n myleft=document.body.scrollLeft+event.clientX-event.offsetX-80;\r\n mytop=document.body.scrollTop+event.clientY-event.offsetY+140;\r\n\r\n window.showModalDialog(\"/inc/calendar.php?FIELDNAME=\"+fieldn";
echo "ame,self,\"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:280px;dialogHeight:205px;dialogTop:\"+mytop+\"px;dialogLeft:\"+myleft+\"px\");\r\n}\r\n\r\nfunction td_clock(fieldname)\r\n{\r\n myleft=document.body.scrollLeft+event.clientX-event.offsetX-80;\r\n mytop=document.body.scrollTop+event.clientY-event.offsetY+140;\r\n\r\n window.showModalDialog(\"/inc/clock.php?FIELDNAME=\"+fieldname,self,\"edge:raised;";
echo "scroll:0;status:0;help:0;resizable:1;dialogWidth:280px;dialogHeight:120px;dialogTop:\"+mytop+\"px;dialogLeft:\"+myleft+\"px\");\r\n}\r\n\r\nfunction td_clock1(fieldname)\r\n{\r\n document.form1.REMIND_TIME2.value=\"\";\r\n document.form1.REMIND_TIME3.value=\"\";\r\n document.form1.REMIND_TIME4.value=\"\";\r\n document.form1.REMIND_TIME5.value=\"\";\r\n myleft=document.body.scrollLeft+event.clientX-event.offsetX-80;\r\n myto";
echo "p=document.body.scrollTop+event.clientY-event.offsetY+140;\r\n\r\n window.showModalDialog(\"/inc/clock.php?FIELDNAME=\"+fieldname,self,\"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:280px;dialogHeight:120px;dialogTop:\"+mytop+\"px;dialogLeft:\"+myleft+\"px\");\r\n}\r\n</script>\r\n</head>\r\n\r\n\r\n";
$CUR_DATE_TIME = date( "Y-m-d H:i:s", time( ) );
$CUR_DATE = date( "Y-m-d", time( ) );
$CUR_TIME = date( "H:i:s", time( ) );
echo "\r\n<body class=\"bodycolor\" topmargin=\"5\" onload=\"document.form1.CONTENT.focus();\">\r\n<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n <tr>\r\n <td class=\"Big\"><img src=\"/images/menu/calendar.gif\" WIDTH=\"22\" HEIGHT=\"20\" align=\"absmiddle\">";
echo "<s";
echo "pan class=\"big3\"> 新建事务</span>\r\n </td>\r\n </tr>\r\n</table>\r\n\r\n<hr width=\"95%\" height=\"1\" align=\"left\" class=\"big1\">\r\n <table border=\"0\" width=\"450\" cellpadding=\"2\" cellspacing=\"1\" align=\"center\" bgcolor=\"#000000\" class=\"small\">\r\n <form action=\"submit.php\" method=\"post\" name=\"form1\" onsubmit=\"return CheckForm();\">\r\n <tr>\r\n <td nowrap class=\"TableData\">开始时间:</td>\r\n <td class=\"TableData";
echo "\">\r\n <INPUT type=\"text\"name=\"BEGIN_TIME\" class=BigInput size=\"20\" value=\"";
echo $CUR_DATE_TIME;
echo "\">\r\n <img src=\"/images/menu/calendar.gif\" border=\"0\" style=\"cursor:hand\" onclick=\"td_calendar('form1.BEGIN_TIME');\">\r\n <img src=\"/images/menu/clock.gif\" border=\"0\" style=\"cursor:hand\" onclick=\"td_clock('form1.BEGIN_TIME');\">\r\n 为空为当前时间\r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableData\"> 事务类型:</td>\r\n <td class=\"TableData\">\r\n ";
echo "<s";
echo "elect name=\"TYPE\" class=\"BigSelect\" onchange=\"sel_change()\">\r\n <option value=\"2\">按日提醒</option>\r\n <option value=\"3\">按周提醒</option>\r\n <option value=\"4\">按月提醒</option>\r\n <option value=\"5\">按年提醒</option>\r\n </select>\r\n </td>\r\n </tr>\r\n <tr id=\"day\">\r\n <td nowrap class=\"TableData\"> 提醒时间:</td>\r\n <td class=\"TableData\">\r\n <input name=\"";
echo "REMIND_TIME2\" size=\"10\" class=\"BigInput\" value=\"";
echo $CUR_TIME;
echo "\">\r\n <img src=\"/images/menu/clock.gif\" border=\"0\" style=\"cursor:hand\" onclick=\"td_clock1('form1.REMIND_TIME2');\">\r\n 为空为当前时间\r\n </td>\r\n </tr>\r\n <tr id=\"week\" style=\"display:none\">\r\n <td nowrap class=\"TableData\"> 提醒时间:</td>\r\n <td class=\"TableData\">\r\n ";
echo "<s";
echo "elect name=\"REMIND_DATE3\" class=\"BigSelect\">\r\n <option value=\"1\" ";
if ( date( "w", time( ) ) == 1 )
{
echo "selected";
}
echo ">星期一</option>\r\n <option value=\"2\" ";
if ( date( "w", time( ) ) == 2 )
{
echo "selected";
}
echo ">星期二</option>\r\n <option value=\"3\" ";
if ( date( "w", time( ) ) == 3 )
{
echo "selected";
}
echo ">星期三</option>\r\n <option value=\"4\" ";
if ( date( "w", time( ) ) == 4 )
{
echo "selected";
}
echo ">星期四</option>\r\n <option value=\"5\" ";
if ( date( "w", time( ) ) == 5 )
{
echo "selected";
}
echo ">星期五</option>\r\n <option value=\"6\" ";
if ( date( "w", time( ) ) == 6 )
{
echo "selected";
}
echo ">星期六</option>\r\n <option value=\"0\" ";
if ( date( "w", time( ) ) == 0 )
{
echo "selected";
}
echo ">星期日</option>\r\n </select> \r\n <input name=\"REMIND_TIME3\" size=\"10\" class=\"BigInput\" value=\"";
echo $CUR_TIME;
echo "\">\r\n <img src=\"/images/menu/clock.gif\" border=\"0\" style=\"cursor:hand\" onclick=\"td_clock1('form1.REMIND_TIME3');\">\r\n 为空为当前时间\r\n </td>\r\n </tr>\r\n <tr id=\"mon\" style=\"display:none\">\r\n <td nowrap class=\"TableData\"> 提醒时间:</td>\r\n <td class=\"TableData\">\r\n ";
echo "<s";
echo "elect name=\"REMIND_DATE4\" class=\"BigSelect\">\r\n";
$I = 1;
for ( ; $I <= 31; ++$I )
{
echo " <option value=\"";
echo $I;
echo "\" ";
if ( date( "j", time( ) ) == $I )
{
echo "selected";
}
echo ">";
echo $I;
echo "日</option>\r\n";
}
echo " </select> \r\n <input name=\"REMIND_TIME4\" size=\"10\" class=\"BigInput\" value=\"";
echo $CUR_TIME;
echo "\">\r\n <img src=\"/images/menu/clock.gif\" border=\"0\" style=\"cursor:hand\" onclick=\"td_clock1('form1.REMIND_TIME4');\">\r\n 为空为当前时间\r\n </td>\r\n </tr>\r\n <tr id=\"year\" style=\"display:none\">\r\n <td nowrap class=\"TableData\"> 提醒时间:</td>\r\n <td class=\"TableData\">\r\n ";
echo "<s";
echo "elect name=\"REMIND_DATE5_MON\" class=\"BigSelect\">\r\n";
$I = 1;
for ( ; $I <= 12; ++$I )
{
echo " <option value=\"";
echo $I;
echo "\" ";
if ( date( "n", time( ) ) == $I )
{
echo "selected";
}
echo ">";
echo $I;
echo "月</option>\r\n";
}
echo " </select> \r\n ";
echo "<s";
echo "elect name=\"REMIND_DATE5_DAY\" class=\"BigSelect\">\r\n";
$I = 1;
for ( ; $I <= 31; ++$I )
{
echo " <option value=\"";
echo $I;
echo "\" ";
if ( date( "j", time( ) ) == $I )
{
echo "selected";
}
echo ">";
echo $I;
echo "日</option>\r\n";
}
echo " </select> \r\n <input name=\"REMIND_TIME5\" size=\"10\" class=\"BigInput\" value=\"";
echo $CUR_TIME;
echo "\">\r\n <img src=\"/images/menu/clock.gif\" border=\"0\" style=\"cursor:hand\" onclick=\"td_clock1('form1.REMIND_TIME5');\">\r\n 为空为当前时间\r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableData\"> 事务内容:</td>\r\n <td class=\"TableData\">\r\n <textarea name=\"CONTENT\" cols=\"45\" rows=\"5\" class=\"BigInput\"></textarea>\r\n </td>\r\n </tr>\r\n <tr align=\"center\" class=\"T";
echo "ableControl\">\r\n <td colspan=\"2\" nowrap>\r\n <input type=\"submit\" value=\"确定\" class=\"BigButton\"> \r\n <input type=\"button\" value=\"返回\" class=\"BigButton\" onClick=\"location='../'\">\r\n </td>\r\n </tr>\r\n </table>\r\n</form>\r\n\r\n</body>\r\n</html>";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -