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
e2066462
authored
2011-02-26 06:12:25 +0000
by
Kevin Burton
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Refs #986
1 parent
f1320cca
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
32 deletions
com/Notifications/views/admin.php
com/Notifications/views/create.php
com/Notifications/views/form.php
com/Notifications/views/admin.php
View file @
e206646
...
...
@@ -30,7 +30,6 @@ print "</pre>";
<th
scope=
"col"
width=
"200"
class=
"manage-column"
>
Send To
</th>
<th
scope=
"col"
width=
"60"
class=
"manage-column"
>
Email
</th>
<th
scope=
"col"
width=
"60"
class=
"manage-column"
>
System
</th>
<th
scope=
"col"
width=
"60"
class=
"manage-column"
>
SMS
</th>
<th
scope=
"col"
width=
"200"
class=
"manage-column"
>
</th>
</tr>
</thead>
...
...
@@ -51,7 +50,6 @@ print "</pre>";
<td>
<?php
echo
$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
(
$entry
->
is_sms
)
:
?>
<img
src=
"
<?php
echo
Tools\url
(
'assets/images/accept.png'
,
__FILE__
)
?>
"
/>
<?php
endif
;
?>
</td>
<td>
<?php
if
(
strtotime
(
$entry
->
execute_date
)
>
time
())
:?>
...
...
@@ -78,7 +76,6 @@ print "</pre>";
<th
scope=
"col"
width=
"60"
class=
"manage-column"
>
Email
</th>
<th
scope=
"col"
width=
"60"
class=
"manage-column"
>
System
</th>
<th
scope=
"col"
width=
"60"
class=
"manage-column"
>
SMS
</th>
<th
scope=
"col"
width=
"200"
class=
"manage-column"
>
</th>
</tr>
</thead>
...
...
@@ -92,7 +89,7 @@ print "</pre>";
<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
(
$entry
->
is_sms
)
:
?>
<img
src=
"
<?php
echo
Tools\url
(
'assets/images/accept.png'
,
__FILE__
)
?>
"
/>
<?php
endif
;
?>
</td>
<td><a
href=
"/wp-admin/admin.php?page=notifications&action=edit&page_id=
<?php
echo
$entry
->
ID
;
?>
"
>
edit
</a>
<?php
if
(
current_user_can
(
Settings\MANAGE_SYSTEM_NOTIFICATIONS
))
:
?>
|
<a
href=
"/wp-admin/admin.php?page=notifications&action=delete&page_id=
<?php
echo
$entry
->
ID
;
?>
"
onclick=
"return confirm('Are you sure?');"
>
delete
</a>
...
...
com/Notifications/views/create.php
View file @
e206646
...
...
@@ -150,20 +150,7 @@ use Tz\WordPress\Tools;
</tbody>
</table>
<table
cellspacing=
"0"
class=
"widefat post fixed expandable"
style=
"margin-top:15px;"
>
<thead>
<tr>
<th
width=
"150"
class=
"toggle"
><h6>
SMS
</h6></th>
<th
class=
"action-bar"
>
</th>
</tr>
</thead>
<tbody
style=
"
<?php
echo
(
$validation
->
set_value
(
'sms'
)
==
""
)
?
"display:none"
:
""
;
?>
;"
>
<tr>
<td>
Text Only!
</td>
<td><textarea
name=
"sms"
class=
"wide-input-field"
rows=
"4"
style=
"width:100%;"
>
<?php
echo
$validation
->
set_value
(
'sms'
);
?>
</textarea>
<?php
echo
$validation
->
form_error
(
'sms'
);
?>
</td>
</tr>
</tbody>
</table>
<p>
...
...
com/Notifications/views/form.php
View file @
e206646
...
...
@@ -157,20 +157,6 @@ use Tz\WordPress\Tools;
</tbody>
</table>
<table
cellspacing=
"0"
class=
"widefat post fixed expandable"
style=
"margin-top:15px;"
>
<thead>
<tr>
<th
width=
"150"
class=
"toggle"
><h6>
SMS
</h6></th>
<th
class=
"action-bar"
>
</th>
</tr>
</thead>
<tbody
style=
"
<?php
echo
(
$validation
->
set_value
(
'sms'
,
$entry
->
sms
[
'message'
])
==
""
)
?
"display:none"
:
""
;
?>
;"
>
<tr>
<td>
Text Only!
</td>
<td><textarea
name=
"sms"
class=
"wide-input-field"
rows=
"4"
style=
"width:100%;"
>
<?php
echo
$validation
->
set_value
(
'sms'
,
isset
(
$entry
->
sms
[
'message'
])
?
$entry
->
sms
[
'message'
]
:
""
);
?>
</textarea>
<?php
echo
$validation
->
form_error
(
'sms'
);
?>
</td>
</tr>
</tbody>
</table>
<p>
...
...
Please
register
or
sign in
to post a comment