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

📄 offer_edit.php

📁 Oracle源码:Oracle 数据库管理与应用系统开发代码
💻 PHP
字号:
<? 
    require "inc/check.php";
    require "inc/func.php";
    require "inc/error.php";
?>
<html>
<head>
<title>"追风"--晨风创意</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<STYLE type=text/css>BODY {
	FONT-FAMILY: "宋体"; FONT-SIZE: 12px; scrollbar-face-color: ffffff; scrollbar-shadow-color: C1C1BB; scrollbar-highlight-color: C1C1BB; scrollbar-3dlight-color: EBEBE4; scrollbar-darkshadow-color: EBEBE4; scrollbar-track-color: F4F4F0; scrollbar-arrow-color: CACAB7
}
P {
	FONT-FAMILY: "宋体"; FONT-SIZE: 12px
}
INPUT {
	FONT-FAMILY: "宋体"; FONT-SIZE: 12px
}
FONT {
	FONT-FAMILY: "宋体"; FONT-SIZE: 12px
}
SELECT {
	FONT-FAMILY: "宋体"; FONT-SIZE: 12px
}
OPTION {
	FONT-FAMILY: "宋体"; FONT-SIZE: 12px
}
TEXTAREA {
	FONT-FAMILY: "宋体"; FONT-SIZE: 12px
}
FORM {
	FONT-FAMILY: "宋体"; FONT-SIZE: 12px
}
TD {
	FONT-FAMILY: "宋体"; FONT-SIZE: 12px; TABLE-LAYOUT: fixed; WORD-BREAK: break-all
}
A:link {
	TEXT-DECORATION: none
}
A:visited {
	TEXT-DECORATION: none
}
A:hover {
	TEXT-DECORATION: underline
}
A:active {
	FONT-SIZE: 12px; TEXT-DECORATION: none
}
.border {
	BACKGROUND-COLOR: #efefef; BORDER-BOTTOM: 1px dotted; BORDER-COLLAPSE: collapse; BORDER-LEFT: 1px dotted; BORDER-RIGHT: 1px dotted; BORDER-TOP: 1px dotted; COLOR: #000000
}
.shadow1 {
	COLOR: #ffffff; FILTER: dropshadow(color=#000000,offx=1,offy=1); FONT-SIZE: 12px
}
.shadow2 {
	COLOR: #000000; FILTER: dropshadow(color=#d5d5d5,offx=1,offy=1); FONT-SIZE: 12px
}
.p1 {
	COLOR: #ffffff; FONT-SIZE: 12px; TEXT-DECORATION: none
}
.p2 {
	COLOR: #000000; FONT-SIZE: 12px; TEXT-DECORATION: none
}
.p3 {
	COLOR: #004080; FONT-SIZE: 14px; TEXT-DECORATION: none
}
</STYLE>
<?
if($sub){  //如果是增加一个用户
 
         if(($email<>"")and(!eregi("^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3}$",$email))){
		  show_msg("邮箱错误!");  
		 }
		  $sqldo="update paperoffer set email='$email',address='$address',company='$company',code='$code',telephone='$telephone',type='$type',description='$description' where name='$oldname'";
           // echo $sqldo;
          if($cla->db_update($sqldo)){
		  $cla->db_commit();
		  show_msg("用户 ".$oldname." 修改成功!");
		    }
          else{
		  show_msg(" 意外错误 <br> 修改失败!");
          }
	 }
	  	 

?>
<script language="JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
</script>
<body bgcolor="#FFFFFF">

<center>

  <div align="center">
    <table width="100%" border="0" height="95" >
      <tr> 
        <td height="383" width="5%"> 
     
          <p>&nbsp;</p>
          <p>&nbsp;</p>
        </td>
        <td height="383" width="15%" valign="top"> 
          <table border=1 bordercolor=#111111 cellpadding=3 cellspacing=0 
      class=border width="85%" height="257">
            <tbody> 
            <tr> 
              <td bgcolor=#efefef width="100%"> 
                <div align="center"><img src="images/list.gif" width="16" height="16"> 
                  控制面板</div>
              </td>
            </tr>
            <tr> 
              <td align=middle class=shadow2 height=230 valign=top 
            width="100%"> 
                <div align="center"> 
                  <p><br>
                  </p>
                  <p>&nbsp;</p>
                  <p><br>
                    <img src="images/edit.gif" width="18" height="13"> <a href="offer_add.php"  >增 
                    加 成 员</a></p>
                  <p><br>
                    <img src="images/edit.gif" width="18" height="13"> <a href="offer_view.php" target="_self">查 
                    看 成 员</a><br>
                    <br>
                    <br>
                    <br>
                  </p>
                </div>
              </td>
            </tr>
            </tbody> 
          </table>
        </td>
        <td width="80%" height="140" valign="top"> 
		<?
		$sqldo="select company,address,name,code,telephone,email,description,type from paperoffer where name='$name'";
        $result_array=$cla->db_query($sqldo);
		?>
          <form name="form1" method="post" action="offer_edit.php?sub=1">
            <table width="85%" border="2" cellspacing="0" cellpadding="3" bordercolor="#111111"   class=border>
              <tr bgcolor="#f7f7f7"> 
                <td colspan="2"> 
                  <div align="center"> 
                    <p>&nbsp;</p>
                    <p><font size="4"><b>修改用户</b></font>:
                      <?echo $result_array[0]["NAME"];?>
                    </p>
                    <p>&nbsp;</p>
                  </div>
                </td>
              </tr>
              <tr bgcolor="#f7f7f7"> 
                <td width="18%"> 
                  <div align="right">邮箱:</div>
                </td>
                <td width="82%"> 
                  <input type="text" name="email" class="border" size="10"  value=<?echo $result_array[0]["EMAIL"];?>>
                </td>
              </tr>
              <tr bgcolor="#f7f7f7"> 
                <td width="18%"> 
                  <div align="right">地址:</div>
                </td>
                <td width="82%"> 
                  <input type="text" name="address" class="border" size="65"  value=<?echo $result_array[0]["ADDRESS"];?>>
                </td>
              </tr>
              <tr bgcolor="#f7f7f7"> 
                <td width="18%"> 
                  <div align="right">单位:</div>
                </td>
                <td width="82%"> 
                  <input type="text" name="company" class="border" size="65"  value=<?echo $result_array[0]["COMPANY"];?>>
                </td>
              </tr>
              <tr bgcolor="#f7f7f7"> 
                <td width="18%"> 
                  <div align="right">邮编:</div>
                </td>
                <td width="82%"> 
                  <input type="text" name="code" class="border" size="10"  value=<?echo $result_array[0]["CODE"];?>>
                </td>
              </tr>
              <tr bgcolor="#f7f7f7"> 
                <td width="18%"> 
                  <div align="right">电话:</div>
                </td>
                <td width="82%"> 
                  <input type="text" name="telephone" class="border" size="10"  value=<?echo $result_array[0]["TELEPHONE"];?>>
                </td>
              </tr>
              <tr> 
                <td width="18%" height="23"> 
                  <div align="right">类型:</div>
                </td>
                <td width="82%" height="23"> 
          <?$str=trim($result_array[0]["TYPE"]);
                    ?>
                  <select name="type">
                    <option value=""> </option>

                    <option value="作者" <?if($str=="作者"){ echo " selected";}?> >作者</option>
                    <option value="供稿" <?if($str=="供稿"){ echo " selected";}?> >供稿</option>
                    <option value="翻译" <?if($str=="翻译"){ echo " selected";}?> >翻译</option>
                    <option value="校稿" <?if($str=="校稿"){ echo " selected";}?> >校稿</option>
                  </select>
                  <? echo $result_array[0]["TYPE"]; echo $str;?>
                </td>
              <tr> 
                <td width="18%"> 
                  <div align="right">备注:</div>
                </td>
                <td width="82%"> 
                  <input type="text" name="description" class="border" size="60"  value=<?echo $result_array[0]["DESCRIPTION"];?>>
                </td>
              </tr>
              <tr bgcolor="#f7f7f7"> 
                <td width="18%"> 
                  <p>&nbsp;</p>
                  <p>&nbsp;</p>
                </td>
                <td width="82%"> 
                  <div align="center"><font size="2">注:带(*)为必填项</font></div>
                </td>
              </tr>
            </table>
            <p align="center">
              <input type="hidden" name="oldname" value=<?echo $name;?>>
              <input type="submit" name="sub" value="确定" >
              <input type="reset" name="Submit32" value="重置">
            </p>
          </form>
        </td>
      </tr>
    </table>
  </div>
  <p>&nbsp;</p>
</center>
<div align="center"><br>
  <p>&nbsp;</p>
</div>
<?$cla->db_logoff();?>
</body>
</html>

⌨️ 快捷键说明

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