Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
17 kB
3
Indexable
Never
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>
	
        PTRConfig

    
</title><link href="Content/chosen/chosen.css" rel="stylesheet" type="text/css"><link href="Content/Site.css" rel="stylesheet" type="text/css"><link rel="stylesheet" href="Content/font-awesome-4.3.0/css/font-awesome.min.css">
    <link href="/PtrWebConfig/Content/themes/current/jquery-ui.css" rel="stylesheet" type="text/css">
    <link href="Content/jquery/ui.jqgrid.css" rel="stylesheet" type="text/css"><link href="Content/superfish.css" rel="stylesheet" type="text/css">

    <script type="text/javascript" src="/PtrWebConfig/Scripts/jquery-1.6.4.min.js"></script>
    <script type="text/javascript" src="/PtrWebConfig/Scripts/jquery-ui-1.8.14.custom.min.js"></script>
    <script type="text/javascript" src="/PtrWebConfig/Scripts/i18n/jquery.ui.datepicker-en-GB.js"></script>
    <script type="text/javascript" src="/PtrWebConfig/Scripts/i18n/jquery.ui.datepicker-pl.js"></script>
    <script type="text/javascript" src="/PtrWebConfig/Scripts/jqgrid/i18n/grid.locale-pl.js"></script>
    <script type="text/javascript" src="/PtrWebConfig/Scripts/jqgrid/i18n/grid.locale-pl.js"></script>
    <script type="text/javascript" src="/PtrWebConfig/Scripts/jqgrid/jqGrid.min.js"></script>
    <script type="text/javascript" src="/PtrWebConfig/Scripts/jquery/jquery.maskedinput-1.3.min.js"></script>
    <script type="text/javascript" src="/PtrWebConfig/Scripts/jquery/jquery-ui-timepicker-addon.js"></script>
    <script type="text/javascript" src="/PtrWebConfig/Scripts/jquery/jquery.fileinput.min.js"></script>
    <script type="text/javascript" src="/PtrWebConfig/Scripts/superfish/hoverIntent.js"></script>
    <script type="text/javascript" src="/PtrWebConfig/Scripts/superfish/superfish.js"></script>
    <script type="text/javascript" src="/PtrWebConfig/Scripts/fg-button.js"></script>
    <script type="text/javascript" src="/PtrWebConfig/Scripts/parameter.js"></script>
    <script type="text/javascript" src="/PtrWebConfig/Scripts/main.js"></script>
    <script type="text/javascript" src="/PtrWebConfig/Scripts/jquery.form.js"></script>
    <script type="text/javascript" src="/PtrWebConfig/Scripts/jquery/jquery.multiSelect.js"></script>

    <script type="text/javascript" src="/PtrWebConfig/Scripts/chosen/chosen.jquery.js"></script>

    <script type="text/javascript" src="/PtrWebConfig/Scripts/extensions.js"></script>

    <script type="text/javascript">
        $(function () {
            setLocale('pl');
    });

        function SetLanguage(code) {
            if (code == "PL" || code == "pl") {
                $(".dropdown_language dt a span").html('PL<img class="flag" src="/PtrWebConfig/Content/images/pl.png" alt="" /><span class="value">PL</span>');
      }
      else {
          $(".dropdown_language dt a span").html('EN<img class="flag" src="/PtrWebConfig/Content/images/us.png" alt="" /><span class="value">EN</span>');
            }
        }

        function FormatXml(xml) {
            xml = xml.replace(/&lt;/g, '<').replace(/&gt;/g, '>');
            var formatted = '';
            var reg = /(>)(<)(\/*)/g;
            xml = xml.replace(reg, '$1\r\n$2$3');
            var pad = 0;
            jQuery.each(xml.split('\r\n'), function (index, node) {
                var indent = 0;
                if (node.match(/.+<\/\w[^>]*>$/)) {
                    indent = 0;
                } else if (node.match(/^<\/\w/)) {
                    if (pad != 0) {
                        pad -= 1;
                    }
                } else if (node.match(/^<\w([^>]*[^\/])?>.*$/)) {
                    indent = 1;
                } else {
                    indent = 0;
                }

                var padding = '';
                for (var i = 0; i < pad; i++) {
                    padding += '  ';
                }

                formatted += padding + node + '\r\n';
                pad += indent;
            });

            xml_escaped = formatted.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/ /g, '&nbsp;').replace(/\n/g, '<br />');

            return xml_escaped;
        }


        function UpdateLabels(val) {
            $.ajax({
                mtype: 'GET',
                url: '/PtrWebConfig/Home/UpdateActionLinkLabelData',
          data: { force: val },
          cache: false,
          success: function (response) {
              if (response && response.result) {
                  if ('#calendarsToCheck') {
                      $('#calendarsToCheck').text('Kalendarze' + response.calendars);
              }
              if ('#regionsToCheck') {
                  $('#regionsToCheck').text('Regiony' + response.regions);
              }
              if ('#groupsToCheck') {
                  $('#groupsToCheck').text('Grupy' + response.groups);
              }
              if ('#tasksToCheck') {
                  $('#tasksToCheck').text('Zadania' + response.tasks);
                  }
                  if ('#infodisplay') {
                      $('#infodisplay').text(response.infodisplay);
                  }
              }
          },
          error: function () {
              if ('#infodisplay') {
                  $('#infodisplay').text('');
              }
          }
      });
        }

        function ShowValidationErrors(data) {
            var valErr = $('.field-validation-error').toggleClass('field-validation-error field-validation-valid').html("");

            if (data === undefined) {
                return;
            }

            if (data.responseText) {
                if (data.responseText.startsWith('{')) {
                    var parsedObj = JSON.parse(data.responseText);

                    if (parsedObj.ValidationErrors) {
                        var validationErrors = parsedObj.ValidationErrors;

                        $('.field-validation-valid').each(function (index, el) {
                            var element = $(el);

                            validationErrors.forEach(function (err) {
                                if (err.Key === element[0].dataset.valmsgFor) {
                                    element.toggleClass('field-validation-valid field-validation-error').html(err.Value);
                                }
                            });

                        });
                    }
                }
            }
        }

        $(document).ready(function () {
            UpdateLabels(false);
            SetLanguage('pl');

        $(".dropdown_language dt a").click(function () {
            $(".dropdown_language dd ul").toggle();
        });

        $(".dropdown_language dd ul li a").click(function () {
            var text = $(this).html();
            $(".dropdown_language dt a span").html(text);
            $(".dropdown_language dd ul").hide();
            var lang = $("#selected_language").find("a span.value").html();
            $.ajax({
                mtype: 'SET',
                url: '/PtrWebConfig/Home/ChangeLanguage',
            cache: false,
            data: { language: lang },
            success: function (result) {
                window.location = '/PtrWebConfig/Home/Index'
            }
        });
      });

        $(document).bind('click', function (e) {
            var $clicked = $(e.target);
            if (!$clicked.parents().hasClass("dropdown_language"))
                $(".dropdown_language dd ul").hide();
        });
    });
    </script>
</head>
<body>
    <div class="page">
        <div id="header" class="ui-corner-all">
            <table id="headertable">
                <tbody><tr>
                    <td id="headertable_menu">
                        <div id="menucontainer">
                            


<ul class="sf-menu sf-js-enabled sf-shadow">
  
  <li class="ui-corner-top">
    <a href="#" class="ui-widget-header ui-corner-top sf-with-ul">Administracja<span class="sf-sub-indicator"> »</span></a>
    <ul style="display: none; visibility: hidden;">
      
          <li class="ui-corner-top ">
            <a class="ui-widget-header ui-corner-top " href="/PtrWebConfig/Administration/Converters">Konwertery</a>
          </li>
          <li class="ui-corner-top ">
            <a class="ui-widget-header ui-corner-top " href="/PtrWebConfig/Administration/Tags">Etykiety</a>
          </li>
      
          <li class="">
            <a class="ui-widget-header " href="/PtrWebConfig/Administration/Parameters">Parametry dodatkowe</a>
          </li>
      
            <li><a class="ui-widget-header" href="/PtrWebConfig/Administration/PasswordsPoliticy">Ustawienia haseł</a></li>
            <li><a class="ui-widget-header" href="/PtrWebConfig/Administration/Users">Użytkownicy</a></li>          
      
        <li class="ui-corner-bottom ">
          <a class="ui-widget-header ui-corner-bottom " href="/PtrWebConfig/Administration/PasswordChange">Zmiana hasła</a>
        </li>
       
            <li class="ui-corner-bottom ">
            <a class="ui-widget-header ui-corner-bottom " href="/PtrWebConfig/Administration/EncryptPassword">Zaszyfruj hasło</a>
            </li>
   
    </ul>
  </li>
  
  <li class="ui-corner-top">
    <a href="#" class="ui-widget-header ui-corner-top sf-with-ul">Konfiguracja<span class="sf-sub-indicator"> »</span></a>
    <ul style="display: none; visibility: hidden;">
      <li class="ui-corner-top">
        <a class="ui-widget-header ui-corner-top" href="/PtrWebConfig/Config/Calendar">Kalendarze</a>
      </li>
      <li>
        <a class="ui-widget-header" href="/PtrWebConfig/Config/Regions">Regiony</a></li>
      <li>
        <a class="ui-widget-header" href="/PtrWebConfig/Config/Groups">Grupy</a></li>
      <li class="ui-corner-bottom">
        <a class="ui-widget-header ui-corner-bottom" href="/PtrWebConfig/Config/Tasks">Zadania</a>
      </li>
    </ul>
  </li>
  
  <li class="ui-corner-top">
    <a href="#" class="ui-widget-header ui-corner-top sf-with-ul" onmouseover="UpdateLabels(false);">Zatwierdzanie<span class="sf-sub-indicator"> »</span></a>
    <ul style="display: none; visibility: hidden;">
      <li class="ui-corner-top">
        <a class="ui-widget-header ui-corner-top" href="/PtrWebConfig/Check/Calendars" id="calendarsToCheck">Kalendarze</a>
      </li>
      <li>
        <a class="ui-widget-header" href="/PtrWebConfig/Check/Regions" id="regionsToCheck">Regiony</a></li>
      <li>
        <a class="ui-widget-header" href="/PtrWebConfig/Check/Groups" id="groupsToCheck">Grupy</a></li>
      <li class="ui-corner-bottom">
        <a class="ui-widget-header ui-corner-bottom" href="/PtrWebConfig/Check/Tasks" id="tasksToCheck">Zadania</a>
      </li>
    </ul>
  </li>
  
</ul>


                        </div>
                    </td>
                    <td id="headertable_info">
                        



<h4 id="infodisplay"></h4>

                    </td>
                    <td id="headertable_appname">
                        <div id="appnamedisplay" style="text-align: center; max-width: 500px; font-size: large;">
                            <b>PTR3</b>
                        </div>
                    </td>
                    <td id="headertable_login">
                        <div id="logindisplay">
                            

<script type="text/javascript">
    var logOffTime = new Date(Date.now() + 20*60000);
    var showRefreshIcon = false;

    function timeToLogOf(){
        var timeDiff = Math.abs(logOffTime.getTime() - Date.now());
        
        var diffDays = Math.floor(timeDiff / 86400000); // days
        var diffHrs = Math.floor((timeDiff % 86400000) / 3600000); // hours
        var diffMins = Math.floor(((timeDiff % 86400000) % 3600000) / 60000); // minutes;
        var diffSec = Math.round((((timeDiff % 86400000) % 3600000) % 60000) / 1000); // seconds;

        if(diffSec >= 60){
            diffSec = 0;
            diffMins = diffMins + 1;
        }
        if (diffMins >= 60) {
            diffMins = 0;
            diffHrs = diffHrs + 1;
        }
        if (diffMins == 0 && diffHrs == 0) {
            showRefreshIcon = true;
        }

        diffSec = diffSec.toLocaleString('en-US', {minimumIntegerDigits: 2, useGrouping:false});
        diffMins = diffMins.toLocaleString('en-US', {minimumIntegerDigits: 2, useGrouping:false});
        diffHrs = diffHrs.toLocaleString('en-US', {minimumIntegerDigits: 2, useGrouping:false});

        if (diffHrs > 0) {
            return diffHrs + ':' + diffMins + ':' + diffSec;
        }else {
            return diffMins + ':' + diffSec;
        }
    }

    function DisplaySessionTimeout() {

        //pokaż czas do końca sesji
        document.getElementById("6_SessionEndCounter").innerText = ' (' + 
            timeToLogOf() + ')';
                                                                    
        if (logOffTime > Date.now()) {
            window.setTimeout("DisplaySessionTimeout()", 1000);     //wywołuj co sekundę
            if (showRefreshIcon){
                document.getElementById("6_SessionEndCounter").style.color = 'red'; //sesja się kończy
            }
        }
        else {
            //wyloguj po upływie sesji
            window.location = '/PtrWebConfig/Home/LogOff';
        }
    }

    $(function () {
        DisplaySessionTimeout();
    });

    refresh_session = function () {
        document.getElementById("6_SessionEndCounter").style.color = '#5c9ccc';
        showRefreshIcon = false;
        logOffTime = new Date(Date.now() + 20*60000);

        $.ajax({
              type: 'POST',
              url: '/PtrWebConfig/Home/KeepSession',
            data: {__RequestVerificationToken: $('[name= "__RequestVerificationToken"]').val() },
              success: function(e) {
              },
              error: function (e) {
              }
          });
    }
</script>

<form action="/PtrWebConfig/Home/LogOff" method="post"><span id="6_LogOnUser">Admin Admin</span>
  <span id="6_SessionEndCounter"> (16:31)</span>
<a href="#" title="..." id="refresh_session_button" class="fg-button ui-state-default fg-button-icon-solo ui-corner-all" onclick="refresh_session();"><span class="ui-icon ui-icon-refresh"></span>...</a>
  <input type="submit" value="Wyloguj" class="ui-button ui-widget ui-state-default ui-corner-all" role="button">
</form>
                        </div>
                    </td>
                    <td id="headertable_language_label">
                        <div id="language_info_label">
                            Język:
                        </div>
                    </td>
                    <td id="headertable_language">
                        <div id="dropdown_langugage_id">
                            <dl class="dropdown_language">
                                <dt id="selected_language"><a href="#"><span>PL<img class="flag" src="/PtrWebConfig/Content/images/pl.png" alt=""><span class="value">PL</span></span></a></dt>
                                <dd>
                                    <ul style="display: none;">
                                        <li><a href="#" id="lang_pl">PL<img class="flag" src="/PtrWebConfig/Content/images/pl.png" alt=""><span class="value">PL</span></a></li>
                                        <li><a href="#" id="lang_en">EN<img class="flag" src="/PtrWebConfig/Content/images/us.png" alt=""><span class="value">EN</span></a></li>
                                    </ul>
                                </dd>
                            </dl>
                        </div>
                    </td>
                </tr>
            </tbody></table>
        </div>
        <div id="main">
            <center>
        
      </center>
            
  <center>
    <div style="text-align: left; max-width: 700px; height: 100%; background-image: url('/PtrWebConfig/Content/images/ESOURCING_logo_jasne.jpg'); background-repeat: no-repeat; background-position: center">
      <h1>
        PTRConfig - Konfigurator platformy PTR wersja 3.0.73.12
      </h1>
      <br>
      <br>
      <h1>  
        <div id="appnamedisplay" style="text-align: left; max-width: 500px;">   
        PTR3
        </div>
      </h1>
      <br>
      <h3>
        Moduły platformy PTR:
      </h3>
      <ul>
        <li>
          <h3>
            PTRLoadBalancer
            wersja 3.1.9.17</h3>
        </li>
        <li>
          <h3>
            PTRRunTime
            wersja 3.1.9.17</h3>
        </li>
        <li>
          <h3>
            PTRMonitor
            wersja 3.1.9.17</h3>
        </li>
      </ul>
      <br>
      <br>
      <br>
      <h2>
        Powered by: eSourcing S.A.</h2>
    </div>
  </center>

        </div>
    </div>


</body></html>