<commit_before><?
includelogic('accounting/accounting');
$accounting = new accounting();
$last_periode = $accounting->get_last_accountperiod_this_year(strftime('%F', time()));
if (is_null($last_periode)) $last_periode = $accounting->get_last_accountperiod_this_year(strftime('%F', strtotime('last year')));
if (isset($_REQUEST['periode'])) $_periode = $_REQUEST['periode'];
else $_periode = $last_periode;

require_once "record.inc";

print $_lib['sess']->doctype ?>

<head>
    <title>Empatix - Soap 1 List</title>
    <? includeinc('head') ?>
</head>

<body>

<?
includeinc('top');
includeinc('left');
print $_lib['message']->get();
?>

<form name="altinnsalary_search" action="<? print $_lib['sess']->dispatch ?>t=altinnsalary.salarylist" method="post">
  <p>
    Periode:
    <? print $_lib['form3']->AccountPeriod_menu3(array('name' => 'periode', 'value' => $_periode)); ?>
    <? print $_lib['form3']->submit(array('name'=>'action_show_salaries', 'value'=>'Vis l&oslash;nnslipper')); ?>
  </p>
</form>

<? if ($result_salary && $_lib['db']->db_numrows($result_salary)) { ?>
<form name="altinnsalary_send_report" action="<? print $_lib['sess']->dispatch ?>t=altinnsalary.list" method="post">
<table class="lodo_data">
<thead>
  <tr>
    <th colspan="13">L&oslash;nnsutbetalinger</th>
  </tr>
  <tr>
    <th class="sub">Velg</th>
    <th class="sub">Nr</th>
    <th class="sub">Dato</th>
    <th class="sub">Periode</th><commit_msg>Show periods which is in status open, or done if you have access level > 2<commit_after><?
includelogic('accounting/accounting');
$accounting = new accounting();
$last_periode = $accounting->get_last_accountperiod_this_year(strftime('%F', time()));
if (is_null($last_periode)) $last_periode = $accounting->get_last_accountperiod_this_year(strftime('%F', strtotime('last year')));
if (isset($_REQUEST['periode'])) $_periode = $_REQUEST['periode'];
else $_periode = $last_periode;

require_once "record.inc";

print $_lib['sess']->doctype ?>

<head>
    <title>Empatix - Soap 1 List</title>
    <? includeinc('head') ?>
</head>

<body>

<?
includeinc('top');
includeinc('left');
print $_lib['message']->get();
?>

<form name="altinnsalary_search" action="<? print $_lib['sess']->dispatch ?>t=altinnsalary.salarylist" method="post">
  <p>
    Periode:
    <? print $_lib['form3']->AccountPeriod_menu3(array('name' => 'periode', 'value' => $_periode, "access" => $_lib['sess']->get_person('AccessLevel'))); ?>
    <? print $_lib['form3']->submit(array('name'=>'action_show_salaries', 'value'=>'Vis l&oslash;nnslipper')); ?>
  </p>
</form>

<? if ($result_salary && $_lib['db']->db_numrows($result_salary)) { ?>
<form name="altinnsalary_send_report" action="<? print $_lib['sess']->dispatch ?>t=altinnsalary.list" method="post">
<table class="lodo_data">
<thead>
  <tr>
    <th colspan="13">L&oslash;nnsutbetalinger</th>
  </tr>
  <tr>
    <th class="sub">Velg</th>
    <th class="sub">Nr</th>
    <th class="sub">Dato</th>
    <th class="sub">Periode</th>
{'fraction_non_alphanumeric': 0.22430532306662204, 'fraction_numerical': 0.004352192835621024, 'mean_word_length': 6.701030927835052, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 98, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2259411', 'n_tokens_mistral': 1136, 'n_tokens_neox': 1136, 'n_words': 181}