コード例 #1
0
<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']);
?>
&nbsp;
<?php 
echo Yii::t('app', 'and we will get it sorted.');
?>
</p>
</div><!-- yiiForm -->
コード例 #2
0
ファイル: update1.php プロジェクト: jessesiu/GigaDBV3
<?php
$cs = Yii::app()->getClientScript();
$cssCoreUrl = $cs->getCoreScriptUrl();
$cs->registerCssFile($cssCoreUrl . '/jui/css/base/jquery-ui.css');
Yii::app()->clientScript->registerScriptFile('/js/jquery-ui-1.8.21.custom.min.js');
?>


                   

<h1>Update Files of Dataset: <?= $identifier ?></h1>
<div class="actionBar">
    [<?= MyHtml::link('Manage Files', array('admin')) ?>]
</div>
<br/>


<div class="form-horizontal">
    <div class="form overflow">
        <table class="table table-bordered tablesorter" id="file-table">
            <!--tr-->
            <thead>
                <?php
                    $fsort = $files->getSort();
                    $fsort_map = array(
                        'name' => 'span5',
                        'code' => 'span5',
                        'type_id' => 'span2',
                        'format_id' => 'span2',
                        'size' => 'span2',           
                        'description' => 'span2',
コード例 #3
0
ファイル: create.php プロジェクト: jessesiu/GigaDBV3
<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));
コード例 #4
0
ファイル: create.php プロジェクト: jessesiu/GigaDBV3
<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));
コード例 #5
0
ファイル: view.php プロジェクト: jessesiu/GigaDBV3
<?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')));
コード例 #6
0
ファイル: slider.php プロジェクト: jessesiu/GigaDBV3
  <div class="carousel-inner module-inner" style='height:305px;'>
    <?php
    $active="active";
    $itemPerSlide=3;
    $i=0;
    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="";
    } ?>
コード例 #7
0
ファイル: create.php プロジェクト: jessesiu/GigaDBV3
<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));
コード例 #8
0
ファイル: welcome.php プロジェクト: jessesiu/GigaDBV3
<? $this->pageTitle = Yii::app()->name . ' - Welcome' ?>

<h2><?php 
echo Yii::t('app', 'Welcome!');
?>
</h2>
<div class="clear"></div>
<p><?php 
echo Yii::t('app', 'Thank you for registering with GigaDB. An account activation email will be sent to your email address shortly. To complete your account\'s activation, please click on the activation link in the account activation email.');
?>
<br/>
<?php 
echo Yii::t('app', 'If you don\'t receive the email within a few minutes, please check your spam filters, or');
?>
 <?php 
echo MyHtml::link(Yii::t('app', "resend the email"), array("user/sendActivationEmail", 'id' => $user->id));
?>
.</p>

コード例 #9
0
ファイル: login.php プロジェクト: jessesiu/GigaDBV3
				<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-->
コード例 #10
0
                $class = 'submit-selected';
            }
            ?>
            
            <tr class="<?php echo $class; ?>" id="js-dataset-row-<?=$data[$i]->id?>">
                <?
                $upload_status = $data[$i]->upload_status;
                
                if ( $upload_status != 'Published' && $upload_status!='Private' ) { ?>
                    <td class="content-popup" data-content="<? echo MyHtml::encode($data[$i]->description); ?>">
                       unknown
                        
                    </td>
                <? } else { ?>
                    <td class="content-popup" data-content="<? echo MyHtml::encode($data[$i]->description); ?>">
                        <? echo MyHtml::link("10.5524/" . $data[$i]->identifier, "/dataset/" . $data[$i]->identifier, array('target' => '_blank')); ?>
                    </td>
                <? } ?>
                <td class="left content-popup" data-content="<? echo MyHtml::encode($data[$i]->description); ?>"><? echo $data[$i]->title; ?> </td>
                <td><? echo $data[$i]->commonNames; ?> </td>
                <td >
                    <? foreach ($data[$i]->datasetTypes as $type) { ?>
                        <?= $type->name ?>

                    <? } ?>
                </td>
                <td><?= MyHtml::encode($data[$i]->upload_status) ?></td>
                <td><? echo MyHtml::encode($data[$i]->publication_date); ?> </td>
                <td><? echo MyHtml::encode($data[$i]->modification_date); ?> </td>
                <td><? echo count($data[$i]->files); ?></td>
                <td>
コード例 #11
0
ファイル: confirm.php プロジェクト: jessesiu/GigaDBV3
<? if ($user->is_activated) { ?>
<h3>Your account has been activated</h3>

<p><?php 
echo MyHtml::link("Log in", array('site/login'));
?>
 to configure your account.</p>
<? } else { ?>
<h3>Account Pending</h3>

You are now registered. We will contact you shortly. Feel free to
or <?php 
echo MyHtml::link("contact us", "mailto:" . Yii::app()->params['support_email']);
?>
&nbsp;
if you prefer.</p>
<? } ?>

コード例 #12
0
ファイル: _view.php プロジェクト: jessesiu/GigaDBV3
<div class="view">

	<b><?php 
echo MyHtml::encode($data->getAttributeLabel('id'));
?>
:</b>
	<?php 
echo MyHtml::link(MyHtml::encode($data->id), array('view', 'id' => $data->id));
?>
	<br />

	<b><?php 
echo MyHtml::encode($data->getAttributeLabel('submitter_id'));
?>
:</b>
	<?php 
echo MyHtml::encode($data->submitter_id);
?>
	<br />

	<b><?php 
echo MyHtml::encode($data->getAttributeLabel('image_id'));
?>
:</b>
	<?php 
echo MyHtml::encode($data->image_id);
?>
	<br />

	<b><?php 
echo MyHtml::encode($data->getAttributeLabel('identifier'));
コード例 #13
0
ファイル: create.php プロジェクト: jessesiu/GigaDBV3
<div class="actionBar">
<? if (Yii::app()->user->checkAccess('manageUsers')) { ?>
[<?php 
echo MyHtml::link('Manage Users', array('admin'));
?>
]
<? } ?>
</div>
<h2> <?php 
echo Yii::t('app', 'Registration');
?>
</h2>

<?php 
echo $this->renderPartial('_form', array('model' => $model, 'scenario' => 'create', 'update' => false));
?>

コード例 #14
0
ファイル: view.php プロジェクト: jessesiu/GigaDBV3
            ));
        ?>
        <?php } ?>
        
        <div class="clear"></div>

        <?php
            $aspera = null;
            if($model->ftp_site){
                $aspera = strstr( $model->ftp_site , 'pub/');
                if($aspera)
                    $aspera = 'http://aspera.gigadb.org/?B=' . $aspera;
            }

        ?>
        <h4><?=Yii::t('app' , 'Files:')?> <?= MyHtml::link(Yii::t('app','(FTP site)'),$model->ftp_site,array('target'=>'_blank'))?>
        <?php $this->renderPartial('_display_setting',array('setting'=>$setting));?>
        </h4>
        <?php
            $this->widget('zii.widgets.grid.CGridView', array(
                'id' => 'file-grid',
                'dataProvider'=>$files,
                'itemsCssClass'=>'table table-bordered',
                'template' => $template,
                'pager' => 'SiteLinkPager',
                'pagerCssClass' => '',
                'summaryText' => 'Displaying {start}-{end} of {count} File(s).',
                'htmlOptions' => array('style'=>'padding-top: 0px'),
                'columns' => array(
                    array(
                        'name' => 'name',
コード例 #15
0
ファイル: view.php プロジェクト: jessesiu/GigaDBV3
<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')));
コード例 #16
0
ファイル: create.php プロジェクト: jessesiu/GigaDBV3
<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));
コード例 #17
0
ファイル: create.php プロジェクト: jessesiu/GigaDBV3
<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));
コード例 #18
0
ファイル: view.php プロジェクト: jessesiu/GigaDBV3
<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')));
コード例 #19
0
ファイル: create.php プロジェクト: jessesiu/GigaDBV3
<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));
コード例 #20
0
ファイル: list.php プロジェクト: jessesiu/GigaDBV3
?>
]
</div>

<?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>
コード例 #21
0
ファイル: create.php プロジェクト: jessesiu/GigaDBV3
<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));
コード例 #22
0
ファイル: update.php プロジェクト: jessesiu/GigaDBV3
<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));
コード例 #23
0
ファイル: create.php プロジェクト: jessesiu/GigaDBV3
<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));
コード例 #24
0
ファイル: news.php プロジェクト: jessesiu/GigaDBV3
            <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">&lsaquo;</a>
  <a class="carousel-control right gigadb-arrow-button" href="#myNews" data-slide="next">&rsaquo;</a>
</div>
コード例 #25
0
ファイル: create.php プロジェクト: jessesiu/GigaDBV3
<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));
コード例 #26
0
ファイル: index.php プロジェクト: jessesiu/GigaDBV3
            </div>
        </div><!--module-box-->
    </div>

    <div class="span4">
        <?=MyHtml::link(MyHtml::image("/images/rss.png")." RSS" , "/rss/latest" , array('target' => '_blank', 'class'=>'rsslink'))?>
        <div class='module-box'>



                <div class="RSS">
                  <table class="table">
                  <?php foreach($rss_arr as $item)  {?>
                          <tr>
                            <?if(get_class($item) == 'Dataset'){?>
                              <td>New dataset added on <?=$item->publication_date?>: <?=MyHtml::link("10.5524/".$item->identifier, $item->shortUrl)?> <?=$item->title?></td>
                            <?}else{?>
                              <td><?= $item->publication_date ?>: <?=$item->message?></td>
                            <?php } ?>
                          </tr>
                  <?php } ?>
                  </table>
                </div>


        </div>
    </div>
</div>

<!--script charset="utf-8" src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>