<?php
    if (isset($tpl['status']))
    {
        $status = __('status', true);
        switch ($tpl['status'])
        {
            case 2:
                pjUtil::printNotice(NULL, $status[2]);
                break;
        }
    } else {

        $titles = __('error_titles', true);
        $bodies = __('error_bodies', true);
        ?>
        <form action="<?php echo $_SERVER['PHP_SELF']; ?>?controller=pjAdminClients&amp;action=pjActionResend&id=<?php echo $tpl['client']['id']; ?>" method="post" id="frmResendEmail" class="form pj-form" autocomplete="off">
            <p style="position: relative">
                <label class="title"><?php __('lblEmail'); ?></label>
                <input type="text" name="email" id="email" class="pj-form-field required email w200" disabled="disabled" value="<?php echo $tpl['client']['email']; ?>" />
            </p>

            <p style="position: relative">
                <label class="title"><?php __('booking_subject'); ?></label>
                <input type="text" name="subject" id="subject" class="pj-form-field required w200" required="required" value="<?php echo $tpl['registrationEmail']['client_subject_registration']; ?>" />
            </p>

            <p>
                <label class="title"><?php __('booking_message'); ?></label>
                <div style="margin-left: 150px; margin-top: -30px;">
                    <textarea name="message" id="message" class="pj-form-field required w400 mceEditor" rows="7" required="required"><?php echo $tpl['registrationEmail']['client_tokens_registration']; ?></textarea>
                </div>
            </p>

            <p>
                <label class="title">&nbsp;</label>
                <input type="submit" value="<?php __('btnSend', false, true); ?>" class="pj-button" />
                <input type="button" value="<?php __('btnCancel'); ?>" class="pj-button" onclick="window.location.href='<?php echo PJ_INSTALL_URL; ?>index.php?controller=pjAdminClients&action=pjActionIndex';" />
            </p>
        </form>

        <script type="text/javascript">
            var myLabel = myLabel || {};
        </script>
        <?php
    }
?>