Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
1ef260a1
Commit
1ef260a1
authored
Apr 09, 2018
by
clone
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test' of
https://gitee.com/zwyjjc/tl_estate
into test
parents
50583724
b8c43e4e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
common.php
application/common.php
+2
-1
GHouses.php
application/model/GHouses.php
+4
-1
ckfinderStart.js
public/resource/lib/js/ckfinderStart.js
+5
-0
No files found.
application/common.php
View file @
1ef260a1
...
@@ -11,7 +11,8 @@ if (!function_exists('create_editor')) {
...
@@ -11,7 +11,8 @@ if (!function_exists('create_editor')) {
function
create_editor
(
$id
,
$value
=
''
,
$config
=
array
())
function
create_editor
(
$id
,
$value
=
''
,
$config
=
array
())
{
{
include_once
"../public/resource/lib/Ckeditor/ckeditor.php"
;
include_once
"../public/resource/lib/Ckeditor/ckeditor.php"
;
$CKEditor
=
new
CKEditor
(
'http://'
.
$_SERVER
[
'HTTP_HOST'
]
.
'/resource/lib/Ckeditor/'
);
$http_type
=
((
isset
(
$_SERVER
[
'HTTPS'
])
&&
$_SERVER
[
'HTTPS'
]
==
'on'
)
||
(
isset
(
$_SERVER
[
'HTTP_X_FORWARDED_PROTO'
])
&&
$_SERVER
[
'HTTP_X_FORWARDED_PROTO'
]
==
'https'
))
?
'https://'
:
'http://'
;
$CKEditor
=
new
CKEditor
(
$http_type
.
$_SERVER
[
'HTTP_HOST'
]
.
'/resource/lib/Ckeditor/'
);
$_config
[
'filebrowserBrowseUrl'
]
=
'/resource/lib/Ckfinder/ckfinder.html'
;
$_config
[
'filebrowserBrowseUrl'
]
=
'/resource/lib/Ckfinder/ckfinder.html'
;
$_config
[
'filebrowserImageBrowseUrl'
]
=
'/resource/lib/Ckfinder/ckfinder.html?Type=Images'
;
$_config
[
'filebrowserImageBrowseUrl'
]
=
'/resource/lib/Ckfinder/ckfinder.html?Type=Images'
;
...
...
application/model/GHouses.php
View file @
1ef260a1
...
@@ -322,6 +322,7 @@ class GHouses extends BaseModel
...
@@ -322,6 +322,7 @@ class GHouses extends BaseModel
$house_id
=
$this
->
id
;
$house_id
=
$this
->
id
;
}
else
{
}
else
{
$params
[
'operation_id'
]
=
$params
[
'userId'
];
$params
[
'operation_id'
]
=
$params
[
'userId'
];
$params
[
'status'
]
=
1
;
$this
->
allowField
(
true
)
->
isUpdate
(
true
)
->
save
(
$params
,
[
'id'
=>
$params
[
'id'
]
]);
$this
->
allowField
(
true
)
->
isUpdate
(
true
)
->
save
(
$params
,
[
'id'
=>
$params
[
'id'
]
]);
$house_id
=
$this
->
id
;
$house_id
=
$this
->
id
;
}
}
...
@@ -432,7 +433,9 @@ class GHouses extends BaseModel
...
@@ -432,7 +433,9 @@ class GHouses extends BaseModel
$img
=
$this
->
table
(
'g_houses_imgs'
)
$img
=
$this
->
table
(
'g_houses_imgs'
)
->
field
(
'img_name'
)
->
field
(
'img_name'
)
->
where
(
'house_id'
,
$houses_id
)
->
where
(
'house_id'
,
$houses_id
)
->
where
(
'img_status'
,
0
)
->
select
();
->
where
(
'img_type'
,
4
)
->
where
(
'img_status'
,
0
)
->
select
();
$return
[
'id'
]
=
$agents
->
id
;
$return
[
'id'
]
=
$agents
->
id
;
$return
[
'name'
]
=
$agents
[
'name'
]
.
'-'
.
$agents
[
'phone'
];
$return
[
'name'
]
=
$agents
[
'name'
]
.
'-'
.
$agents
[
'phone'
];
...
...
public/resource/lib/js/ckfinderStart.js
View file @
1ef260a1
...
@@ -27,6 +27,11 @@ function SetFileField( fileUrl , data )
...
@@ -27,6 +27,11 @@ function SetFileField( fileUrl , data )
}
}
if
(
$
.
isFunction
(
window
.
browseServerBackFun
)){
if
(
$
.
isFunction
(
window
.
browseServerBackFun
)){
if
(
~
location
.
protocol
.
indexOf
(
fileUrl
)){
//一致
}
else
{
fileUrl
=
fileUrl
.
replace
(
/
(
http|https
)
:
\/\/
/g
,
location
.
protocol
+
'//'
);
}
window
.
browseServerBackFun
(
fileUrl
);
window
.
browseServerBackFun
(
fileUrl
);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment