public function optionCk($model, $attribute, $inline = true, $htmlOptions = array()) { $dados = MyHtml::getDataToField($model, $attribute, $htmlOptions); if (isset($htmlOptions['label'])) { $dados['label'] = $htmlOptions['label']; } return MyHtml::optionCk($dados['name'], $dados['label'], $dados['value'], $inline, $htmlOptions); }
<h1>Create Relation</h1> <? if (Yii::app()->user->checkAccess('admin')) { ?> <div class="actionBar"> [<?php echo MyHtml::link('Manage Relations', array('admin')); ?> ] </div> <? } ?> <?php echo $this->renderPartial('_form', array('model' => $model));
<h1>Create Link</h1> <? if (Yii::app()->user->checkAccess('admin')) { ?> <div class="actionBar"> [<?php echo MyHtml::link('Manage Links', array('admin')); ?> ] </div> <? } ?> <?php echo $this->renderPartial('_form', array('model' => $model));
?> <div class="row file-container"> <div class="span1 logo-container-file"><img src="/images/icons/f-new-icon.png"> </div> <div class="span3 file-name"><a href="<?php echo $file->location; ?> "><?php echo strlen($file->name) > 20 ? substr($file->name, 0, 20) . '...' : $file->name; ?> </a></div> <div class="span2 file-type"><?php echo $file->type->name; ?> </div> <div class="span2 file-size"><?php echo MyHtml::encode(File::staticBytesToSize($file->size)); ?> </div> <div class="span1 file-checkbox"><input type="checkbox" ></div> </div> <?php } } ?> </div> <div style="clear:both;"></div> <br/> <?php } ?>
<h1>Create Manuscript</h1> <? if (Yii::app()->user->checkAccess('admin')) { ?> <div class="actionBar"> [<?php echo MyHtml::link('Manage Manuscripts', array('admin')); ?> ] </div> <? } ?> <?php echo $this->renderPartial('_form', array('model' => $model));
<h1>Add Fairly Use Policy</h1> <div class="actionBar"> [<?php echo MyHtml::link('Fairly Use Policy', array('admin')); ?> ] </div> <?php echo $this->renderPartial('_form', array('model' => $model, 'image' => $image));
<h1>Create Author</h1> <? if (Yii::app()->user->checkAccess('admin')) { ?> <div class="actionBar"> [<?php echo MyHtml::link('Manage Authors', array('admin')); ?> ] </div> <? } ?> <?php echo $this->renderPartial('_form', array('model' => $model));
<? if (Yii::app()->params['less_dev_mode']) { ?> <link rel="stylesheet/less" type="text/css" href="/less/site.less?time=<?php echo time(); ?> "> <? Yii::app()->clientScript->registerScriptFile('/js/less-1.3.0.min.js'); ?> <? } else { ?> <link rel="stylesheet" type="text/css" href="/css/site.css"/> <? } ?> <?php echo $this->renderPartial('//shared/_google_analytics'); ?> <title><?php echo MyHtml::encode($this->pageTitle); ?> </title> <?php $url = Yii::app()->createAbsoluteUrl(Yii::app()->request->url); $split_url = explode("view/id/", $url); $canon_url = $split_url[0]; if (count($split_url) > 1) { $second_split = explode("/", $split_url[1]); $canon_url = $canon_url . $second_split[0]; } ?> <link rel="canonical" href="<?php echo $canon_url; ?>
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">
<h1>Modify Update Log <?php echo $model->id; ?> </h1> <? if (Yii::app()->user->checkAccess('admin')) { ?> <div class="actionBar"> [<?php echo MyHtml::link('Manage Update Logs', array('admin')); ?> ] </div> <? } ?> <?php echo $this->renderPartial('_form', array('model' => $model));
<div class="<? echo $active; ?> item"> <? }?> <div class="data-block"> <h4><?php echo MyHtml::encode($temp_news->title); ?></h4> <p> <? echo '<br/>'; if(strlen($temp_news->body) > 100){ echo MyHtml::encode(substr($temp_news->body,0,100)." ..."); }else { echo MyHtml::encode($temp_news->body); } ?> </p> <? echo MyHtml::link("See More", array("news/view",'id'=>$temp_news->id)); ?> </div> <?php if($i%$itemPerSlide==($itemPerSlide-1) || $i==count($news)-1 ) {?> </div> <? } $i++; $active=""; } ?> </div> </div> <!-- Carousel nav --> <a class="carousel-control left gigadb-arrow-button" href="#myNews" data-slide="prev">‹</a> <a class="carousel-control right gigadb-arrow-button" href="#myNews" data-slide="next">›</a> </div>
<div class="controls"> <?php echo $form->checkbox($model,'newsletter'); ?> <label><?=Yii::t('app' , 'Add me to GigaDB\'s mailing list')?></label> </div> </div> <? if ($model->isNewRecord) { ?> <div class="control-group"> <div class="controls"> <?= $form->labelEx($model,'validacion') ?> <? $this->widget('application.extensions.recaptcha.EReCaptcha', array('model'=>$model, 'attribute'=>'validacion', 'theme'=>'clean', 'language'=>'zh_TW', 'publicKey'=>Yii::app()->params['recaptcha_publickey'])) ?> <?= $form->error($model,'validacion') ?> </div> </div> <? } ?> </div><!--well--> <div class="pull-right"> <?= MyHtml::submitButton($model->isNewRecord ? Yii::t('app' , 'Register') : 'Save', array('class'=>'btn-green')) ?> </div> <? $this->endWidget() ?> </div><!--span8--> </div><!-- user-form -->
<?php $this->widget('CLinkPager', array('pages' => $pages)); ?> <div class="item"> <?php foreach ($userList as $n => $model) { echo MyHtml::encode($model->id); ?> : <?php echo MyHtml::link($model->email, array('show', 'id' => $model->id)); ?> (<?php echo MyHtml::encode($model->email); ?> ) (<strong><?php echo MyHtml::encode($model->getRole()); ?> </strong>) <br/> <?php } ?> </div> <br/> <?php $this->widget('CLinkPager', array('pages' => $pages));
<h1>View ExternalLink #<?php echo $model->id; ?> </h1> <? if (Yii::app()->user->checkAccess('admin')) { ?> <div class="actionBar"> [<?php echo MyHtml::link('Manage External Links', array('admin')); ?> ] </div> <? } ?> <?php $this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array('id', 'dataset_id', 'url', 'external_link_type_id')));
<h2>View RssMessage #<?php echo $model->id; ?> </h2> <? if (Yii::app()->user->checkAccess('admin')) { ?> <div class="actionBar"> [<?php echo MyHtml::link('Manage RSS Messages', array('admin')); ?> ] </div> <? } ?> <?php $this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array('id', 'message', 'publication_date')));
?> <label disabled="disabled"><?php echo Yii::t('app', 'Add me to GigaDB\'s mailing list'); ?> </label> </div> </div> <div class="control-group"> <div class="controls"> <a id="cancel-btn" class="btn" style="display:none"><?php echo Yii::t('app', 'Cancel'); ?> </a> <?php echo MyHtml::submitButton(Yii::t('app', 'Save'), array('id' => 'save-btn', 'class' => 'btn-green', 'style' => 'display:none')); ?> </div> </div> </div><!--well--> <? $this->endWidget() ?> </div><!--span8--> </div><!-- user-form --> </td> <td style="padding-left: 50px;"> <div class="row"> <div class="form"> <div class="left4">
public static function dateRange($model, $attr, $value = array(), $htmlOptions = array()) { $val0 = isset($value[0]) ? $value[0] : null; $val1 = isset($value[1]) ? $value[1] : null; return MyHtml::dateField($model, $attr . '[0]', $val0) . '<br/>Até<br/>' . MyHtml::dateField($model, $attr . '[1]', $val1); }
<div class="tab-content"> <?php foreach ($datasets as $dataset) { ?> <div class="search-result-container"> <!--Dataset section--> <div class="row"> <div class="span1 logo-container"><img src="/images/icons/g.png"></div> <div class="span8 main-content"> <ul class="nav nav-tabs nav-stacked result-cell"> <li><a data-content="<?php echo MyHtml::encode($dataset->description); ?> " class="result-main-link left content-popup" href="/dataset/<?php echo $dataset->identifier; ?> "><?php echo $dataset->title; ?> </a></li> <li> <strong> <?php echo $dataset->authorNames; ?> </strong> </li> <li class="searchID"><?php echo Yii::t('app', 'DOI'); ?> :<?php
foreach ($datasets as $key=>$dataset){ if($i%$itemPerSlide==0) {?> <div class="<? echo $active; ?> item"> <? }?> <div class="data-block"> <?php $url = $dataset->getImageUrl(); echo MyHtml::link(MyHtml::image($url ,'image'), $dataset->shortUrl,array('class'=>'image-hint', )); echo 'DOI: '.MyHtml::link("10.5524/".$dataset->identifier, $dataset->shortUrl); echo '<br/><br/>'; $dtitle = strlen($dataset->title) > 70 ? strip_tags( substr($dataset->title , 0 , 70) ) .'...' : $dataset->title; echo $dtitle; echo '<br/><br/>'; echo MyHtml::encode($dataset->publication_date); ?> </div> <?php if($i%$itemPerSlide==($itemPerSlide-1) || $i==count($datasets)-1 ) {?> </div> <? } $i++; $active=""; } ?> </div> <!-- Carousel nav --> <a class="carousel-control left homepage-carousel-control" href="#myCarousel" data-slide="prev">‹</a> <a class="carousel-control right homepage-carousel-control" href="#myCarousel" data-slide="next">›</a>
<div class="news"> <h3><?php echo MyHtml::encode($model->title); ?> </h3> <p><?php echo MyHtml::encode($model->body); ?> </p> </div>
<h1>Create Project</h1> <? if (Yii::app()->user->checkAccess('admin')) { ?> <div class="actionBar"> [<?php echo MyHtml::link('Manage Projects', array('admin')); ?> ] </div> <? } ?> <?php echo $this->renderPartial('_form', array('model' => $model));
<h1>Create Species</h1> <? if (Yii::app()->user->checkAccess('admin')) { ?> <div class="actionBar"> [<?php echo MyHtml::link('Manage Species', array('admin')); ?> ] </div> <? } ?> <?php echo $this->renderPartial('_form', array('model' => $model));
<h1>Create File</h1> <? if (Yii::app()->user->checkAccess('admin')) { ?> <div class="actionBar"> [<?php echo MyHtml::link('Manage Files', array('admin')); ?> ] </div> <? } ?> <?php echo $this->renderPartial('_form', array('model' => $model));
<button class="btn btn_filter" id="btn_release_date"><? if(empty($model->size_from) && empty($model->size_to)) echo Yii::t('app' , 'Enable'); else echo Yii::t('app' , 'Disable'); ?></button> <div class="options <? if(empty($model->size_from) && empty($model->size_to)) echo 'disabled'; ?>"> <label>From</label> <? echo Myhtml::textField("size_from",$model->size_from,array('class'=>'size')); echo Myhtml::dropDownList("size_from_unit",$model->size_from_unit,array("1"=>"KB","2"=>"MB","3"=>"GB","4"=>"TB"),array('class'=>'unit')); ?> <div style="clear:both"></div> <label>To</label> <? echo Myhtml::textField("size_to",$model->size_to,array('class'=>'size')); echo Myhtml::dropDownList("size_to_unit",$model->size_to_unit,array("1"=>"KB","2"=>"MB","3"=>"GB","4"=>"TB"),array('class'=>'unit'));?> <div style="clear:both"></div> </div> </div> </div> </div> <?php echo MyHtml::submitButton(Yii::t('app', 'Apply Filters'), array('class' => 'span2 btn-green filter')); echo MyHtml::endForm(); ?> <script> submitFilter = function(){ var action=$(this).attr("action"); var tab=$("#filter_tab").val(); if(tab!="" && action.indexOf("#") ==-1){ action=action+tab; } $(this).attr("action",action); $(this).submit(); return false; }; $(function () { $('.date, .size').focus(function() {
<h1>Create Type</h1> <? if (Yii::app()->user->checkAccess('admin')) { ?> <div class="actionBar"> [<?php echo MyHtml::link('Manage News', array('admin')); ?> ] </div> <? } ?> <?php echo $this->renderPartial('_form', array('model' => $model));
<br/> <br/> <br/> <br/> <input id="agree-checkbox1" type="checkbox" style="margin-right:5px"/><a target="_blank" href="/site/term">I have read GigaDB's Terms and Conditions</a> <br/> <div class="clear"></div> <?php echo MyHtml::form(Yii::app()->createUrl('dataset/create1'), 'post', array('enctype' => 'multipart/form-data')); ?> <div class="pull-right"> <?php echo MyHtml::submitButton('Submission wizard', array('id' => 'online', 'class' => 'btn-green', 'disabled' => 'disabled', 'title' => 'You must agree to the terms and conditions before continuing.')); ?> </div> <br/> </div> </div> </td> </tr> </table> <script> $(function() { $('#agree-checkbox').click(function() { if ($(this).is(':checked')) { $('.upload-control').attr('disabled', false);
<?php $this->breadcrumbs = array('Prefixes' => array('index'), $model->prefix); $this->menu = array(array('label' => 'List Prefix', 'url' => array('index')), array('label' => 'Create Prefix', 'url' => array('create')), array('label' => 'Update Prefix', 'url' => array('update', 'id' => $model->id)), array('label' => 'Delete Prefix', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => 'Are you sure you want to delete this item?')), array('label' => 'Manage Prefix', 'url' => array('admin'))); ?> <h1>View Prefix #<?php echo $model->id; ?> </h1> <? if (Yii::app()->user->checkAccess('admin')) { ?> <div class="actionBar"> [<?php echo MyHtml::link('Manage Prefixes', array('admin')); ?> ] </div> <? } ?> <?php $this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array('id', 'prefix', 'url')));
<div class="clear"></div> <div class="yiiForm"> <p><?php echo Yii::t('app', 'An account activation email has been emailed to your email address.'); ?> </p> <p><?php echo Yii::t('app', 'If you don\'t receive the email within a few minutes, please check your spam filters.'); ?> <br/> <?php echo Yii::t('app', 'Click'); ?> <?php echo MyHtml::link(Yii::t('app', "here"), array("user/sendActivationEmail", 'id' => $user->id)); ?> <?php echo Yii::t('app', 'to resend the email'); echo Yii::t('app', 'or'); ?> <?php echo MyHtml::link(Yii::t('app', "contact us"), "mailto:" . Yii::app()->params['support_email']); ?> <?php echo Yii::t('app', 'and we will get it sorted.'); ?> </p> </div><!-- yiiForm -->
<tr> <? echo $form->hiddenField($file, '[' . $i . ']extension'); echo $form->hiddenField($file, '[' . $i . ']id'); echo $form->hiddenField($file, '[' . $i . ']dataset_id'); echo $form->hiddenField($file, '[' . $i . ']location'); echo $form->hiddenField($file, '[' . $i . ']extension'); ?> <td class="left"><?php echo $file->name ?></td> <td class="left"><?= CHtml::activeDropDownList($file, '[' . $i . ']code', $samples_data, array('class' => 'span2')); ?></td> <td class="left"><?= CHtml::activeDropDownList($file, '[' . $i . ']type_id', CHtml::listData(FileType::model()->findAll(), 'id', 'name'), array('class' => 'span2')); ?></td> <td> <?= CHtml::activeDropDownList($file, '[' . $i . ']format_id', CHtml::listData(FileFormat::model()->findAll(), 'id', 'name'), array('class' => 'autowidth')); ?></td> <td><span style="display:none"><?= File::staticGetSizeType($file->size) . ' ' . strlen($file->size) . ' ' . $file->size ?></span><?= MyHtml::encode(File::staticBytesToSize($file->size)) ?></td> <td><?php echo $form->textArea($file, '[' . $i . ']description', array('rows' => 3, 'cols' => 30, 'style' => 'resize:none')); ?></td> <td> <?php echo CHtml::submitButton("Update", array('class' => 'update btn', 'name' => $i)); ?> </td> </tr> <? $i++; } ?> </table> </div> <div class="span12" style="text-align:center"> <?php
<div class="controls"> <?php echo $form->passwordField($model, 'password'); ?> <?php echo $form->error($model, 'password'); ?> </div> </div> <div class="controls"> <?php echo $form->checkBox($model, 'rememberMe'); ?> <?php echo $form->label($model, 'rememberMe'); ?> </div> </div><!--form--> <p class="pull-left"><?php echo MyHtml::link(Yii::t('app', "Lost Password"), array('user/reset', 'username' => $model->username)); ?> </p> <?php echo MyHtml::submitButton(Yii::t('app', 'Login'), array('class' => 'btn-green pull-right')); ?> <? $this->endWidget() ?> </div> </div><!--login-->