Beispiel #1
0
> 12
                <input type="radio" value="24" name="hour_mode"<?php 
checkedIfTrue($tpl_emp_edit['item']->getHourMode() == \Application\EmpItem::MODE_DAY_24);
?>
> 24
            </div>
        </div>
        <div class="employee-form-input">
            <label for="ef-first_day">First day of week</label>
            <div id="ef-first_day" style="display:inline-block">
                <input type="radio" value="0" name="first_day"<?php 
checkedIfTrue($tpl_emp_edit['item']->getFirstDay() == \Application\EmpItem::FIRST_DAY_SUNDAY);
?>
> Sunday
                <input type="radio" value="1" name="first_day"<?php 
checkedIfTrue($tpl_emp_edit['item']->getFirstDay() == \Application\EmpItem::FIRST_DAY_MONDAY);
?>
> Monday
            </div>
        </div>
        <div <?php 
hideIfEmpty(!$tpl_emp_edit['add_new']);
?>
>
            <hr>
            <div class="employee-form-input" <?php 
hideIfEmpty(!$tpl_emp_edit['edit_own']);
?>
>
                <label for="ef-drop_password"> </label>
                <input type="checkbox" onchange="setDropPasswordProxy();" value="1" name="drop_password" id="ef-drop_password"> drop password
Beispiel #2
0
            <label><input type="radio" name="recurring" value="2" <?php 
checkedIfTrue($recurringValue == 2);
?>
> yes</label>
        <br><br>
        6. If it recurring, specify weekly, bi-weekly, or monthly.<br>
            <label><input type="radio" name="recurring-period" value="1" <?php 
checkedIfTrue($recurringPeriodValue == 1);
?>
> 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>
Beispiel #3
0
            </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 
echo \Utility\HtmlHelper::ValueOrFalse($tpl_details_values, 'apply_chain_proxy') == 1 ? '1' : '0';
?>
">
        </div>

        <hr>
        <div <?php 
hideIfEmpty($tpl_can_modify);
?>
>