<?php include_once '../config/symbini.php'; include_once $serverRoot . '/classes/InventoryProjectManager.php'; header("Content-Type: text/html; charset=" . $charset); $pid = $_REQUEST["pid"]; $projManager = new InventoryProjectManager(); $projManager->setPid($pid); $isEditable = 0; if ($isAdmin || array_key_exists("ProjAdmin", $userRights) && in_array($pid, $userRights["ProjAdmin"])) { $isEditable = 1; } ?> <div id="cltab"> <div style="margin:10px;"> <form name='claddform' action='index.php' method='post' onsubmit="return validateChecklistForm(this)"> <fieldset style="padding:15px;background-color:#FFF380;"> <legend><b>Add a Checklist</b></legend> <select name="clid" style="width:450px;"> <option value="">Select Checklist to Add</option> <option value="">-----------------------------------------</option> <?php $addArr = $projManager->getClAddArr(); foreach ($addArr as $clid => $clName) { echo "<option value='" . $clid . "'>" . $clName . "</option>\n"; } ?> </select><br/> <input type="hidden" name="proj" value="<?php echo $pid; ?>