Exemplo n.º 1
0
    <hr/>
    <div class="container">
        <?php 
if (isset($success)) {
    ?>
 <div class="row alert alert-success"><p class="text-center"><?php 
    htmlprint($success);
    ?>
</p></div> <?php 
}
?>
        <?php 
if (isset($passerror)) {
    ?>
 <div class="row alert alert-danger"><p class="text-center"><?php 
    htmlprint($passerror);
    ?>
</p></div> <?php 
}
?>
        <!--<img src="/voteonline/img/VO_1.png" alt="logo aplikacji" class="img-responsive center-block"> -->
        <div class="row">
            <div class="panel panel-primary">
                <?php 
if (isset($action)) {
    ?>
                <div class="panel-heading text-center"><?php 
    echo $action;
    ?>
</div>
                <div class="panel-body">
Exemplo n.º 2
0
 <div class="row">
     <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
         <h4><b>Użytkownicy Voteonline:</b></h4>
         
         <table class="table table-bordered table-responsive text-center">
             <tr class="info"><td><b>Login</b></td><td><strong>Adres email</strong></td><td><strong>Uprawnienia</strong></td></tr>
        <?php 
foreach ($users as $user) {
    ?>
             <form action="" method="post">
                 <tr><input type="hidden" name="login" value="<?php 
    echo $user['login'];
    ?>
"><td><?php 
    htmlprint($user['login']);
    ?>
</td><td><?php 
    htmlprint($user['email']);
    ?>
</td><td><?php 
    htmlprint($user['roleid']);
    ?>
</td><td><input type="submit" name="action" value="Usuń"></td></tr></form>
      <?php 
}
?>
             </table>
        </div>
        </div>
Exemplo n.º 3
0
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a href="/voteonline/"><img src="/voteonline/img/VO_1.png" alt="logo aplikacji" class="navlogo"></a>
            </div>
             <div class="collapse navbar-collapse">
                <ul class="nav navbar-nav">
                    <li><a href="/voteonline/voteadmin/">Panel Administratora Głosowania</a></li>
                    <li><a href="/voteonline/admin/">Panel Administratora</a></li>
                </ul>
                 <ul class="nav navbar-nav navbar-right">
                    <li><a href="" data-toggle="modal" data-target="#myModal"><?php 
if (!isset($_SESSION['loggedIn'])) {
    htmlprint('Zaloguj');
} else {
    htmlprint('Wyloguj(' . $_SESSION['userlogin'] . ')');
}
?>
</a></li>
                </ul>
            </div><!--.nav-collapse -->
        </div>
    </nav>
    <div class="container">
        <img src="/voteonline/img/VO_1.png" alt="logo aplikacji" class="img-responsive center-block"> 
        <div class="alert alert-danger" role="alert">
            <p class="text-center">
            <?php 
echo $error;
?>
            </p>
Exemplo n.º 4
0
                    <li><a href="" data-toggle="modal" data-target="#myModal"><?php 
htmlprint($loginstate);
?>
</a></li>
                </ul>
            </div><!--.nav-collapse -->
        </div>
    </nav>

    <div class="container">
        <img src="/voteonline/img/VO_1.png" alt="logo aplikacji" class="img-responsive center-block">
        <div class="alert alert-danger text-center" role="alert">
        <h1>Odmowa dostępu</h1>
        <p>
            <?php 
htmlprint($error);
?>
        </p>
        </div>
    </div>
    <div id="myModal" class="modal fade" role="dialog">
    <div class="modal-dialog modal-sm">
    <!-- Modal content-->
        <?php 
if (!isset($_SESSION['loggedIn'])) {
    include $_SERVER['DOCUMENT_ROOT'] . '/voteonline/templates/login.inc.html.php';
    ?>
        <?php 
} else {
    include $_SERVER['DOCUMENT_ROOT'] . '/voteonline/templates/logout.inc.html.php';
}
Exemplo n.º 5
0
    foreach ($roles as $role) {
        ?>
                        <label><hn title="Rola"><input type="radio" name="newroleid"
                            id="<?php 
        htmlprint($role['id']);
        ?>
" value="<?php 
        htmlprint($role['id']);
        ?>
" required <?php 
        if ($menageuserrole == $role['id']) {
            htmlprint('checked');
        }
        ?>
><?php 
        htmlprint($role['id']);
        ?>
</hn></label>
                        <?php 
    }
    ?>
                        <input type="submit" name="menage" value="Zapisz" class="btn btn-default">
                        </fieldset>
                        </form>
                    <?php 
}
?>
                    </div>
                </div>
            </div>
        </div>
Exemplo n.º 6
0
    ?>
        <div class="<?php 
    htmlprint($alert);
    ?>
"><p><?php 
    htmlprint($loginError);
    ?>
</p></div>
        <?php 
} else {
    $alert = '';
}
?>
        <form action="" method="post">
            <div>
                <label for="userlogin">Login:<input type="text" name="userlogin" id="userlogin" class="form-control <?php 
htmlprint($alert);
?>
"></label>
                <label for="password">Hasło: <input type="password" name="password" id="password" class="form-control <?php 
htmlprint($alert);
?>
"></label>
            </div>
            <div>
                <input type="hidden" name="action" value="login">
                <input type="submit" value="Zaloguj" class="btn btn-default ">
            </div>
        </form>  
    </div>
</div>
Exemplo n.º 7
0
        htmlprint($variant['id']);
        ?>
"
                    value="<?php 
        htmlprint($variant['id']);
        ?>
" required <?php 
        if (isset($_COOKIE[$votingid])) {
            echo 'disabled';
        }
        ?>
><label for="<?php 
        htmlprint($variant['id']);
        ?>
"><span></span><?php 
        htmlprint($variant['name']);
        ?>
</label></div>
                <?php 
    }
} else {
    echo 'Do głosowania nie został jeszcze dodany żaden wariant';
}
?>
                <div>
                <?php 
if (isset($variants)) {
    ?>
<input type="submit" class="btn <?php 
    if (isset($_COOKIE[$votingid])) {
        echo 'btn-danger';
Exemplo n.º 8
0
    <script type="text/javascript">
      google.load("visualization", "1.1", {packages:["corechart"]});
      google.setOnLoadCallback(drawChart);
      function drawChart() {
        var data = google.visualization.arrayToDataTable([
          ['All Votes', 'Votes'],
        <?php 
if (isset($warianty)) {
    $i = 0;
    foreach ($warianty as $variant) {
        ?>
          ['<?php 
        htmlprint($variant['name']);
        ?>
', <?php 
        htmlprint($voteResults[$i]);
        $i++;
        ?>
],
        <?php 
    }
}
?>
        ]);

        var options = {
            is3D: true,
            width:500,
            height:400
        };