Вход Регистрация
Файл: adultscript-2.0.3-pro/files/admin/templates/default/tools_synonyms_import.tpl.php
Строк: 65
<?php defined('_VALID') or die('Restricted Access!'); ?>
              <script type="text/javascript">
              $(document).ready(function() {
                  $("select[name='method']").change(function() {
                      $("#container-file").hide();
                      $("#container-url").hide();
                      $("#container-" + $(this).val()).show();
                  });
              });
              </script>
            <div id="import" class="content" style="display: none;">
                <form id="import-form" method="post" enctype="multipart/form-data" action="<?php echo CURRENT_URL?>">
                  <fieldset>
                      <legend>Import Synonyms</legend>
                    <table width="100%" border="0" cellspacing="2" cellpadding="1" class="search">
                    <tr>
                        <td>
                            <div class="optional">
                                  <div id="container-file"<?php if ($this->import['method'] != 'file'): echo ' style="display: none;"'; endif; ?>>
                                      <label for="file" class="search">CSV File</label>
                                      <input name="file" id="file" type="file" />
                                  </div>
                                  <div id="container-url"<?php if ($this->import['method'] != 'url'): echo ' style="display: none;"'; endif; ?>>
                                      <label for="url" class="search">CSV Url</label>
                                      <input name="url" id="url" type="text" class="large" value="<?php echo $this->import['url']; ?>" />
                                  </div>
                            </div>
                        </td>
                        <td>
                            <div class="optional">
                                <label for="method" class="search">Method</label>
                                <select name="method" id="method">
                                    <option value="file"<?php if ($this->import['method'] == 'file'): echo ' selected="selected"'; endif; ?>>CSV File</option>
                                      <option value="url"<?php if ($this->import['method'] == 'url'): echo ' selected="selected"'; endif; ?>>CSV Url</option>
                                </select>
                            </div>
                        </td>
                        <td>
                            <div class="optional">
                                <label for="sepaator" class="search">Display</label>
                                  <select name="separator" id="separator">
                                      <option value=","<?php if ($this->import['separator'] == ','): echo ' selected="selected"'; endif; ?>>Comma (,)</option>
                                      <option value="|"<?php if ($this->import['separator'] == '|'): echo ' selected="selected"'; endif; ?>>Pipe (|)</option>
                                  </select>
                              </div>                        
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            <div style="text-align: center; margin-top: 3px;">
                                <input name="submit_import" type="submit" class="button butDef" value=" Import " />
                            </div>
                        </td>
                    </tr>
                    </table>
                </fieldset>
                </form>
            </div>
Онлайн: 0
Реклама