Authored by whb

在线登记

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>yohood</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>yohood</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.dltk.core.scriptbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.php.core.PHPNature</nature>
</natures>
</projectDescription>
... ...
... ... @@ -102,8 +102,8 @@ class Controller_Onlinereg extends Controller_Abstract
{
$files = '';
}
$status = Facade_Onlinereg::setSellerInfo($name, $type, 0, $is_enter_yohobuy,
$product_type, $country, $company, $contact, $telphone, $email, 0, $website, 0, $place, $files);
$status = Facade_Onlinereg::setSellerInfo($name, $type, $sex, $brand_reg_type, $is_enter_yohobuy, $profession, $product_type,
$country, $city,$company, $contact, $telphone, $mobile, $email, $relation, $website, $introduction, $is_3c, $place, $files, $zipcode);
}
else
{
... ...
... ... @@ -38,23 +38,29 @@ class Facade_Onlinereg
*
* @param string $name
* @param string $type
* @param string $sex
* @param int $brand_reg_type
* @param int $is_enter_yohobuy
* @param int $profession
* @param string $product_type
* @param string $country
* @param string $city
* @param string $company
* @param string $contact
* @param string $telphone
* @param string $mobile
* @param string $email
* @param string $relation
* @param string $website
* @param string $introduction
* @param int $is_3c
* @param string $place
* @param array|string $files
* @param string $files
* @param string $zipcode
* @return int
*/
public static function setSellerInfo($name, $type, $brand_reg_type, $is_enter_yohobuy, $product_type, $country,
$company, $contact, $telphone, $email, $relation, $website, $is_3c, $place, $files)
public static function setSellerInfo($name, $type, $sex, $brand_reg_type, $is_enter_yohobuy, $profession, $product_type, $country, $city,
$company, $contact, $telphone, $mobile, $email, $relation, $website, $introduction, $is_3c, $place, $files, $zipcode)
{
$file = '';
if(is_array($files))
... ... @@ -63,8 +69,8 @@ class Facade_Onlinereg
} else {
$file = $files;
}
return self::service()->setSellerInfo($name, $type, $brand_reg_type, $is_enter_yohobuy, $product_type, $country,
$company, $contact, $telphone, $email, $relation, $website, $is_3c, $place, $file);
return self::service()->setSellerInfo($name, $type, $sex, $brand_reg_type, $is_enter_yohobuy, $profession, $product_type, $country, $city,
$company, $contact, $telphone, $mobile, $email, $relation, $website, $introduction, $is_3c, $place, $file, $zipcode);
}
/**
... ...
... ... @@ -12,28 +12,36 @@ class Service_Onlinereg extends Lib_Service
*
* @param string $name
* @param string $type
* @param string $sex
* @param int $brand_reg_type
* @param int $is_enter_yohobuy
* @param int $profession
* @param string $product_type
* @param string $country
* @param string $city
* @param string $company
* @param string $contact
* @param string $telphone
* @param string $mobile
* @param string $email
* @param string $relation
* @param string $website
* @param string $introduction
* @param int $is_3c
* @param string $place
* @param string $files
* @param string $zipcode
* @return int
*/
public function setSellerInfo($name, $type, $brand_reg_type, $is_enter_yohobuy, $product_type, $country,
$company, $contact, $telphone, $email, $relation, $website, $is_3c, $place, $files)
public function setSellerInfo($name, $type, $sex, $brand_reg_type, $is_enter_yohobuy, $profession, $product_type, $country, $city,
$company, $contact, $telphone, $mobile, $email, $relation, $website, $introduction, $is_3c, $place, $files, $zipcode)
{
$params = array(
'name' => $name, 'type' => $type,'brand_reg_type'=> intval($brand_reg_type), 'is_enter_yohobuy'=> intval($is_enter_yohobuy),
'product_type'=> $product_type,'company'=> $company,'contact'=> $contact,'telphone' => $telphone,'email'=> $email,
'country'=>$country,'relation'=> $relation,'website' => $website,'is_3c'=> intval($is_3c), 'place' => $place,'files'=> $files
'name' => $name, 'type' => intval($type),'brand_reg_type'=> intval($brand_reg_type), 'is_enter_yohobuy'=> intval($is_enter_yohobuy),
'product_type'=> $product_type,'company'=> addslashes($company),'contact'=> $contact,'telphone' => $telphone,'email'=> $email,
'country'=>$country,'relation'=> intval($relation),'website' => $website,'is_3c'=> intval($is_3c), 'place' => addslashes($place),
'files'=> $files, 'profession' => addslashes($profession),'sex'=> $sex,'introduction'=> addslashes($introduction),'city'=> $city,
'mobile' =>addslashes($mobile),'zipcode' => $zipcode
);
return self::service(self::ROUTER)->tag(self::$_seller_tag)->insert('setSellerInfo', $params)->lastInsertId();
}
... ...
<?xml version="1.0" encoding="UTF-8"?>
<sqlMap namespace="onlinereg">
<insert id="setSellerInfo">
INSERT INTO tbl_online_seller(`name`, `type`, brand_reg_type, is_enter_yohobuy, product_type,country,company,
contact,telphone,email,relation,website,is_3c,place,files,create_time)
VALUES(:name,:type,:brand_reg_type, :is_enter_yohobuy, :product_type, :country,:company,
:contact,:telphone,:email,:relation,:website,:is_3c,:place,:files,UNIX_TIMESTAMP())
INSERT INTO tbl_online_seller(`name`, `type`, profession, sex, introduction, brand_reg_type, is_enter_yohobuy, product_type,
country,city,company,contact,telphone,mobile,email,relation,website,is_3c,place, zipcode, files,create_time)
VALUES(:name,:type,:profession, :sex, :introduction,:brand_reg_type, :is_enter_yohobuy, :product_type,
:country,:city, :company,:contact,:telphone,:mobile,:email,:relation,:website,:is_3c,:place,zipcode, :files,UNIX_TIMESTAMP())
</insert>
<select id="getSellerListByType">
SELECT * FROM tbl_online_seller where `type`= :type ORDER BY create_time DESC LIMIT :offset, :limit
... ...