partstock/pages/show_part_delete_part.php

22 lines
819 B
PHP
Raw Permalink Normal View History

2018-12-17 17:50:23 +01:00
<?php
if (UserHasRight('EditParts'))
{
global $GlobalMysqlHandler;
global $PartId;
global $Part;
$GlobalContent .= "<h1>".LangSpellHtml('SentenceShureToDeletePart')."</h1>";
$GlobalContent .= "<strong>".$Part['Name']."</strong> ".$Part['ShortDesc']."<br><br>\n";
$GlobalContent .= '<form action="index.php?Page=PartsByType&ToDo=ToggleTypeSelectorVisibility&SublistId='.$Part['TypeId'].'" method="post">';
$GlobalContent .= '<input type="hidden" name="DeletePartId" value="'.$PartId.'">';
$GlobalContent .= LangSpellHtml('SentenceShureToDeletePart').': <input type="checkbox" name="DeletePartShure" value="True">';
$GlobalContent .= ' <input type="submit" value="'.LangSpellHtml('ButtonProceed').'">';
$GlobalContent .= '</form>';
}
else
{
MessageError(LangSpell("ScentenceNoUserRights"));
}
?>