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
><?php 
\Utility\HtmlHelper::EchoIfPresent($tpl_details_errors, 'time');
?>
</div>
        </div>
        <div class="details-form-input">
            <label for="df-notes">Notes:</label>
            <textarea id="df-notes" name="notes" wrap="soft" rows="3" cols="30" required<?php 
readonlyIfFalse($tpl_can_modify);
?>
><?php 
\Utility\HtmlHelper::EchoIfPresent($tpl_details_values, 'notes');
?>
</textarea>
            <div class="det-input-error-message" <?php 
\Utility\HtmlHelper::HideIfEmptyOrNull($tpl_details_errors, 'notes');
?>
><?php 
\Utility\HtmlHelper::EchoIfPresent($tpl_details_errors, 'notes');
?>
</div>
        </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);
?>