當前位置: 首頁>>代碼示例>>PHP>>正文


PHP It::t方法代碼示例

本文整理匯總了PHP中It::t方法的典型用法代碼示例。如果您正苦於以下問題:PHP It::t方法的具體用法?PHP It::t怎麽用?PHP It::t使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在It的用法示例。


在下文中一共展示了It::t方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: array



<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 
開發者ID:anton-itscript,項目名稱:WM,代碼行數:29,代碼來源:station_list.php

示例2: getTypes

 public static function getTypes()
 {
     return array('mail' => It::t('home_schedule', 'type_mail'), 'ftp' => It::t('home_schedule', 'type_ftp'));
 }
開發者ID:anton-itscript,項目名稱:WM-Web,代碼行數:4,代碼來源:ScheduleTypeReportDestination.php

示例3:

                    <?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>
開發者ID:anton-itscript,項目名稱:WM,代碼行數:31,代碼來源:second.php

示例4: addslashes

?>
';
    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>
開發者ID:anton-itscript,項目名稱:WM-Web,代碼行數:30,代碼來源:schedule_type_report.php

示例5: attributeLabels

 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'));
 }
開發者ID:anton-itscript,項目名稱:WM,代碼行數:4,代碼來源:__AWSFormTrait.php

示例6:

?>
<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>
開發者ID:anton-itscript,項目名稱:WM-Web,代碼行數:31,代碼來源:superadmin_longdb_submenu.php

示例7:

</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>
開發者ID:anton-itscript,項目名稱:WM-Web,代碼行數:31,代碼來源:rggraph.php

示例8:

                    <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>
開發者ID:anton-itscript,項目名稱:WM-Web,代碼行數:30,代碼來源:index.php

示例9:



<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';
開發者ID:anton-itscript,項目名稱:WM-Web,代碼行數:29,代碼來源:longdb.php

示例10: foreach

    ?>
/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;
開發者ID:anton-itscript,項目名稱:WM-Web,代碼行數:31,代碼來源:rgtable.php

示例11: array

<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 
}
開發者ID:anton-itscript,項目名稱:WM-Web,代碼行數:21,代碼來源:autorefresh_aws_single.php

示例12:

<?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());
    ?>
開發者ID:anton-itscript,項目名稱:WM,代碼行數:31,代碼來源:setup_aws_format.php

示例13: array

                    <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>
開發者ID:anton-itscript,項目名稱:WM-Web,代碼行數:30,代碼來源:__aws_graph_form.php

示例14: array

                    <?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>
開發者ID:anton-itscript,項目名稱:WM-Web,代碼行數:31,代碼來源:__aws_table_form.php

示例15:

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 
開發者ID:anton-itscript,項目名稱:WM-Web,代碼行數:31,代碼來源:connections_log.php


注:本文中的It::t方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。