e8f47b53 by Marty Penner

Convert tabs to spaces in 3 files

1 parent d569850b
......@@ -4,7 +4,7 @@ use Tz\WordPress\Tools\Notifications;
use Tz\WordPress\Tools;
?>
<link type="text/css" href="<?php echo Tools\url('assets/css/smoothness/jquery-ui-1.8.4.custom.css', __FILE__)?>" rel="stylesheet" />
<link type="text/css" href="<?php echo Tools\url('assets/css/smoothness/jquery-ui-1.8.4.custom.css', __FILE__)?>" rel="stylesheet" />
<script type="text/javascript" src="<?php echo Tools\url('assets/scripts/jquery-1.4.2.min.js', __FILE__)?>"></script>
<script type="text/javascript" src="<?php echo Tools\url('assets/scripts/jquery-ui-1.8.4.custom.min.js', __FILE__)?>"></script>
<script type="text/javascript" src="<?php echo Tools\url('assets/scripts/datetimepicker.js', __FILE__)?>"></script>
......@@ -13,7 +13,7 @@ use Tz\WordPress\Tools;
<div id="" class="wrap">
<h2>Notifications - Edit</h2>
<?php if (isset($flash) && $flash !=""): ?>
<div class="post-success">
<?php echo $flash; ?>
......@@ -27,15 +27,15 @@ use Tz\WordPress\Tools;
<?php endif; ?>
</div>
<?php endif;?>
<form enctype="multipart/form-data" method="post" action="/wp-admin/admin.php?page=notifications&action=edit&page_id=<?php echo $_GET['page_id']?>">
<input type="hidden" name="_POSTED_" value="yes" />
<table cellspacing="0" class="widefat post fixed" style="margin-top:15px;">
<thead>
<tr>
......@@ -63,7 +63,7 @@ use Tz\WordPress\Tools;
<tr class="scheduled_sendto">
<td>Sent To:</td>
<td>
<?php
if ($entry->details['sendto'] == "report" ): ?>
<input type="hidden" name="sendto" value="<?php echo $entry->details['sendto']; ?>"/>
......@@ -78,25 +78,25 @@ use Tz\WordPress\Tools;
</optgroup>
</select>
<?php endif; ?>
<?php echo $validation->form_error('sendto');?>
</td>
</tr>
<tr class="scheduled-extended">
<td>Execute Date / Time</td>
<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>
</tr>
<tr class="trigger-extended">
<td>Trigger</td>
<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>
</tr>
</tbody>
</table>
<table cellspacing="0" class="widefat post fixed expandable" style="margin-top:15px;">
<thead>
<tr>
......@@ -117,12 +117,12 @@ use Tz\WordPress\Tools;
<td>HTML Version (optional)</td>
<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>
</tr>
<tr>
<td width="150">Attachments</td>
<td>&nbsp;</td>
</tr>
<?php
$attachements = $entry->email['attachments'];
$allowed_attachments = 3;
......@@ -132,18 +132,18 @@ use Tz\WordPress\Tools;
<td><?php echo $attachment; ?> &nbsp; (<a href="#" entry_id="<?php echo $_GET['page_id']?>" class="attachment" rel="<?php echo $attachment; ?>">remove</a>)</td>
</tr>
<?php $allowed_attachments--; endforeach; ?>
<?php for($a = 1; $a <= $allowed_attachments; $a++): ?>
<tr>
<td>&nbsp;</td>
<td><input type="file" name="attachment[]" /></td>
</tr>
<?php endfor; ?>
</tbody>
</table>
<table cellspacing="0" class="widefat post fixed expandable" style="margin-top:15px;">
<thead>
<tr>
......@@ -169,15 +169,15 @@ use Tz\WordPress\Tools;
</tr>
</tbody>
</table>
<p>
<input type="submit" value=" Update " /><input type="button" value=" Cancel " onclick="document.location.href='/wp-admin/admin.php?page=notifications';" />
</p>
</form>
</div>
<script type="text/javascript">
......@@ -190,9 +190,9 @@ jQuery(document).ready(function($) {
, dateFormat: 'yy-mm-dd'
, timeFormat: 'hh:mm:ss'
});
updateNotificationType();
$('.attachment').live('click', function(e) {
e.preventDefault();
var $link = $(this);
......@@ -202,11 +202,11 @@ jQuery(document).ready(function($) {
, id: $link.attr('entry_id')
, file: $link.attr('rel')
};
var file_element = '<input type="file" name="attachment[]" />';
var c = confirm('Are you sure you want to remove this attachment?');
if (c) {
$.ajax({
......@@ -221,11 +221,11 @@ jQuery(document).ready(function($) {
}
});
}
return false;
});
//jQuery('table.expandable tbody').hide();
jQuery('table.expandable thead th').click(function() {
var $table = jQuery(this).parent().parent().parent();
......@@ -237,12 +237,12 @@ jQuery(document).ready(function($) {
jQuery('tbody',$table).fadeIn();
}
});
});
function updateNotificationType() {
var type = jQuery('#notif_type').val();
if (type=="triggered") {
jQuery('.scheduled-extended').hide();
jQuery('.trigger-extended').show();
......@@ -252,9 +252,6 @@ function updateNotificationType() {
jQuery('.trigger-extended').hide();
jQuery('.scheduled_sendto').show();
}
}
}
</script>
\ No newline at end of file
......