<?php echo $form->textField($model, 'ftp_site', array('size' => 60, 'maxlength' => 200, 'disabled' => $model->upload_status == 'Published')); ?> <?php echo $form->error($model, 'ftp_site'); ?> </div> </div> <div class="control-group"> <?php echo $form->labelEx($model, 'publisher', array('class' => 'control-label')); ?> <div class="controls"> <?php echo $form->dropDownList($model, 'publisher_id', MyHtml::listData(Publisher::model()->findAll(), 'id', 'name')); ?> <?php echo $form->error($model, 'publisher_id'); ?> </div> </div> <div class="control-group"> <?php echo $form->labelEx($model, 'fairnuse', array('class' => 'control-label')); ?> <div class="controls"> <?php echo $form->textField($model, 'fairnuse', array('class' => 'date')); ?>
echo CHtml::textField("email", $email, array('size' => 60, 'maxlength' => 300, 'readonly' => "readonly")); ?> </div> </div> <div class="control-group"> <?php echo $form->labelEx($model, 'types', array('class' => 'control-label')); ?> <a class="myHint" data-content="Select the type of data to be included in this submission, you may select more than 1. If a data type is missing please contact us on database@gigasciencejournal.com."></a> <div class="controls"> <? $datasetTypes = MyHtml::listData(Type::model()->findAll(), 'id', 'name'); foreach ($datasetTypes as $id => $datasetType) { $checkedHtml = in_array($id, $model->types) ? 'checked="checked"' : ''; echo '<input type="checkbox" name="datasettypes[]" value="'.$id.'"' . $checkedHtml . '/> ' . $datasetType . '<br/>'; } ?> </div> </div> <div class="control-group"> <?php echo $form->labelEx($model, 'title', array('class' => 'control-label')); ?> <a class="myHint" data-content="This should be a short descriptive title of the dataset to be submitted"></a> <div class="controls">
<p> <? $this->renderPartial('/search/_form',array('model'=>$form,'dataset'=>$dataset,'search_result'=>null)); ?> <? if(count($news)>0) {?> <div id="news_slider" class="row"> <? $this->renderPartial('news',array('news'=>$news)); ?> </div> <? }?> <div class="row"> <div class="span8" id="dataset_slider"> <div class="module-box"> <h2><?=Yii::t('app' , 'Datasets and tools') ?></h2> <?php echo CHtml::dropDownList('type', "", CMap::mergeArray(array(0=>Yii::t('app' , 'All types')),MyHtml::listData($dataset_hint,'id','name')) ,array('ajax'=>array('url'=>array('site/AjaxLoadDataset'),'update'=>'#slider_partial','type'=>'POST','data'=>array('type'=>'js:$(this).val()')))); ?> <?php $hint=""; foreach ($dataset_hint as $key => $value) { $hint=$hint.$value->name.": ".$value->description."</br>"; } ?> <a class="hint" id="dataset-hint" data-content="<? echo $hint; ?>"></a> <div id="slider_partial"> <?php $this->renderPartial('slider',array('datasets'=>$datasets)); ?> </div> </div><!--module-box--> </div>