save current state
This commit is contained in:
parent
3df8fc53b8
commit
6ee911aee4
4 changed files with 17 additions and 13 deletions
|
|
@ -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>';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue