Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sunac-quanmin
Overview
Overview
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
HTML5-李恒逸
sunac-quanmin
Commits
e2b10052
Commit
e2b10052
authored
Jun 17, 2017
by
HTML5-侯张振
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改过期设置
parent
fa2de6f0
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
11 additions
and
7 deletions
+11
-7
building
html/application/cache/building
+0
-0
building_rsync_begin_time
html/application/cache/building_rsync_begin_time
+2
-2
buildingadmin.php
html/application/controllers/admin/buildingadmin.php
+1
-0
files_upload.php
html/application/controllers/admin/files_upload.php
+2
-2
report.php
html/application/controllers/admin/report.php
+1
-1
distributor.php
html/application/controllers/cron/distributor.php
+1
-1
basic_info.php
html/application/views/admin/building/tab/basic_info.php
+3
-0
manager-content-add.js
html/assets/js/backend/custom/manager-content-add.js
+1
-1
No files found.
html/application/cache/building
View file @
e2b10052
This source diff could not be displayed because it is too large. You can
view the blob
instead.
html/application/cache/building_rsync_begin_time
View file @
e2b10052
a:3:{s:4:"time";i:1497507003;s:3:"ttl";i:86400;s:4:"data";i:1497507000;}
\ No newline at end of file
a:3:{s:4:"time";i:1497607075;s:3:"ttl";i:86400;s:4:"data";i:1497607073;}
\ No newline at end of file
html/application/controllers/admin/buildingadmin.php
View file @
e2b10052
...
...
@@ -332,6 +332,7 @@ class Buildingadmin extends CI_Controller
return
;
}
$this
->
data
[
'info'
]
=
$cur_info
;
$this
->
data
[
'op'
]
=
'edit'
;
//获取图库
...
...
html/application/controllers/admin/files_upload.php
View file @
e2b10052
...
...
@@ -68,7 +68,7 @@ class Files_upload extends CI_Controller {
{
$fileinfo
=
$this
->
upload
->
data
();
$filename
=
$fileinfo
[
'file_name'
];
echo
json_encode
(
array
(
'success'
=>
true
,
'err_info'
=>
''
,
'fileUrl'
=>
$config
[
'upload_path'
]
.
'/'
.
$filename
));
echo
json_encode
(
array
(
'success'
=>
true
,
'err_info'
=>
''
,
'fileUrl'
=>
APPLICATION_PATH
.
"/"
.
$config
[
'upload_path'
]
.
'/'
.
$filename
));
return
;
}
echo
json_encode
(
array
(
'success'
=>
false
,
'err_info'
=>
$this
->
upload
->
display_errors
()));
...
...
@@ -143,7 +143,7 @@ class Files_upload extends CI_Controller {
$fileinfo
=
$this
->
upload
->
data
();
$filename
=
$fileinfo
[
'file_name'
];
$insert_data
=
array
(
'img_path'
=>
'/'
.
$config
[
'upload_path'
]
.
'/'
.
$filename
,
'img_path'
=>
"/"
.
$config
[
'upload_path'
]
.
'/'
.
$filename
,
'entity_type'
=>
$type
,
'entity_id'
=>
$relation_entity
,
'is_deleted'
=>
0
,
...
...
html/application/controllers/admin/report.php
View file @
e2b10052
...
...
@@ -904,7 +904,7 @@ class Report extends CI_Controller
$manager_info
=
$this
->
manager
->
get
(
array
(
'id'
=>
$user_id
));
if
(
!
empty
(
$manager_info
))
{
$where
.=
' M.role_id = 10 AND M.id ='
.
$user_id
;
//' in(' . $manager_info["building_id"] . ') and';
//
$where .= ' M.role_id = 10 AND M.id =' . $user_id; //' in(' . $manager_info["building_id"] . ') and';
}
$where
=
trim
(
$where
,
' and '
);
...
...
html/application/controllers/cron/distributor.php
View file @
e2b10052
...
...
@@ -105,7 +105,7 @@ class Distributor extends CI_Controller{
$dataLog
[
'remark'
]
=
'报备已过保护期'
;
$this
->
customer_building_log
->
add
(
$dataLog
);
$this
->
customer_building
->
update
(
'id ='
.
$cust
[
'id'
],
array
(
'update_time'
=>
time
(),
'
recommend_status'
=>
'8
'
));
$this
->
customer_building
->
update
(
'id ='
.
$cust
[
'id'
],
array
(
'update_time'
=>
time
(),
'
is_ expired'
=>
'1
'
));
}
}
...
...
html/application/views/admin/building/tab/basic_info.php
View file @
e2b10052
...
...
@@ -168,12 +168,15 @@
</div>
<div
class=
"form-group"
>
<label
class=
"col-md-2 control-label"
></label>
<div
class=
"col-md-4"
>
<div
id=
"fileupload-thumb-content"
>
<?php
if
(
isset
(
$info
[
'building_img'
])
&&
!
empty
(
$info
[
'building_img'
]))
:?>
<
img
src
=
"<?php echo
$info['building_img']
;?>"
style
=
"width:260px;height:190px;"
/>
<?
php
endif
;
?>
</div>
</div>
<div
class=
"col-md-2"
>
</div>
...
...
html/assets/js/backend/custom/manager-content-add.js
View file @
e2b10052
...
...
@@ -130,7 +130,7 @@ var EcommerceProductsEdit = function () {
onComplete
:
function
(
fileName
,
response
)
{
// response是json对象,格式可以按自己的意愿来定义,例子为: { success: true, fileUrl:'' }
if
(
response
.
success
)
{
$
(
"#fileupload-thumb-content"
).
html
(
'<img src="
/
'
+
response
.
fileUrl
+
'"/>'
);
$
(
"#fileupload-thumb-content"
).
html
(
'<img src="'
+
response
.
fileUrl
+
'"/>'
);
$
(
"#img"
).
val
(
'/'
+
response
.
fileUrl
);
}
else
{
alert
(
response
.
err_info
);
...
...
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