2 // Note: This file is included from the library/Vanilla/Vanilla.Control.CategoryForm.php control.
4 echo '<div id="Form" class="Account CategoryRemoveForm">
6 <legend>'.$this->Context
->GetDefinition('CategoryManagement').'</legend>'
8 .$this->Get_PostBackForm("frmCategoryRemove")
9 .'<h2>'.$this->Context
->GetDefinition("SelectCategoryToRemove").'</h2>
12 <label for="sCategorySelect">'.$this->Context
->GetDefinition('Categories').' <small>'.$this->Context
->GetDefinition('Required').'</small></label>';
13 $this->CategorySelect
->Attributes
.= ' id="sCategorySelect"';
14 echo $this->CategorySelect
->Get()
17 if ($CategoryID > 0) {
18 $this->CategorySelect
->Attributes
= ' id="sReplacementCategory"';
19 $this->CategorySelect
->RemoveOption($this->CategorySelect
->SelectedValue
);
20 $this->CategorySelect
->Name
= 'ReplacementCategoryID';
21 $this->CategorySelect
->SelectedValue
= ForceIncomingInt('ReplacementCategoryID', 0);
22 echo '<h2>'.$this->Context
->GetDefinition('SelectReplacementCategory').'</h2>
25 <label for="sReplacementCategory">'.$this->Context
->GetDefinition('ReplacementCategory').' <small>'.$this->Context
->GetDefinition('Required').'</small></label>
26 '.$this->CategorySelect
->Get().'
27 <p class="Description">'.$this->Context
->GetDefinition('ReplacementCategoryNotes').'</p>
31 <input type="submit" name="btnSave" value="'.$this->Context
->GetDefinition('Remove').'" class="Button SubmitButton RemoveCategoryButton" />
32 <a href="'.GetUrl($this->Context
->Configuration
, $this->Context
->SelfUrl
, '', '', '', '', 'PostBackAction=Categories').'" class="CancelButton">'.$this->Context
->GetDefinition('Cancel').'</a>