Ejemplo n.º 1
0
      <table border=2px;>
	<tr><td><b>Delete a Group:</b></td></tr>
         <tr><td width=200px;>Group Id:</td><td><input type="text" name="group_id"/></td></tr><br/>
      </table>
	<br/>
	<input type="submit" value="Delete"/>
    </form>
  </td></tr>
</table>
<br/><br/>

<form name='GroupMember' method ='post' action="">
<?php 
    $dbh = Connection::cal_ro();
    $obj_assignee = new calendarConfig();
    $groups = $obj_assignee->getGroupList($dbh);
    $groupname = "Select a group";
    if ($_POST['groupname'] && $_GET['action'] == "details") {
        $groupname = $_POST['groupname'];
    }
    if ($_GET['action'] == "save") {
        $dbh = Connection::cal_rw();
        $obj_assignee = new calendarConfig();
        if ($_POST['inshidden']) {
            $resp1 = $obj_assignee->addMember($dbh, $_POST['inshidden']);
        }
        if ($_POST['delhidden']) {
            $resp2 = $obj_assignee->delMember($dbh, $_POST['delhidden']);
        }
        if ($resp1 == "fail" || $resp2 == "fail") {
            echo "<font size = 3 color='red'><b><i>There was some problem in your selection, so not able to save the list. [Retry ]</i</b></font><br>";