123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249 |
- <div id="smad-header-section" class="container-fluid">
- <div class="row">
- <div class="col-xs-12 col-sm-2 col-md-2 col-lg-1 brand-logo">
- <a href="./" title=""><img src="<?= $this->asset("assets/images/logo-bocian.png"); ?>" alt="Bocian" /></a>
- </div>
- <div class="col-xs-12 col-sm-10 col-md-10 col-lg-11">
- <div class="smad-top-first">
- <ul>
- <li><div class="smad-header-title">zalogowany jako:</div></li>
- <li><div class="smad-desc">
- <div class="btn-group">
- <button id="ProcesMenuLoginDropdownLink" type="button" class="btn btn-link dropdown-toggle" data-toggle="dropdown" aria-expanded="false"><?php echo User::getFullName(); ?> <span class="caret"></span></button>
- <ul class="dropdown-menu pull-right smad-top-drop-down-menu" role="menu">
- <li><a href="/webcal" target="_blank"><i class="glyphicon glyphicon-calendar"></i> Kalendarz</a></li>
- <li>
- <a href="/webmail">
- <form action="https://<?= V::get('HTTP_HOST', '', $_SERVER); ?>/webmail/loginFromSE.php" method="post" target="_blank">
- <input type="hidden" name="_timezone" value="Europe/Berlin">
- <input type="hidden" name="_token" value="">
- <input type="hidden" name="_action" value="login">
- <input type="hidden" name="_task" value="login">
- <input type="hidden" name="_url" value="">
- <input type="hidden" name="_user" value="diradmin">
- <input type="hidden" name="_pass" value="CP6uSYikF/GWFeRPKFHYsA==">
- <input type="hidden" name="EMAIL_IMAP_IMPORT_USERNAME" value="">
- <input type="hidden" name="EMAIL_IMAP_IMPORT_HOST" value="">
- <input type="hidden" name="EMAIL_IMAP_IMPORT_PASSWD_HASH" value="">
- <input type="hidden" name="loginFromSE" value="1">
- <!-- <input type="submit" class="btn" value="P"> -->
- <button type="submit" class="btn btn-link" style="width:100%;padding:0;text-align:left;color:#333;"><i class="glyphicon glyphicon-envelope"></i> Poczta</button>
- </form>
- </a>
- </li>
- <li><a href="/changepassword" target="_blank"><i class="glyphicon glyphicon-lock"></i> Zmień hasło</a></li>
- <li><a href="/profilemanager" target="_blank"><i class="glyphicon glyphicon-user"></i> Apple Profile Manager</a></li>
- <li class="divider"></li>
- <li><a href="procesy5.php?task=USER" title="diradmin"><i class="glyphicon glyphicon-user"></i> Profil</a></li>
- <li><a href="<?php echo Request::getPathUri(); ?>index.php?_route=UrlAction_Calendar"><i class="glyphicon glyphicon-calendar"></i> Grafik pracy</a></li>
- <li><a href="<?php echo Request::getPathUri(); ?>index.php?_route=UserMsgs" title="Wiadomości systemowe"><i class="glyphicon glyphicon-envelope"></i> Wiadomości</a></li>
- <li><a href="<?php echo Request::getPathUri(); ?>index.php?_route=Notify" title="Powiadomienia"><i class="glyphicon glyphicon-bell"></i> Powiadomienia</a></li>
- <li><a href="<?php echo Request::getPathUri(); ?>index.php?_route=Users&_task=reloadPerms" title="Przeładuj uprawnienia"><i class="glyphicon glyphicon-refresh"></i> Przeładuj uprawnienia</a></li>
- <!--
- <?php if(0) : ?>
- <li class="divider"></li>
- <li><a href="<?php echo Request::getPathUri(); ?>index.php?_route=Status" title="Status systemu"><i class="glyphicon glyphicon-cog"></i> Status systemu</a></li>
- <li><p class="text-muted" style="padding:3px 20px;"><nobr>Pokaż testy pracownika:</nobr></p>
- <form action="<?php echo Request::getPathUri(); ?>index.php" method="POST">
- <input type="hidden" name="FUNCTION_INIT" value="MENU_SELECT_PROCES">
- <input type="hidden" name="_action" value="showMyTests">
- <div class="typepsecial"><select id="ts-_user_id" placeholder="Szukaj..." name="_user_id" tabindex="-1" class="selectized" style="display: none;"><option value="" selected="selected"></option></select><div class="selectize-control single"><div class="selectize-input items not-full"><input type="text" autocomplete="off" tabindex="" placeholder="Szukaj..." style="width: 67px; opacity: 1; position: relative; left: 0px;"></div><div class="selectize-dropdown single" style="display: none;"><div class="selectize-dropdown-content"></div></div></div></div><script>
- jQuery(document).ready(function(){
- var fldNode=jQuery('#_user_id'), tsNode=jQuery('#ts-_user_id');
- if (!fldNode && !tsNode) {
- return;
- }
- fldNode.attr('name', '');
- fldNode.hide();
- if (fldNode.parent().hasClass('show-last-value')) {
- fldNode.parent().hide();
- }
- tsNode.attr('name', '_user_id');
- tsNode.attr('tabindex', fldNode.attr('tabindex'));
- tsNode.selectize({
- theme: 'typespecial',
- valueField: 'id',
- labelField: 'id',
- searchField: 'name',
- sortField: 'name',
- create: false,
- delimiter: ';',
- dataAttr: 'typespecial',
- preload: false,
- options: null,
- render: {
- item: function(item, escape) {
- //console.log('item', item);
- //var name = formatName(item);
- return '<div>' +
- '<span class="name">' + escape(item.name || item.id) + '</span>' +
- '</div>';
- },
- option: function(item, escape) {
- //console.log('--- render.option item(',item,') this:',this);
- return '<div>' +
- '<span class="title">' +
- escape(item.name || item.id) +
- '</span>' +
- '</div>';
- }
- },
- onItemAdd: function(value, item) {// Invoked when an item is selected.
- var curSel = this.options[value] || null, fieldExport;
- //console.log('--- onItemAdd val(',value,'/',item.data('name'),'/',item,') this:curSel:',curSel);
- if (curSel && curSel.exports) {
- for (var i in curSel.exports) {
- fieldExport = jQuery('#ts-f' + i);
- if (fieldExport.length) {
- //console.log('--- onItemAdd fieldExport.selectize(',fieldExport.selectize,')', fieldExport);
- if (fieldExport.get(0).selectize) {
- fieldExport.get(0).selectize.addOption({id:curSel.exports[i], name:curSel.exports[i]});
- fieldExport.get(0).selectize.setValue(curSel.exports[i]);
- } else {
- //jQuery('#f' + i).val(curSel.exports[i]);
- }
- } else {
- //console.log('--- onItemAdd jQuery(#f' + i + ').val(', curSel.exports[i], '): fieldExport.is(input:',fieldExport.is('input'),'/select:',fieldExport.is('select'),')', fieldExport);
- fieldExport = jQuery('#f' + i);
- if (fieldExport.is('input')) {
- jQuery('#f' + i).val(curSel.exports[i]);
- } else if (fieldExport.is('select')) {
- //TODO: add option and select //jQuery('#f' + i).val(curSel.exports[i]);
- }
- }
- }
- }
- },
- score: function(search) {
- var score = this.getScoreFunction(search);
- return function(item) {
- //console.log('score:item:', item, ', score:', score(item));
- if (search && search == item.id) {
- return 1;
- } else {
- return score(item);// score(item) * (1 + Math.min(item.watchers / 100, 1));
- }
- };
- },
- load: function(query, callback) {
- if (!query.length) return callback();
- $.ajax({
- url: 'index.php?FUNCTION_INIT=PROCES_MENU&HEADER_NOT_INIT=YES&_task=TYPESPECIAL&fld=_user_id',
- data: 'q=' + encodeURIComponent(query),
- type: 'POST',
- error: function() {
- callback();
- },
- success: function(res) {
- for (var i in res) {
- if (!res[i].name || res[i].id != res[i].name) {
- res[i].name = res[i].id + ': ' + res[i].name;
- }
- }
- callback(res);
- }
- });
- }
- });
- });
- </script><input class="btn btn-xs btn-warning" type="submit" value="Wybierz">
- <?php endif; ?>
- -->
- <script>
- jQuery(document).ready(function() {
- jQuery('#ProcesMenuLoginDropdownLink')
- .next('.dropdown-menu')
- .find('.selectize-input')
- .on('click', function(e) {
- return false;
- });
- jQuery('#ProcesMenuLoginDropdownLink').on('click', function(e) {
- setTimeout(function(){
- jQuery('#ts-_user_id')
- .next('.selectize-control')
- .find('input:first')
- .focus();
- }, 200);
- });
- });
- </script>
- </form>
- </li>
- <li class="divider"></li>
- <li><a href="<?php echo Request::getPathUri(); ?>index.php?LOGIN=LOGOUT"><i class="glyphicon glyphicon-off"></i> Wyloguj</a></li>
- </ul>
- </div>
- </div></li>
- <li> <span class="smad-line-grey">|</span> <a href="<?php echo Request::getPathUri(); ?>index.php?LOGIN=LOGOUT" title="Wyloguj" class="smad-logout"><img src="<?= $this->asset("assets/images/logout.png"); ?>" alt="Wyloguj" /> Wyloguj</a></li>
- </ul>
- </div>
- <div class="smad-top-second">
- <ul>
- <li><div class="smad-header-title">koniec sesji za:</div></li>
- <li><div class="smad-desc"><code id="session-timer" style="padding:2px 5px;font-weight:normal;color:#000;" title="Czas sesji">52:40</code></div></li>
- </ul>
- </div>
- </div>
- </div>
- </div>
- <!-- end:top -->
- <!-- start:menu -->
- <div id="smad-menu-main" class="container-fluid">
- <div>
- <div>
- <div id="smad-menu-section">
- <div class="col-md-6 padding-lr-0">
- <div class="menu-items">
- <div class="smad-heder-title menu-item"><span class="smad-line-red">|</span> RAPORTY</div>
- <div class="menu-item">
- <ul>
- <li><a href="<?php echo Request::getPathUri(); ?>index.php?_route=ViewTableAjax&namespace=default_db/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA" title="zobacz raporty" class="btn btn-success btn-xs">zobacz raporty</a></li>
- <li><a href="<?php echo Request::getPathUri(); ?>index.php?_route=ViewTableAjax&namespace=default_db/BI_audit_operational_raport_note/BI_audit_operational_raport_note" title="Baza zgłoszeń operacyjnych i notatek" class="btn btn-success btn-xs">Operac. Baza zgł.</a></li>
- <li><a href="<?php echo Request::getPathUri(); ?>index.php?_route=Menu" title="Menu silnika procesy5" class="btn btn-success btn-xs">Menu</a></li>
- </ul>
- </div>
- <br><div class="smad-heder-title menu-item" style="vertical-align:top"><span class="smad-line-red">|</span> OSTATNI RAPORT:</div>
- <div class="menu-item" id="last-raport-state"></div>
- </div>
- </div>
- <div class="col-md-6 padding-lr-0">
- <div class="menu-items">
- <div class="menu-item smad-heder-title"><span class="smad-line-red">|</span> BAZY DANYCH</div>
- <div class="menu-item">
- <ul style="padding:0">
- <li><a href="<?php echo Request::getPathUri(); ?>index.php?_route=ViewTableAjax&namespace=default_db/BI_audit_KRS/BI_audit_KRS" title="KRS - Firmy" class="btn btn-success btn-xs">KRS</a></li>
- <li><a href="<?php echo Request::getPathUri(); ?>index.php?_route=ViewTableAjax&namespace=default_db/BI_audit_KRS_person/BI_audit_KRS_person" title="KRS - Osoby" class="btn btn-success btn-xs">KRS/p</a></li>
- <li><a href="<?php echo Request::getPathUri(); ?>index.php?_route=ViewTableAjax&namespace=default_db/BI_audit_MSIG/BI_audit_MSIG" title="MSIG - Firmy" class="btn btn-success btn-xs">MSIG</a></li>
- <li><a href="<?php echo Request::getPathUri(); ?>index.php?_route=ViewTableAjax&namespace=default_db/BI_audit_MSIG_person/BI_audit_MSIG_person" title="KRS - Osoby" class="btn btn-success btn-xs">MSIG/p</a></li>
- <li><a href="<?php echo Request::getPathUri(); ?>index.php?_route=ViewTableAjax&namespace=default_db/BI_audit_taxpayer/BI_audit_taxpayer" title="VAT - Aktywni płatnicy" class="btn btn-success btn-xs">VATp</a></li>
- <li><a href="<?php echo Request::getPathUri(); ?>index.php?_route=ViewTableAjax&namespace=default_db/BI_audit_CEIDG/BI_audit_CEIDG" title="CIDG" class="btn btn-success btn-xs">CEIDG</a></li>
- <li><a href="<?php echo Request::getPathUri(); ?>index.php?_route=ViewTableAjax&namespace=default_db/BI_audit_ENERGA_RUM_UMOWY/BI_audit_ENERGA_RUM_UMOWY" title="RUM Umowy" class="btn btn-success btn-xs">RUM/u</a></li>
- <li><a href="<?php echo Request::getPathUri(); ?>index.php?_route=ViewTableAjax&namespace=default_db/BI_audit_ENERGA_RUM_KONTRAHENCI/BI_audit_ENERGA_RUM_KONTRAHENCI" title="RUM Kontrahenci" class="btn btn-success btn-xs">RUM/k</a></li>
- <li><a href="<?php echo Request::getPathUri(); ?>index.php?_route=ViewTableAjax&namespace=default_db/BI_audit_ENERGA_FAKTURY/BI_audit_ENERGA_FAKTURY" title="Faktury - do imoportowania" class="btn btn-success btn-xs">Faktury</a></li>
- <li><a href="<?php echo Request::getPathUri(); ?>index.php?_route=UrlAction_Bocian#PRACOWNICY" title="Pracownicy" class="btn btn-success btn-xs">Pracownicy</a></li>
- <li><a href="<?php echo Request::getPathUri(); ?>index.php?_route=UrlAction_Bocian#KONTRAHENCI" title="Kontrahenci" class="btn btn-success btn-xs">Kontrahenci</a></li>
- <!--<li><a href="#" title="KSIĘGOWOŚĆ" class="btn btn-success">KSIĘGOWOŚĆ</a></li> -->
- </ul>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- end:menu -->
|