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

📄 add1.php

📁 php中英版本 仿alibaba贸易平台
💻 PHP
📖 第 1 页 / 共 5 页
字号:
<?php
/*
文件名称: reg.php
功能说明: 用户注册
创建日期: 03/09/12
*/
include "../inc/header.inc.php";
include "../inc/class_db_mysql.php";
include "../inc/func.inc.php";

$db = new db_sql();
$db1 = new db_sql();
$ip = $_SERVER['REMOTE_ADDR'];  //取当前用户的IP
//$regtime = time();  //当前时间
$regtime=date("Ymd"); //上面的时间格式不好,2003/11/29改

if($step_LY=="ok"){
        $db->query("select euid from en_user where loginname='$loginname'");
        $db1->query("select userid from biz_user where user='$loginname'");
        if($db->next_record() || $db1->next_record()){
        $reason="<font color=blue><b>sorry! the member id is exit!</b></font>";
        $write="no";
        }else{
    $write="ok";
        }

if($write=="ok"){
$db->query("insert into en_user (loginname,password,company,ifsb,linkman,sex,email,email2,tel,fax,address,zip,city,state,country,biztype,product,homepage,overview,industry,regtime,lasttime,regip,lastip)
values ('$loginname','$password','$company','$ifsb','$linkman','$sex','$email','$email2','$tel','$fax','$address','$zip','$city','$state','$country','$biztype','$product','$homepage','$overview','$industry','$regtime','$regtime','$ip','$ip')");
}
}
?>
<?php include '../inc/en_inc_head.php'; ?>
<body topmargin="0" leftmargin="0" bgcolor="#FFFFFF" >
<!--<?php include '../inc/en_inc_nav_head.php'; ?>-->
<?php
             if($write=="no" || !isset($write)){
             if($write=="no"){
            }
?>
<table align=center border=0 cellpadding=0 cellspacing=0 width=756>
        <form name="reg" action="<?php echo $PHP_SELF;        ?>" method="post" onSubmit="return checkform(this)">
                        <tr align=middle>
                                <td valign=top> <table border=0 cellpadding=0 cellspacing=0 width="90%">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor=#c6d9ec height=20>&nbsp;<b><font color=#cc0000
            face=Wingdings>1</font> New Company Information </b>&nbsp; &nbsp;
                                                                        &nbsp; &nbsp; <font color=#da3830 style="FONT-SIZE: 8pt">(<font
            color=#cc0000>*</font> Required Information)</font></td>
                                                        </tr>
                                                        <tr bgcolor=#999999>
                                                                <td height=1><spacer type="block" width="1" height="1"></td>
                                                        </tr>
                                                        <tr align=middle bgcolor=#f3f8fc>
                                                                <td><?php        echo"$reason";        ?><br><br> <table border=0 cellpadding=2 cellspacing=0 width="80%">
                                                                                <tbody>
                                                                                        <tr>
                                                                                                <td align=right>Member ID: &nbsp;</td>
                                                                                                <td><input name=loginname size=36 value="<?php echo "$loginname";?>">
                                                                                                        <font color=#cc0000>*</font></td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                                <td align=right>Password: &nbsp;</td>
                                                                                                <td><input name=password type="password" size=36 value="222222">

                                                                                               <!-- <input name=password type="password" size=36 value="<?php echo "$password";?>"> -->
                                                                                                        <font color=#cc0000>*</font></td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                                <td align=right>Verify Password:
                                                                                                        &nbsp;</td>
                                                                                                <td><input name=password1 type="password" size=36 value="222222">
                                                                                                  <!--  <input name=password1 type="password" size=36 value="<?php echo "$password";?>">  -->
                                                                                                        <font color=#cc0000>*</font></td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                                <td align=right width="35%">Company
                                                                                                        Name: &nbsp;</td>
                                                                                                <td width="150"><input name=company size=45 value="<?php echo "$company";?>">
                                                                                                        <font
                  color=#cc0000>*</font></td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                                <td align=right>Join ec188 as
                                                                                                        a : &nbsp;</td>
                                                                                                <td> <input type="radio" name="ifsb" value="s" >
                                                                                                        Seller &nbsp;&nbsp; <input type="radio" name="ifsb" value="b" checked>
                                                                                                        Buyer &nbsp;&nbsp; <input type="radio" name="ifsb" value="sab" >
                                                                                                        Buyer&amp;Seller <font color=#cc0000>&nbsp;*</font></td>
                                                                                                        <!--
                                                                                                        <input type="radio" name="ifsb" value="s" <?php if($ifsb == "s") echo "checked"; ?>>
                                                                                                        Seller &nbsp;&nbsp; <input type="radio" name="ifsb" value="b" <?php if($ifsb == "b") echo "checked"; ?>>
                                                                                                        Buyer &nbsp;&nbsp; <input type="radio" name="ifsb" value="sab" <?php if($ifsb == "sab") echo "checked"; ?>>
                                                                                                        Buyer&amp;Seller <font color=#cc0000>&nbsp;*</font></td> -->
                                                                                        </tr>
                                                                                        <tr>
                                                                                                <td align=right>Contact Person:
                                                                                                        &nbsp;</td>
                                                                                                <td><input name=linkman size=36 value="<?php echo "$linkman";?>">
                                                                                                        <font color=#cc0000>*</font></td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                                <td align=right>&nbsp;</td>
                                                                                                <td><input name=sex type=radio value=Mr. <?php if($sex == "Mr") echo "checked"; ?>>
                                                                                                        Mr. &nbsp; <input name=sex type=radio value=Ms. <?php if($sex == "Ms") echo "checked"; ?>>
                                                                                                        Ms.</td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                                <td align=right>Current Email:
                                                                                                        &nbsp;</td>
                                                                                                <td><input name=email size=36 value="<?php echo "$email";?>">
                                                                                                        <font color=#cc0000>*</font>
                                                                                                </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                                <td align=right>Alternate Email:
                                                                                                        &nbsp;</td>
                                                                                                <td><input name=email2 size=36 value="<?php echo "$email2";?>">
                                                                                                </td>

⌨️ 快捷键说明

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