本文整理汇总了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} </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} </td>\n";
} else {
echo "<td class=\"listr\">{$fspans}{$data['mac']}{$fspane} </td>\n";
}
echo "<td class=\"listr\">{$fspans}" . htmlentities($data['hostname']) . "{$fspane} </td>\n";
if ($data['type'] != "static") {
echo "<td class=\"listr\">{$fspans}" . adjust_gmt($data['start']) . "{$fspane} </td>\n";
echo "<td class=\"listr\">{$fspans}" . adjust_gmt($data['end']) . "{$fspane} </td>\n";
} else {
echo "<td class=\"listr\">{$fspans} n/a {$fspane} </td>\n";
echo "<td class=\"listr\">{$fspans} n/a {$fspane} </td>\n";
}
echo "<td class=\"listr\">{$fspans}{$data['online']}{$fspane} </td>\n";
echo "<td class=\"listr\">{$fspans}{$data['act']}{$fspane} </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";
示例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";
}
示例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
示例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']?>&mac=<?=$data['mac']?>&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']?>&id=<?=$data['staticmap_array_index']?>">
<?=gettext("edit static mapping")?>
</a>