2843 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Template für das Modul "Rechtstexte"
|
|
|
5 |
*/
|
|
|
6 |
|
|
|
7 |
?>
|
|
|
8 |
|
|
|
9 |
<?php echo wpsg_drawForm_Select('wpsg_mod_legaltexts_provider', __('Anbieter', 'wpsg'), array(
|
|
|
10 |
wpsg_mod_legaltexts::PROVIDER_PROTECTEDSHOPS => __('Protected Shops', 'wpsg'),
|
4323 |
daniel |
11 |
wpsg_mod_legaltexts::PROVIDER_HAENDLERBUND => __('Händlerbund', 'wpsg'),
|
4370 |
daniel |
12 |
wpsg_mod_legaltexts::PROVIDER_ITRECHT => __('IT-Recht Kanzlei München', 'wpsg')
|
5382 |
daniel |
13 |
), $this->get_option('wpsg_mod_legaltexts_provider'), array('help' => 'wpsg_mod_legaltexts_provider')); ?>
|
2843 |
daniel |
14 |
|
|
|
15 |
<br />
|
|
|
16 |
|
|
|
17 |
<div id="wpsg_provider_target"></div>
|
|
|
18 |
|
|
|
19 |
<script type="text/javascript">/* <![CDATA[ */
|
|
|
20 |
|
|
|
21 |
jQuery(document).ready(function() {
|
|
|
22 |
|
|
|
23 |
jQuery('#wpsg_mod_legaltexts_provider').bind('change', function() {
|
|
|
24 |
|
|
|
25 |
jQuery('#wpsg_provider_target').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
|
|
|
26 |
|
|
|
27 |
jQuery.ajax( {
|
|
|
28 |
url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_legaltexts&noheader=1&do=add',
|
|
|
29 |
data: {
|
|
|
30 |
'provider': jQuery('#wpsg_mod_legaltexts_provider').val()
|
|
|
31 |
},
|
|
|
32 |
success: function(data) {
|
|
|
33 |
|
|
|
34 |
jQuery('#wpsg_provider_target').html(data);
|
|
|
35 |
|
|
|
36 |
}
|
|
|
37 |
} );
|
|
|
38 |
|
|
|
39 |
} ).change();
|
|
|
40 |
|
|
|
41 |
} );
|
|
|
42 |
|
|
|
43 |
/* ]]> */</script>
|