if ($action == "info") {
    //  group info
    group_info($sess, $group, $error, $result);
} elseif ($action == "new") {
    //  group new
    if ($group_add != "") {
        include "./includes/group-post.inc.php";
    }
    if ($result1 != "" & $result2 != "" & $auth != "0") {
        group_list($sess, $group, $result, $result1, $result2, $error, $error1, $error2);
    } elseif ($result1 != "" & $result2 != "") {
        group_created($result1, $result2, $error1, $error2);
    } else {
        group_new($sess);
    }
} elseif ($action == "edit") {
    //  group info
    group_edit($sess, $group, $error, $result);
} else {
    // list of groups - superadmin
    if ($group_del != "") {
        include "./includes/post.inc.php";
        $group = "{$group_del}";
    }
    group_list($sess, $group, $result, $result1, $result2, $error, $error1, $error2);
}
// page footer
foot($sess, $menu);
?>

Example #2
0
                }
            }
        }
    }
}
//$sql = "SELECT reagent_name,reagent_status,sum(`pack_size`) FROM `reagent`group by reagent_name,reagent_status LIMIT 0, 30 ";
//SELECT reagent_name,reagent_status,sum(`pack_size`) FROM `reagent`group by reagent_name,reagent_status
main_menu();
save_reagent($_POST);
delete_reagent($_POST);
save_inserted($_POST);
group_save($_POST);
if (isset($_POST['submit'])) {
    if ($_POST['submit'] == 'edit') {
        edit_form($_POST['id']);
    }
}
show_reagent($_POST);
echo '<table><tr><td>';
search_form();
echo '</td><td>';
group_edit();
echo '</td><tr><td colspan=2>';
insert_reagent();
echo '</td></tr>';
view_data(17);
/*
echo '<pre>';
print_r($GLOBALS);
echo '</pre>';
*/
     client_delete($cid, $option, $task);
     break;
 case 'client.publish':
     client_publish($cid, 1, $option, $task);
     break;
 case 'client.unpublish':
     client_publish($cid, 0, $option, $task);
     break;
 case 'client':
 case 'client.list':
     client_list($option, $task);
     break;
     // ------------------------------------ Groups
 // ------------------------------------ Groups
 case 'group.edit':
     group_edit($id, $option, $task);
     break;
 case 'group.save':
 case 'group.apply':
     group_save($id, $option, $task);
     break;
 case 'group.cancel':
     group_cancel($id, $option, $task);
     break;
 case 'group.delete':
     group_delete($cid, $option, $task);
     break;
 case 'group.order':
     group_order($cid, 0, $option, $task);
     break;
 case 'group.orderup':