Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
李洋
/
消息系统
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d4a2163b
authored
Dec 07, 2017
by
李洋
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1111
parent
d8c99c2b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
app/Http/Controllers/MessageController.php
public/js/Message/allhistorylist.js
public/js/Message/sendmanualmessage.js
app/Http/Controllers/MessageController.php
View file @
d4a2163b
...
@@ -124,7 +124,7 @@ class MessageController extends Controller
...
@@ -124,7 +124,7 @@ class MessageController extends Controller
$paths
=
[[
"title"
=>
"首页"
,
"href"
=>
'/database/'
]];
$paths
=
[[
"title"
=>
"首页"
,
"href"
=>
'/database/'
]];
$username
=
$request
->
user
->
email
;
$username
=
$request
->
user
->
email
;
$useremail
=
$request
->
user
->
email
;
$useremail
=
$request
->
user
->
email
;
$menuconfig
=
DB
::
table
(
'config'
)
->
where
(
'config_id'
,
3
)
->
first
();
$menuconfig
=
DB
::
table
(
'config'
)
->
where
(
'config_id'
,
4
)
->
first
();
$menus
=
[];
$menus
=
[];
if
(
$menuconfig
&&
!
(
$menus
=
json_decode
(
$menuconfig
->
config_data
)))
if
(
$menuconfig
&&
!
(
$menus
=
json_decode
(
$menuconfig
->
config_data
)))
$menus
=
[];
$menus
=
[];
...
...
public/js/Message/allhistorylist.js
View file @
d4a2163b
...
@@ -17,5 +17,5 @@ $('#search-btn').click(function () {
...
@@ -17,5 +17,5 @@ $('#search-btn').click(function () {
var
search_sendtime
=
$
(
'#Choice_start'
).
val
();
var
search_sendtime
=
$
(
'#Choice_start'
).
val
();
var
search_channel
=
$
(
'#search-msg-channel option:selected'
).
val
();
var
search_channel
=
$
(
'#search-msg-channel option:selected'
).
val
();
var
search_status
=
$
(
'#search-msg-status option:selected'
).
val
();
var
search_status
=
$
(
'#search-msg-status option:selected'
).
val
();
window
.
location
.
href
=
"/message/allhistory
L
ist?search_id="
+
search_id
+
"&search_user="
+
search_user
+
"&search_sendtime="
+
search_sendtime
+
"&search_channel="
+
search_channel
+
"&search_status="
+
search_status
;
window
.
location
.
href
=
"/message/allhistory
l
ist?search_id="
+
search_id
+
"&search_user="
+
search_user
+
"&search_sendtime="
+
search_sendtime
+
"&search_channel="
+
search_channel
+
"&search_status="
+
search_status
;
})
})
\ No newline at end of file
public/js/Message/sendmanualmessage.js
View file @
d4a2163b
...
@@ -35,18 +35,18 @@ $('#msg_tpl_submit').click(function()
...
@@ -35,18 +35,18 @@ $('#msg_tpl_submit').click(function()
{
{
if
(
$
(
"#inner-tpl-type option:selected"
).
val
()
==
0
)
if
(
$
(
"#inner-tpl-type option:selected"
).
val
()
==
0
)
{
{
Prompt
(
'请选择
消息
类型'
,
5
);
Prompt
(
'请选择
站内信
类型'
,
5
);
return
false
;
return
false
;
}
}
if
(
!
$
(
'#inner-tpl-title'
).
val
())
if
(
!
$
(
'#inner-tpl-title'
).
val
())
{
{
Prompt
(
'请填写
消息
标题'
,
5
);
Prompt
(
'请填写
站内信
标题'
,
5
);
return
false
;
return
false
;
}
}
var
ue
=
UE
.
getEditor
(
'inner-tpl-content'
);
var
ue
=
UE
.
getEditor
(
'inner-tpl-content'
);
if
(
!
ue
.
getContent
())
if
(
!
ue
.
getContent
())
{
{
Prompt
(
'请填写
消息
内容'
,
5
);
Prompt
(
'请填写
站内信
内容'
,
5
);
return
false
;
return
false
;
}
}
if
(
!
$
(
"input[id='inner-tpl-op-url']"
).
is
(
':checked'
)
&&
!
$
(
"input[id='inner-tpl-op-open']"
).
is
(
':checked'
))
if
(
!
$
(
"input[id='inner-tpl-op-url']"
).
is
(
':checked'
)
&&
!
$
(
"input[id='inner-tpl-op-open']"
).
is
(
':checked'
))
...
...
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