Пример #1
0
                            <br/><br/>
                            <a href="/files/GigaDBUploadForm-example1.xls" class="btn pull-right">Download Example File 1</a>
                            <br/><br/>
                            <div class="clear"></div>
                            <a href="/files/GigaDBUploadForm-example2.xls" class="btn pull-right">Download Example File 2</a>
                            <div class="clear"></div>


                            <input id="agree-checkbox" 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/upload'), 'post', array('enctype' => 'multipart/form-data')); ?>
                            <div class="pull-right">
                                <?php echo MyHtml::submitButton('Upload New Dataset', array('class' => 'btn-green upload-control', 'disabled' => 'disabled', 'title' => 'You must agree to the terms and conditions before continuing.')); ?>
                            </div>
                            <?php echo MyHtml::hiddenField('userId', Yii::app()->user->id); ?>
                            <?php echo MyHtml::label('Excel File', 'xls'); ?>
                            <?php echo MyHtml::fileField('xls', null, array('disabled' => 'disabled', 'class' => 'upload-control', 'title' => 'You must agree to the terms and conditions before continuing.')); ?>
                            <?php echo MyHtml::endForm(); ?>

                        </div>
                    </div>
            </td>
            <td style="vertical-align: top; padding-left: 0px">          
                <div>
                    <h2>Online Submission</h2>
                    <div class="form well" style="height: 340px;width: 415px">

                        Provide all the information required for submission via a series of web-forms:
                        <br/><br/>
                        <ul>
Пример #2
0
 public static function dateTimeField($name, $value = '', $htmlOptions = array())
 {
     $id = $htmlOptions['id'];
     $value = DateTools::dataFormat($value, 'd/m/Y H:i:s');
     $dataValue = $timeValue = '';
     if (!empty($value)) {
         $dataValue = substr($value, 0, 10);
         $timeValue = substr($value, 11);
     }
     //Javascript necessário
     $jsFuncChange = "function changeValues( data, time, dataTime ){ " . "var valor = jQuery(data).val()+' '+jQuery(time).val(); " . "jQuery(dataTime).val( valor ); }";
     Yii::app()->clientScript->registerScript('funcDateTimeField', $jsFuncChange, CClientScript::POS_HEAD);
     $idData = $id . '_dataField';
     $idTime = $id . '_timeField';
     $jsChange = "changeValues('#{$idData}','#{$idTime}','#{$id}');";
     $out = MyHtml::datepickerField('', $dataValue, array_merge($htmlOptions, array('id' => $idData, 'name' => '', 'onchange' => $jsChange)));
     $out .= MyHtml::timeField('', $timeValue, array_merge($htmlOptions, array('id' => $idTime, 'name' => '', 'onchange' => $jsChange)));
     $out .= MyHtml::hiddenField($name, $value);
     return self::tag('div', array('class' => 'dateTimeField'), $out);
 }
Пример #3
0
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal">×</button>
    <h3>How to use filters</h3>
  </div>
  <div class="modal-body">
    <p>To see all search results for your keywords, leave all these filters disabled or disable a filter if it is already enabled. If you want to hide some results based on some criteria, choose the filter for your criteria, and select the options that match what you want to see. Search results that are not defined for a filter will show only if the filter is disabled (default).</p>
  </div>
  <div class="modal-footer">
    <a href="#" class="btn" data-dismiss="modal">Close</a>
  </div>
</div>-->
<!-- <?php 
echo MyHtml::beginForm('/search/index', 'GET', array('id' => 'filter_form'));
echo MyHtml::hiddenField("keyword", $model->keyword);
echo MyHtml::hiddenField("tab", $model->tab, array('id' => 'filter_tab'));
echo MyHtml::hiddenField("exclude", $model->exclude);
echo MyHtml::submitButton(Yii::t('app', 'Apply Filters'), array('class' => 'span2 btn-green filter'));
?>
 -->

<!-- FILTERS FOR DATASETS -->
    <div id="dataset_filter">
        <div class="filter">
            <h4 class='heading'><?php 
echo Yii::t('app', 'Type');
?>
</h4>
            <div class='filter-content' style="<?php 
echo $model->type ? 'display:block;' : 'display:none;';
?>
">