22 lines
819 B
PHP
22 lines
819 B
PHP
|
|
<?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"));
|
||
|
|
}
|
||
|
|
?>
|