Skip to content

Commit

Permalink
XmlImportExport: HTML/CSS fixes in import.php
Browse files Browse the repository at this point in the history
  • Loading branch information
dregad committed May 20, 2014
1 parent bfdd5ab commit 9532e9f
Showing 1 changed file with 40 additions and 42 deletions.
82 changes: 40 additions & 42 deletions plugins/XmlImportExport/pages/import.php
Expand Up @@ -43,7 +43,7 @@

?>

<div class="table-container">
<div class="form-container">
<form name="file_upload" method="post" enctype="multipart/form-data" action="<?php echo plugin_page( 'import_action' )?>">
<?php echo form_security_field( 'plugin_xml_import_action' ) ?>

Expand All @@ -60,11 +60,11 @@
?>
</td>
</tr>
<tr class="row-1">
<td class="category" width="25%">
<tr>
<th class="category" width="25%">
<?php echo lang_get( 'select_file' )?><br />
<?php echo '<span class="small">(' . lang_get( 'max_file_size_label' ) . ' ' . number_format( $t_max_file_size / 1000 ) . 'k)</span>'?>
</td>
</th>
<td width="85%">
<input type="hidden" name="max_file_size" value="<?php echo $t_max_file_size?>" />
<input type="hidden" name="step" value="1" />
Expand All @@ -79,55 +79,53 @@
</td>
</tr>

<tr class="row-2">
<tr>
<th class="category" width="25%">
<?php echo plugin_lang_get( 'cross_references' );?>
<?php echo plugin_lang_get( 'cross_references' );?>
</th>
<td>
<p><?php echo plugin_lang_get( 'default_strategy' );?>
<select name="strategy">
<option value="renumber" title="<?php echo plugin_lang_get( 'renumber_desc' );?>">
<?php echo plugin_lang_get( 'renumber' );?></option>
<option value="link" title="<?php echo plugin_lang_get( 'link_desc' );?>">
<?php echo plugin_lang_get( 'link' );?></option>
<option value="disable" title="<?php echo plugin_lang_get( 'disable_desc' );?>">
<?php echo plugin_lang_get( 'disable' );?></option>
</select>
</p>
<p><?php echo plugin_lang_get( 'fallback' );?>
<select name="fallback">
<option value="link" title="<?php echo plugin_lang_get( 'link_desc' );?>">
<?php echo plugin_lang_get( 'link' );?></option>
<option value="disable" title="<?php echo plugin_lang_get( 'disable_desc' );?>">
<?php echo plugin_lang_get( 'disable' );?></option>
</select>
</p>

<?php echo plugin_lang_get( 'default_strategy' );?>
<select name="strategy">
<option value="renumber" title="<?php echo plugin_lang_get( 'renumber_desc' );?>">
<?php echo plugin_lang_get( 'renumber' );?></option>
<option value="link" title="<?php echo plugin_lang_get( 'link_desc' );?>">
<?php echo plugin_lang_get( 'link' );?></option>
<option value="disable" title="<?php echo plugin_lang_get( 'disable_desc' );?>">
<?php echo plugin_lang_get( 'disable' );?></option>
</select>
<br><br>

<?php echo plugin_lang_get( 'fallback' );?>
<select name="fallback">
<option value="link" title="<?php echo plugin_lang_get( 'link_desc' );?>">
<?php echo plugin_lang_get( 'link' );?></option>
<option value="disable" title="<?php echo plugin_lang_get( 'disable_desc' );?>">
<?php echo plugin_lang_get( 'disable' );?></option>
</select>
</td>
</tr>

<tr class="row-2">
<th class="category" width="25%"><?php echo lang_get( 'categories' );?></th>
<tr>
<th class="category" width="25%">
<?php echo lang_get( 'categories' );?>
</th>
<td>
<p><label for="keepcategory"><?php echo plugin_lang_get( 'keep_same_category' );?></label>
<input type="checkbox" checked="checked" id="keepcategory" name="keepcategory" /></p>

<p><?php echo plugin_lang_get( 'fallback_category' );?>
<select name="defaultcategory">
<?php print_category_option_list( );?>
</select>
</p>

<input type="checkbox" checked="checked" id="keepcategory" name="keepcategory" />
<label for="keepcategory"><?php echo plugin_lang_get( 'keep_same_category' );?></label>
<br><br>

<?php echo plugin_lang_get( 'fallback_category' );?>
<select name="defaultcategory">
<?php print_category_option_list( );?>
</select>
</td>
</tr>
</table>

<div class="submit-button">
<input type="submit" class="button" value="<?php echo lang_get( 'upload_file_button' )?>" />
</div>

<tr>
<td colspan="2" class="center">
<input type="submit" class="button" value="<?php echo lang_get( 'upload_file_button' )?>" />
</td>
</tr>
</table>
</form>

</div>
Expand Down

0 comments on commit 9532e9f

Please sign in to comment.