
<table cellspacing="0" cellpadding="0" border="0" width="100%">
    <tr>
        <td width="5">&nbsp;</td>
        <td colspan="2"></td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <!-- this space is reserved for menus - dont use -->
        <td width="200" valign="top">
            <?php include_partial('leftmenu', array('empNumber' => $empNumber, 'form' => $form));?>
        </td>
        <td valign="top">
            <table cellspacing="0" cellpadding="0" border="0" width="90%">
                <tr>
                    <td valign="top" width="750">
                    <!-- this space is for contents -->
                        <div id="messagebar" class="<?php echo isset($messageType) ? "messageBalloon_{$messageType}" : ''; ?>" style="margin-left: 16px;width: 550px;">
                            <span style="font-weight: bold;"><?php echo isset($message) ? $message : ''; ?></span>
                        </div>
                        <div class="outerbox" id="outerbox">
                        <div class="mainHeading"><h2><?php echo __('Tax Exemptions'); ?></h2></div>
                        <div>
                            <form id="frmEmpTaxExemptions" method="post" action="<?php echo url_for('pim/viewUsTaxExemptions'); ?>">
                                <?php echo $form['_csrf_token']; ?>
                                <?php echo $form['empNumber']->render(); ?>
                                <br />
                                <span class="label"><?php echo __("Federal Income Tax") ?></span>
                                <div>
                                    <?php echo $form['federalStatus']->renderLabel(__("Status")); ?>
                                    <?php echo $form['federalStatus']->render(array("class" => "drpDown")); ?>
                                    <br class="clear" />
                                </div>
                                <div>
                                    <?php echo $form['federalExemptions']->renderLabel(__("Exemptions")); ?>
                                    <?php echo $form['federalExemptions']->render(array("class" => "txtBox", "maxlength" => 2, 'size' => 10)); ?>
                                    <br class="clear" />
                                    <br class="clear" />
                                    <br class="clear" />
                                </div>
                                <span class="label"><?php echo __("State Income Tax") ?></span>
                                <div>
                                    <?php echo $form['state']->renderLabel(__("State")); ?>
                                    <?php echo $form['state']->render(array("class" => "drpDown")); ?>
                                    <br class="clear" />
                                </div>
                                <div>
                                    <?php echo $form['stateStatus']->renderLabel(__("Status")); ?>
                                    <?php echo $form['stateStatus']->render(array("class" => "drpDown")); ?>
                                    <br class="clear" />
                                </div>
                                <div>
                                    <?php echo $form['stateExemptions']->renderLabel(__("Exemptions")); ?>
                                    <?php echo $form['stateExemptions']->render(array("class" => "txtBox", "maxlength" => 2, 'size' => 10)); ?>
                                    <br class="clear" />
                                    <br class="clear" />
                                    <br class="clear" />
                                </div>
                                <div>
                                    <?php echo $form['unempState']->renderLabel(__("Unemployment State")); ?>
                                    <?php echo $form['unempState']->render(array("class" => "drpDown")); ?>
                                    <br class="clear" />
                                </div>
                                <div>
                                    <?php echo $form['workState']->renderLabel(__("Work State")); ?>
                                    <?php echo $form['workState']->render(array("class" => "drpDown")); ?>
                                    <br class="clear" />
                                </div>
                                <?php if(!$essUserMode):?>
                                 <div class="formbuttons">
                                    <input type="button" class="savebutton" id="btnSave" value="<?php echo __("Edit"); ?>" tabindex="2" />
                                </div>
                                <?php else:?>
                                <br class="clear" />
                                <br class="clear" />
                                <?php endif;?>
                             </form>
                        </div>
                    </div>
                    <?php echo include_component('pim', 'customFields', array('empNumber'=>$empNumber, 'screen' => 'tax'));?>
                    <?php echo include_component('pim', 'attachments', array('empNumber'=>$empNumber, 'screen' => 'tax'));?>
                    </td>
                    <td valign="top" align="center">
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>


<link href="<?php echo public_path('../../themes/orange/css/ui-lightness/jquery-ui-1.7.2.custom.css')?>" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="<?php echo public_path('../../scripts/jquery/ui/ui.core.js')?>"></script>
<script type="text/javascript" src="<?php echo public_path('../../scripts/jquery/ui/ui.datepicker.js')?>"></script>
<?php echo stylesheet_tag('orangehrm.datepicker.css') ?>
<?php echo javascript_include_tag('orangehrm.datepicker.js')?>

<?php $browser = $_SERVER['HTTP_USER_AGENT']; ?>
    <?php if (strstr($browser, "MSIE 8.0")):?>
        <link href="<?php echo public_path('../../themes/orange/IE_style.css')?>" rel="stylesheet" type="text/css"/>
    <?php else:?>
        <?php echo stylesheet_tag('../orangehrmPimPlugin/css/viewUsTaxExemptionsSuccess'); ?>
    <?php endif;?>
<?php echo javascript_include_tag('../orangehrmPimPlugin/js/viewUsTaxExemptionsSuccess'); ?>

<script type="text/javascript">
    //<![CDATA[
    //we write javascript related stuff here, but if the logic gets lengthy should use a seperate js file
    var lang_edit = "<?php echo __("Edit"); ?>";
    var lang_save = "<?php echo __("Save"); ?>";
    var lang_negativeAmount = "<?php echo __("Should be a positive number"); ?>";
    var lang_tooLargeAmount = "<?php echo __("Should be less than %amount%", array("%amount%" => 99)); ?>";
    var enterANumber = "<?php echo __("Enter a number"); ?>";
    var fileModified = 0;
    //]]>
</script>