Code Duplication    Length = 15-15 lines in 2 locations

admin/categories.php 1 location

@@ 894-908 (lines=15) @@
891
    exit();
892
}
893
894
function deleteCatConfirm()
895
{
896
    global $xoopsDB, $_POST, $eh, $xoopsModule, $get_catid;
897
    xoops_cp_header();
898
    $form        = new XoopsThemeForm(_MD_CONFIRM_DELETECAT_FORM, 'confirmform', 'categories.php');
899
    $submit_tray = new XoopsFormElementTray(_MD_DELETE_CAT_YN, '', 'cid');
900
    $submit_tray->addElement(new XoopsFormButton('', 'submit', _MD_DELETE, 'submit'));
901
    $submit_tray->addElement(new XoopsFormLabel('', '<input type="button" class="formButton" value="' . _MD_CANCEL . "\" onclick=\"location='categories.php?op=edit&amp;catid=$get_catid'\""));
902
    $form->addElement($submit_tray, true);
903
    //'$form->addElement($form_submit);
904
    $form->addElement(new XoopsFormHidden('op', 'deleteCat'));
905
    $form->addElement(new XoopsFormHidden('catid', $get_catid));
906
    $form->display();
907
    xoops_cp_footer();
908
}
909
910
function deleteCat()
911
{

admin/main.php 1 location

@@ 128-142 (lines=15) @@
125
    exit();
126
}
127
128
function delListingConfirm()
129
{
130
    global $xoopsDB, $eh, $xoopsModule, $get_itemid;
131
    xoops_cp_header();
132
    $form        = new XoopsThemeForm(_MD_CONFIRM_DELETELISTING_FORM, 'confirmform', 'main.php');
133
    $submit_tray = new XoopsFormElementTray(_MD_DELETEYN, '', 'cid');
134
    $submit_tray->addElement(new XoopsFormButton('', 'submit', _MD_DELETE, 'submit'));
135
    $submit_tray->addElement(new XoopsFormLabel('', '<input type="button" class="formButton" value="' . _MD_CANCEL . "\" onclick=\"location='main.php?op=edit&amp;item=$get_itemid'\""));
136
    $form->addElement($submit_tray, true);
137
    //$form->addElement($form_submit);
138
    $form->addElement(new XoopsFormHidden('op', 'deleteListing'));
139
    $form->addElement(new XoopsFormHidden('itemid', $get_itemid));
140
    $form->display();
141
    xoops_cp_footer();
142
}
143
144
function delListing()
145
{