<!DOCTYPE html>
    <html>

    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="apple-mobile-web-app-capable" content="yes" />
        <title>Certificate</title>
        <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
        <link href="css/profile.css" rel="stylesheet" type="text/css" />

        <!-- <link rel="Shortcut Icon" type="image/x-icon" href="/images/Logo.png" /> -->
        <script>
            certificate = {}
            // certificate.shared = {}
            // certificate.contacts = {}
            // certificate.docs = {}
            certificate.v = {}
        </script>


        <script type="text/javascript" src="jsinclude/jquery-1.11.3.js"></script>
        <script type="text/javascript" src="jsinclude/jquery-ui.min.js"></script>

<!--
        <script type="text/javascript" src="jsinclude/modernizr.min.js"></script>
        <script type="text/javascript" src="jsinclude/jquery.md5.js"></script>
        <script type="text/javascript" src="jsinclude/jquery.cookie.js"></script>
        <script type="text/javascript" src="jsinclude/moment.min.js"></script>
        <script type="text/javascript" src="jsinclude/moment-timezone.js"></script>
-->

        <script type="text/javascript" src="js/transfer.js"></script>
    </head>

    <body>
            <div id="status"><span></span></div>
                <div id="header">
                    <img src="images/logo.jpg" id="logo" alt="" />
                    <br />
                    <br />
                    <br />

                    
                    <div id="menu" onClick=""></div>

                    <!-- <div id="logout" onclick="< ? echo urlLogout(); ? >">logout</div> -->
                    <div class="title">Gift Certificate Transfer</div>
                </div>


                <br />
                <br />
                <br />
                <div id="main" style="text-align: center;">
                    <form id="transfer" action="?" method="post">
                        <br />
                        <br />


                        <div class="complete" style="font-size: 200%;">
                            <?
                                include('_functions2.php');
                                $check = transferCheck($_POST['id']);
                                if (strlen($check) > 30) {
                                    echo 'You can only transfer once.';
                                } else {

                                    echo transferCertificate($_POST['id'],$_POST['first'],$_POST['last'],$_POST['email'],$_POST['from'],$_POST['message'],$_POST['justfrom']);                                  
                                }
                            ?>
                        </div>
                        <br />
                        <br />
                        <br />
                    </form>
                </div>

            </div>

    <br />
    <br />

    </body>

    </html>