当前位置: 首页>>代码示例>>PHP>>正文


PHP adjust_gmt函数代码示例

本文整理汇总了PHP中adjust_gmt函数的典型用法代码示例。如果您正苦于以下问题:PHP adjust_gmt函数的具体用法?PHP adjust_gmt怎么用?PHP adjust_gmt使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了adjust_gmt函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: htmlentities

             $data['if'] = $dhcpif;
             break;
         }
     }
 }
 echo "<tr>\n";
 echo "<td class=\"listlr\">{$fspans}{$data['ip']}{$fspane}&nbsp;</td>\n";
 if ($data['online'] != "online") {
     echo "<td class=\"listr\">{$fspans}<a href=\"services_wol.php?if={$data['if']}&mac={$data['mac']}\" title=\"send Wake on Lan packet to mac\">{$data['mac']}</a>{$fspane}&nbsp;</td>\n";
 } else {
     echo "<td class=\"listr\">{$fspans}{$data['mac']}{$fspane}&nbsp;</td>\n";
 }
 echo "<td class=\"listr\">{$fspans}" . htmlentities($data['hostname']) . "{$fspane}&nbsp;</td>\n";
 if ($data['type'] != "static") {
     echo "<td class=\"listr\">{$fspans}" . adjust_gmt($data['start']) . "{$fspane}&nbsp;</td>\n";
     echo "<td class=\"listr\">{$fspans}" . adjust_gmt($data['end']) . "{$fspane}&nbsp;</td>\n";
 } else {
     echo "<td class=\"listr\">{$fspans} n/a {$fspane}&nbsp;</td>\n";
     echo "<td class=\"listr\">{$fspans} n/a {$fspane}&nbsp;</td>\n";
 }
 echo "<td class=\"listr\">{$fspans}{$data['online']}{$fspane}&nbsp;</td>\n";
 echo "<td class=\"listr\">{$fspans}{$data['act']}{$fspane}&nbsp;</td>\n";
 if ($data['type'] == "dynamic") {
     echo "<td class=\"list\" valign=\"middle\"><a href=\"services_dhcp_edit.php?if={$data['if']}&mac={$data['mac']}&hostname={$data['hostname']}\">";
     echo "<img src=\"/themes/{$g['theme']}/images/icons/icon_plus.gif\" width=\"17\" height=\"17\" border=\"0\" title=\"Bu MAC adresine statik ekle\"></a></td>\n";
 } else {
     echo "<td class=\"list\" valign=\"middle\">";
     echo "<img src=\"/themes/{$g['theme']}/images/icons/icon_plus_mo.gif\" width=\"17\" height=\"17\" border=\"0\"></td>\n";
 }
 echo "<td valign=\"middle\"><a href=\"services_wol_edit.php?if={$data['if']}&mac={$data['mac']}&descr={$data['hostname']}\">";
 echo "<img src=\"/themes/{$g['theme']}/images/icons/icon_wol_all.gif\" width=\"17\" height=\"17\" border=\"0\" title=\"Bu MAC adresine Wake on Lan Ekle\"></a></td>\n";
开发者ID:rootsghost,项目名称:5651-pfsense,代码行数:31,代码来源:diag_dhcp_leases.php

示例2: strtoupper

     }
 }
 echo "<tr>\n";
 echo "<td class=\"cell dhcpip\">{$data['ip']}</td>\n";
 $mac = $data['mac'];
 $mac_hi = strtoupper($mac[0] . $mac[1] . $mac[3] . $mac[4] . $mac[6] . $mac[7]);
 $mac_url = str_replace(':', '-', $data['mac']);
 if (isset($mac_man[$mac_hi])) {
     echo "<td title=\"HOTSPOT Özel izinli MAC adresleri listesine ekle\" class=\"cell dhcpmac\"><a class=\"btn-link\" href=\"hotspot_mac_edit.php?act=new&mac={$mac_url}\">{$mac}<br>{$mac_man[$mac_hi]}</a></td>\n";
 } else {
     echo "<td title=\"HOTSPOT Özel izinli MAC adresleri listesine ekle\" class=\"cell dhcpmac\"><a class=\"btn-link\" href=\"hotspot_mac_edit.php?act=new&mac={$mac_url}\">{$data['mac']}</a></td>\n";
 }
 echo "<td class=\"cell dhcphostname\">" . htmlentities($data['hostname']) . "</td>\n";
 if ($data['type'] != "Sabit") {
     echo "<td class=\"cell dhcpdate\">" . adjust_gmt($data['start']) . "</td>\n";
     echo "<td class=\"cell dhcpdate\">" . adjust_gmt($data['end']) . "</td>\n";
 } else {
     echo "<td class=\"cell\">Yok</td>\n";
     echo "<td class=\"cell\">Yok</td>\n";
 }
 echo "<td class=\"cell dhcpstat\"><span class=\"label {$data['class']}\">{$data['online']}</span></td>\n";
 echo "<td class=\"cell dhcptype\">{$data['act']}</td>\n";
 echo "<td class=\"cell tools dhcp\">";
 if ($data['type'] == "dynamic") {
     echo "<a title=\"IP adresi dağıtımını sabit olarak yap\" href=\"services_dhcp_edit.php?if={$data['if']}&mac={$data['mac']}&hostname={$data['hostname']}\">";
     echo "<i class=\"icon-plus\"></i></a>\n";
 }
 if ($data['type'] == "dynamic" && $data['online'] != 'Çevrimiçi') {
     echo "<a title=\"Bu IP dağıtımını sil\" href=\"status_dhcp_leases.php?deleteip={$data['ip']} \">";
     echo "<i class=\"icon-trash\"></i></a>\n";
 }
开发者ID:nuclewall,项目名称:nuclewall,代码行数:31,代码来源:status_dhcp_leases.php

示例3: adjust_gmt

    echo $data['iaid'];
    ?>
</td>
				<td><?php 
    echo $data['duid'];
    ?>
</td>
<?php 
    if ($data['type'] != "static") {
        ?>
				<td><?php 
        echo adjust_gmt($data['start']);
        ?>
</td>
				<td><?php 
        echo adjust_gmt($data['end']);
        ?>
</td>
<?php 
    } else {
        ?>
				<td>n/a</td>
				<td>n/a</td>
<?php 
    }
    ?>
				<td><?php 
    echo $data['act'];
    ?>
</td>
<?php 
开发者ID:calvinbui,项目名称:pfsense,代码行数:31,代码来源:status_dhcpv6_leases.php

示例4: strtoupper

	$mac_hi = strtoupper($mac[0] . $mac[1] . $mac[3] . $mac[4] . $mac[6] . $mac[7]);
?>
				<tr>
					<td><i class="icon <?=$icon?>"></i></td>
					<td><?=$data['ip']?></td>
					<td>
						<?=$mac?>

						<? if(isset($mac_man[$mac_hi])):?>
							(<?=$mac_man[$mac_hi]?>)
						<?endif?>
					</td>
					<td><?=htmlentities($data['hostname'])?></td>
<? if ($data['type'] != "static"):?>
					<td><?=adjust_gmt($data['start'])?></td>
					<td><?=adjust_gmt($data['end'])?></td>
<? else: ?>
					<td>n/a</td>
					<td>n/a</td>
<? endif; ?>
					<td><?=$data['online']?></td>
					<td><?=$data['act']?></td>
					<td>
<? if ($data['type'] == "dynamic"): ?>
						<a class="btn btn-xs btn-primary" href="services_dhcp_edit.php?if=<?=$data['if']?>&amp;mac=<?=$data['mac']?>&amp;hostname=<?=htmlspecialchars($data['hostname'])?>">
							<?=gettext("add static mapping")?>
						</a>
<? else: ?>
						<a class="btn btn-xs btn-primary" href="services_dhcp_edit.php?if=<?=$data['if']?>&amp;id=<?=$data['staticmap_array_index']?>">
							<?=gettext("edit static mapping")?>
						</a>
开发者ID:vasiqmz,项目名称:pfsense,代码行数:31,代码来源:status_dhcp_leases.php


注:本文中的adjust_gmt函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。