e2066462 by Kevin Burton

Refs #986

1 parent f1320cca
...@@ -30,7 +30,6 @@ print "</pre>"; ...@@ -30,7 +30,6 @@ print "</pre>";
30 <th scope="col" width="200" class="manage-column">Send To</th> 30 <th scope="col" width="200" class="manage-column">Send To</th>
31 <th scope="col" width="60" class="manage-column">Email</th> 31 <th scope="col" width="60" class="manage-column">Email</th>
32 <th scope="col" width="60" class="manage-column">System</th> 32 <th scope="col" width="60" class="manage-column">System</th>
33 <th scope="col" width="60" class="manage-column">SMS</th>
34 <th scope="col" width="200" class="manage-column">&nbsp;</th> 33 <th scope="col" width="200" class="manage-column">&nbsp;</th>
35 </tr> 34 </tr>
36 </thead> 35 </thead>
...@@ -51,7 +50,6 @@ print "</pre>"; ...@@ -51,7 +50,6 @@ print "</pre>";
51 <td><?php echo $sendto; ?></td> 50 <td><?php echo $sendto; ?></td>
52 <td><?php if ($entry->is_email): ?><img src="<?php echo Tools\url('assets/images/accept.png', __FILE__)?>" /><?php endif;?></td> 51 <td><?php if ($entry->is_email): ?><img src="<?php echo Tools\url('assets/images/accept.png', __FILE__)?>" /><?php endif;?></td>
53 <td><?php if ($entry->is_system): ?><img src="<?php echo Tools\url('assets/images/accept.png', __FILE__)?>" /><?php endif;?></td> 52 <td><?php if ($entry->is_system): ?><img src="<?php echo Tools\url('assets/images/accept.png', __FILE__)?>" /><?php endif;?></td>
54 <td><?php if ($entry->is_sms): ?><img src="<?php echo Tools\url('assets/images/accept.png', __FILE__)?>" /><?php endif;?></td>
55 <td> 53 <td>
56 54
57 <?php if (strtotime($entry->execute_date) > time()):?> 55 <?php if (strtotime($entry->execute_date) > time()):?>
...@@ -78,7 +76,6 @@ print "</pre>"; ...@@ -78,7 +76,6 @@ print "</pre>";
78 76
79 <th scope="col" width="60" class="manage-column">Email</th> 77 <th scope="col" width="60" class="manage-column">Email</th>
80 <th scope="col" width="60" class="manage-column">System</th> 78 <th scope="col" width="60" class="manage-column">System</th>
81 <th scope="col" width="60" class="manage-column">SMS</th>
82 <th scope="col" width="200" class="manage-column">&nbsp;</th> 79 <th scope="col" width="200" class="manage-column">&nbsp;</th>
83 </tr> 80 </tr>
84 </thead> 81 </thead>
...@@ -92,7 +89,7 @@ print "</pre>"; ...@@ -92,7 +89,7 @@ print "</pre>";
92 89
93 <td><?php if ($entry->is_email): ?><img src="<?php echo Tools\url('assets/images/accept.png', __FILE__)?>" /><?php endif;?></td> 90 <td><?php if ($entry->is_email): ?><img src="<?php echo Tools\url('assets/images/accept.png', __FILE__)?>" /><?php endif;?></td>
94 <td><?php if ($entry->is_system): ?><img src="<?php echo Tools\url('assets/images/accept.png', __FILE__)?>" /><?php endif;?></td> 91 <td><?php if ($entry->is_system): ?><img src="<?php echo Tools\url('assets/images/accept.png', __FILE__)?>" /><?php endif;?></td>
95 <td><?php if ($entry->is_sms): ?><img src="<?php echo Tools\url('assets/images/accept.png', __FILE__)?>" /><?php endif;?></td> 92
96 <td><a href="/wp-admin/admin.php?page=notifications&action=edit&page_id=<?php echo $entry->ID; ?>">edit</a> 93 <td><a href="/wp-admin/admin.php?page=notifications&action=edit&page_id=<?php echo $entry->ID; ?>">edit</a>
97 <?php if (current_user_can(Settings\MANAGE_SYSTEM_NOTIFICATIONS)): ?> 94 <?php if (current_user_can(Settings\MANAGE_SYSTEM_NOTIFICATIONS)): ?>
98 | <a href="/wp-admin/admin.php?page=notifications&action=delete&page_id=<?php echo $entry->ID; ?>" onclick="return confirm('Are you sure?');">delete</a> 95 | <a href="/wp-admin/admin.php?page=notifications&action=delete&page_id=<?php echo $entry->ID; ?>" onclick="return confirm('Are you sure?');">delete</a>
......
...@@ -150,20 +150,7 @@ use Tz\WordPress\Tools; ...@@ -150,20 +150,7 @@ use Tz\WordPress\Tools;
150 </tbody> 150 </tbody>
151 </table> 151 </table>
152 152
153 <table cellspacing="0" class="widefat post fixed expandable" style="margin-top:15px;"> 153
154 <thead>
155 <tr>
156 <th width="150" class="toggle"><h6>SMS</h6></th>
157 <th class="action-bar">&nbsp;</th>
158 </tr>
159 </thead>
160 <tbody style="<?php echo ($validation->set_value('sms')=="") ? "display:none" : "";?>;">
161 <tr>
162 <td>Text Only!</td>
163 <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>
164 </tr>
165 </tbody>
166 </table>
167 154
168 155
169 <p> 156 <p>
......
...@@ -157,20 +157,6 @@ use Tz\WordPress\Tools; ...@@ -157,20 +157,6 @@ use Tz\WordPress\Tools;
157 </tbody> 157 </tbody>
158 </table> 158 </table>
159 159
160 <table cellspacing="0" class="widefat post fixed expandable" style="margin-top:15px;">
161 <thead>
162 <tr>
163 <th width="150" class="toggle"><h6>SMS</h6></th>
164 <th class="action-bar">&nbsp;</th>
165 </tr>
166 </thead>
167 <tbody style="<?php echo ($validation->set_value('sms',$entry->sms['message'])=="") ? "display:none" : "";?>;">
168 <tr>
169 <td>Text Only!</td>
170 <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>
171 </tr>
172 </tbody>
173 </table>
174 160
175 161
176 <p> 162 <p>
......