Ejemplo n.º 1
0
function login_form($messages, $xerte_toolkits_site)
{
    ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title><?php 
    echo $xerte_toolkits_site->site_title;
    ?>
</title>

    <link href="website_code/styles/frontpage.css" media="screen" type="text/css" rel="stylesheet" />

    <!--

    University of Nottingham Xerte Online Toolkits

    HTML to use to set up the login page
    The {{}} pairs are replaced in the page formatting functions in display library

    Version 1.0

    -->

</head>

<body>

<div class="topbar">
    <img src="<?php 
    echo $xerte_toolkits_site->site_logo;
    ?>
" style="margin-left:10px; float:left" />
    <img src="<?php 
    echo $xerte_toolkits_site->organisational_logo;
    ?>
" style="margin-right:10px; float:right" />
    <?php 
    display_language_selectionform("");
    ?>

</div>
<div class="mainbody">
    <div class="title">
        <p>
          <?php 
    echo $xerte_toolkits_site->welcome_message;
    ?>
        </p>
    </div>
    <div class="mainbody_holder">
        <div class="mainbody_div_2">

<?php 
    login_prompt($messages);
    ?>

            <div class="border"></div>
            <div class="news">
                <p class="news_title">
                  <?php 
    echo INDEX_HELP_TITLE;
    ?>
                </p>
                <p class="news_story">
                  <?php 
    echo INDEX_HELP_INTRODUCTION;
    ?>
                    <br/>
                    <br/><a href="<?php 
    echo $xerte_toolkits_site->demonstration_page;
    ?>
" target="new"><?php 
    echo INDEX_HELP_INTRO_LINK_TEXT;
    ?>
</a>
                </p>
            </div>
            <div class="border"></div>
            <div class="news">
              <?php 
    echo $xerte_toolkits_site->news_text;
    ?>
            </div>

        </div>
        <div class="mainbody_left">
            <div class="tutorials">
                <?php 
    echo $xerte_toolkits_site->tutorial_text;
    ?>
            </div>
        </div>
        <div class="mainbody_div">
            <p class="intro">
              <?php 
    echo $xerte_toolkits_site->site_text;
    ?>
            </p>
        </div>
    </div>
</div>
<div class="border">
</div>
<p class="copyright">
    <img src="website_code/images/lt_logo.gif" /><br/>
  <?php 
    echo $xerte_toolkits_site->copyright;
    ?>
</p>
</div>
</body>
</html>
<?php 
}
function login_form($messages, $xerte_toolkits_site)
{
    ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title><?php 
    echo $xerte_toolkits_site->site_title;
    ?>
</title>

    <link href="website_code/styles/xerte_buttons.css" media="screen" type="text/css" rel="stylesheet" />
    <link href="website_code/styles/frontpage.css" media="screen" type="text/css" rel="stylesheet" />
    <link rel="stylesheet" type="text/css" href="modules/xerte/parent_templates/Nottingham/common_html5/font-awesome-4.3.0/css/font-awesome.min.css">

    <!--

    HTML to use to set up the login page
    The {{}} pairs are replaced in the page formatting functions in display library

    Version 1.0

    -->
    <style>
        body {
            background:white;
        }
    </style>
</head>

<body>

<div class="topbar">
    <?php 
    if (file_exists($xerte_toolkits_site->root_file_path . "branding/logo_right.png")) {
        ?>
        <div
            style="width:50%; height:100%; float:right; position:relative; background-image:url(<?php 
        echo "branding/logo_right.png";
        ?>
); background-repeat:no-repeat; background-position:right; margin-right:10px; float:right">
        </div>
    <?php 
    } else {
        ?>
        <div
            style="width:50%; height:100%; float:right; position:relative; background-image:url(website_code/images/apereoLogo.png); background-repeat:no-repeat; background-position:right; margin-right:10px; float:right">
        </div>
    <?php 
    }
    if (file_exists($xerte_toolkits_site->root_file_path . "branding/logo_left.png")) {
        ?>
        <img src="branding/logo_left.png" style="margin-left:10px; float:left"/>
    <?php 
    } else {
        ?>
        <img src="website_code/images/logo.png" style="margin-left:10px; float:left"/>
    <?php 
    }
    ?>
</div>

<div class="mainbody">
    <div class="title_holder">
        <div class="title_welcome">
            <?php 
    echo $xerte_toolkits_site->welcome_message;
    ?>
        </div>
        <div class="mainbody_holder">
            <div style="margin:0 7px 4px 0"><?php 
    display_language_selectionform("");
    ?>
</div>
            <form method="post" enctype="application/x-www-form-urlencoded" >
                <p style="margin:4px"><?php 
    echo INDEX_USERNAME;
    ?>
:
                <input class="xerte_input_box" type="text" size="20" maxlength="100" name="login" id="login_box"/></p>
                <p style="margin:4px"><?php 
    echo INDEX_PASSWORD;
    ?>
:
                <input class="xerte_input_box" type="password" size="20" maxlength="100" name="password" /></p>
                <button type="submit" class="xerte_button_c" style="margin:0 3px 0 0"><i class="fa fa-sign-in"></i> <?php 
    echo INDEX_BUTTON_LOGIN;
    ?>
</button>
            </form>
            <script>document.getElementById("login_box").focus();      </script>
        </div>
    </div>
    <div style="clear:both;"></div>
    <?php 
    if (strlen($xerte_toolkits_site->tutorial_text) > 0) {
        echo "<div class=\"tutorials\">";
        echo $xerte_toolkits_site->tutorial_text;
        echo "</div>";
    }
    ?>

</div>
<div class="bottompart">
	<p class="news_title">
		<?php 
    echo INDEX_HELP_TITLE;
    ?>
	</p>
	<p class="news_story">
		<?php 
    echo INDEX_HELP_INTRODUCTION;
    ?>
		<button type="button" class="xerte_button_c" onClick="window.open('<?php 
    echo $xerte_toolkits_site->demonstration_page;
    ?>
','_blank');"><?php 
    echo INDEX_HELP_INTRO_LINK_TEXT;
    ?>
</button>
	</p>
	<div class="border">
	</div>
	<p class="copyright">
		<?php 
    echo $xerte_toolkits_site->copyright;
    ?>
	</p><div class="footerlogos"><a href="http://opensource.org/" target="_blank" title="Open Source Initiative: http://opensource.org/"><img src="website_code/images/osiFooterLogo.png" border="0"></a> <a href="https://www.apereo.org" target="_blank" title="Apereo: https://www.apereo.org"><img src="website_code/images/apereoFooterLogo.png" border="0"></a> <a href="http://xerte.org.uk" target="_blank" title="Xerte: http://xerte.org.uk"><img src="website_code/images/xerteFooterLogo.png" border="0"></a></div>
</div>
</body>
</html>
<?php 
}
Ejemplo n.º 3
0
?>
        </div>

        <div class="buttonbar">
            <div class="file_mgt_area_top">
                

            </div>

           <div class="userbar">
                <?php 
//echo "&nbsp;&nbsp;&nbsp;" . INDEX_LOGGED_IN_AS . " " .;
echo $_SESSION['toolkits_firstname'] . " " . $_SESSION['toolkits_surname'];
?>
               <div style="display: inline-block"><?php 
display_language_selectionform("general");
?>
</div>
               <button title="<?php 
echo INDEX_BUTTON_LOGOUT;
?>
" type="button" class="xerte_button_c_no_width"
                        onclick="javascript:logout(<?php 
echo $xerte_toolkits_site->authentication_method == "Saml2" ? "true" : "false";
?>
)">
                    <i class="fa fa-sign-out xerte-icon"></i><?php 
echo INDEX_BUTTON_LOGOUT;
?>
                </button>
            </div>