Location: PHPKode > projects > Community Learning Network > cln/lib/CLN/interfaces/simpleMetadata.html
<?php
/*
 * Simple Metadata Form
 *
 * This form is used by every KO.
 *
 * Copyright (c) 2003-4 St. Christopher House
 *
 * Developed by The Working Group Inc.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.  
 *
 * @version $Id: simpleMetadata.html,v 1.18 2005/01/20 02:17:14 derekbrooks Exp $
 *
 */
?>
<!-- Start Required Metadata -->

<div class="grRow">
		<span class="grFormLabel">
		<label for="roomEditTemplate">Title: </label>
		</span>
		<input type="text" id="koMetadataTitle" class="grFormElement" name="koMetadataTitle" size="30" maxlength="128" value="<?php echo $_SESSION[$sessionObject]->currentPart['title']; ?>" />
</div>
<p class="grFormContext">The title will be the name of your Block. Try to make it descriptive, but fairly short. Remember that other people will use this title to tell what your Block is about. Make sure the words you choose will make sense to others.</p>

<div class="grRow">
		<span class="grFormLabel">Language: </span>
	<?php
	if ($_SESSION[$sessionObject]->currentPart['objectId'] == 'NEW') {
		require_once "HTML/Form.php";
		$form = new HTML_Form('');
	
		$form->displaySelect("koMetadataLang", $GLOBALS['languages'], 
							$_SESSION[$sessionObject]->currentPart['lang'],
							'1', '', FALSE, '');
	}
	else {
		$lang = $_SESSION[$sessionObject]->currentPart['lang'];
		echo '<b>' . $GLOBALS['languages'][$lang] . '</b>';
	}
	?>
	
</div>
	<p class="grFormContext">The langugage that your Block is written in.</p>


<div class="grRow">
		<span class="grFormLabel"><label for="koMetadataContributors">Contributors: </label>
		</span>
		<input type="text" class="grFormElement" id="koMetadataContributors" name="koMetadataContributors" value="<?php echo $_SESSION[$sessionObject]->currentMetadata->contributors; ?>" size="30" maxlength="128" />
</div>
<p class="grFormContext">The person or people who've worked
  on this Block. You should include for each contributing person,
  include their name and role, separated by a colon. Use a comma
  between contributors. For example: John Smith: author, Amy Ting: editor,
  Josephine Fernandes: participant.</p>


<div class="grRow">
		<span class="grFormLabel"><label for="koMetadataUnit">Program: </label>
		</span>
	<?php
	require_once "HTML/Form.php";
	$form = new HTML_Form('');
	
	$units = $this->_super->currentMetadata->getUnits();
	
	$form->displaySelect("koMetadataUnit", $units, $_SESSION[$sessionObject]->currentMetadata->unit, 
							'1', 'Select One', FALSE, 'id="koMetadataUnit"');
	?>
	</div>
	<p class="grFormContext">The Program that this Block best applies to. Pick one from the list.</p>


<div class="grRow">
		<span class="grFormLabel">
		<label for="koMetadataDetailRequest">Metadata: </label>
		</span>
		<input type="checkbox" class="grFormElement" id="koMetadataDetailRequest" name="koMetadataDetailRequest" value="1" />
		<p class="grFormContext">I would like to enter detailed metadata for this Block</p>
	</div>
	
	<input type="hidden" id="simpleMetadataSubmitted" name="simpleMetadataSubmitted" value="1" />

<!-- End Required Metadata -->
Return current item: Community Learning Network