Location: PHPKode > scripts > rConfig > rconfig/www/customProperties.php
<?php include("includes/head.inc.php"); ?>
<!-- Headwrap Include -->
<?php include("includes/masthead.inc.php"); ?>
<div id="mainwrap">
	<!-- TopNav Include -->
	<?php include("includes/topnav.inc.php"); ?>
	<div id="main">
		<!-- Breadcrumb Include -->
		<?php include("includes/breadcrumb.inc.php"); ?>
		<!-- Announcement Include -->
		<?php include("includes/announcement.inc.php"); ?>
		<div id="content">
				$errors = $_SESSION['errors'];	
				/* "Do NOT unset the whole $_SESSION with unset($_SESSION) as this will disable the registering of session variables through the $_SESSION superglobal." */
				$_SESSION['errors'] = array();
			<fieldset  id="tableFieldset">
				<legend>Custom Properties</legend>
					if(isset($errors['Success'])){echo "<span class=\"error\">".$errors['Success']."</span><br/>";}
					if(isset($errors['Fail'])){echo "<span class=\"error\">".$errors['Fail']."</span><br/>";}
				<div id="toolbar">
					<button class="show_hide">Add Property</button>
					<?php // removed<button onclick="editCustProp()">Edit Property</button> ?>
					<button onclick="delCustProp()">Remove Property</button>
				<!-- begin devices form -->
				<div class="mainformDiv">
					<form id="propertyAdd" method="post" action="lib/crud/customProperties.crud.php" enctype="multipart/form-data" class="myform stylizedForm stylized"  style="width:100%;">
						<div style="width:300px; margin-bottom:10px;">
						<label for="customProperty"><font color="red">*</font> Custom Property: 
							<span class="small">(White Space will be removed from text)</span>
						<input name="customProperty" id="customProperty">
						<div class="spacer"></div>
						<?php	// echo error message if is sent back in GET from CRUD
							if(isset($errors['customProperty'])){echo "<span class=\"error\">".$errors['customProperty']."</span>";} 
						<div class="spacer"></div>

						<input type="hidden" id="add" name="add" value="add">
						<div class="spacer"></div>
						<button id="save" type="submit">Save</button>
						<button class="show_hide" type="button">Close</button><?php /* type="button" to remove default form submit function which when pressed can cause the form action attr to take place */ ?>
				<!-- End mainformDiv -->
				<div id="table">
						/* full table stored off in different script */
		<!-- End Content -->
		<div style="clear:both;">
	<!-- End Main -->
	<!-- JS script Include -->
	<script type="text/JavaScript" src="js/customProperties.js"></script>
	<!-- Footer Include -->
	<?php include("includes/footer.inc.php"); ?>
<!-- End Mainwrap -->
Return current item: rConfig