Files
kopalnia_2014/sites/site301RBO.php
T
2026-09-03 11:24:19 +02:00

74 lines
2.8 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
if (!empty($_SESSION['site301_edit']))
{
?>
<script>
//$(function() {$("#data_01").datepicker(); });
$(function() {$("#data_01").datepicker({changeMonth: true,changeYear: true});});
</script>
<?php
if ($_SESSION['lang'] == 'polish') $decFieldLang = 'DIC_POL_LANG';
else if ($_SESSION['lang'] == 'english') $decFieldLang = 'DIC_ENG_LANG';
else if ($_SESSION['lang'] == 'german') $decFieldLang = 'DIC_GER_LANG';
//sprawdza, czy studnia jest wyłączona
unset($buttonStyle);
if (sqlStringValue("select getLastValue(507,".$_GET['dev'].") ONOFF", "ONOFF") == "ON")
{
echo('<script>sweetAlert("Operacja niemożliwa!", "Studnia aktualnie jest w stanie załączonym – pompa pracuje. Aby wybudować agregat koniecznym jest wyłączenie pompy.", "error");</script>');
$buttonStyle = "disabled='disabled'";
}
?>
<div class="tag100">
<FORM ACTION="./?pg=site301&dev=<?php echo $_GET['dev'];?>" METHOD="POST">
<div class="head_tag"><?php echo $lab_Tag_site301_010 ;?></div>
<div class="tag">
<table class="desc_val">
<tr>
<td class="desc"><?php echo $lab_Field_site301_020 ; ?></td>
<td CLASS=desc_value><INPUT STYLE='text-align: right' TYPE='TEXT' id='data_01' NAME='inBuildDate' SIZE='10' value="<?php echo date('Y-m-d'); ?>"></td>
</tr>
<tr>
<td class="desc"><?php echo $lab_Field_site301_028 ; ?></td>
<td CLASS=desc_value>
<?php getSelectHours('inBuildTimeH');?>
:
<?php getSelectMinutes('inBuildTimeM');?>
</td>
</tr>
<tr>
<td class="desc"><?php echo $lab_Field_site301_021 ; ?></td>
<td CLASS=desc_value>
<?php
//echo selectDescriptionFromDictionary("inBuildReason", "WELL_STATUS_LEVEL_03");
echo selectDescriptionFromDictionary("inBuildReason", "WELL_STATUS_OFF",'Planowa wymiana');
?>
</td>
</tr>
<tr>
<td class="desc"><?php echo $lab_Field_site803_010 ; ?></td>
<td class="desc_value"><textarea name="inBuildReasonAdd"></textarea></td>
</tr>
</table>
</div>
<div class="tag_buttons">
<a class="btn btn-info btn-sm" style="text-decoration: none;" href="?pg=site301inf&dev=<?php echo $_GET['dev'];?>" role="button"><?php echo $lab_ButtonName_Cancel; ?></a>
<INPUT class='btn btn-success btn-sm' <?php echo $buttonStyle; ?> TYPE='SUBMIT' NAME='subBuildOutSave' VALUE="<?php echo $lab_ButtonName_Save; ?>">
</div>
</FORM>
</div>
<?php
}
else showFooterWarningAccessNotification($lab_FooterWarningAccessNotification_001);
?>