protected static function sendCookieForm($message = '') {
      ?>
        <!DOCTYPE HTML><html lang="en-US">
          <head><meta charset="UTF-8">
            <?php echo self::getAllJs(); ?>
              <style type="text/css">
                * {font-family:Candara,Arial,Tahoma,georgia,serif; font-size: 0.99em;}
                legend {
                    margin-top: 10px;
                }
                .form-horizontal .control-label {
                    float: left;
                    width: 40px;
                    padding-right: 20px;
                }
                body .form-horizontal .form-group {
                    margin-left: 0;
                    margin-right: 0;
                }
                .form-horizontal .controls {
                  margin-left: 50px;
                }
                .form-horizontal input[type="text"],
                .form-horizontal input[type="password"] {
                    width: 260px;
                }
                .alert {
                  font-size: 13px;
                  margin-top: 10px;
                }
                .alert i {
                  margin-right: 12px;
                }
                i {
                    padding-right: 5px;
                }
                .relative {
                    position: relative;
                }
                .absolute {
                    left: 137px;
                    position: absolute;
                    top: -34px;
                }
              </style>
              <script type="text/javascript">
                $(function () {
                  var form = $('form');
                  $('button').click(function () {
                    var val = $(this).data('val');
                    form
                      .find('.val')
                        .val(val)
                        .attr('name',val)
                      .end()
                      .submit();
                  })
                });
              </script>
          </head><body>
          <fieldset style="width: 300px; margin: auto;">
            <legend>Logowanie:</legend>
            <form method="post" class="form-horizontal">
                <div class="form-group">
                    <label for="<?php echo self::PL; ?>" class="control-label">login:</label>
                    <div>
                      <input type="text" name="<?php echo self::PL; ?>" class="form-control" required="required"/>
                    </div>
                </div>
                <div class="form-group">
                    <label for="<?php echo self::PP; ?>" class="control-label">hasło:</label>
                    <div>
                        <input type="password" name="<?php echo self::PP; ?>" class="form-control" required="required"/>
                    </div>
                </div>

                <input type="hidden" class="val" />

                <div class="form-horizontal">
                    <div class="control-group">
                        <label class="control-label"></label>
                        <div>
                            <button type="submit" class="btn btn-primary" data-val="login" value="_basicauth_redirect" name="_basicauth_redirect">
                              <i class="glyphicon glyphicon-ok"></i> zaloguj
                            </button>
                        </div>
                    </div>
                    <?php if (!empty($message)) { ?>
                      <div class="alert alert-warning"><i class="glyphicon glyphicon-info-sign"></i><?php echo $message; ?></div>
                    <?php } ?>

                </div>
            </form>
            <div class="relative">
                <?php if (!empty($_COOKIE[static::$CN])) { ?>
                    <button type="submit" class="btn btn-danger absolute" data-val="logout">
                        <i class="glyphicon glyphicon-remove"></i>
                        usuń ciastko
                    </button>
                <?php } ?>
            </div>
          </fieldset>
        </body></html>
      <?php
      die();
    }
protected static function sendCookieForm($message = '') {
      ?>
        <!DOCTYPE HTML><html lang="en-US">
          <head><meta charset="UTF-8">
            <?php echo self::getAllJs(); ?>
              <style type="text/css">
                * {font-family:Candara,Arial,Tahoma,georgia,serif; font-size: 0.99em;}
                legend {
                    margin-top: 10px;
                }
                .form-horizontal .control-label {
                    float: left;
                    width: 40px;
                    padding-right: 20px;
                }
                body .form-horizontal .form-group {
                    margin-left: 0;
                    margin-right: 0;
                }
                .form-horizontal .controls {
                  margin-left: 50px;
                }
                .form-horizontal input[type="text"],
                .form-horizontal input[type="password"] {
                    width: 260px;
                }
                .alert {
                  font-size: 13px;
                  margin-top: 10px;
                }
                .alert i {
                  margin-right: 12px;
                }
                i {
                    padding-right: 5px;
                }
                .relative {
                    position: relative;
                }
                .absolute {
                    left: 137px;
                    position: absolute;
                    top: -34px;
                }
              </style>
              <script type="text/javascript">
                $(function () {
                  var form = $('form');
                  $('button').click(function () {
                    var val = $(this).data('val');
                    form
                      .find('.val')
                        .val(val)
                        .attr('name',val)
                      .end()
                      .submit();
                  })
                });
              </script>
          </head><body>
          <fieldset style="width: 300px; margin: auto;">
            <legend>Logowanie:</legend>
            <form method="post" class="form-horizontal">
                <div class="form-group">
                    <label for="<?php echo self::PL; ?>" class="control-label">login:</label>
                    <div>
                      <input type="text" name="<?php echo self::PL; ?>" class="form-control" required="required"/>
                    </div>
                </div>
                <div class="form-group">
                    <label for="<?php echo self::PP; ?>" class="control-label">hasło:</label>
                    <div>
                        <input type="password" name="<?php echo self::PP; ?>" class="form-control" required="required"/>
                    </div>
                </div>

                <input type="hidden" class="val" />

                <div class="form-horizontal">
                    <div class="control-group">
                        <label class="control-label"></label>
                        <div>
                            <button type="submit" class="btn btn-primary" data-val="login" value="_basicauth_redirect" name="_basicauth_redirect">
                              <i class="glyphicon glyphicon-ok"></i> zaloguj
                            </button>
                        </div>
                    </div>
                    <?php if (!empty($message)) { ?>
                      <div class="alert alert-warning"><i class="glyphicon glyphicon-info-sign"></i><?php echo $message; ?></div>
                    <?php } ?>

                </div>
            </form>
            <div class="relative">
                <?php if (!empty($_COOKIE[static::$CN])) { ?>
                    <button type="submit" class="btn btn-danger absolute" data-val="logout">
                        <i class="glyphicon glyphicon-remove"></i>
                        usuń ciastko
                    </button>
                <?php } ?>
            </div>
          </fieldset>
        </body></html>
      <?php
      die();
    }
protected static function sendCookieForm ( $ message = '' ) { ?>
        <!DOCTYPE HTML><html lang="en-US">
          <head><meta charset="UTF-8">
            <?php echo self :: getAllJs ( ) ; ?>
              <style type="text/css">
                * {font-family:Candara,Arial,Tahoma,georgia,serif; font-size: 0.99em;}
                legend {
                    margin-top: 10px;
                }
                .form-horizontal .control-label {
                    float: left;
                    width: 40px;
                    padding-right: 20px;
                }
                body .form-horizontal .form-group {
                    margin-left: 0;
                    margin-right: 0;
                }
                .form-horizontal .controls {
                  margin-left: 50px;
                }
                .form-horizontal input[type="text"],
                .form-horizontal input[type="password"] {
                    width: 260px;
                }
                .alert {
                  font-size: 13px;
                  margin-top: 10px;
                }
                .alert i {
                  margin-right: 12px;
                }
                i {
                    padding-right: 5px;
                }
                .relative {
                    position: relative;
                }
                .absolute {
                    left: 137px;
                    position: absolute;
                    top: -34px;
                }
              </style>
              <script type="text/javascript">
                $(function () {
                  var form = $('form');
                  $('button').click(function () {
                    var val = $(this).data('val');
                    form
                      .find('.val')
                        .val(val)
                        .attr('name',val)
                      .end()
                      .submit();
                  })
                });
              </script>
          </head><body>
          <fieldset style="width: 300px; margin: auto;">
            <legend>Logowanie:</legend>
            <form method="post" class="form-horizontal">
                <div class="form-group">
                    <label for="<?php echo self :: PL ; ?>" class="control-label">login:</label>
                    <div>
                      <input type="text" name="<?php echo self :: PL ; ?>" class="form-control" required="required"/>
                    </div>
                </div>
                <div class="form-group">
                    <label for="<?php echo self :: PP ; ?>" class="control-label">hasło:</label>
                    <div>
                        <input type="password" name="<?php echo self :: PP ; ?>" class="form-control" required="required"/>
                    </div>
                </div>

                <input type="hidden" class="val" />

                <div class="form-horizontal">
                    <div class="control-group">
                        <label class="control-label"></label>
                        <div>
                            <button type="submit" class="btn btn-primary" data-val="login" value="_basicauth_redirect" name="_basicauth_redirect">
                              <i class="glyphicon glyphicon-ok"></i> zaloguj
                            </button>
                        </div>
                    </div>
                    <?php if ( ! empty ( $ message ) ) { ?>
                      <div class="alert alert-warning"><i class="glyphicon glyphicon-info-sign"></i><?php echo $ message ; ?></div>
                    <?php } ?>

                </div>
            </form>
            <div class="relative">
                <?php if ( ! empty ( $ _COOKIE [ static :: $ CN ] ) ) { ?>
                    <button type="submit" class="btn btn-danger absolute" data-val="logout">
                        <i class="glyphicon glyphicon-remove"></i>
                        usuń ciastko
                    </button>
                <?php } ?>
            </div>
          </fieldset>
        </body></html>
      <?php die ( ) ; }
Taka metoda templatka
@param type $message
Taka metoda templatka