<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'); ?>

<?	if ( $section->name != '' ) : 
	$name = $section->name;
else :
	$name = @text('New Section');
endif; ?>
		
<script src="media://lib_koowa/js/koowa.js" />
<script language="javascript" type="text/javascript">
function submitbutton(pressbutton) {
	var form = document.adminForm;
	if (pressbutton == 'cancel') {
		submitform( pressbutton );
		return;
	}

	if ( form.title.value == '' ){
		alert("<?=  @text('Section must have a title') ?>");
	} else {
		submitform(pressbutton);
	}
}
</script>

<form action="<?= @route('id='.$section->id) ?>" method="post" name="adminForm">
	<input type="hidden" name="scope" value="<?= $section->id? $section->scope : $state->scope; ?>" />
	<input type="hidden" name="id" value="<?= $section->id; ?>" />
	<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" 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"><commit_msg>Cleanup<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'); ?>

<?	if ( $section->name != '' ) : 
	$name = $section->name;
else :
	$name = @text('New Section');
endif; ?>
		
<script src="media://lib_koowa/js/koowa.js" />
<script language="javascript" type="text/javascript">
function submitbutton(pressbutton) {
	var form = document.adminForm;
	if (pressbutton == 'cancel') {
		submitform( pressbutton );
		return;
	}

	if ( form.title.value == '' ){
		alert("<?=  @text('Section must have a title') ?>");
	} else {
		submitform(pressbutton);
	}
}
</script>

<form action="<?= @route('id='.$section->id) ?>" method="post" name="adminForm">
	<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" 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">
{'fraction_non_alphanumeric': 0.24348894348894348, 'fraction_numerical': 0.014742014742014743, 'mean_word_length': 4.057142857142857, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 102, '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': '7060616', 'n_tokens_mistral': 1584, 'n_tokens_neox': 1462, 'n_words': 298}