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


PHP fs_director::IsChecked方法代码示例

本文整理汇总了PHP中fs_director::IsChecked方法的典型用法代码示例。如果您正苦于以下问题:PHP fs_director::IsChecked方法的具体用法?PHP fs_director::IsChecked怎么用?PHP fs_director::IsChecked使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在fs_director的用法示例。


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

示例1: DisplayApacheVhost

 static function DisplayApacheVhost()
 {
     global $zdbh;
     global $controller;
     $line = "<h2>" . ui_language::translate("Virtual Host Override") . "</h2>";
     $line .= ui_language::translate("Set options for virtual host") . ": <b>" . $controller->GetControllerRequest('FORM', 'inVhost') . "</b>";
     $line .= "<br><br>";
     $line .= "<form action=\"./?module=apache_admin&action=SaveVhost\" method=\"post\">";
     $line .= "<table class=\"zform\">";
     $sql = "SELECT COUNT(*) FROM x_vhosts WHERE vh_name_vc=:vhost AND vh_deleted_ts IS NULL";
     $inVhost = $controller->GetControllerRequest('FORM', 'inVhost');
     $numrows = $zdbh->prepare($sql);
     $numrows->bindParam(':vhost', $inVhost);
     $numrows->execute();
     if ($numrows) {
         if ($numrows->fetchColumn() != 0) {
             $inVhost2 = $controller->GetControllerRequest('FORM', 'inVhost');
             $sql = $zdbh->prepare("SELECT * FROM x_vhosts WHERE vh_name_vc=:vhost AND vh_deleted_ts IS NULL");
             $sql->bindParam(':vhost', $inVhost2);
             $sql->execute();
             $row = $sql->fetch();
             $line .= "<tr><th>" . ui_language::translate("Domain Enabled") . ":</th><td><input type=\"checkbox\" name=\"vh_enabled_in\" id=\"vh_enabled_in\" value=\"1\" " . fs_director::IsChecked($row['vh_enabled_in']) . "/></td></tr>";
             $line .= "<tr><th>" . ui_language::translate("Suhosin Enabled") . ":</th><td><input type=\"checkbox\" name=\"vh_suhosin_in\" id=\"vh_suhosin_in\" value=\"1\" " . fs_director::IsChecked($row['vh_suhosin_in']) . "/></td></tr>";
             $line .= "<tr><th>" . ui_language::translate("OpenBase Enabled") . ":</th><td><input type=\"checkbox\" name=\"vh_obasedir_in\" id=\"vh_obasedir_in\" value=\"1\" " . fs_director::IsChecked($row['vh_obasedir_in']) . "/></td></tr>";
             $line .= "<tr><th>" . ui_language::translate("Port Override") . "</th><td><input type=\"text\" name=\"vh_custom_port_in\" id=\"vh_custom_port_in\" maxlength=\"6\" value=\"" . $row['vh_custom_port_in'] . "\"/>";
             $line .= "<tr><th>" . ui_language::translate("Forward Port 80 to Overriden Port") . ":</th><td><input type=\"checkbox\" name=\"vh_portforward_in\" id=\"vh_portforward_in\" value=\"1\" " . fs_director::IsChecked($row['vh_portforward_in']) . "/>" . ui_language::translate("Warning requires Apache mod_rewrite to be installed on the server.") . "</td></tr>";
             $line .= "<tr><th>" . ui_language::translate("IP Override") . "</th><td><input type=\"text\" name=\"vh_custom_ip_vc\" id=\"vh_custom_ip_vc\" maxlength=\"20\" value=\"" . $row['vh_custom_ip_vc'] . "\"/>";
             $line .= "<tr valign=\"top\"><th>" . ui_language::translate("Custom Entry") . ":</th><td><textarea cols=\"60\" rows=\"10\" name=\"vh_custom_tx\">" . $row['vh_custom_tx'] . "</textarea></td></tr>";
         }
     }
     $line .= "<tr><td colspan=\"2\">";
     $line .= "<button class=\"button-loader btn btn-primary\" type=\"submit\" id=\"button\" name=\"vh_id_pk\" value=\"" . $row['vh_id_pk'] . "\">" . ui_language::translate("Save Vhost") . "</button><button class=\"fg-button ui-state-default ui-corner-all type=\"button\" onclick=\"window.location.href='./?module=apache_admin';return false;\">" . ui_language::translate("Cancel") . "</button>";
     $line .= "</td></tr>";
     $line .= "</table>";
     $line .= runtime_csfr::Token();
     $line .= "</form>";
     return $line;
 }
开发者ID:TGates71,项目名称:Sentora-Windows-Upgrade,代码行数:38,代码来源:controller.ext.php


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