.error {color: #00FF00;} </style> </head> <body> <?php include_once "common/base.php"; // define variables and set to empty values global $clusterErr, $cluster_name; $clusterErr = $cluster_name = ""; //include_once "common/myFiles/header.php"; //include_once "scripts/showHide.php"; if (!empty($_POST['cluster_name'])) { include_once "inc/class.cluster.inc.php"; $cluster_group = new ClustersTool($db); echo $cluster_group->removeAccountFromCluster(); } ?> <h2>remove An Account from Cluster</h2> <form class="form-signin" role="form" method="post" action="removeAccount.php"> <br><br> <?php $query = mysql_query("SELECT DISTINCT cluster_name FROM `clusters`"); // Run your query echo '<select name="cluster_name">'; // Open your drop down box // Loop through the query results, outputing the options one by one while ($row = mysql_fetch_array($query)) { echo '<option value="' . $row['cluster_name'] . '">' . $row['cluster_name'] . '</option>';
<!DOCTYPE html> <?php include_once "../common/base.php"; // define variables and set to empty values //global $clusterErr, $AccountErr ,$cluster_name ,$account_name; $clusterErr = $AccountErr = $cluster_name = $account_name = ""; if (!empty($_POST['cluster_name']) && !empty($_POST['account_name'])) { include_once "../inc/class.cluster.inc.php"; $cluster_group = new ClustersTool(db); echo $cluster_group->addAccountToCluster(); } ?> <head> <link href='http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css' rel='stylesheet' type='text/css'> <link href='//cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.2.0/css/datepicker.min.css' rel='stylesheet' type='text/css'> <link href='//cdnjs.cloudflare.com/ajax/libs/bootstrap-switch/1.8/css/bootstrap-switch.css' rel='stylesheet' type='text/css'> <link href='http://davidstutz.github.io/bootstrap-multiselect/css/bootstrap-multiselect.css' rel='stylesheet' type='text/css'> <script src='//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js' type='text/javascript'></script> <script src='//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.0.0/js/bootstrap.min.js' type='text/javascript'></script> <script src='//cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.2.0/js/bootstrap-datepicker.min.js' type='text/javascript'></script> <script src='//cdnjs.cloudflare.com/ajax/libs/bootstrap-switch/1.8/js/bootstrap-switch.min.js' type='text/javascript'></script> <script src='http://davidstutz.github.io/bootstrap-multiselect/js/bootstrap-multiselect.js' type='text/javascript'></script> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script> </head> <body> <div class='container'>
<style> </style> <style> .error {color: #00FF00;} </style> </head> <body> <?php include '../common/base.php'; // define variables and set to empty values global $clusterErr, $cluster_name; $clusterErr = $cluster_name = ""; if (!empty($_POST['cluster_name'])) { include_once "../inc/class.cluster.inc.php"; $cluster_group = new ClustersTool(db); echo $cluster_group->RemoveCluster(); } ?> <head> <link href='http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css' rel='stylesheet' type='text/css'> <link href='//cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.2.0/css/datepicker.min.css' rel='stylesheet' type='text/css'> <link href='//cdnjs.cloudflare.com/ajax/libs/bootstrap-switch/1.8/css/bootstrap-switch.css' rel='stylesheet' type='text/css'> <link href='http://davidstutz.github.io/bootstrap-multiselect/css/bootstrap-multiselect.css' rel='stylesheet' type='text/css'> <script src='//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js' type='text/javascript'></script> <script src='//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.0.0/js/bootstrap.min.js' type='text/javascript'></script> <script src='//cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.2.0/js/bootstrap-datepicker.min.js' type='text/javascript'></script> <script src='//cdnjs.cloudflare.com/ajax/libs/bootstrap-switch/1.8/js/bootstrap-switch.min.js' type='text/javascript'></script> <script src='http://davidstutz.github.io/bootstrap-multiselect/js/bootstrap-multiselect.js' type='text/javascript'></script> </head>
<!DOCTYPE html> <?php include 'common/base.php'; // define variables and set to empty values global $clusterErr, $AccountErr, $cluster_name, $account_name; $clusterErr = $AccountErr = $cluster_name = $account_name = ""; if (!empty($_POST['cluster_name']) && !empty($_POST['account_name'])) { include_once "inc/class.cluster.inc.php"; $cluster_group = new ClustersTool($db); echo $cluster_group->AddNewCluster(); } ?> <head> <link href='http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css' rel='stylesheet' type='text/css'> <link href='//cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.2.0/css/datepicker.min.css' rel='stylesheet' type='text/css'> <link href='//cdnjs.cloudflare.com/ajax/libs/bootstrap-switch/1.8/css/bootstrap-switch.css' rel='stylesheet' type='text/css'> <link href='http://davidstutz.github.io/bootstrap-multiselect/css/bootstrap-multiselect.css' rel='stylesheet' type='text/css'> <script src='//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js' type='text/javascript'></script> <script src='//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.0.0/js/bootstrap.min.js' type='text/javascript'></script> <script src='//cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.2.0/js/bootstrap-datepicker.min.js' type='text/javascript'></script> <script src='//cdnjs.cloudflare.com/ajax/libs/bootstrap-switch/1.8/js/bootstrap-switch.min.js' type='text/javascript'></script> <script src='http://davidstutz.github.io/bootstrap-multiselect/js/bootstrap-multiselect.js' type='text/javascript'></script> </head> <body> <div class='container'> <div class='panel panel-primary dialog-panel'> <div class='panel-heading'> <h5>Adding new cluster to system</h5> </div> <div class='panel-body'>