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

📄 newproject.php

📁 星级酒店管理系统(附带系统自写控件源码)
💻 PHP
字号:
<?
session_start();
include ("../setup.php");
include ("../$db_class.php");
$db_class = "".$db_class."_access";
$db = new $db_class;
$ret = $db->DB_connect();
if($action=="new"){
$info=trim($info);

$info=str_replace("\'","‘",$info);
$info=str_replace('\\','',$info);

$sql="insert into devproject (title,info,zq,money) values ('$title','$info','$spendtime','$money')";

$result1=$db->DB_query($sql);
echo"<SCRIPT language=JavaScript>\n".
"    alert(\"您发布的项目信息已经发送成功,我们会尽快给您答复,谢谢!\"); \n".
"location.replace('newproject.php');".
"</SCRIPT>";
exit;

}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
<base target="_self">
<style type=text/css>
<!--
A:link		{color:#333333;text-decoration:none;}
A:visited	{color:#333333;text-decoration:none;}
A:hover		{color:#333333;text-decoration:underline overline;}
A:active	{color:#333333;text-decoration:none;}
input.radio	{background: #EFF3F9; color:#000000}
font		{ FONT-size: 9pt; line-height: 13pt; FONT-FAMILY:宋体, Arial, Helvetica}
font_size	{ FONT-size: 9pt; line-height: 13pt; FONT-FAMILY:宋体, Arial, Helvetica}
SELECT		{ FONT-size: 9pt; line-height: 13pt; FONT-FAMILY:宋体, Arial, Helvetica; BACKGROUND-COLOR: #efefef}
table		{ FONT-size: 9pt; line-height: 13pt; FONT-FAMILY:宋体, Arial, Helvetica}
td		{ FONT-size: 9pt; line-height: 13pt; FONT-FAMILY:宋体, Arial, Helvetica}
textarea	{ BACKGROUND-COLOR: #efefef; BORDER-BOTTOM: 1px double; BORDER-LEFT: 1px double; BORDER-RIGHT: 1px double; BORDER-TOP: 1px double; COLOR: #000000; font-size: 9pt ;FONT-FAMILY:宋体, Arial, Helvetica}
.Coolinput	{ BACKGROUND-COLOR: #EFF3F9; BORDER-BOTTOM: 1px double; BORDER-LEFT: 1px double; BORDER-RIGHT: 1px double; BORDER-TOP: 1px double; COLOR: #000000; font-size: 9pt; FONT-FAMILY:宋体, Arial, Helvetica}
INPUT		{ BACKGROUND-COLOR: #EFF3F9; CURSOR: HAND; BORDER-TOP-WIDTH: 1px; PADDING-RIGHT: 1px; PADDING-LEFT: 1px; BORDER-LEFT-WIDTH: 1px; FONT-SIZE: 9pt; FONT-FAMILY: "宋体, Arial, Helvetica"; BORDER-LEFT-COLOR: #cccccc; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: #cccccc; PADDING-BOTTOM: 1px; BORDER-TOP-COLOR: #cccccc; PADDING-TOP: 1px; HEIGHT: 18px; BORDER-RIGHT-WIDTH: 1px; BORDER-RIGHT-COLOR: #cccccc}
BODY		{ FONT-FAMILY: 宋体; FONT-SIZE: 9pt; SCROLLBAR-HIGHLIGHT-COLOR: buttonface; SCROLLBAR-SHADOW-COLOR: buttonface; SCROLLBAR-3DLIGHT-COLOR: buttonhighlight; SCROLLBAR-TRACK-COLOR: #eeeeee; SCROLLBAR-DARKSHADOW-COLOR: buttonshadow }
//-->
</style>
</head>
<body bgcolor="#F2F8FF">


<SCRIPT language=javascript>
<!--

function checkinput()
{
	if(document.formlog.title.value=="")
	{
		alert('请输入项目名称!');
		document.formlog.title.focus();
		return false;
	}

	if(document.formlog.info.value=="")
	{
		alert('请填写项目具体要求,尽量描述的仔细一些!');
		document.formlog.info.focus();
		return false;
	}
	if(document.formlog.spendtime.value=="")
	{
		alert('请说明要求开发周期!');
		document.formlog.spendtime.focus();
		return false;
	}
	if(document.formlog.money.value=="")
	{
		alert('请填写您在项目预算费用!');
		document.formlog.money.focus();
		return false;
	}





return true;
}
-->
</SCRIPT>
   <form name="formlog" method="post" action="newproject.php?action=new" onsubmit=return(checkinput())>
  <table width="579" border="0" cellspacing="0" cellpadding="0" align="center">
    <tr bgcolor="#999999"> 
      <td colspan="2" height="23"><font size="3" color="#FFFFFF">项目信息</font></td>
    </tr>
    <tr> 
      <td width="184"> 
        <div align="right">项目名称:<font color="#FF6633">*</font></div>
      </td>
      <td width="395"> 
        <input type="text" name="title" size="60">
      </td>
    </tr>
    <tr> 
      <td width="184" valign="top"> 
        <div align="right">项目要求及描述:<font color="#FF6633">*</font><br>
          (请尽量描述清楚项目的基本功能,开发要求等有关信息)</div>
      </td>
      <td width="395"> 
        <textarea name="info" rows="15" cols="60"></textarea>
      </td>
    </tr>
    <tr> 
      <td width="184"> 
        <div align="right">开发周期:<font color="#FF6633">*</font></div>
      </td>
      <td width="395"> 
        <input type="text" name="spendtime" size="30">
      </td>
    </tr>
    <tr> 
      <td width="184" height="13"> 
        <div align="right">开发费用:<font color="#FF6633">*</font></div>
      </td>
      <td width="395" height="13"> 
        <input type="text" name="money" size="30">
      </td>
    </tr>
    <tr> 
      <td colspan="2"> 
        <div align="center"> 
          <input type="submit" name="Submit" value="提交">
          <input type="reset" name="Submit2" value="恢复">
        </div>
      </td>
    </tr>
  </table>
     </form>
<p>&nbsp;</p>

</body>
</html>

⌨️ 快捷键说明

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