<commit_before><commit_msg>Added formular and dropdown list components.<commit_after><?php
/* @var $this SponsorController */
/* @var $dataProvider CActiveDataProvider */

$this->breadcrumbs=array(
	'Parrainage',
);
?>

<h1>Parrainage</h1>

<?php
/*
$this->widget('zii.widgets.CListView', array(
	'dataProvider'=>$dataProvider,
	'itemView'=>'_view',
));
*/

$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
		'id'=>'horizontalForm',
		'type'=>'horizontal',
));

$countries=CHtml::listData(Country::model()->findAll(), 'Id', 'Name');
$genres=CHtml::listData(Genre::model()->findAll(), 'Id', 'Name');

?>
<div class="view">

<?php echo $form->textFieldRow($model, 'Firstname'); ?>
<?php echo $form->textFieldRow($model, 'Lastname'); ?>
<?php echo $form->dropDownListRow($model, 'Country', $countries); ?>
<?php echo $form->dropDownListRow($model, 'Genre', $genres); ?>

</div>

<?php $this->endWidget(); ?>

<?php
/*
$this->widget('bootstrap.widgets.TbGridView', array(
    'type'=>'striped bordered condensed',
    'dataProvider'=>$model->sponsor(),
	'filter'=>null,
    'template'=>"{summary}{items}{pager}",
	'summaryText'=>'Displaying {start}-{end} of {count} results.',
    'columns'=>array(
    	array('name'=>'sponsor', 'value'=>'$data->Fullname'),
        array(
            'class'=>'bootstrap.widgets.TbButtonColumn',
            'htmlOptions'=>array('style'=>'width: 50px'),
        ),
    ),
));
*/

?>
{'fraction_non_alphanumeric': 0.24039133473095736, 'fraction_numerical': 0.002795248078266946, 'mean_word_length': 5.599078341013825, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 43, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '6799816', 'n_tokens_mistral': 497, 'n_tokens_neox': 490, 'n_words': 75}