Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
Tz Tools
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
0e473524
authored
2011-03-03 21:21:55 +0000
by
Kevin Burton
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
notifications updates
1 parent
e2cc03a6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
com/Notifications/Admin.php
com/Notifications/views/admin.php
com/Notifications/views/form.php
com/Notifications/Admin.php
View file @
0e47352
...
...
@@ -194,8 +194,11 @@ function display_page() {
,
'meta_value'
=>
'pending'
);
$entries
=
get_posts
(
$args
);
foreach
(
get_posts
(
$args
)
as
$entry
)
{
foreach
(
$entries
as
$entry
)
{
$id
=
$entry
->
ID
;
$details
=
get_post_meta
(
$id
,
'details'
,
true
);
...
...
com/Notifications/views/admin.php
View file @
0e47352
...
...
@@ -47,12 +47,13 @@ print "</pre>";
<tr>
<td>
<?php
echo
$entry
->
post_title
;
?>
</td>
<td>
<?php
echo
date
(
"M j, Y @ h:i A"
,
strtotime
(
$entry
->
execute_date
));
?>
</td>
<td>
<?php
echo
$sendto
;
?>
</td>
<td>
<?php
echo
ucwords
(
$sendto
)
;
?>
</td>
<td>
<?php
if
(
$entry
->
is_email
)
:
?>
<img
src=
"
<?php
echo
Tools\url
(
'assets/images/accept.png'
,
__FILE__
)
?>
"
/>
<?php
endif
;
?>
</td>
<td>
<?php
if
(
$entry
->
is_system
)
:
?>
<img
src=
"
<?php
echo
Tools\url
(
'assets/images/accept.png'
,
__FILE__
)
?>
"
/>
<?php
endif
;
?>
</td>
<td>
<?php
if
(
strtotime
(
$entry
->
execute_date
)
>
time
())
:?>
<
a
href
=
"/wp-admin/admin.php?page=notifications&action=edit&page_id=<?php echo
$entry->ID
; ?>"
>
edit
</
a
>
|
<
a
href
=
"/wp-admin/admin.php?page=notifications&action=delete&page_id=<?php echo
$entry->ID
; ?>"
onclick
=
"return confirm('Are you sure?');"
>
delete
</
a
></
td
>
...
...
com/Notifications/views/form.php
View file @
0e47352
...
...
@@ -64,6 +64,11 @@ use Tz\WordPress\Tools;
<td>
Sent To:
</td>
<td>
<?php
if
(
$entry
->
details
[
'sendto'
]
==
"report"
)
:
?>
<input
type=
"hidden"
name=
"sendto"
value=
"
<?php
echo
$entry
->
details
[
'sendto'
];
?>
"
/>
<span
style=
"color:#999;"
><em>
Report Generated
</em></span>
<?php
else
:
?>
<select
name=
"sendto"
class=
"wide-input-field"
>
<option
value=
"allusers"
<?php
echo
(
$validation
->
set_value
(
'sendto'
,
$entry
->
details
[
'sendto'
])
==
"allusers"
)
?
'selected="selected"'
:
""
;
?>
>
All Users
</option>
<optgroup
label=
"By Group:"
>
...
...
@@ -72,6 +77,7 @@ use Tz\WordPress\Tools;
<?php
endforeach
;
?>
</optgroup>
</select>
<?php
endif
;
?>
<?php
echo
$validation
->
form_error
(
'sendto'
);
?>
...
...
Please
register
or
sign in
to post a comment