-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptions.php
More file actions
47 lines (45 loc) · 2.11 KB
/
options.php
File metadata and controls
47 lines (45 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<div class="wrap">
<?php screen_icon(); ?>
<form action="options.php" method="post" id="<?php echo $plugin_id; ?>_options_form" name="<?php echo $plugin_id; ?>_options_form">
<?php settings_fields($plugin_id.'_options'); ?>
<?php do_settings_sections($plugin_id.'_options'); ?>
<h2>Formulize Plugin » Settings</h2>
<table class="widefat">
<thead>
<tr>
<th><input type="submit" name="submit" value="Save Settings" class="button-primary" /></th>
</tr>
</thead>
<tfoot>
<tr>
<th><input type="submit" name="submit" value="Save Settings" class="button-primary" /></th>
</tr>
</tfoot>
<tbody>
<tr>
<td style="padding:25px;font-family:Verdana, Geneva, sans-serif;color:#666;">
<label for="formulize_path">
<p>Path to Formulize root directory: <input type="text" style="width:500px;" name="formulize_path" value="<?php echo get_option('formulize_path'); ?>" /></p>
<p>example: /var/www/formulize</p>
</label>
<label for="synchronize_users_button">
<p>
<input id="syncButton" name="synchronize_users_button" type="button" title="Synchronize Users" value="Synchronize Users"/>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery("#syncButton").click(function() {
jQuery.post("index.php?syncUsers=true", function(response) {
// TURN THIS LINE ON FOR DEBUGGING
//alert('Got this from the server: ' + response);
});
});
});
</script>
</p>
</label>
</td>
</tr>
</tbody>
</table>
</form>
</div>