Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
Compass
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
zong
Compass
Commits
b968665d
Commit
b968665d
authored
Apr 21, 2020
by
biao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11111
parent
4a4cbfe6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
11 deletions
+19
-11
compass_db_schema.xlsx
doc/DB/compass_db_schema.xlsx
+0
-0
do_select_popup.php
src/manager/dynamicscripts/do_select_popup.php
+7
-6
content_iframe.inc
src/manager/templates/layout/content_iframe.inc
+2
-2
settings.inc
src/settings/settings.inc
+10
-3
No files found.
doc/DB/compass_db_schema.xlsx
View file @
b968665d
No preview for this file type
src/manager/dynamicscripts/do_select_popup.php
View file @
b968665d
...
...
@@ -65,7 +65,8 @@ function doSelectPopup(html_data) {
var height_min =
<?=
POPUP_WINDOW_INFO_MIN_HEIGHT
?>
;
var height_max =
<?=
POPUP_WINDOW_INFO_MAX_HEIGHT
?>
;
var selectpopup = document.getElementById('selectpopup');
var selectpopup = window.parent.document.getElementById('selectpopup');
selectpopup.className = "showdialog";
doPopup(html_data,width_min, width_max, height_min, height_max);
...
...
@@ -102,9 +103,9 @@ function setCheckboxValue(viewTarget, valueTarget, requestUrl, formName) {
selectClear(formName, 'category_title', 'category_name');
}
} else {
document.getElementsByName(viewTarget)[0].value = id_array;
document.getElement
ById('contentFrame').contentWindow.document.getElement
sByName(viewTarget)[0].value = id_array;
}
document.getElementsByName(valueTarget)[0].value = id_array;
document.getElement
ById('contentFrame').contentWindow.document.getElement
sByName(valueTarget)[0].value = id_array;
// セットしたら閉める
closeSelectPopup();
}
...
...
@@ -127,15 +128,15 @@ function setRadioboxValue(viewTarget, valueTarget, requestUrl, formName) {
if (checked_value != 0) {
requestUrl = requestUrl + "&id=" + checked_value;
$.getJSON(requestUrl, function(json){
document.getElementsByName(viewTarget)[0].value = json[0]["title"];
document.getElement
ById('contentFrame').contentWindow.document.getElement
sByName(viewTarget)[0].value = json[0]["title"];
})
} else {
selectClear(formName, 'course_name', 'course_id');
}
} else {
document.getElementsByName(viewTarget)[0].value = checked_value;
document.getElement
ById('contentFrame').contentWindow.document.getElementById('contentFrame').contentWindow.document.getElement
sByName(viewTarget)[0].value = checked_value;
}
document.getElementsByName(valueTarget)[0].value = checked_value;
document.getElement
ById('contentFrame').contentWindow.document.getElement
sByName(valueTarget)[0].value = checked_value;
// セットしたら閉める
closeSelectPopup();
}
...
...
src/manager/templates/layout/content_iframe.inc
View file @
b968665d
...
...
@@ -31,7 +31,7 @@
* @return
*/
function
doPopup
(
html_data
,
width_min
,
width_max
,
height_min
,
height_max
)
{
var
selectdialogouterframe
=
document
.
getElementById
(
'selectdialogouterframe'
);
var
selectdialogouterframe
=
window
.
parent
.
document
.
getElementById
(
'selectdialogouterframe'
);
selectdialogouterframe
.
style
.
visibility
=
"visible"
;
selectdialogouterframe
.
style
.
minWidth
=
width_min
+
"px"
;
...
...
@@ -39,7 +39,7 @@ function doPopup(html_data, width_min, width_max, height_min, height_max) {
selectdialogouterframe
.
style
.
minHeight
=
height_min
+
"px"
;
selectdialogouterframe
.
style
.
maxHeight
=
height_max
+
"px"
;
var
innerframe
=
document
.
getElementById
(
'innerframe'
);
var
innerframe
=
window
.
parent
.
document
.
getElementById
(
'innerframe'
);
innerframe
.
style
.
minWidth
=
(
width_min
-
20
)
+
"px"
;
innerframe
.
style
.
maxWidth
=
(
width_max
-
20
)
+
"px"
;
innerframe
.
style
.
minHeight
=
(
height_min
-
40
)
+
"px"
;
...
...
src/settings/settings.inc
View file @
b968665d
...
...
@@ -29,11 +29,21 @@ define("COMPASS_DB_TYPE", "Mysql");
define
(
"COMPASS_DB_PORT"
,
"3306"
);
// 阿里云OSS配置
// AccessKey ID LTAI4G34AmpAgeQ7G6tH52V9
//AccessKeySecret c1mZF0tm5Eipw6K6sXTtFTgT5FkG6a
//地域杭州 BucketName zyzxcx
//CDN zyzxcxcdn.bjjryj.com
define
(
"OSS_ACCESS_KEY"
,
"LTAI4FvwbmX3iV7i6RaGsm5T"
);
define
(
"OSS_ACCESS_SECRET"
,
"Q10wMk5qSc8mEZiPjIqN0GK6vmhFZZ"
);
define
(
"OSS_END_POINT"
,
"oss-cn-beijing.aliyuncs.com"
);
define
(
"OSS_BUCKET"
,
"compass-dev"
);
//腾讯lbs
//IK6BZ-7KM34-7NAUH-XZHZI-N7QW5-Z4BI4
//KEY 没有给到
define
(
"LBS_KEY"
,
"TMJBZ-MTX3G-MPFQT-INGZP-VQVTK-WLFM3"
);
define
(
"LBS_SECRET"
,
"BYLkXP9bZaQhI1ELr6HWkHRuKm1YPU"
);
// 缓存配置
define
(
"COMPASS_MEMCACHE_HOST"
,
"127.0.0.1"
);
define
(
"COMPASS_MEMCACHE_PORT"
,
"11211"
);
...
...
@@ -50,9 +60,6 @@ define("WECHAT_PAY_KEY","a1b2c3defghijKlmnopqrstuvwx4y5z6");
//DEBUG MODE
define
(
"DEBUG_MODE"
,
true
);
//腾讯lbs
define
(
"LBS_KEY"
,
"TMJBZ-MTX3G-MPFQT-INGZP-VQVTK-WLFM3"
);
define
(
"LBS_SECRET"
,
"BYLkXP9bZaQhI1ELr6HWkHRuKm1YPU"
);
//会员金额
define
(
"MEMBER_FEE"
,
0.01
);
...
...
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