<table class="form-table">
    <tr>
        <th>ID سریال (IMDb):</th>
        <td><input type="text" name="seriesId" value="<?= esc_attr($_POST['seriesId'] ?? '') ?>" style="width:100%" required placeholder="tt1234567"></td>
    </tr>
    <tr>
        <th>کلید OMDB API:</th>
        <td><input type="text" name="omdbKey" value="<?= esc_attr($_POST['omdbKey'] ?? '') ?>" style="width:100%" required></td>
    </tr>
    <tr>
        <th>آدرس لینک (Base URL):</th>
        <td><input type="text" name="seriesLink" value="<?= esc_attr($_POST['seriesLink'] ?? '') ?>" style="width:100%" placeholder="https://example.com/series/NAME/"></td>
    </tr>
    <tr>
        <th>افزودن سریال جدید:</th>
        <td><label><input type="checkbox" name="addNewSeries" <?= isset($_POST['addNewSeries']) ? 'checked' : '' ?>> اگر ON باشد، سریال جدید از OMDB ایجاد می‌شود</label></td>
    </tr>
    <tr>
        <th>گزینه جایگزینی:</th>
        <td><label><input type="checkbox" name="replaceToggle" <?= isset($_POST['replaceToggle']) ? 'checked' : '' ?>> پاک‌کردن لینک‌های قبلی قبل از افزودن جدید</label></td>
    </tr>
    <tr>
        <th>انتخاب کد:</th>
        <td>
            <label><input type="radio" name="series_code" value="code-1" checked> کد ۱ (DLBox - اسکن خودکار)</label><br>
            <label><input type="radio" name="series_code" value="code-2"> کد ۲</label><br>
            <label><input type="radio" name="series_code" value="code-3"> کد ۳</label><br>
            <label><input type="radio" name="series_code" value="code-4"> کد ۴</label><br>
            <label><input type="radio" name="series_code" value="code-5"> کد ۵</label>
        </td>
    </tr>
</table>