$tmpquery3 = 'DELETE FROM ' . $tableCollab['members'] . " WHERE organization IN({$id})";
    connectSql($tmpquery3);
    header('Location: ../clients/listclients.php?msg=delete');
    exit;
}
//----- header --------------------------------------------
$breadcrumbs[] = buildLink('../clients/listclients.php?', $strings['clients'], LINK_INSIDE);
$breadcrumbs[] = $strings['delete_organizations'];
$pageSection = 'clients';
require_once '../themes/' . THEME . '/header.php';
//----- content --------------------------------------------
$block1 = new block();
$block1->form = 'saP';
$block1->openForm("../clients/deleteclients.php?action=delete&id={$id}");
$block1->headingForm($strings['delete_organizations']);
$block1->openContent();
$block1->contentTitle($strings['delete_following']);
$id = str_replace('**', ',', $id);
$tmpquery = "WHERE org.id IN({$id}) ORDER BY org.name";
$listOrganizations = new request();
$listOrganizations->openOrganizations($tmpquery);
$comptListOrganizations = count($listOrganizations->org_id);
for ($i = 0; $i < $comptListOrganizations; $i++) {
    $block1->contentRow('#' . $listOrganizations->org_id[$i], $listOrganizations->org_name[$i]);
}
$block1->contentRow('', '<input type="submit" name="delete" value="' . $strings['delete'] . '"> <input type="button" name="cancel" value="' . $strings['cancel'] . '" onClick="history.back();">');
$block1->closeContent();
$block1->headingForm_close();
$block1->closeForm();
$block1->note($strings['delete_organizations_note']);
require_once '../themes/' . THEME . '/footer.php';
Example #2
0
            $ckeckedrss = '';
        }
    } else {
        $ckeckedrss = 'checked';
    }
    $block1->contentRow($strings["newsdesk_rss"], "<input size='32' value='1' name='rss' type='checkbox' {$ckeckedrss}>");
    // end
    $block1->contentRow($strings[""], "<input type='submit' name='submit' value='" . $strings["save"] . "'> <input type='button' name='cancel' value='" . $strings["cancel"] . "' onClick='history.back();'>");
    $block1->closeContent();
    $block1->closeForm();
} else {
    //remove
    $block1->form = "saP";
    $block1->openForm("../newsdesk/editnews.php?action=delete&id={$id}&" . session_name() . "=" . session_id());
    $block1->heading($strings["del_newsdesk"]);
    $block1->openContent();
    $block1->contentTitle($strings["delete_following"]);
    $id = str_replace("**", ",", $id);
    $tmpquery = "WHERE news.id IN({$id}) ORDER BY news.pdate";
    $listNews = new request();
    $listNews->openNewsDesk($tmpquery);
    $comptListNews = count($listNews->news_id);
    for ($i = 0; $i < $comptListNews; $i++) {
        $block1->contentRow("#" . $listNews->news_id[$i], $listNews->news_title[$i]);
    }
    $block1->contentRow("", "<input type='submit' name='delete' value='" . $strings["delete"] . "'> <input type='button' name='cancel' value='" . $strings["cancel"] . "' onClick='history.back();'>");
    $block1->closeContent();
    $block1->closeForm();
    $block1->note($strings["delete_news_note"]);
}
include '../themes/' . THEME . '/footer.php';
Example #3
0
}
$setTitle .= " : Delete Client";
include '../themes/' . THEME . '/header.php';
$blockPage = new block();
$blockPage->openBreadcrumbs();
$blockPage->itemBreadcrumbs($blockPage->buildLink("../clients/listclients.php?", $strings["clients"], in));
$blockPage->itemBreadcrumbs($strings["delete_organizations"]);
$blockPage->closeBreadcrumbs();
if ($msg != "") {
    include '../includes/messages.php';
    $blockPage->messagebox($msgLabel);
}
$block1 = new block();
$block1->form = "saP";
$block1->openForm("../clients/deleteclients.php?action=delete&id={$id}&" . session_name() . "=" . session_id());
$block1->heading($strings["delete_organizations"]);
$block1->openContent();
$block1->contentTitle($strings["delete_following"]);
$id = str_replace("**", ",", $id);
$tmpquery = "WHERE org.id IN({$id}) ORDER BY org.name";
$listOrganizations = new request();
$listOrganizations->openOrganizations($tmpquery);
$comptListOrganizations = count($listOrganizations->org_id);
for ($i = 0; $i < $comptListOrganizations; $i++) {
    $block1->contentRow("#" . $listOrganizations->org_id[$i], $listOrganizations->org_name[$i]);
}
$block1->contentRow("", "<input type=\"submit\" name=\"delete\" value=\"" . $strings["delete"] . "\"> <input type=\"button\" name=\"cancel\" value=\"" . $strings["cancel"] . "\" onClick=\"history.back();\">");
$block1->closeContent();
$block1->closeForm();
$block1->note($strings["delete_organizations_note"]);
include '../themes/' . THEME . '/footer.php';