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


PHP ctrl_options::OutputSettingTextArea方法代码示例

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


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

示例1: getConfig

 static function getConfig()
 {
     global $zdbh;
     $currentuser = ctrl_users::GetUserDetail();
     $sql = "SELECT * FROM x_settings WHERE so_module_vc=:name AND so_usereditable_en = 'true' ORDER BY so_cleanname_vc";
     //$numrows = $zdbh->query($sql);
     $name = ui_module::GetModuleName();
     $numrows = $zdbh->prepare($sql);
     $numrows->bindParam(':name', $name);
     $numrows->execute();
     if ($numrows->fetchColumn() != 0) {
         $sql = $zdbh->prepare($sql);
         $sql->bindParam(':name', $name);
         $res = array();
         $sql->execute();
         while ($rowmailsettings = $sql->fetch()) {
             if (ctrl_options::CheckForPredefinedOptions($rowmailsettings['so_defvalues_tx'])) {
                 $fieldhtml = ctrl_options::OuputSettingMenuField($rowmailsettings['so_name_vc'], $rowmailsettings['so_defvalues_tx'], $rowmailsettings['so_value_tx']);
             } else {
                 $fieldhtml = ctrl_options::OutputSettingTextArea($rowmailsettings['so_name_vc'], $rowmailsettings['so_value_tx']);
             }
             array_push($res, array('cleanname' => ui_language::translate($rowmailsettings['so_cleanname_vc']), 'name' => $rowmailsettings['so_name_vc'], 'description' => ui_language::translate($rowmailsettings['so_desc_tx']), 'value' => $rowmailsettings['so_value_tx'], 'fieldhtml' => $fieldhtml));
         }
         return $res;
     } else {
         return false;
     }
 }
开发者ID:bbspike,项目名称:sentora-core,代码行数:28,代码来源:controller.ext.php

示例2: DisplayApacheConfig

 static function DisplayApacheConfig()
 {
     global $zdbh;
     $line = "<h2>" . ui_language::translate("Configure your Apache Settings") . "</h2>";
     $line .= "<form action=\"./?module=apache_admin&action=UpdateApacheConfig\" method=\"post\">";
     $line .= "<table class=\"table table-striped\">";
     $count = 0;
     $sql = "SELECT COUNT(*) FROM x_settings WHERE so_module_vc=:module AND so_usereditable_en = 'true'";
     $moduleName = ui_module::GetModuleName();
     $numrows = $zdbh->prepare($sql);
     $numrows->bindParam(':module', $moduleName);
     $numrows->execute();
     if ($numrows) {
         if ($numrows->fetchColumn() != 0) {
             $sql = $zdbh->prepare("SELECT * FROM x_settings WHERE so_module_vc=:module AND so_usereditable_en = 'true' ORDER BY so_cleanname_vc");
             $sql->bindParam(':module', $moduleName);
             $sql->execute();
             while ($row = $sql->fetch()) {
                 $count++;
                 if (ctrl_options::CheckForPredefinedOptions($row['so_defvalues_tx'])) {
                     $fieldhtml = ctrl_options::OuputSettingMenuField($row['so_name_vc'], $row['so_defvalues_tx'], $row['so_value_tx']);
                 } else {
                     $fieldhtml = ctrl_options::OutputSettingTextArea($row['so_name_vc'], $row['so_value_tx']);
                 }
                 $line .= "<tr valign=\"top\"><th nowrap=\"nowrap\">" . ui_language::translate($row['so_cleanname_vc']) . "</th><td>" . $fieldhtml . "</td><td>" . ui_language::translate($row['so_desc_tx']) . "</td></tr>";
             }
             $line .= "<tr><th>" . ui_language::translate("Force Update") . "</th><td><input type=\"checkbox\"></td><td>" . ui_language::translate("Force vhost.conf to be updated on next daemon run. Any change in settings also triggers vhost.conf to be updated.") . "</td></tr>";
             $line .= "<tr><th colspan=\"3\"><button class=\"button-loader btn btn-primary\" type=\"submit\" id=\"button\" name=\"inSaveSystem\">" . ui_language::translate("Save Changes") . "</button><button class=\"button-loader btn btn-default\" type=\"button\" onclick=\"window.location.href='./?module=moduleadmin';return false;\">" . ui_language::translate("Cancel") . "</button></th></tr>";
         }
     }
     $line .= "</table>";
     $line .= runtime_csfr::Token();
     $line .= "</form>";
     return $line;
 }
开发者ID:TGates71,项目名称:Sentora-Windows-Upgrade,代码行数:35,代码来源:controller.ext.php

示例3: DisplayDNSConfig

 static function DisplayDNSConfig()
 {
     global $zdbh;
     global $controller;
     $line = "<style>.active {color: #333;}</style>";
     $line .= "<h2>" . ui_language::translate("Configure your DNS Settings") . "</h2>";
     $line .= "<div style=\"display: block; margin-right:20px;\">";
     $line .= "<div class=\"ui-tabs ui-widget ui-widget-content ui-corner-all\" id=\"dnsTabs\">";
     $line .= "<ul class=\"domains nav nav-tabs\">";
     $line .= "<li class=\"active\"><a href=\"#general\" data-toggle=\"tab\">" . ui_language::translate("General") . "</a></li>";
     $line .= "<li><a href=\"#tools\" data-toggle=\"tab\">" . ui_language::translate("Tools") . "</a></li>";
     $line .= "<li><a href=\"#services\" data-toggle=\"tab\">" . ui_language::translate("Services") . "</a></li>";
     $line .= "<li><a href=\"#logs\" data-toggle=\"tab\">" . ui_language::translate("Logs") . "</a></li>";
     $line .= "</ul>";
     //Tabs Panel Wrap
     $line .= '<div class="tab-content">';
     //general
     $line .= "<div class=\"tab-pane active\" id=\"general\">";
     $line .= "<form action=\"./?module=dns_admin&action=UpdateDNSConfig\" method=\"post\">";
     $line .= "<table class=\"table table-striped\">";
     $count = 0;
     $sql = "SELECT COUNT(*) FROM x_settings WHERE so_module_vc=:moduleName AND so_usereditable_en = 'true'";
     $numrows = $zdbh->prepare($sql);
     $GetModuleName = ui_module::GetModuleName();
     $numrows->bindParam(':moduleName', $GetModuleName);
     if ($numrows->execute()) {
         if ($numrows->fetchColumn() != 0) {
             $sql = $zdbh->prepare("SELECT * FROM x_settings WHERE so_module_vc=:moduleName AND so_usereditable_en = 'true' ORDER BY so_cleanname_vc");
             $GetModuleName = ui_module::GetModuleName();
             $sql->bindParam(':moduleName', $GetModuleName);
             $sql->execute();
             while ($row = $sql->fetch()) {
                 $count++;
                 if (ctrl_options::CheckForPredefinedOptions($row['so_defvalues_tx'])) {
                     $fieldhtml = ctrl_options::OuputSettingMenuField($row['so_name_vc'], $row['so_defvalues_tx'], $row['so_value_tx']);
                 } else {
                     $fieldhtml = ctrl_options::OutputSettingTextArea($row['so_name_vc'], $row['so_value_tx']);
                 }
                 $line .= "<tr valign=\"top\"><th nowrap=\"nowrap\">" . ui_language::translate($row['so_cleanname_vc']) . "</th><td>" . $fieldhtml . "</td><td>" . ui_language::translate($row['so_desc_tx']) . "</td></tr>";
             }
             $line .= "<tr><th colspan=\"3\"><button class=\"button-loader btn btn-primary\" type=\"submit\" id=\"button\" name=\"inSaveSystem\">" . ui_language::translate("Save Changes") . "</button>  <button class=\"button-loader btn btn-default\" type=\"button\" onclick=\"window.location.href='./?module=moduleadmin';return false;\">" . ui_language::translate("Cancel") . "</button></tr>";
         }
     }
     $line .= "</table>";
     $line .= "</form>";
     $line .= "</div>";
     //tools
     $line .= "<div class=\"tab-pane\" id=\"tools\">";
     $line .= "<form action=\"./?module=dns_admin&action=UpdateTools\" method=\"post\">";
     $line .= "<table class=\"table table-striped\">";
     $line .= "<tr>";
     $line .= "<th>" . ui_language::translate("Reset all Records to Default") . "</th>";
     $line .= "<td><button class=\"button-loader btn btn-primary\" type=\"submit\" id=\"button\" name=\"inResetAll\" value=\"1\">" . ui_language::translate("GO") . "</button></td>";
     $line .= "</tr>";
     $line .= "<tr>";
     $line .= "<tr>";
     $line .= "<th>" . ui_language::translate("Reset Records to Default on Single Domain") . " ";
     $line .= "<select name=\"inResetDomainID\">";
     $line .= "<option value=\"\">--- " . ui_language::translate("Select Domain") . " ---</option>";
     $sql = "SELECT COUNT(*) FROM x_vhosts WHERE vh_deleted_ts IS NULL";
     if ($numrows = $zdbh->query($sql)) {
         if ($numrows->fetchColumn() != 0) {
             $sql = $zdbh->prepare("SELECT * FROM x_vhosts WHERE vh_deleted_ts IS NULL");
             $sql->execute();
             while ($row = $sql->fetch()) {
                 $line .= " <option value=\"" . $row['vh_id_pk'] . "\">" . $row['vh_name_vc'] . "</option>";
             }
         }
     }
     $line .= "</select>";
     $line .= "</th>";
     $line .= "<td><button class=\"button-loader btn btn-primary\" type=\"submit\" id=\"button\" name=\"inResetDomain\" value=\"1\">" . ui_language::translate("GO") . "</button></td>";
     $line .= "</tr>";
     $line .= "<th>" . ui_language::translate("Add Default Records to Missing Domains") . "";
     $line .= "</th>";
     $line .= "<td><button class=\"button-loader btn btn-primary\" type=\"submit\" id=\"button\" name=\"inAddMissing\" value=\"1\">" . ui_language::translate("GO") . "</button></td>";
     $line .= "</tr>";
     $line .= "<tr>";
     $line .= "<th>" . ui_language::translate("Delete Record Type from ALL Records") . " ";
     $line .= "<select name=\"inType\" id=\"inType\">";
     $line .= "<option value=\"A\">A</option>";
     $line .= "<option value=\"AAAA\">AAAA</option>";
     $line .= "<option value=\"CNAME\">CNAME</option>";
     $line .= "<option value=\"MX\">MX</option>";
     $line .= "<option value=\"TXT\">TXT</option>";
     $line .= "<option value=\"SRV\">SRV</option>";
     $line .= "<option value=\"SPF\">SPF</option>";
     $line .= "<option value=\"NS\">NS</option>";
     $line .= "</select>";
     $line .= "</th>";
     $line .= "<td><button class=\"button-loader btn btn-primary\" type=\"submit\" id=\"button\" name=\"inDeleteType\" value=\"1\">" . ui_language::translate("GO") . "</button></td>";
     $line .= "</tr>";
     $line .= "<tr>";
     $line .= "<th>" . ui_language::translate("Purge Deleted Zone Records From Database") . "</th>";
     $line .= "<td><button class=\"button-loader btn btn-primary\" type=\"submit\" id=\"button\" name=\"inPurge\" value=\"1\">" . ui_language::translate("GO") . "</button></td>";
     $line .= "</tr>";
     $line .= "<tr>";
     $line .= "<th>" . ui_language::translate("Delete ALL Zone Records") . "</th>";
     $line .= "<td><button class=\"button-loader btn btn-primary\" type=\"submit\" id=\"button\" name=\"inDeleteAll\" value=\"1\">" . ui_language::translate("GO") . "</button></td>";
     $line .= "</tr>";
//.........这里部分代码省略.........
开发者ID:caglaroflazoglu,项目名称:sentora-core,代码行数:101,代码来源:controller.ext.php


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