Exemple #1
0
?>
> weekly</label><br>
            <label><input type="radio" name="recurring-period" value="2" <?php 
checkedIfTrue($recurringPeriodValue == 2);
?>
> bi-weekly</label><br>
            <label><input type="radio" name="recurring-period" value="3" <?php 
checkedIfTrue($recurringPeriodValue == 3);
?>
> monthly</label>
        <br><br>
        If weekly or bi-weekly, specify the number of weeks for it to keep recurring. If monthly, specify the number of months. (If you choose "bi-weekly" and put in an odd number of weeks, the computer will round down.)<br><br>
            <label><input type="number" min="0" max="4" name="duration" size="3" style="width:4em;" value="<?php 
\Utility\HtmlHelper::EchoIfPresent($tpl_book_values, 'duration');
?>
"> duration (max 4 weeks)</label>
            <div class="book-input-error-message" <?php 
\Utility\HtmlHelper::HideIfEmptyOrNull($tpl_book_errors, 'duration');
?>
><?php 
\Utility\HtmlHelper::EchoIfPresent($tpl_book_errors, 'duration');
?>
</div>
        <br>
        <hr>
        <div>
            <input type="submit" value="Submit">
        </div>
    </fieldset>
</form>
Exemple #2
0
        </div>
        <div class="details-form-input">
            <label for="df-emp">Who:</label>
            <select id="df-emp" name="employee" size="1"<?php 
readonlyIfFalse($tpl_can_modify);
?>
>
                <?php 
\Utility\HtmlHelper::EchoOptions($empArray, is_array($tpl_details_values) ? $tpl_details_values['employee'] : null);
?>
            </select>
        </div>
        <div class="details-form-input">
            <label for="df-submitted">Submitted:</label>
            <input type="text" name="submitted" id="df-submitted" value="<?php 
\Utility\HtmlHelper::EchoIfPresent($tpl_details_values, 'submitted');
?>
" readonly>
        </div>
        <div class="details-form-input"<?php 
hideIfEmpty($tpl_is_chain);
?>
>
            <label class="checkbox-label" style="width:inherit;">
            <input type="checkbox" onchange="setApplyChainProxy();" name="apply_chain" id="df-apply_chain"<?php 
checkedIfTrue(\Utility\HtmlHelper::ValueOrFalse($tpl_details_values, 'apply_chain_proxy') == 1);
readonlyIfFalse($tpl_can_modify);
?>
> Apply to all occurencies?
            </label>
            <input type="hidden" name="apply_chain_proxy" id="df-apply_chain_proxy" value="<?php