Beispiel #1
0

<div class="middlenarrow">

	<h1><?php 
echo It::t('menu_label', 'admin_stations_list');
?>
</h1>

<?php 
echo CHtml::link('Add new Station', array('admin/StationSave'));
?>
<br /><br />

<?php 
if (count($stations) > 0) {
    ?>
    <table class="tablelist" style="width: 500px;">
    <tr>
        <th>Station ID</th>
        <th>Type</th>
        <th>Display Name</th>
        <th>Time Zone</th>
        <th>Communication Type</th>
        <th>Total Sensors</th>
        <th>Tools</th>
    </tr>
    <?php 
    foreach ($stations as $key => $station) {
        ?>
        <tr class="<?php 
 public static function getTypes()
 {
     return array('mail' => It::t('home_schedule', 'type_mail'), 'ftp' => It::t('home_schedule', 'type_ftp'));
 }
Beispiel #3
0
                    <?php 
    if (isset($item['label'])) {
        ?>
                        <li>
                            <a class="<?php 
        if (isset($item['active'])) {
            ?>
active<?php 
        }
        ?>
" href="<?php 
        echo Yii::app()->createUrl($controller . '/' . $action);
        ?>
">
                                <?php 
        echo It::t('menu_label', $item['label']);
        ?>
                            </a>
                        </li>
                            <li class="delimiter">&nbsp;</li>
                    <?php 
    }
    ?>
                <?php 
}
?>
            </ul>
            <div class="clear"></div>
        </div>
    </div>
</div>
?>
';
    var dest_user_ftp   = '<?php 
echo It::t('home_schedule', 'dest_param_ftp_user');
?>
';
    var dest_pwd_ftp    = '<?php 
echo It::t('home_schedule', 'dest_param_ftp_password');
?>
';

    var dest_name_local = '<?php 
echo $dest_types['local_folder'];
?>
';
    var dest_fld_local  = '<?php 
echo It::t('home_schedule', 'dest_param_local_folder');
?>
';
    var dest_note_local = '<?php 
echo It::t('home_schedule', 'local_folder_notice');
?>
';
    var scheduled_reports_path = '<?php 
echo addslashes($scheduleTypeReportProcessed->getFileDir()) . DIRECTORY_SEPARATOR;
?>
';


</script>
Beispiel #5
0
 public function attributeLabels()
 {
     return array('station_id' => It::t('site_label', 'filter_select_stations'), 'sensor_feature_code' => It::t('site_label', 'filter_select_features'), 'date_from' => It::t('site_label', 'filter_date_from'), 'date_to' => It::t('site_label', 'filter_date_to'), 'time_from' => It::t('site_label', 'filter_time_from'), 'time_to' => It::t('site_label', 'filter_time_to'), 'accumulation_period' => It::t('site_label', 'filter_accumulation_period'));
 }
?>
<div class="middlewide third_menu">
    <div class="middlenarrow">
        <div id="third_menu">
            <ul>
                <li><a class="<?php 
echo $cur_controller_action == 'users' ? 'active' : '';
?>
" href="<?php 
echo $this->createUrl('superadmin/LongDbSetup');
?>
"><?php 
echo It::t('menu_label', 'superadmin_LongDbSetup');
?>
</a></li>
                <li class="delimiter">&nbsp;</li>
                <li><a class="<?php 
echo $cur_controller_action == 'user' ? 'active' : '';
?>
" href="<?php 
echo $this->createUrl('superadmin/LongDbTask');
?>
"><?php 
echo It::t('menu_label', 'superadmin_LongDbTask');
?>
</a></li>
            </ul>
            <div class="clear"></div>
        </div>
    </div>
</div>
Beispiel #7
0
</div></div>
  
<div class="middlenarrow">  

    
<?php 
if (!$form->station_id) {
    ?>
    <h1><?php 
    echo It::t('home_rg', 'graph__no_station_selected');
    ?>
</h1>    
<?php 
} else {
    if (!$series_data) {
        ?>
    <h1><?php 
        echo It::t('home_rg', 'graph__no_data_in_selected_period');
        ?>
</h1>
<?php 
    } else {
        ?>
    <div id="graph" style="height: 600px;"></div>
<?php 
    }
}
?>


</div>
Beispiel #8
0
                    <th><?php 
        echo It::t('home_rg', 'panel__battery');
        ?>
</th>
                    <td><div class="cover"><div><?php 
        echo $station_data['sensor_details']['batt_volt'];
        ?>
</div></div></td>
                    <td><?php 
        echo $station_data['sensor_details']['sensor_data_id'] ? 'V' : '&nbsp;';
        ?>
</td>
                </tr>
                <tr>
                    <th><?php 
        echo It::t('home_rg', 'panel__total24');
        ?>
</th>
                    <td><div class="cover"><div><?php 
        echo $station_data['sensor_details']['24hr_total'];
        ?>
</div></div></td>
                    <td><?php 
        echo $station_data['sensor_details']['sensor_data_id'] ? $station_data['sensor_details']['metric'] : '&nbsp;';
        ?>
</td>
                </tr>
                </table>
            </div><!-- div.content -->
        </div>
Beispiel #9
0

<div class="middlenarrow">
    <h1><?php 
echo It::t('menu_label', 'superadmin_LongDbSetup');
?>
</h1>

    <?php 
echo CHtml::beginForm($this->createUrl('superadmin/longdbsetup'), 'post');
?>

    <blockquote class="tip">
        <p>Attention! Be sure your DB Name - is name of new or not existed database. Script will create it again during installation.</p>
    </blockquote>

    <?php 
echo CHtml::errorSummary($conf_form);
?>

    <table class="formtable">
        <tr>
            <th><?php 
echo CHtml::activeLabel($conf_form, 'Status');
?>
</th>
            <td class ="<?php 
echo $conf_form->status ? 'EnableTD' : 'DisableTD';
?>
"> <?php 
echo $conf_form->status ? 'Enable' : 'Disable';
?>
<div class="middlewide third_menu">
    <div class="middlenarrow">
        <div id="third_menu">
            <ul>
                <li><a class="<?php 
echo $cur_controller_action == 'importmsg' ? 'active' : '';
?>
" href="<?php 
echo $this->createUrl('admin/importmsg');
?>
"><?php 
echo It::t('menu_label', 'admin_import_message');
?>
</a></li>
                <li class="delimiter">&nbsp;</li>
                <li><a class="<?php 
echo $cur_controller_action == 'importxml' ? 'active' : '';
?>
" href="<?php 
echo $this->createUrl('admin/importxml');
?>
"><?php 
echo It::t('menu_label', 'admin_import_xml');
?>
</a></li>
            </ul>
            <div class="clear"></div>
        </div>
    </div>
</div>
Beispiel #11
0
    ?>
/hr)</th>
        <th style="width: 90px;"><?php 
    echo It::t('home_rg', 'table__col_datetime');
    ?>
</th>
        <th><?php 
    echo It::t('home_rg', 'table__col_status');
    ?>
</th>
    </tr>
    <?php 
    if (!$render_data['listing']) {
        ?>
        <tr><td colspan="13"><?php 
        echo It::t('home_rg', 'table__no_data');
        ?>
</td></tr>
    <?php 
    } else {
        ?>
        <?php 
        foreach ($render_data['listing'] as $key => $value) {
            $class = fmod($key, 2) == 0 ? 'c' : '';
            if (count($value['filter_errors'])) {
                $class .= " error";
            }
            ?>

        <tr class="<?php 
            echo $class;
<div id="autorefreshedPageError"></div>

<?php 
if (!$render_data['stations']) {
    ?>
        <div class="middlenarrow">
            <div class="spacer"></div>
            <?php 
    echo It::t('home_aws', 'single__no_aws_stations');
    ?>
        </div>
    <?php 
} else {
    ?>
        <div id="autorefreshedPpage_5min">
            <?php 
    $this->renderPartial('aws_single', array('render_data' => $render_data));
    ?>
        </div>
<?php 
}
Beispiel #13
0
<?php

/** @var $form SuperAdminConfigForm */
?>

<div class="middlenarrow">
    <h1><?php 
echo It::t('menu_label', 'superadmin_aws_format');
?>
</h1>

<?php 
echo CHtml::beginForm($this->createUrl('superadmin/awsformat'), 'post');
?>

<?php 
echo CHtml::errorSummary($form);
?>

<table class="formtable">
    <?php 
foreach ($form->getConfig() as $config) {
    ?>
    <tr>
        <th><?php 
    echo CHtml::activeLabel($form, "config[{$config->key}]");
    ?>
</th>
        <td><?php 
    echo CHtml::activedropDownList($form, "config[{$config->key}]", AWSFormatConfigForm::listFormats());
    ?>
                    <div style="clear: both;"></div>
                    <?php 
echo CHtml::error($form, 'date_to');
?>
                </td>
                <td>
                    <?php 
echo CHtml::activeTextField($form, 'time_to', array('style' => 'width: 50px;'));
?>
                    <?php 
echo CHtml::error($form, 'time_to');
?>
                </td>
                <td>
                    <?php 
echo CHtml::submitButton(It::t('site_label', 'do_filter'), array('name' => 'filter'));
?>
                    <?php 
echo CHtml::submitButton(It::t('site_label', 'do_reset'), array('name' => 'clear'));
?>
                </td>
            </tr>
        </table>
        <?php 
echo CHtml::endForm();
?>

        <div class="spacer"></div>
    </div>
</div>
                    <?php 
echo CHtml::error($form, 'date_to');
?>
                </td>
                <td>
                    <?php 
echo CHtml::activeTextField($form, 'time_to', array('style' => 'width: 50px;'));
?>
                    <?php 
echo CHtml::error($form, 'time_to');
?>
                </td>
                <td>
                    <?php 
echo CHtml::submitButton(It::t('site_label', 'do_filter'), array('name' => 'filter'));
?>
                    <?php 
echo CHtml::submitButton(It::t('site_label', 'do_reset'), array('name' => 'clear'));
?>
                    <?php 
echo CHtml::submitButton(It::t('site_label', 'do_export'), array('name' => 'export', 'onclick' => 'return confirm("Exporting data takes time. Please be patient.")'));
?>
                </td>
            </tr>
        </table>
        <?php 
echo CHtml::endForm();
?>
        <div class="spacer"></div>
    </div>
</div>
echo CHtml::error($form, 'time_to');
?>
 
						</td>
						<td>&nbsp;</td>
						<td class="buttons">
							<input type="submit" name="filter" value="<?php 
echo It::t('site_label', 'do_filter');
?>
" />
							<input type="submit" name="clear" value="<?php 
echo It::t('site_label', 'do_reset');
?>
" />
							<input type="submit" name="export" value="<?php 
echo It::t('site_label', 'do_export');
?>
" />
						</td> 
					</tr>
				</table>
			</form>     

		<div class="clear"></div>
		</div>
	</div><!-- div.middlenarrow -->
	<div class="spacer"></div>
</div><!-- div.middlewide -->

<div class="middlenarrow">
    <?php 
Beispiel #17
0
<?php

$stations = $form->stations;
$groups = $form->groups;
$data = $form->data;
?>


<div class="middlenarrow grouplist">
    <h1><?php 
echo It::t('menu_label', 'admin_station_groups');
?>
</h1><?php 
echo CHtml::beginForm($this->createUrl('admin/stationgroups'), 'post');
echo CHtml::activeLabel($group, 'group_name');
echo CHtml::activeHiddenField($group, 'group_id');
echo CHtml::activeTextField($group, 'name', array('style' => 'width: 80px;'));
echo CHtml::submitButton(isset($group->group_id) ? 'Update' : 'Add');
?>
<br /><br /><?php 
echo CHtml::error($group, 'name');
echo CHtml::endForm();
echo CHtml::beginForm($this->createUrl('admin/stationgroups'), 'post');
if (count($groups) > 0 and count($stations) > 0) {
    ?>
        <table class="tablelist">
            <tr>
                <th class="stations" style="border-left: 1px solid #ead6ae !important;">Stations</th>
                <?php 
    foreach ($groups as $group) {
        ?>
					<div class="cover">
						<div><?php 
            echo $visibillityData['status'];
            ?>
</div>
					</div>
				</td>
				<td>&nbsp;</td>
			</tr>
			<?php 
        }
        if (isset($renderDataRecord['extinction'])) {
            ?>
			<tr>
				<th><?php 
            echo It::t('home_aws', 'single__block_vis_extinction');
            ?>
</th>

				<td>
					<div class="cover">
						<div><?php 
            echo $renderDataRecord['extinction']['last'];
            ?>
</div>
					</div>
				</td>
				<td>&nbsp;</td>
			</tr>
			<?php 
        }
Beispiel #19
0
            cursor:{zoom:true},
            legend: { show: true, placement: 'outside' },
            series: series_names
        });

        $('#resetZoom').click(function(){
            plot1.resetZoom();
        });

});


</script>

<div id="chart1" class="plot" style="width:1000px;height:300px;"></div>

<div style="padding-top:20px"><?php 
        echo It::t('home_rg', 'graph__select_area_to_zoom');
        ?>
 <button value="reset" id="resetZoom" type="button" ><?php 
        echo It::t('home_rg', 'graph__do_soom_out');
        ?>
</button></div>

<?php 
    }
}
?>


</div>
Beispiel #20
0
 public function attributeLabels()
 {
     return array('station_id' => It::t('site_label', 'filter_select_station'), 'date_from' => It::t('site_label', 'filter_date_from'), 'date_to' => It::t('site_label', 'filter_date_to'), 'time_from' => It::t('site_label', 'filter_time_from'), 'time_to' => It::t('site_label', 'filter_time_to'));
 }
</textarea>
					<div class="action_msg"></div>
					<?php 
    echo CHtml::button(It::t('site_label', 'do_generate'), array('onclick' => 'regenerateScheduledReportWithChangesStart(this)'));
    ?>
 &nbsp;
					<?php 
    echo CHtml::button(It::t('site_label', 'do_save'), array('onclick' => 'resaveScheduledReportWithRefreshContinue(this)'));
    ?>
 &nbsp;
					<?php 
    echo CHtml::button(It::t('site_label', 'do_cancel'), array('id' => 'cancel-button', 'style' => 'display: none;', 'onclick' => 'cancelScheduledReport(this)'));
    ?>
 &nbsp;
					<?php 
    echo CHtml::button(It::t('site_label', 'do_download'), array('onclick' => 'downloadScheduledReportWithRefreshContinue(this)'));
    ?>
					<?php 
    echo CHtml::endForm();
    ?>
	            </td>
			</tr>                       		             
		</table> 
	<?php 
}
?>
	</div>
</div>

<script type="text/javascript">
	$('#speciText').bind('input propertychange', function() 
Beispiel #22
0
<?php 
$this->renderPartial('__aws_graph_form', array('form' => $form));
?>

<div class="middlenarrow">

    <?php 
if (!$res) {
    ?>

        <?php 
    if ($form->isPrepare()) {
        ?>
            <h1><?php 
        echo It::t('home_aws', 'graph__no_data');
        ?>
</h1>
        <?php 
    }
    ?>

    <?php 
} else {
    ?>

        <div id="graph" style="height: 600px;"></div>

    <?php 
}
?>
</div></div>
                            </td>
                            <td><?php 
            echo $value['sea_level_mean']['metric_html_code'];
            ?>
</td>
                            <td colspan="3">
                                <?php 
            echo isset($value['last_high']) ? date('m/d/y, H:i', strtotime($value['last_high']['measuring_timestamp'])) : '&nbsp;';
            ?>

                            </td>
                        </tr>
                        <tr>
                            <th colspan="3" style="text-align:right;"><?php 
            echo It::t('home_aws', 'single__block_sea_last_low');
            ?>
</th>
                            <td>
                                <div class="cover"><div><?php 
            echo isset($value['last_low']) ? $value['last_low']['value'] : '-';
            ?>
</div></div>
                            </td>
                            <td><?php 
            echo $value['sea_level_mean']['metric_html_code'];
            ?>
</td>
                            <td colspan="3">
                                <?php 
            echo isset($value['last_low']) ? date('m/d/y, H:i', strtotime($value['last_low']['measuring_timestamp'])) : '&nbsp;';
                    <td><?php 
        echo $i++;
        ?>
.</td>
                    <td><?php 
        echo $value->default_prefix;
        ?>
</td>
                    <td>Calculation: <?php 
        echo $value->display_name;
        ?>
</td>
                    <td style="padding: 1px"><?php 
        echo CHtml::activeDropDownList($form, "calculations[{$value->handler_id}][aws_panel_show]", array($form->defListBox[0], $form->defListBox[1]), array('style' => 'width: 50px;'));
        ?>
                    </td>
                    <td></td>
                </tr>
            <?php 
    }
    ?>
            </table>
        <div style="text-align: right;padding: 10px"><?php 
    echo CHtml::submitButton(It::t('site_label', 'do_save'));
    ?>
        </div><?php 
    echo CHtml::endForm();
}
?>

</div>
Beispiel #25
0
<?php

/** @var $form SuperAdminConfigForm */
?>

<div class="middlenarrow">
    <h1><?php 
echo It::t('menu_label', 'superadmin_config');
?>
</h1>

<?php 
echo CHtml::beginForm($this->createUrl('superadmin/config'), 'post');
?>

<?php 
echo CHtml::errorSummary($form);
?>

<table class="formtable">
    <?php 
foreach ($form->getConfig() as $config) {
    ?>
    <tr>
        <th><?php 
    echo CHtml::activeLabel($form, "config[{$config->key}]");
    ?>
</th>
        <td><?php 
    echo CHtml::activeTextField($form, "config[{$config->key}]");
    ?>
Beispiel #26
0
            <div id="logo">
                <a href="<?php 
echo $this->createUrl('update/index');
?>
">v <?php 
Yii::app()->params['version']['sprint'];
?>
</a>
            </div>
            <div id="copyright">
                <?php 
echo It::t('site_label', 'main_layout__footer_year');
?>
                <?php 
echo It::t('site_label', 'main_layout__footer_copyright');
?>
            </div>
            <div style="clear:both"></div>
        <?php 
$synchronization = new Synchronization();
?>
        <div class="status" >
            Main role: <?php 
echo $synchronization->getMainRole();
?>
.
            Current role: <?php 
echo $synchronization->getRole();
?>
.
Beispiel #27
0
                            <?php 
echo CHtml::activeTextField($form, 'time_to', array('style' => 'width: 50px;'));
?>
                            <?php 
echo CHtml::error($form, 'time_to');
?>
 
                        </td>
                        <td>&nbsp;</td>
                        <td class="buttons">
                            <input type="submit" name="filter" value="<?php 
echo It::t('site_label', 'do_filter');
?>
" />
                            <input type="submit" name="clear" value="<?php 
echo It::t('site_label', 'do_reset');
?>
" />
                        </td> 
                    </tr>


                    </table>


                </form>     

                <div class="clear"></div>
                </div>
            </div><!-- div.middlenarrow -->
            <div class="spacer"></div>
"><?php 
echo It::t('menu_label', 'admin_setup_setup_sensors');
?>
</a></li>
                <li class="delimiter">&nbsp;</li>
                <li><a class="<?php 
echo $cur_controller_action == 'dbsetup' ? 'active' : '';
?>
" href="<?php 
echo $this->createUrl('admin/dbsetup');
?>
"><?php 
echo It::t('menu_label', 'admin_setup_db_setup');
?>
</a></li>
                <li class="delimiter">&nbsp;</li>
                <li><a class="<?php 
echo $cur_controller_action == 'mailsetup' ? 'active' : '';
?>
" href="<?php 
echo $this->createUrl('admin/mailsetup');
?>
"><?php 
echo It::t('menu_label', 'admin_setup_mail_setup');
?>
</a></li>
            </ul>
            <div class="clear"></div>
        </div>
    </div>
</div>
Beispiel #29
0
<div class="middlenarrow"><div id="autorefreshedPageError"></div></div>
<div class="middlenarrow"><div class="small" style="text-align:right;"><?php 
echo It::t('site_label', 'page_is_autorefreshing');
?>
</div></div>
<div id="autorefreshedPpage_5min">
   <?php 
$this->renderPartial($template, array('render_data' => $render_data));
?>
</div>
Beispiel #30
0
                </td>
                <td>
                    <?php 
    echo CHtml::activeLabel($form, 'time_to');
    ?>
                    <?php 
    echo CHtml::activeTextField($form, 'time_to', array('style' => 'width: 50px;'));
    ?>
                    <?php 
    echo CHtml::error($form, 'time_to');
    ?>
                </td>            
            </tr>  
            <tr>
                <td colspan="3"><?php 
    echo CHtml::submitButton(It::t('site_label', 'do_export'), array('name' => 'make_export'));
    ?>
</td>
            </tr>
            </table>   
            
            
            <div class="clear"></div>
            
        <?php 
    echo CHtml::endForm();
    ?>
    
    <?php 
}
?>