Initial commit
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
if (!empty($_SESSION['site301_edit']))
|
||||
{
|
||||
?>
|
||||
|
||||
<?php
|
||||
if (!empty($_GET['param']))
|
||||
{
|
||||
unset($editArray);
|
||||
$editArray = explode(',', $_GET['param']);
|
||||
|
||||
if ($editArray[4]==13)
|
||||
{
|
||||
$labHeader = $lab_Tag_site301_013;
|
||||
$labLabel = $lab_Field_site301_031;
|
||||
}
|
||||
else
|
||||
{
|
||||
$labHeader = $lab_Field_site306_001;
|
||||
$labLabel = $lab_Field_site301_032;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
$tpmArray = sqlGetResAsArray("select EQU_NAME,sum(SES_VALUE) TOT_VAL,(select sum(SDE_VALUE) from seg_dev_equipments_rel where SDE_PARAM3='".$_SESSION['syndis_eq_stock']."' and SDE_DRS_EQU_ID=SES_EQU_ID) TOT_STOCK from seg_equipments_stock,seg_equipments where SES_EQU_ID=EQU_ID and SES_EQU_ID=".$editArray[2]);
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<div class="tag100">
|
||||
<FORM ACTION="./?pg=site301inf¶m=<?php echo $editArray[0];?>,edit,<?php echo $editArray[1]; ?>,<?php echo $editArray[2]; ?>" METHOD="POST">
|
||||
<input type="hidden" id="inAvValue" value="<?php echo round($tpmArray[0]['TOT_VAL']-$tpmArray[0]['TOT_STOCK']+$editArray[3],2); ?>">
|
||||
|
||||
<div class="head_tag"><?php echo $labHeader;?></div>
|
||||
<div class="tag">
|
||||
<table class="desc_val">
|
||||
<tr>
|
||||
<td class="desc"><?php echo $labLabel; ?></td>
|
||||
<td class="desc_value"><INPUT class="float_req" TYPE="TEXT" NAME="inValue" id="inRuValue" value="<?php echo $editArray[3];?>" required="required">
|
||||
|
||||
w sumie dostępych <?php echo round($tpmArray[0]['TOT_VAL'] - $tpmArray[0]['TOT_STOCK'] + $editArray[3],2);?>
|
||||
|
||||
</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 $editArray[0];?>" role="button"><?php echo $lab_ButtonName_Cancel; ?></a>
|
||||
<INPUT class='btn btn-success btn-sm' TYPE='SUBMIT' NAME='subUpdate' VALUE="<?php echo $lab_ButtonName_Update; ?>" id="subRuSave">
|
||||
</div>
|
||||
</FORM>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
}
|
||||
else showFooterWarningAccessNotification($lab_FooterWarningAccessNotification_001);
|
||||
?>
|
||||
Reference in New Issue
Block a user