Beispiel #1
0
if ($session->userlevel == LENDER_LEVEL) {
    $userid = $session->userid;
    $res = $database->isTranslator($userid);
    if ($res == 1) {
        $isvolunteer = 1;
    }
}
if ($isvolunteer == 1 || $session->userlevel == ADMIN_LEVEL) {
    $label = new label();
    $ref = 0;
    if (isset($_GET['ref'])) {
        $ref = $_GET['ref'];
    }
    if ($ref == 1) {
        $pages = $label->getAllPages();
        $langs = $label->getAllLanguages();
        ?>
		<div>
			  <div style="float:left"><h3 class="new_subhead"><div align='left' class='static'><h1>Label Translation</h1></div></h3></div>
			  <?php 
        if ($session->userlevel == ADMIN_LEVEL) {
            ?>
<div class="user_instructions">
				<a style='font-size:15px;' href="includes/instructions.php?p=<?php 
            echo $_GET['p'] . "&ref=" . $_GET['ref'];
            ?>
" rel='facebox'>Instructions</a>
			  </div><?php 
        }
        ?>
			  <div style="clear:both"></div>