Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOOD
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
whb
9 years ago
Commit
ad6f6c3b44986f3d1708d6467a1411dc1b2f8175
1 parent
65ea997d
在线登记
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
52 additions
and
27 deletions
.project
website/controller/Onlinereg.class.php
website/facade/Onlinereg.class.php
website/service/Onlinereg.class.php
website/sqlmap/onlinereg/sqlmap-onlinereg.xml
.project
View file @
ad6f6c3
<?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>
...
...
website/controller/Onlinereg.class.php
View file @
ad6f6c3
...
...
@@ -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
{
...
...
website/facade/Onlinereg.class.php
View file @
ad6f6c3
...
...
@@ -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
);
}
/**
...
...
website/service/Onlinereg.class.php
View file @
ad6f6c3
...
...
@@ -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
();
}
...
...
website/sqlmap/onlinereg/sqlmap-onlinereg.xml
View file @
ad6f6c3
<?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
...
...
Please
register
or
login
to post a comment