<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en">

<head>
    <title><?php echo $this->pageTitle; ?></title>
    <link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon" />

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="" />
    <meta name="description" content="" />

    <link rel="stylesheet" href="../templates/admin/style/reset.css" type="text/css" media="screen, projection" />
    <link rel="stylesheet" href="../templates/admin/style/main.css" type="text/css" media="screen, projection" />
    <link rel="stylesheet" href="../templates/admin/style/form.css" type="text/css" media="screen, projection" />
    <link rel="stylesheet" type="text/css" href="../javascript/ext/css/ext-all.css" />
    <link rel="stylesheet" type="text/css" href="../javascript/ext/css/xtheme-gray.css" />

    <script type="text/javascript">
        function SetMouse(){
            document.getElementById('email').focus();
        }

        function hideshow(which,imgid){
            if (!document.getElementById)  return
            if (which.style.display=="none"){
                which.style.display="";
                if(document.images[imgid] != null){
                        document.images[imgid].src= relativePath + "images/collapse.gif";
                }
            }else{
                which.style.display="none";
                if(document.images[imgid] != null){
                        document.images[imgid].src= relativePath + "images/expand.gif";
                }
            }
        }
    </script>

    <style type="text/css">
        body{color:#444444;}
        #login {
                width: 450px;
                margin-left: auto;
                margin-right: auto;
                margin-top: 30px;
        }
        .notice {
            width: 440px;
        }
        #header {
            margin-bottom: 40px;
        }

        #header h1, h1 a {
                width: 115px;
                height: 125px;
                display: block;
        }
        #login h1 {
                position: absolute;
                margin-top: -20px;
                margin-right: -20px;
        }

        #h1 a {
                background: url(templates/admin/images/logo.png) no-repeat 0 0;
                text-indent: -9999px;
        }
        #login .table {
                margin:auto;
                width:270px;
        }
        #login .table .forgot {
                padding:5px 0 0 10px;
                font-size:11px;
        }
        #login label{
                min-width: 100px;
        }
    </style>
</head>

<body onload="SetMouse();">
    <div id="wrap">
        <div id="header">
            <h1 class="mainlogo"><a href="http://www.clientexec.com"></a></h1>
        </div>

        <div id="main" style="width:450px;">

            <?php if (count($this->gErrorMessages)>0) { ?>
                <div class="notice notice-red">
                    <div class="inside">
                        <?php foreach ($this->gErrorMessages as $message) {
                                echo $message."<br/>";
                        } ?>
                    </div>
                </div>
            <?php } ?>

            <?php if (count($this->gMessages)>0) { ?>
                <div class="notice notice-gray">
                    <div class="inside">
                        <?php foreach ($this->gMessages as $message) {
                                echo $message."<br/>";
                        } ?>
                    </div>
                </div>
            <?php } ?>

            <div id="login" class="container">
                <div class="heading">
                    <?php echo $this->lang("Staff Login");?>
                </div>
                <div class="inside">

                    <form action="index.php?fuse=admin&amp;action=Login" method="post">
                        <table border="0" cellspacing="10" cellpadding="0" class="table">
                            <tr>
                              <td align="right"><label><?php echo $this->lang("E-Mail");?>:</label></td>
                              <td><input id="email" style="padding:5px 7px;width:100%;height:18px;" type="text" class="x-form-text x-form-field" name="email"/></td>
                            </tr>
                            <tr>
                              <td align="right"><label><?php echo $this->lang("Password");?>:</label></td>
                              <td><input style="padding:5px 7px;width:100%;height:18px;" type="password" class="x-form-text x-form-field" name="passed_password"/></td>
                            </tr>
                            <tr>
                              <td colspan="2" align="center"><button type="submit" class="button"><?php echo $this->lang("Login");?></button></td>
                            </tr>
                            <tr>
                                <td class="forgot" colspan="2" align="center"><a href="javascript:hideshow(document.getElementById('forgotpassword'),'toggle0');"><?php echo $this->lang("Forgot Password");?></a></td>
                            </tr>
                          </table>
                    </form>
                </div>
                <div class="inside" id="forgotpassword" style="display:<?php echo $this->hideInfo;?>">
                    <form action="index.php?fuse=admin&amp;action=RequestPassword" method="post">
                        <p style="text-align:center;color:#444444;"><?php echo $this->lang("Submit E-Mail to retrieve your password");?></p>
                        <table border="0" cellspacing="10" cellpadding="0" class="table">
                          <tr>
                            <td align="right"><label><?php echo $this->lang("E-Mail");?>:</label></td>
                            <td><input type="text" style="padding:5px 7px;width:100%;height:18px;" class="x-form-text x-form-field" name="femail"/></td>
                          </tr>
                          <tr>
                            <td colspan="2" align="center"><button class="button"><?php echo $this->lang("Submit");?></button></td>
                          </tr>
                        </table>
                    </form>
                </div>
            </div>
        </div>

        <div id="copyright">
            Copyright &copy; 2002-<?php echo $this->currentYear;?> ClientExec LLC. All Rights Reserved.
        </div>
    </div>
</body>
</html>