| 1 |
<div class="postbox"> |
| 2 |
<div class="inside"> |
| 3 |
<h3><?php _e( 'Export CSV', 'erp' ); ?></h3> |
| 4 |
|
| 5 |
<form method="post" action="<?php echo admin_url( 'admin.php?page=erp-tools' ); ?>" id="export_form"> |
| 6 |
|
| 7 |
<table class="form-table"> |
| 8 |
<tbody> |
| 9 |
<tr> |
| 10 |
<th> |
| 11 |
<label for="type"><?php _e( 'Type', 'erp' ); ?></label> |
| 12 |
</th> |
| 13 |
<td> |
| 14 |
<select name="type" id="type"> |
| 15 |
<?php foreach ( $import_export_types as $key => $value ) { ?> |
| 16 |
<option value="<?php echo $key; ?>"><?php _e( $value, 'erp' ); ?></option> |
| 17 |
<?php } ?> |
| 18 |
</select> |
| 19 |
<p class="description"><?php _e( 'Select item type to export.', 'erp' ); ?></p> |
| 20 |
</td> |
| 21 |
</tr> |
| 22 |
<tr> |
| 23 |
<th> |
| 24 |
<label for="fields"><?php _e( 'Fields', 'erp' ); ?> <span class="required">*</span></label> |
| 25 |
</th> |
| 26 |
<td> |
| 27 |
<label><input type="checkbox" id="selecctall"/> <strong><?php _e( 'Select All', 'erp' ); ?></strong></label> |
| 28 |
<br /> |
| 29 |
<div id="fields"></div> |
| 30 |
<p class="description"><?php _e( 'Only selected field will be on the csv file.', 'erp' ); ?></p> |
| 31 |
</td> |
| 32 |
</tr> |
| 33 |
</tbody> |
| 34 |
</table> |
| 35 |
|
| 36 |
<?php wp_nonce_field( 'erp-import-export-nonce' ); ?> |
| 37 |
<?php submit_button( __( 'Export', 'erp' ), 'primary', 'erp_export_csv' ); ?> |
| 38 |
</form> |
| 39 |
</div><!-- .inside --> |
| 40 |
</div><!-- .postbox --> |
| 41 |
|