<commit_before><?php 
/**
 * @version     $Id$
 * @category	Nooku
 * @package     Nooku_Server
 * @subpackage  Sections
 * @copyright   Copyright (C) 2011 Timble CVBA and Contributors. (http://www.timble.net).
 * @license     GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link        http://www.nooku.org
 */
defined('KOOWA') or die( 'Restricted access' ); ?>

<?= @helper('behavior.keepalive'); ?>
<?= @helper('behavior.validator'); ?>

<?	if ( $section->name != '' ) : 
	$name = $section->name;
else :
	$name = @text('New Section');
endif; ?>
		
<script src="media://lib_koowa/js/koowa.js" />
<style src="media://lib_koowa/css/koowa.css" />

<form action="<?= @route('id='.$section->id) ?>" method="post" id="section-form" class="-koowa-form">
	<input type="hidden" name="scope" value="<?= $section->id? $section->scope : $state->scope; ?>" />
	<input type="hidden" name="oldtitle" value="<?= $section->title ; ?>" />
	
	<div class="grid_8">
		<div class="border-radius-4 title clearfix">
			<input class="inputbox border-radius-4 required" type="text" name="title" id="title" size="40" maxlength="255" value="<?= $section->title; ?>" placeholder="<?= @text( 'Title' ); ?>" />
		
			<label for="alias">
				<?= @text( 'Alias' ); ?>
				<input class="inputbox border-radius-4" type="text" name="alias" id="alias" size="40" maxlength="255" value="<?= $section->slug; ?>" title="<?= @text( 'ALIASTIP' ); ?>" placeholder="<?= @text( 'Alias' ); ?>" />
			</label>
		</div>
		<?= @editor( array('name' => 'description',
				'editor' => 'tinymce', 	
				'width' => '100%', 
				'height' => '300', 
				'cols' => '60', 
				'rows' => '20', 
				'buttons' => null, 
				'options' => array('theme' => 'simple', 'pagebreak', 'readmore'))); 
		?>
	</div>
	<div class="grid_4">
		<div class="panel">
			<h3><?= @text( 'Publish' ); ?></h3>
			<table class="admintable">
				<tr>
					<td width="100" class="key">
						<?= @text( 'Scope' ); ?>:
					</td>
					<td>
						<strong><?= $section->id ? $section->scope : $state->scope; ?></strong>
					</td>
				</tr>
				<tr>
					<td class="key">
						<?= @text( 'Published' ); ?>:
					</td>
					<td>
						<?= @helper('listbox.published', array('name' => 'enabled', 'state' => $section, 'deselect' => false)); ?>
					</td>
				</tr>
				<tr>
					<td class="key">
						<label for="ordering">
							<?= @text( 'Ordering' ); ?>:
						</label>
					</td>
					<td>
						<?= $section->id ? @helper('admin::com.categories.template.helper.listbox.order', array('package'=>'sections')) : ''; ?>
					</td>
				</tr>
				<tr>
					<td nowrap="nowrap" class="key">
						<label for="access">
							<?= @text( 'Access Level' ); ?>:
						</label>
					</td>
					<td>
						<?= @helper('listbox.access', array('name' => 'access', 'state' => $section, 'deselect' => false)); ?>
					</td><commit_msg>re #88: Code cleanup, removed 'scope' entry from publish panel<commit_after><?php 
/**
 * @version     $Id$
 * @category	Nooku
 * @package     Nooku_Server
 * @subpackage  Sections
 * @copyright   Copyright (C) 2011 Timble CVBA and Contributors. (http://www.timble.net).
 * @license     GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link        http://www.nooku.org
 */
defined('KOOWA') or die( 'Restricted access' ); ?>

<?= @helper('behavior.keepalive'); ?>
<?= @helper('behavior.validator'); ?>
		
<script src="media://lib_koowa/js/koowa.js" />
<style src="media://lib_koowa/css/koowa.css" />

<form action="<?= @route('id='.$section->id) ?>" method="post" id="section-form" class="-koowa-form">
	<input type="hidden" name="scope" value="<?= $section->id? $section->scope : $state->scope; ?>" />
	<input type="hidden" name="oldtitle" value="<?= $section->title ; ?>" />
	
	<div class="grid_8">
		<div class="border-radius-4 title clearfix">
			<input class="inputbox border-radius-4 required" type="text" name="title" id="title" size="40" maxlength="255" value="<?= $section->title; ?>" placeholder="<?= @text( 'Title' ); ?>" />
		
			<label for="alias">
				<?= @text( 'Alias' ); ?>
				<input class="inputbox border-radius-4" type="text" name="alias" id="alias" size="40" maxlength="255" value="<?= $section->slug; ?>" title="<?= @text( 'ALIASTIP' ); ?>" placeholder="<?= @text( 'Alias' ); ?>" />
			</label>
		</div>
		<?= @editor( array('name' => 'description',
				'editor' => 'tinymce', 	
				'width' => '100%', 
				'height' => '300', 
				'cols' => '60', 
				'rows' => '20', 
				'buttons' => null, 
				'options' => array('theme' => 'simple', 'pagebreak', 'readmore'))); 
		?>
	</div>
	<div class="grid_4">
		<div class="panel">
			<h3><?= @text( 'Publish' ); ?></h3>
			<table class="admintable">
				<tr>
					<td class="key">
						<?= @text( 'Published' ); ?>:
					</td>
					<td>
						<?= @helper('listbox.published', array('name' => 'enabled', 'state' => $section, 'deselect' => false)); ?>
					</td>
				</tr>
				<tr>
					<td class="key">
						<label for="ordering">
							<?= @text( 'Ordering' ); ?>:
						</label>
					</td>
					<td>
						<?= $section->id ? @helper('admin::com.categories.template.helper.listbox.order', array('package'=>'sections')) : ''; ?>
					</td>
				</tr>
				<tr>
					<td nowrap="nowrap" class="key">
						<label for="access">
							<?= @text( 'Access Level' ); ?>:
						</label>
					</td>
					<td>
						<?= @helper('listbox.access', array('name' => 'access', 'state' => $section, 'deselect' => false)); ?>
					</td>
{'fraction_non_alphanumeric': 0.25736377025036816, 'fraction_numerical': 0.012702503681885125, 'mean_word_length': 3.2914691943127963, 'pattern_counts': {'":': 0, '<': 134, '<?xml version=': 0, '>': 187, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3317058', 'n_tokens_mistral': 2358, 'n_tokens_neox': 1973, 'n_words': 386}