Subversion Repositories wpShopGermany4

Rev

Rev 5261 | Rev 5439 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5261 Rev 5382
Line 6... Line 6...
6
 
6
 
7
?>
7
?>
8
<?php if (is_array($this->view['data']) && sizeof($this->view['data']) > 0) { ?>
8
<?php if (is_array($this->view['data']) && sizeof($this->view['data']) > 0) { ?>
9
<table class="wpsg_ov_table">
9
<table class="wpsg_ov_table">
10
	 <tr>
10
	 <tr>
11
	 	<th class="wpsg_id"><?php echo __('ID', 'wpsg'); ?></th>
11
	 	<th><?php echo __('ID', 'wpsg'); ?></th>
12
    	<th class="wpsg_label"><?php echo __('Name', 'wpsg'); ?></th>
12
    	<th class="wpsg_label"><?php echo __('Name', 'wpsg'); ?></th>
13
    	<th class="wpsg_typ"><?php echo __('Typ', 'wpsg'); ?></th>
13
    	<th class="wpsg_typ"><?php echo __('Typ', 'wpsg'); ?></th>
14
    	<th class="wpsg_pflicht"><?php echo __('Pflicht', 'wpsg'); ?></th>
14
    	<th class="wpsg_pflicht"><?php echo __('Pflicht', 'wpsg'); ?></th>
15
    	<th class="wpsg_delcol"></th>
15
    	<th class="wpsg_delcol"></th>
16
  	</tr>
16
  	</tr>
17
  	<?php $i = 0; foreach ($this->view['data'] as $ov) { $i ++; ?>
17
  	<?php $i = 0; foreach ($this->view['data'] as $ov) { $i ++; ?>
18
	<tr class="wpsg_table wpsg_tablerow <?php echo (($i % 2 == 0)?'odd':'even'); ?>">
18
	<tr class="wpsg_table wpsg_tablerow <?php echo (($i % 2 == 0)?'odd':'even'); ?>" id="ov_<?php echo $ov['id']; ?>">
19
		<td class="wpsg_id"><?php echo $ov['id']; ?></td>
19
		<td class="wpsg_id"><?php echo $ov['id']; ?></td>
20
		<td id="wpsg_ov_name_<?php echo $ov['id']; ?>" class="wpsg_label wpsg_editable"><?php echo wpsg_hspc(__($ov['name'], 'wpsg')); ?></td>
20
		<td id="wpsg_ov_name_<?php echo $ov['id']; ?>" class="wpsg_label wpsg_editable"><?php echo wpsg_hspc(__($ov['name'], 'wpsg')); ?></td>
21
		<td id="wpsg_ov_typ_<?php echo $ov['id']; ?>" class="wpsg_typ wpsg_editable"><?php echo $this->mod->arTypen[$ov['typ']]; ?></td>
21
		<td id="wpsg_ov_typ_<?php echo $ov['id']; ?>" class="wpsg_typ wpsg_editable"><?php echo $this->mod->arTypen[$ov['typ']]; ?></td>
22
		<td class="wpsg_pflicht"><input type="checkbox" <?php echo (($ov['pflicht'] == '1')?'checked="checked"':''); ?> id="wpsg_ov_pflicht_<?php echo $ov['id']; ?>" /></td>
22
		<td class="wpsg_pflicht"><input type="checkbox" <?php echo (($ov['pflicht'] == '1')?'checked="checked"':''); ?> id="wpsg_ov_pflicht_<?php echo $ov['id']; ?>" /></td>
23
		<td class="wpsg_delcol">
23
		<td class="wpsg_delcol">
Line 114... Line 114...
114
			</script>			
114
			</script>			
115
		</td>
115
		</td>
116
	</tr>
116
	</tr>
117
	<?php } ?>
117
	<?php } ?>
118
</table>
118
</table>
-
 
119
<p class="wpsg_hinweis"><?php echo __('Die Reihenfolge lässt sich mittels Drag&Drop verändern.', 'wpsg'); ?>
-
 
120
 
-
 
121
<script type="text/javascript">/* <![CDATA[ */
-
 
122
 
-
 
123
	jQuery(document).ready(function() {
-
 
124
 
-
 
125
		jQuery('.wpsg_ov_table').sortable( {
-
 
126
			helper: wpsg_Tablefix,
-
 
127
			items: 'tr.wpsg_tablerow',
-
 
128
			handler: '.wpsg_id',
-
 
129
			update: function(event, ui) {
-
 
130
 
-
 
131
				var wpsg_reorder = jQuery(this).sortable('serialize');
-
 
132
 
-
 
133
				jQuery.ajax( {
-
 
134
					url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_ordervars&noheader=1&do=reorder',
-
 
135
					data: { 
-
 
136
						wpsg_reorder: wpsg_reorder
-
 
137
					},
-
 
138
					success: function(data) {
-
 
139
 
-
 
140
						if (data !== "1") alert(data);
-
 
141
						
-
 
142
					}
-
 
143
				} );
-
 
144
				
-
 
145
			}
-
 
146
		} );
-
 
147
		
-
 
148
	} );
-
 
149
			
-
 
150
/* ]]> */</script>
-
 
151
 
119
<?php } else { ?>
152
<?php } else { ?>
120
<?php echo __('Bisher noch keine Bestellvariablen angelegt.', 'wpsg'); ?>
153
<?php echo __('Bisher noch keine Bestellvariablen angelegt.', 'wpsg'); ?>
121
<?php } ?>
154
<?php } ?>
122
155