Beispiel #1
0
$area = new Areas();
$industry = new Industries();
$company = new Companies();
$member = new Members();
$conditions = array();
$tpl_file = "company";
setvar('Membergroups', $membergroup->getUsergroups('define'));
setvar('AllMembergroups', $membergroup->getUsergroups('all'));
if (isset($_PB_CACHE['companytype'])) {
    setvar("CompanyTypes", $_PB_CACHE['companytype']);
}
setvar("CheckStatus", $_PB_CACHE['check_status']);
setvar("Industries", $_PB_CACHE['industry']);
setvar("Areas", $_PB_CACHE['area']);
if (isset($_POST['del']) && !empty($_POST['id'])) {
    $result = $company->del($_POST['id']);
    if (!$result) {
        flash();
    }
}
if (isset($_POST['check'])) {
    if (isset($_POST['check']['in'])) {
        $result = $company->check($_POST['id'], 1);
    } elseif (isset($_POST['check']['out'])) {
        $result = $company->check($_POST['id'], 0);
    }
    if (!$result) {
        flash();
    }
}
if (isset($_POST['set_group']) && !empty($_POST['id']) && !empty($_POST['set_group'])) {