Fields with * are required.

80,'maxlength'=>128)); ?>
widget( 'application.extensions.NHCKEditor.CKEditorWidget', array( // [Required] CModel object 'model' => $model, 'attribute' => 'content', // [Optional] CSS file to be included //'cssFile' => Yii::app()->request->baseURL.'/css/YOUR_FILE.css', // [Optional] Options based on CKEditor API documentation 'editorOptions' => array( // Now supports PHP array and javascript code (must begin with js:) 'width' => 600, 'height' => 280, 'language' => 'el', 'charset' => 'utf8', 'toolbar' => 'Full', // format #1: String //'toolbar' => array( // format #2: PHP array // array('Source', '-', 'Save') //), //'toolbar' => "js:[ // format #3: javascript code // ['Source', '-', 'Save'] //]", //'uiColor' => '', // ... your own options ), // [Optional] htmlOptions based on Yii implementation 'htmlOptions' => array( 'language' => 'el', 'charset' =>'utf8', // ), ) );?>
widget('application.extensions.fancyupload.SFancyQueue', array( 'name'=>'form-fancy', 'statusBoxId'=>$statusBoxId, //id for the container div 'clearButton'=>$clearButton, //id for "Clear List" link 'uploadButton'=>$uploadButton, //id for "Start Upload" link 'clearButtonLabel'=>'Clear List', //label for "Clear List" link 'uploadButtonLabel'=>'Start Upload', //label for "Start Upload" link 'targetLabel'=>'Select Files', //label for "select files" link 'options'=> array( 'verbose'=>true, //remove in production 'url'=>$this->createUrl('/articles/UploadedFiles'), //send files to this controller/action 'data'=>array('id'=>$model->id), 'multiple'=>true, //multiple files 'target'=>'fancy-browse', //id for "select files" link 'typeFilter'=>array('Images (jpg, jpeg)'=>'*.jpg; *.jpeg'), //accept only images and compressed files (better check the mimetype in the controller which receives the file) 'instantStart'=>false, //do not upload right after the selection of files 'data'=>array('extradata'=>'anything_you_want'), //accessible in the controller via $_POST['extradata'] or $_POST['whatever_you_put_in_the_key'] //'data'=>array('YII_CSRF_TOKEN'=>Yii::app()->request->csrfToken), //send your csrf token if CSRF is enabled. If you don't know what it means so you don't need this at this moment, don't worry :-) 'appendCookieData'=>true, //this will send PHPSESSID automatically (in case you need to restore values from SESSION (used besides CSRF in most cases and enabled here for demonstration purposes only) ), 'callbacks' => array( 'onLoad'=>"function() { document.id('$statusBoxId').removeClass('hide'); document.id('fancy-fallback').destroy(); // We relay the interactions with the overlayed flash to the link this.target.addEvents({ click: function() { return false; }, mouseenter: function() { this.addClass('hover'); }, mouseleave: function() { this.removeClass('hover'); this.blur(); }, mousedown: function() { this.focus(); } }); // Interactions for the 2 other buttons document.id('$clearButton').addEvent('click', function() { up.remove(); // remove all files return false; }); document.id('$uploadButton').addEvent('click', function() { up.start(); // start upload return false; }); }", 'onFail'=> 'function(error) { switch (error) { case "hidden": // works after enabling the movie and clicking refresh alert("Para habilitar o sistema de upload, desbloqueie flash no seu browser e atualize a página."); break; case "blocked": // This no *full* fail, it works after the user clicks the button alert("Para habilitar o sistema de upload, habilite o filme flash bloqueado"); break; case "empty": // Oh oh, wrong path alert("O sistema de upload parece estar faltando, por favor, tente mais tarde"); break; case "flash": // no flash 9+ :( alert("Precisa ter o plugin do Adobe Flash 9 ou superior para usar o upload") } }', 'onFileSuccess'=> "function(file, response) { var json = new Hash(JSON.decode(response, true) || {}); if (json.get('status') == '1') { file.element.addClass('file-success'); file.info.set('html', 'Arquivo enviado: (' + json.get('width') + ' x ' + json.get('height') + 'px, ' + json.get('mime') + ')'); } else { file.element.addClass('file-failed'); file.info.set('html', 'Erro no envio: (' + (json.get('error') ? (json.get('error') + ' #' + json.get('code')) : response)); } }", 'onSelectFail'=> "function(files) { files.each(function(file) { new Element('li', { 'class': 'validation-error', html: file.validationErrorMessage || file.validationError, title: MooTools.lang.get('FancyUpload', 'removeTitle'), events: { click: function() { this.destroy(); } } }).inject(this.list, 'top'); }, this); }", /*'onFileComplete'=> "function(file) { up.fileRemove(file); }",*/ 'onComplete'=>"function() { // document.id('fancy-status').setStyle('display','none'); //up.remove(); //el = document.search('li.file-success'); //for (i=0; i"function() { //var hash = {}; //document.cookie.split(/;\s*/).each(function(cookie) { //cookie = cookie.split('='); //if (cookie.length == 2) { //hash[decodeURIComponent(cookie[0])] = decodeURIComponent(cookie[1]); //} //}); // //up.setOptions({ //data: {cookieName: hash['myfield'], myfield: document.id('myfield').get('value')} //}); //}", ) )); ?>
widget('CAutoComplete', array( 'model'=>$model, 'attribute'=>'categories', 'url'=>array('suggestCategories'), 'multiple'=>true, 'htmlOptions'=>array('size'=>50), )); ?>
isNewRecord ? 'Create' : 'Save'); ?>