save current state

This commit is contained in:
Development 2020-09-25 13:30:46 +02:00
commit 6ee911aee4
4 changed files with 17 additions and 13 deletions

View file

@ -11,7 +11,7 @@ if (UserHasRight('EditParts'))
$TypeValues = array();
if (mysqli_num_rows($TypeQuery))
{
$TypeItem = mysql_fetch_array($TypeQuery);
$TypeItem = mysqli_fetch_array($TypeQuery);
$TypeValues[0][0] = $TypeItem['NameValue1'];
$TypeValues[0][1] = $TypeItem['UnitValue1'];
$TypeValues[1][0] = $TypeItem['NameValue2'];
@ -22,17 +22,17 @@ if (UserHasRight('EditParts'))
//////////////
// Value Table
$GlobalContent .= '<h1>'.LangSpellHtml('SentencePleaseSpecifyPartValues').'</h1>';
$GlobalContent .= '<form action="index.php?Page=AddPart&AddNewPartSetp=CreatePart" method="post">';
$GlobalContent .= '<form action="index.php?Page=AddPart&AddNewPartSetp=CreatePart" method="post">';
$GlobalContent .= '<table>';
$GlobalContent .= '<tr><th>'.LangSpellHtml('PartsObsolete').'</th><td>';
$GlobalContent .= '<input type="checkbox" name="NewPartObsolete" value="True" '.((isset($_SESSION['NewPartObsolete']) && strtolower($_SESSION['NewPartObsolete'])=="true")? "checked":"").'"></td></tr>';
$GlobalContent .= '<tr><th>'.LangSpellHtml('PartsName').'</th><td>';
$GlobalContent .= '<input type="text" name="NewPartName" value="'.((isset($_SESSION['NewPartName']))? $_SESSION['NewPartName']:"").'"></td></tr>';
if ($TypeValues[0][0])
{
$GlobalContent .= '<tr><th>'.$TypeValues[0][0].'</th><td>';