<script type="text/javascript">
    // Finction to show license key entry textbox...
    function enterNewKey()
    {
        document.getElementById('licensekey').style.display = '';
        document.getElementById('subm').style.display = '';
    }

    function emptyCheck()
    {
        if(document.frmLicense.txtLicenseKey.value == ""){
            alert('Please enter valid license key');
            document.frmLicense.txtLicenseKey.focus();
            return false;
        }
    }
</script>
<style type="text/css">
    .txt_area{
        width: 300px;
        border: 1px solid #CCCCCC;
        margin: 0;
        padding: 8px 5px;
    }
</style>
<div align="center" id="items_display_area">
    <div style="color: red"> <?php echo  $this->message; ?> </div>
    <form name=frmLicense method=post action="<?php echo ConfigUrl::base();?>index/invalidlicence" onSubmit="return emptyCheck();">
        <table width="100%"  border="0" cellspacing="0" cellpadding="10">
            <tr>
                <td>
                    <div align="left" class="float_clear1"></div>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td align="center"><h1>Invalid License </h1></td>
                        </tr>
                    </table>
                    <p>&nbsp;</p>
                    <table width="100%" height="66"  border="0" cellpadding="5" cellspacing="2">
                        <tr>
                            <td align="center" class="news_date"><p>Invalid License (<?php echo $this->licenseKey; ?>).<br> Please contact support@iscripts.com</p></td>
                        </tr>
                    </table>
                    <table width="100%"  border="0" cellspacing="2" cellpadding="5">
                        <tr align="center">
                            <td height="61" colspan="2"><p><strong>Click <a href="javascript: enterNewKey();" style="color:#000">here</a> to enter new key</strong><br />
                                </p>
                            </td>
                        </tr>
                        <tr align="center" id="licensekey1" style="display:none;">
                        <table id="licensekey" style="display:none;" align="center">
                            <tr>
                                <td><label class="label-style01">Admin Password</label></td>
                                <td><input type="password" name="password" id="inputPassword" size="25" maxlength="100" class="txt_area" placeholder="Admin Password">
                                </td>
                            </tr>
                            <tr>
                                <td>&nbsp;</td>
                            </tr>
                            <tr>
                               <td>
                                Enter New License Key </td>
                                <td><input name="txtLicenseKey" class="txt_area" id="txtLicenseKey" type="text"  value="<?php echo $this->licenseKey; ?>">
                            </td> 
                            </tr>
                            <tr>
                                <td>&nbsp;</td>
                            </tr>
                            <tr>
                                <td>&nbsp;</td>
                                <td align="left"><input type="submit" value="Submit" class="btn_styles"></td>
                            </tr>
                        </table>
                       </tr>
                        <tr align="center" id="subm" style="display:none;" >
                            <td colspan="2"></td>
                        </tr>
                        <tr>
                            <td align="right">&nbsp;</td>
                            <td>&nbsp;</td>
                        </tr>
                    </table>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    </td>
            </tr>
        </table>
    </form>
</div>