112 lines
4.0 KiB
PHP
112 lines
4.0 KiB
PHP
<?php
|
|
require_once("base.php");
|
|
require_once("security.php");
|
|
$cur_menu="user";
|
|
require_once("menu.php");
|
|
//connect to db if required
|
|
$em="";
|
|
if(isset($_POST["add"])){$dconn=dbconnect();include("group_add_act.php");}
|
|
//set defaults for form fields
|
|
if(!isset($_POST["group"])){$group="";} else {$group=$_POST["group"];}
|
|
if(!isset($_POST["description"])){$description="";} else {$description=$_POST["description"];}
|
|
if(!isset($rights)){$rights="";}
|
|
?>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<title>Add Group</title>
|
|
<meta name="description" content="Add Group" />
|
|
<meta name="keywords" content="" />
|
|
<meta name="abstract" content="Add Group" />
|
|
<meta name="rating" content="General" />
|
|
<meta name="revisit-after" content="6 Days" />
|
|
<meta name="doc-class" content="Draft" />
|
|
<meta name="copyright" content="2008 The Curry" />
|
|
<meta name="robots" content="noindex, nofollow" />
|
|
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
|
|
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
|
<link rel="alternate" type="application/rss+xml" title="RSS Feed" href="/rss_feed.xml" />
|
|
<link rev="pdp" href="poremba.net" title="Produced by pdp design: design, content, consulting" />
|
|
<link rev="poremba" href="http://www.poremba.net/" title="Directed by Philip Poremba: structural design and content" />
|
|
<meta http-equiv="Content-Type" content="charset=iso-8859-1" />
|
|
<link rel="stylesheet" href="/admin/css/btks_2.css" type="text/css" media="all" />
|
|
<script language="JavaScript" src="/admin/js/base.js" type="text/javascript"></script>
|
|
<script language="JavaScript" src="/admin/js/formcheck.js" type="text/javascript"></script>
|
|
<script language="JavaScript" type="text/javascript">
|
|
var onesubmit=0;
|
|
|
|
function checkform(val){
|
|
|
|
if(onesubmit==0)
|
|
{
|
|
onesubmit=1;
|
|
if(isEmpty(val.group.value))
|
|
{
|
|
alert("Please enter a group name.");val.fname.focus();onesubmit=0;return false;
|
|
}
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
function init(){dosize();}
|
|
onload=init;
|
|
onresize=dosize;
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="header" style="height:77px;">
|
|
<span id="spanimg"></span>
|
|
</div>
|
|
<div id="menu">
|
|
<div id="innermenu">
|
|
<span class="fl"><?php echo $menu_left; ?></span>
|
|
<span class="fr"><?php echo $menu_right; ?></span>
|
|
</div>
|
|
</div>
|
|
<div id="tsc">
|
|
<div id="container">
|
|
<div id="content">
|
|
<div id="icontent">
|
|
<h2>Add Administrative Group</h2>
|
|
<?php
|
|
if(isset($postsuccess))
|
|
{
|
|
echo "<div id=\"postsuccess\">".$postsuccess."</div>";
|
|
}
|
|
if(isset($posterror))
|
|
{
|
|
echo "<div id=\"posterror\">".$posterror."</div>";
|
|
}
|
|
?>
|
|
<div id="notabfrm">
|
|
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" onsubmit="return checkform(this);">
|
|
<fieldset>
|
|
<label for="group">Group Name:</label><input name="group" id="group" type="text" size="24" tabindex="1" value="<?php echo $group; ?>" maxlength="100" /><span class="frmrequired">(*required)</span><br clear="all" />
|
|
<label for="description">Description:</label>
|
|
<textarea name="description" id="description" tabindex="2" style="width:350px;height:100px;"><?php echo $description;?></textarea>
|
|
<br clear="all" />
|
|
<div>
|
|
<label for="add"> </label><input type="submit" name="add" id="add" tabindex="13" value="Add Group" style="margin-top:5px;"/><br clear="all" />
|
|
</div>
|
|
</fieldset>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="rail">
|
|
<div id="irail">
|
|
<ul>
|
|
<li><a href="/admin/usermgr/accounts.php" title="List of Accounts">LIST OF ACCOUNTS</a></li>
|
|
<li><a href="/admin/usermgr/add_user.php" title="Add user account">ADD NEW ACCOUNT</a></li>
|
|
<li><a href="/admin/usermgr/myaccount.php" title="My Account">MY ACCOUNT</a></li>
|
|
<li><a href="/admin/usermgr/groups.php" title="GROUPS">GROUPS</a></li>
|
|
<li>ADD GROUP</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="footer">© 2008 The Curry</div>
|
|
</body>
|
|
</html>
|