154 lines
5.0 KiB
HTML
154 lines
5.0 KiB
HTML
<h1>Import raportów zakupowych z MSH</h1>
|
|
<form action="index.php" method="post" enctype="multipart/form-data">
|
|
<input type="hidden" name="module" value="EcmReports"> <input
|
|
type="hidden" name="action" value="importMM"> Wybierz plik do
|
|
wysłania: <input type="file" name="fileToUpload" id="fileToUpload"
|
|
required> <br>Raport za miesiąc: <input id="date"
|
|
name="date" type="text" maxlength="10" size="11" tabindex="" title=""
|
|
value="{$date}" autocomplete="off"> <img id="date_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",
|
|
daFormat : "%d.%m.%Y",
|
|
button : "date_trigger",
|
|
singleClick : true,
|
|
dateStr : "",
|
|
step : 1
|
|
{rdelim}
|
|
);
|
|
</script>
|
|
|
|
<br> <input type="submit" value="Wyślij" name="submit">
|
|
</form>
|
|
|
|
<br>
|
|
<br>
|
|
{if $uploaded==1}
|
|
<h1 style="color:green">Pomyślnie dodano {$count} rekordów.</h1>
|
|
{/if}
|
|
{if $uploaded==2}
|
|
<h1 style="red">Wystąpił błąd.</h1>
|
|
{/if}
|
|
{if $uploaded==0}
|
|
<link class="theme" rel="stylesheet" href="modules/EcmReports/TableSorterNew/css/theme.blue.css">
|
|
<style type="text/css">
|
|
{literal}
|
|
|
|
thead, tfoot {font-weight: bold;}
|
|
|
|
.additionalColumn {
|
|
background-color: #87CCED;
|
|
border-top: 1px solid black;
|
|
}
|
|
|
|
.groupActive {
|
|
border-top: 1px solid black;
|
|
border-bottom: 1px solid black;
|
|
border-left: 1px solid black;
|
|
background-color: #87CCED;
|
|
}
|
|
|
|
.sumRow {
|
|
background-color: #BDC7B5;
|
|
}
|
|
|
|
.sumAll td{
|
|
background-color: #BDC7B5;
|
|
}
|
|
|
|
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;
|
|
}
|
|
table.tablesorter tbody tr.sumAll td {
|
|
background: #EBEBED;
|
|
color: black;
|
|
}
|
|
table.tablesorter tbody tr.sumAll:hover td {
|
|
background: #E0E0E2;
|
|
color: black;
|
|
font-weight: bold;
|
|
}
|
|
|
|
table.tablesorter .sumRow, .oddListRowS1 {
|
|
text-align: right;
|
|
}
|
|
|
|
table.tablesorter .alignLeft {
|
|
text-align: left;
|
|
}
|
|
|
|
table.tablesorter .subcategory .alignLeft {
|
|
padding-left: 20px;
|
|
}
|
|
|
|
table.tablesorter .contractor .alignLeft {
|
|
padding-left: 40px;
|
|
}
|
|
|
|
.plusStyle {
|
|
color: #abc3d7;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.green-text{
|
|
color:#2E8B57;
|
|
}
|
|
|
|
{/literal}
|
|
</style>
|
|
<h1>Lista zaimportowanych plików</h1>
|
|
<table id="myTable" class="tablesorter tablesorter-blue" role="grid">
|
|
<thead>
|
|
<tr class="tablesorter-headerRow" role="row">
|
|
|
|
<th width="30%" class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="0"
|
|
tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Nazwa pliku</th>
|
|
<th width="10%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="2"
|
|
tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;"
|
|
aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Data dodania</th>
|
|
<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="4" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on"
|
|
style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Dodał użytkownik</th>
|
|
<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="4" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on"
|
|
style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Opcje</th>
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{foreach from=$files key="key" item="item"}
|
|
<tr class="">
|
|
<td class="oddListRowS1 alignLeft" onclick="showChildren('{$item.parent_id}');"><b>{$item.file_name}</b></td>
|
|
<td class="oddListRowS1"><b>{$item.file_date|date_format:"%d.%m.%Y %H:%M" }</b></td>
|
|
<td class="oddListRowS1" ><b>{$item.user_name }</b></td>
|
|
<td class="oddListRowS1" ><b><a href="index.php?module=EcmReports&action=importMM&delete={$item.file_id}">Usuń</a></b></td>
|
|
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
</table>
|
|
{/if}
|
|
|