diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2016-01-14 14:55:36 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2016-01-14 14:55:36 +0000 |
| commit | ad405c7045c6e242080ec9d3ce4c9e586b517c4f (patch) | |
| tree | b41905f4d27f3eaaabd5bad3a39f8d3873540b46 /views/admin/versandzonen.phtml | |
- Testweise 4
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5261 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/admin/versandzonen.phtml')
| -rw-r--r-- | views/admin/versandzonen.phtml | 130 |
1 files changed, 130 insertions, 0 deletions
diff --git a/views/admin/versandzonen.phtml b/views/admin/versandzonen.phtml new file mode 100644 index 0000000..46dbc28 --- /dev/null +++ b/views/admin/versandzonen.phtml @@ -0,0 +1,130 @@ +<?php
+
+ /**
+ * Template für die Verwaltung der Versandzonen
+ */
+
+?>
+<script type="text/javascript">
+
+ /**
+ * Wird aufgerufen um einen neuen Satz hinzuzufügen und die Liste neu zu lasen.
+ */
+ function wpsg_addVZ()
+ {
+
+ jQuery('#wpsg_vz_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&subaction=vz&do=add&noheader=1',
+ success: function(data) {
+ jQuery('#wpsg_vz_list').html(data);
+ }
+ } );
+
+ return false;
+
+ } // function wpsg_addVZ()
+
+ /**
+ * Wird aufgerufen wenn eine Versandzone gelöscht werden soll
+ */
+ function wpsg_removeVZ(vz_id)
+ {
+
+ if (!confirm('<?php echo __('Sind Sie sich sicher, dass sie diese Versandzone löschen möchten?', 'wpsg'); ?>')) return false;
+
+ jQuery('#wpsg_vz_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&subaction=vz&do=remove&noheader=1',
+ data: {
+ vz_id: vz_id
+ },
+ success: function(data) {
+ jQuery('#wpsg_vz_list').html(data);
+ }
+ } );
+
+ return false;
+
+ } // function wpsg_removeVZ(vz_id)
+
+ function wpsg_editPLZ(vz_id)
+ {
+ jQuery('#vz_' + vz_id + '_plz').attr('style', 'display:display');
+
+ return false;
+ }
+
+ function wpsg_savePLZ(vz_id)
+ {
+
+ jQuery.ajax( {
+ url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=vz&do=save_plz&noheader=1',
+ data: {
+ vz_id: vz_id,
+ textarea: jQuery('#vz_' + vz_id + '_plz textarea').val()
+ },
+ success: function(data) {
+ jQuery('#vz_' + vz_id + '_plz').attr('style', 'display:none');
+ }
+ } );
+
+ return false;
+
+ }
+
+ function wpsg_loadStandard()
+ {
+
+ if (!confirm('<?php echo __('Sind Sie sich sicher, dass sie die Standard Versandzonen und Länder laden möchten? Die alten Versandzonen und Länder gehen verloren.', 'wpsg'); ?>')) return false;
+
+ jQuery('#wpsg_vz_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&subaction=vz&do=loadStandard&noheader=1',
+ success: function(data) {
+ jQuery('#wpsg_vz_list').html(data);
+ }
+ } );
+
+ return false;
+
+ } // function wpsg_loadStandard()
+
+</script>
+
+<div class="wpsg_admin_submenu">
+
+ <div class="head">
+ <div class="title"><?php echo __("Einstellungen", "wpsg"); ?></div>
+ <div style="clear:both;"></div>
+ </div>
+
+ <ul>
+ <?php foreach ($this->view['arSubAction'] as $k => $v) { ?>
+ <li class="<?php echo (($k == $this->view['subAction'])?'current':''); ?>"><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a></li>
+ <?php } ?>
+ </ul>
+
+</div>
+
+<div class="wpsg_admin_content">
+
+ <div class="wpsg_admin_box">
+
+ <div class="head">
+ <div class="title">
+ <div class="fulltab">
+ <?php echo __('Versandzonen', 'wpsg'); ?>
+ <a title="<?php echo __('Neue Versandzone anlegen', 'wpsg'); ?>" href="" class="wpsg_icon wpsg_icon_right wpsg_icon_add" onclick="return wpsg_addVZ();"></a>
+ </div>
+ </div>
+ </div>
+ <div class="content">
+ <span id="wpsg_vz_list"><?php $this->view['adminController']->vz_listAction(); ?></span>
+ </div>
+
+ </div>
+</div>
\ No newline at end of file |
