summaryrefslogtreecommitdiff
path: root/views/mods/mod_ordervars/settings_edit.phtml
blob: 614689535243a6a68c0be36eaff441953af19dc8 (plain)
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
<?php

	/**
	 * Template für die Einstellungen des Bestellvariablen Moduls
	 */

?>
<script>

    /**
     * Wird beim anlegen einer neuen Bestellvariable aufgerufen
     */
	function wpsg_addOV() {

		jQuery('#wpsg_ov_list').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
		
		jQuery.ajax( {
			url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_ordervars&noheader=1&do=add',
			success: function(data) {
				jQuery('#wpsg_ov_list').html(data);
			}
		} );
		
		return false;
		
	} // function wpsg_addOV()

</script>

<div class="content" id="wpsg_ov_list"><?php echo $this->mod->ov_list(); ?></div>

<br />

<a title="<?php echo __('Neue Bestellvariable anlegen', 'wpsg'); ?>" href="" class="" onclick="return wpsg_addOV();"><span class="glyphicon wpsg-glyphicon glyphicon-plus"></span><?php echo __('Neue Bestellvariable anlegen.', 'wpsg'); ?></a>