160 lines
8.3 KiB
HTML
160 lines
8.3 KiB
HTML
<link rel="stylesheet" type="text/css" href="include/jQuery/jquery-ui/themes/base/jquery-ui.css"/>
|
|
<link rel="stylesheet" type="text/css" href="modules/EcmReports/TableSorter/css/theme.blue.css"/>
|
|
<link rel="stylesheet" type="text/css" href="modules/EcmReports/TableSorter/css/theme.blue2.css"/>
|
|
<!-- Tablesorter -->
|
|
<script type="text/javascript" src="include/jQuery/tablesorter-master/jquery.tablesorter.min.js"></script>
|
|
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.tablesorter.widgets.js"></script>
|
|
<script type="text/javascript" src="modules/EcmReports/javascript/kosztProdukcji.js"></script>
|
|
{*<script type="text/javascript" src="https://www.google.com/jsapi"></script>*}
|
|
|
|
<style type="text/css">
|
|
{literal}
|
|
thead, tfoot {font-weight: bold;}
|
|
|
|
table.tablesorter tbody tr:hover td {
|
|
background: #E8E8E8;
|
|
color: #343432;
|
|
}
|
|
/* Extra selectors needed to override the default styling */
|
|
table.tablesorter tbody tr.normal-row td {
|
|
background: #EFEFF1;
|
|
color: #343432;
|
|
}
|
|
table.tablesorter tbody tr.alt-row td {
|
|
background: #FFF;
|
|
color: #343432;
|
|
}
|
|
/* Extra selectors needed to override the default styling */
|
|
table.tablesorter tbody tr.normal-row:hover td {
|
|
background: #E8E8E8;
|
|
color: #343432;
|
|
}
|
|
table.tablesorter tbody tr.alt-row:hover td {
|
|
background: #E8E8E8;
|
|
color: #343432;
|
|
}
|
|
.element{
|
|
position:fixed;
|
|
bottom: 0%;
|
|
width: 97%;
|
|
padding:10px;
|
|
font-family:Arial;
|
|
background-color: white;
|
|
border:1px solid black;
|
|
}
|
|
{/literal}
|
|
</style>
|
|
<script>
|
|
{literal}
|
|
function showHide(id) {
|
|
$('[name=child_' + id + ']').toggle(0);
|
|
if ($('#span_' + id).html() == '[+]') {
|
|
$('#span_' + id).html('[-]');
|
|
} else {
|
|
$('#span_' + id).html('[+]');
|
|
}
|
|
}
|
|
{/literal}
|
|
</script>
|
|
<table id="tableMenu" cellspacing="0" cellpadding="0" border="0">
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<img src="themes/Sugar/images/EcmProducts.gif" style="margin-top: 3px; margin-right: 3px;" alt="EcmProducts" width="16" border="0" height="16">
|
|
</td>
|
|
<td>
|
|
<h2>Raport kart pracy - produkty</h2>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<br>
|
|
|
|
<ul class="tablist" style="width:100%;">
|
|
<li>
|
|
<a class="current" href="#">Wyszukiwanie</a>
|
|
</li>
|
|
</ul>
|
|
|
|
<form action="index.php" method="get" name="where" id="where">
|
|
<input type="hidden" name="module" value="EcmReports" />
|
|
<input type="hidden" name="action" value="KosztProdukcjiWgPracownikow" />
|
|
<input type="hidden" name="parentTab" value="Produkcja"/>
|
|
<input type="hidden" name="to_pdf" value="0" id="to_pdf"/>
|
|
<table style="border-top: 0px none; margin-bottom: 4px;width:100%" class="tabForm" border="0" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td style="white-space: nowrap">Wybierz miesiąc
|
|
<input id="date_from" name="date_from" type="text" maxlength="10" size="11" tabindex="" title="Data od" value="{$date}" autocomplete="off">
|
|
<img id="date_from_trigger" border="0" align="absmiddle" alt="Enter Date" src="themes/default/images/jscalendar.gif">
|
|
<script language="JavaScript" type="text/javascript">
|
|
Calendar.setup({ldelim}
|
|
inputField: "date_from",
|
|
daFormat: "%d.%m.%Y",
|
|
button: "date_from_trigger",
|
|
singleClick: true,
|
|
dateStr: "",
|
|
step: 1
|
|
{rdelim}
|
|
);
|
|
</script>
|
|
</td>
|
|
<td style="white-space: nowrap">{$MOD.LBL_DATE_TO}
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
<input class="button" value="Wykonaj" type="submit" id='submit' form="where">
|
|
<input class="button" value="Wyczyść" type="button" onclick="location.href = 'index.php?module=EcmReports&action=KosztProdukcjiWgPracownikow&parentTab=Raporty';">
|
|
<input class="button" name="pdf" value="Generuj PDF" type="button" onclick="$('#where').attr('target','_blank');$('#to_pdf').val(1);$('#submit').click();">
|
|
|
|
|
|
|
|
<table id="myTable" class="tablesorter tablesorter-blue" role="grid">
|
|
<thead>
|
|
<tr class="tablesorter-headerRow" role="row">
|
|
<th width="5%" style = "text-align: left">Kod produktu</th>
|
|
<th width="40%" style = "text-align: left">Nazwa produktu</th>
|
|
<th width="11%" style = "text-align: right">Ilość PW</th>
|
|
<th width="11%" style = "text-align: right">Ilość godzin</th>
|
|
<th width="11%" style = "text-align: right">Koszt</th>
|
|
<th width="11%" style = "text-align: right">Sztuk na godzine</th>
|
|
<th width="11%" style = "text-align: right">Koszt jednostkowy</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{foreach from=$data item=rekord key=kl}
|
|
<tr>
|
|
<td onclick="showHide('{$rekord.indeks}');"><b>[+]</b> {$rekord.code}</td>
|
|
<td onclick="showHide('{$rekord.indeks}');">{$rekord.name}</td>
|
|
<td onclick="showHide('{$rekord.indeks}');" style = "text-align: right" data-value="{$rekord.pw_quantity}">{$rekord.pw_quantity|number_format:2:".":"" } </td>
|
|
<td onclick="showHide('{$rekord.indeks}');" style = "text-align: right" data-value="{$rekord.hours}">{$rekord.hours|number_format:2:".":"" } </td>
|
|
<td onclick="showHide('{$rekord.indeks}');" style = "text-align: right" data-value="{$rekord.cost}">{$rekord.cost|number_format:2:",":"." } </td>
|
|
<td onclick="showHide('{$rekord.indeks}');" style = "text-align: right" data-value="{$rekord.pw_quantity/$rekord.hours}">{$rekord.pw_quantity/$rekord.hours|number_format:2:",":"." } </td>
|
|
<td onclick="showHide('{$rekord.indeks}');" style = "text-align: right" data-value="{$rekord.cost/$record.pw_quantity}">{$rekord.cost/$record.pw_quantity|number_format:2:",":"." } </td>
|
|
</tr>
|
|
{foreach from=$rekord.workers key=klucz item=pracownik}
|
|
<tr name="child_{$rekord.indeks}" style="display: none;background-color:#F6F6F6;border: 1px solid;" class="invisible-table-row">
|
|
|
|
<td onclick="showHide('{$pracownik.indeks}');" style="text-align: left;background-color:#F6F6F6;" colspan="2">{$pracownik.name}</td>
|
|
<td onclick="showHide('{$pracownik.indeks}');" style="text-align: right;background-color:#F6F6F6;">0</td>
|
|
<td onclick="showHide('{$pracownik.indeks}');" style="text-align: right;background-color:#F6F6F6;">{$pracownik.hours|number_format:2:",":"."}</td>
|
|
<td onclick="showHide('{$pracownik.indeks}');" style="text-align: right;background-color:#F6F6F6;">{$pracownik.cost|number_format:2:",":"."}</td>
|
|
<td onclick="showHide('{$pracownik.indeks}');" style="text-align: right;background-color:#F6F6F6;">0</td>
|
|
<td onclick="showHide('{$pracownik.indeks}');" style="text-align: right;background-color:#F6F6F6;">0</td>
|
|
</tr>
|
|
{/foreach}
|
|
{/foreach}
|
|
</tbody>
|
|
<tfoot style="background-color: #E8E8E8;">
|
|
<tr>
|
|
<td style="text-align: left;background-color: #E8E8E8; border: 1px solid #E8E8E8;">Razem</td>
|
|
<td style="text-align: right;background-color: #E8E8E8; border: 1px solid #E8E8E8;"></td>
|
|
<td style="text-align: right;background-color: #E8E8E8; border: 1px solid #E8E8E8;">{$totalQuantityPw|number_format:2:",":"."}</td>
|
|
<td style="text-align: right;background-color: #E8E8E8; border: 1px solid #E8E8E8;">{$totalh|number_format:2:",":"."}</td>
|
|
<td style="text-align: right;background-color: #E8E8E8; border: 1px solid #E8E8E8;">{$totalc|number_format:2:",":"."}</td>
|
|
<td style="text-align: right;background-color: #E8E8E8; border: 1px solid #E8E8E8;">0</td>
|
|
<td style="text-align: right;background-color: #E8E8E8; border: 1px solid #E8E8E8;">0</td>
|
|
</tr>
|
|
</tfoot>
|
|
</table> |