e8f47b53 by Marty Penner

Convert tabs to spaces in 3 files

1 parent d569850b
...@@ -4,7 +4,7 @@ use Tz\WordPress\Tools\Notifications; ...@@ -4,7 +4,7 @@ use Tz\WordPress\Tools\Notifications;
4 use Tz\WordPress\Tools; 4 use Tz\WordPress\Tools;
5 ?> 5 ?>
6 6
7 <link type="text/css" href="<?php echo Tools\url('assets/css/smoothness/jquery-ui-1.8.4.custom.css', __FILE__)?>" rel="stylesheet" /> 7 <link type="text/css" href="<?php echo Tools\url('assets/css/smoothness/jquery-ui-1.8.4.custom.css', __FILE__)?>" rel="stylesheet" />
8 <script type="text/javascript" src="<?php echo Tools\url('assets/scripts/jquery-1.4.2.min.js', __FILE__)?>"></script> 8 <script type="text/javascript" src="<?php echo Tools\url('assets/scripts/jquery-1.4.2.min.js', __FILE__)?>"></script>
9 <script type="text/javascript" src="<?php echo Tools\url('assets/scripts/jquery-ui-1.8.4.custom.min.js', __FILE__)?>"></script> 9 <script type="text/javascript" src="<?php echo Tools\url('assets/scripts/jquery-ui-1.8.4.custom.min.js', __FILE__)?>"></script>
10 <script type="text/javascript" src="<?php echo Tools\url('assets/scripts/datetimepicker.js', __FILE__)?>"></script> 10 <script type="text/javascript" src="<?php echo Tools\url('assets/scripts/datetimepicker.js', __FILE__)?>"></script>
...@@ -13,7 +13,7 @@ use Tz\WordPress\Tools; ...@@ -13,7 +13,7 @@ use Tz\WordPress\Tools;
13 <div id="" class="wrap"> 13 <div id="" class="wrap">
14 14
15 <h2>Notifications - Edit</h2> 15 <h2>Notifications - Edit</h2>
16 16
17 <?php if (isset($flash) && $flash !=""): ?> 17 <?php if (isset($flash) && $flash !=""): ?>
18 <div class="post-success"> 18 <div class="post-success">
19 <?php echo $flash; ?> 19 <?php echo $flash; ?>
...@@ -27,15 +27,15 @@ use Tz\WordPress\Tools; ...@@ -27,15 +27,15 @@ use Tz\WordPress\Tools;
27 <?php endif; ?> 27 <?php endif; ?>
28 </div> 28 </div>
29 <?php endif;?> 29 <?php endif;?>
30 30
31 31
32 32
33 33
34 34
35 <form enctype="multipart/form-data" method="post" action="/wp-admin/admin.php?page=notifications&action=edit&page_id=<?php echo $_GET['page_id']?>"> 35 <form enctype="multipart/form-data" method="post" action="/wp-admin/admin.php?page=notifications&action=edit&page_id=<?php echo $_GET['page_id']?>">
36 36
37 <input type="hidden" name="_POSTED_" value="yes" /> 37 <input type="hidden" name="_POSTED_" value="yes" />
38 38
39 <table cellspacing="0" class="widefat post fixed" style="margin-top:15px;"> 39 <table cellspacing="0" class="widefat post fixed" style="margin-top:15px;">
40 <thead> 40 <thead>
41 <tr> 41 <tr>
...@@ -63,7 +63,7 @@ use Tz\WordPress\Tools; ...@@ -63,7 +63,7 @@ use Tz\WordPress\Tools;
63 <tr class="scheduled_sendto"> 63 <tr class="scheduled_sendto">
64 <td>Sent To:</td> 64 <td>Sent To:</td>
65 <td> 65 <td>
66 66
67 <?php 67 <?php
68 if ($entry->details['sendto'] == "report" ): ?> 68 if ($entry->details['sendto'] == "report" ): ?>
69 <input type="hidden" name="sendto" value="<?php echo $entry->details['sendto']; ?>"/> 69 <input type="hidden" name="sendto" value="<?php echo $entry->details['sendto']; ?>"/>
...@@ -78,25 +78,25 @@ use Tz\WordPress\Tools; ...@@ -78,25 +78,25 @@ use Tz\WordPress\Tools;
78 </optgroup> 78 </optgroup>
79 </select> 79 </select>
80 <?php endif; ?> 80 <?php endif; ?>
81 81
82 82
83 <?php echo $validation->form_error('sendto');?> 83 <?php echo $validation->form_error('sendto');?>
84 </td> 84 </td>
85 </tr> 85 </tr>
86 86
87 <tr class="scheduled-extended"> 87 <tr class="scheduled-extended">
88 <td>Execute Date / Time</td> 88 <td>Execute Date / Time</td>
89 <td><input type="text" name="execute_date" id="execute_date" class="wide-input-field date-pick" readonly="readonly" value="<?php echo $validation->set_value('execute_date',$entry->details['execute_date']);?>" /><?php echo $validation->form_error('execute_date');?></td> 89 <td><input type="text" name="execute_date" id="execute_date" class="wide-input-field date-pick" readonly="readonly" value="<?php echo $validation->set_value('execute_date',$entry->details['execute_date']);?>" /><?php echo $validation->form_error('execute_date');?></td>
90 </tr> 90 </tr>
91 91
92 <tr class="trigger-extended"> 92 <tr class="trigger-extended">
93 <td>Trigger</td> 93 <td>Trigger</td>
94 <td><input type="text" name="trigger" id="trigger" class="wide-input-field" value="<?php echo $validation->set_value('trigger',$entry->details['trigger']);?>" /><?php echo $validation->form_error('trigger');?></td> 94 <td><input type="text" name="trigger" id="trigger" class="wide-input-field" value="<?php echo $validation->set_value('trigger',$entry->details['trigger']);?>" /><?php echo $validation->form_error('trigger');?></td>
95 </tr> 95 </tr>
96 96
97 </tbody> 97 </tbody>
98 </table> 98 </table>
99 99
100 <table cellspacing="0" class="widefat post fixed expandable" style="margin-top:15px;"> 100 <table cellspacing="0" class="widefat post fixed expandable" style="margin-top:15px;">
101 <thead> 101 <thead>
102 <tr> 102 <tr>
...@@ -117,12 +117,12 @@ use Tz\WordPress\Tools; ...@@ -117,12 +117,12 @@ use Tz\WordPress\Tools;
117 <td>HTML Version (optional)</td> 117 <td>HTML Version (optional)</td>
118 <td><textarea name="html" id="htmlversion" class="wide-input-field" rows="10" style="width:100%;"><?php echo $validation->set_value('html',$entry->email['html']);?></textarea><?php echo $validation->form_error('html');?></td> 118 <td><textarea name="html" id="htmlversion" class="wide-input-field" rows="10" style="width:100%;"><?php echo $validation->set_value('html',$entry->email['html']);?></textarea><?php echo $validation->form_error('html');?></td>
119 </tr> 119 </tr>
120 120
121 <tr> 121 <tr>
122 <td width="150">Attachments</td> 122 <td width="150">Attachments</td>
123 <td>&nbsp;</td> 123 <td>&nbsp;</td>
124 </tr> 124 </tr>
125 125
126 <?php 126 <?php
127 $attachements = $entry->email['attachments']; 127 $attachements = $entry->email['attachments'];
128 $allowed_attachments = 3; 128 $allowed_attachments = 3;
...@@ -132,18 +132,18 @@ use Tz\WordPress\Tools; ...@@ -132,18 +132,18 @@ use Tz\WordPress\Tools;
132 <td><?php echo $attachment; ?> &nbsp; (<a href="#" entry_id="<?php echo $_GET['page_id']?>" class="attachment" rel="<?php echo $attachment; ?>">remove</a>)</td> 132 <td><?php echo $attachment; ?> &nbsp; (<a href="#" entry_id="<?php echo $_GET['page_id']?>" class="attachment" rel="<?php echo $attachment; ?>">remove</a>)</td>
133 </tr> 133 </tr>
134 <?php $allowed_attachments--; endforeach; ?> 134 <?php $allowed_attachments--; endforeach; ?>
135 135
136 <?php for($a = 1; $a <= $allowed_attachments; $a++): ?> 136 <?php for($a = 1; $a <= $allowed_attachments; $a++): ?>
137 137
138 <tr> 138 <tr>
139 <td>&nbsp;</td> 139 <td>&nbsp;</td>
140 <td><input type="file" name="attachment[]" /></td> 140 <td><input type="file" name="attachment[]" /></td>
141 </tr> 141 </tr>
142 <?php endfor; ?> 142 <?php endfor; ?>
143 143
144 </tbody> 144 </tbody>
145 </table> 145 </table>
146 146
147 <table cellspacing="0" class="widefat post fixed expandable" style="margin-top:15px;"> 147 <table cellspacing="0" class="widefat post fixed expandable" style="margin-top:15px;">
148 <thead> 148 <thead>
149 <tr> 149 <tr>
...@@ -169,15 +169,15 @@ use Tz\WordPress\Tools; ...@@ -169,15 +169,15 @@ use Tz\WordPress\Tools;
169 </tr> 169 </tr>
170 </tbody> 170 </tbody>
171 </table> 171 </table>
172 172
173 173
174 174
175 <p> 175 <p>
176 <input type="submit" value=" Update " /><input type="button" value=" Cancel " onclick="document.location.href='/wp-admin/admin.php?page=notifications';" /> 176 <input type="submit" value=" Update " /><input type="button" value=" Cancel " onclick="document.location.href='/wp-admin/admin.php?page=notifications';" />
177 </p> 177 </p>
178 178
179 </form> 179 </form>
180 180
181 </div> 181 </div>
182 182
183 <script type="text/javascript"> 183 <script type="text/javascript">
...@@ -190,9 +190,9 @@ jQuery(document).ready(function($) { ...@@ -190,9 +190,9 @@ jQuery(document).ready(function($) {
190 , dateFormat: 'yy-mm-dd' 190 , dateFormat: 'yy-mm-dd'
191 , timeFormat: 'hh:mm:ss' 191 , timeFormat: 'hh:mm:ss'
192 }); 192 });
193 193
194 updateNotificationType(); 194 updateNotificationType();
195 195
196 $('.attachment').live('click', function(e) { 196 $('.attachment').live('click', function(e) {
197 e.preventDefault(); 197 e.preventDefault();
198 var $link = $(this); 198 var $link = $(this);
...@@ -202,11 +202,11 @@ jQuery(document).ready(function($) { ...@@ -202,11 +202,11 @@ jQuery(document).ready(function($) {
202 , id: $link.attr('entry_id') 202 , id: $link.attr('entry_id')
203 , file: $link.attr('rel') 203 , file: $link.attr('rel')
204 }; 204 };
205 205
206 206
207 207
208 var file_element = '<input type="file" name="attachment[]" />'; 208 var file_element = '<input type="file" name="attachment[]" />';
209 209
210 var c = confirm('Are you sure you want to remove this attachment?'); 210 var c = confirm('Are you sure you want to remove this attachment?');
211 if (c) { 211 if (c) {
212 $.ajax({ 212 $.ajax({
...@@ -221,11 +221,11 @@ jQuery(document).ready(function($) { ...@@ -221,11 +221,11 @@ jQuery(document).ready(function($) {
221 } 221 }
222 }); 222 });
223 } 223 }
224 224
225 return false; 225 return false;
226 }); 226 });
227 227
228 228
229 //jQuery('table.expandable tbody').hide(); 229 //jQuery('table.expandable tbody').hide();
230 jQuery('table.expandable thead th').click(function() { 230 jQuery('table.expandable thead th').click(function() {
231 var $table = jQuery(this).parent().parent().parent(); 231 var $table = jQuery(this).parent().parent().parent();
...@@ -237,12 +237,12 @@ jQuery(document).ready(function($) { ...@@ -237,12 +237,12 @@ jQuery(document).ready(function($) {
237 jQuery('tbody',$table).fadeIn(); 237 jQuery('tbody',$table).fadeIn();
238 } 238 }
239 }); 239 });
240 240
241 }); 241 });
242 242
243 function updateNotificationType() { 243 function updateNotificationType() {
244 var type = jQuery('#notif_type').val(); 244 var type = jQuery('#notif_type').val();
245 245
246 if (type=="triggered") { 246 if (type=="triggered") {
247 jQuery('.scheduled-extended').hide(); 247 jQuery('.scheduled-extended').hide();
248 jQuery('.trigger-extended').show(); 248 jQuery('.trigger-extended').show();
...@@ -252,9 +252,6 @@ function updateNotificationType() { ...@@ -252,9 +252,6 @@ function updateNotificationType() {
252 jQuery('.trigger-extended').hide(); 252 jQuery('.trigger-extended').hide();
253 jQuery('.scheduled_sendto').show(); 253 jQuery('.scheduled_sendto').show();
254 } 254 }
255
256 }
257
258
259 255
256 }
260 </script> 257 </script>
...\ No newline at end of file ...\ No newline at end of file
......