# hurrytimer/2.0.0/admin/templates/schedule-tab.php

HurryTimer – An Scarcity and Urgency Countdown Timer for WordPress &amp; WooCommerce, version 2.0.0. 112 lines.

- Page: https://pluginprobe.com/plugins/hurrytimer/2.0.0/code/admin/templates/schedule-tab.php
- Raw: https://pluginprobe.com/plugins/hurrytimer/2.0.0/raw/admin/templates/schedule-tab.php
- Modified: 2019-04-05T20:43:02+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/hurrytimer/2.0.0/code/admin/templates/schedule-tab.php#L10-L20`.

```php
<?php
namespace Hurrytimer;
?>
<div id="hurrytimer-tabcontent-general" class="hurrytimer-tabcontent active">
    <table class="form-table">
        <tr class="form-field hurrytimer-field-mode">
            <td>
                <label for="hurrytimer-mode"><?php _e("Mode", "hurrytimer") ?></label>
            </td>
            <td>
                <label>
                    <input
                            type="radio"
                            name="mode"
                            class="hurrytimer-mode"
                            value="<?php echo C::MODE_EVERGREEN ?>"
                        <?php checked($campaign->mode, C::MODE_EVERGREEN) ?>
                    >
                    <?php _e("Evergreen", "hurrytimer") ?>
                </label>
                <label>
                    <input type="radio"
                           name="mode"
                           class="hurrytimer-mode"
                           value="<?php echo C::MODE_REGULAR ?>"
                        <?php checked($campaign->mode, C::MODE_REGULAR) ?>
                    >
                    <?php _e("Regular", "hurrytimer") ?>
                </label>
            </td>
        </tr>
        <tr class="form-field hurryt-evergreen-mode-subfields hurrytimer-field-duration-wrap hidden">
            <td>
                <label><?php _e('Ends After', "hurrytimer") ?></label>
            </td>
            <td>
                <div class="hurrytimer-field-duration">

                    <label>
                        <?php _e("Days", "hurrytimer") ?>

                        <input type="number"
                                  class="hurrytimer-duration"
                                  name="duration[]"
                                  min="0"
                                  data-index="0"
                                  value="<?php echo $campaign->duration[0] ?>">
                    </label>
                    <label>
                        <?php _e("Hours", "hurrytimer") ?>
                        <input type="number"
                                  class="hurrytimer-duration"
                                  name="duration[]"
                                  min="0"
                                  data-index="1"
                                  value="<?php echo $campaign->duration[1] ?>"
                        >

                    </label>
                    <label>
                        <?php _e("Minutes", "hurrytimer") ?>
                        <input type="number"
                                  class="hurrytimer-duration"
                                  name="duration[]"
                                  min="0"
                                  data-index="2"
                                  value="<?php echo $campaign->duration[2] ?>"
                        >

                    </label>
                    <label>
                        <?php _e("seconds", "hurrytimer") ?>
                        <input type="number"
                               class="hurrytimer-duration"
                               name="duration[]"
                               data-index="3"
                               value="<?php echo $campaign->duration[3] ?>"
                        >

                    </label>
                </div>
            </td>
        </tr>
        <tr class="form-field hidden hurryt-regular-mode-subfields">
            <td><label><?php _e("End Date & Time", "hurrytimer") ?></label></td>
            <td>
                <label for="hurrytimer-end-datetime" class="date">
                    <input type="text" name="end_datetime"  autocomplete="off" id="hurrytimer-end-datetime"
                           class="hurrytimer-datepicker"
                           value="<?php echo $campaign->endDatetime ?>"
                    >
                </label>
            </td>
        </tr>
        <tr class="form-field hidden hurryt-evergreen-mode-subfields">
            <td><label for="active"><?php _e("Restart when expired", "hurrytimer")?></label></td>
            <td>
                <select name="restart" id="js-hurrytimer-restart-coundown" class="htmr-form__field--m">
                    <option value="<?php echo C::RESTART_NONE ?>" <?php echo selected($campaign->restart, C::RESTART_NONE) ?>>
                        <?php _e("No", "hurrytimer")?>
                    </option>
                    <option value="<?php echo C::RESTART_IMMEDIATELY ?>" <?php echo selected($campaign->restart, C::RESTART_IMMEDIATELY) ?>>
                        <?php _e("Restart immediately", "hurrytimer")?>
                    </option>
                    <option value="<?php echo C::RESTART_AFTER_RELOAD ?>" <?php echo selected($campaign->restart, C::RESTART_AFTER_RELOAD) ?>>
                        <?php _e("Restart after page reload", "hurrytimer")?>
                    </option>
                </select>
            </td>
        </tr>
    </table>
</div>
```
