示例#1
0
function layout($data)
{
    if (!$_REQUEST['lang']) {
        $blanguage = GetUserLanguage();
    } else {
        $blanguage = $_REQUEST['lang'];
    }
    // lingua
    $lang = load_lang('lang_mngbd', $blanguage);
    echo "\r\n\t<br>\r\n\t<div align=\"center\">\r\n\t  <table border=\"0\" width=\"500\" id=\"table1\">\r\n\t\t<tr>\r\n\t\t  <th class='row1'>\r\n\t\t  <font face=\"Verdana\"><b>" . $lang['mngbd_title'] . "</b></font></th>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t  <td class='row1' >\r\n\t\t    <p align=\"center\"><br>\r\n\t            \t<form method=\"POST\" action=\"mngbd.php?edit=1\">\r\n\t\t\t\t\t\r\n\t\t\t\t<table border=\"0\" width=\"100%\" id=\"table2\">\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td class='row1' width=\"27%\"><b>\r\n\t\t\t\t\t\t<font size=\"2\">" . $lang['mngbd_band'] . "</font></b></td>\r\n\t\t\t\t\t\t<td class='row1' width=\"71%\"><input type=\"text\" name=\"band\" value=\"" . $data['BAND'] . "\" size=\"20\">" . $lang['mngbd_kb'] . "</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td class='row3' colspan=\"2\">" . $lang['mngbd_info'] . "</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td class='row1' width=\"27%\"><b>\r\n\t\t\t\t\t\t<font size=\"2\">" . $lang['mngbd_port'] . "</font></b></td>\r\n\t\t\t\t\t\t<td class='row1' width=\"71%\"><input type=\"text\" name=\"port\" value=\"" . $data['PORT'] . "\" size=\"20\"></td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td class='row3' colspan=\"2\">" . $lang['mngbd_info2'] . "</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t</table>\r\n\t\t\t\t<p align=\"center\"><input type=\"submit\" value=\"Conferma\" name=\"B1\"></p>\r\n\t\t\t</form>\r\n\t\t    </p>\r\n\t\t  </td>\r\n\t\t</tr>\r\n\t  </table>\r\n\t</div>\r\n\t\r\n\t</body>\r\n\t\r\n\t</html>\r\n\t";
}
示例#2
0
function layout($data = array())
{
    global $db;
    if (!$_REQUEST['lang']) {
        $blanguage = GetUserLanguage();
    } else {
        $blanguage = $_REQUEST['lang'];
    }
    // lingua
    $lang = load_lang('lang_mngws', $blanguage);
    echo "\r\n\t<br>\r\n\t<div align=\"center\">\r\n\t\t<table border=\"0\" width=\"500\" id=\"table1\">\r\n\t\t\t<tr>\r\n\t\t\t\t<th class='row1'>\r\n\t\t\t\t<font face=\"Verdana\"><b>" . $lang['mngws_title1'] . " " . $_REQUEST['ws'] . "</b></font></th>\r\n\t\t\t</tr>\r\n\t\t\t<tr>\r\n\t\t\t\t<td class='row1' >\r\n\t            <p align=\"center\"><br>\r\n\t            <form method=\"POST\" action=\"mngws.php?edit=1&ws=" . $_REQUEST['ws'] . "\">\r\n\t\t\t\t\t\r\n\t\t\t\t\t<table border=\"0\" width=\"100%\" id=\"table2\">\r\n\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t<td class='row1' width=\"27%\"><b>\r\n\t\t\t\t\t\t\t<font size=\"2\">" . $lang['mngws_sessname'] . "</font></b></td>\r\n\t\t\t\t\t\t\t<td class='row1' width=\"71%\"><input type=\"text\" name=\"bsession\" value=\"" . $data['SesName'] . "\" size=\"20\"></td>\r\n\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t<td class='row3' colspan=\"2\">" . $lang['mngws_info1'] . "</td>\r\n\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t<td class='row1' width=\"27%\"><b><font face=\"Verdana\" size=\"2\">porta</font></b></td>\r\n\t\t\t\t\t\t\t<td class='row1' width=\"71%\"><input type=\"text\" name=\"bport\" value=\"" . $data['PORTA'] . "\" size=\"20\"></td>\r\n\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t<td class='row3' width=\"98%\" colspan=\"2\">\r\n\t\t\t\t\t\t\t" . $lang['mngws_insertvalue'] . " &gt; \r\n\t\t\t\t\t\t\t" . $lang['mngws_valueinfo'] . "</td>\r\n\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t<td class='row1' width=\"27%\"><b><font face=\"Verdana\" size=\"2\">bind</font></b></td>\r\n\t\t\t\t\t\t\t<td class='row1' width=\"71%\"><select size=\"1\" name=\"bind\">\r\n\t\t\t\t\t\t\t<option ";
    if ($data['BIND'] == "127.0.0.1") {
        echo "selected";
    }
    echo " value=\"127.0.0.1\">127.0.0.1</option>\r\n\t\t\t\t\t\t\t<option ";
    if ($data['BIND'] == "*") {
        echo "selected";
    }
    echo " value=\"*\">*</option>\r\n\t\t\t\t\t\t\t</select></td>\r\n\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t<td class='row3' width=\"98%\" colspan=\"2\">\r\n\t\t\t\t\t\t\t" . $lang['mngws_info3'] . "</td>\r\n\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t<td class='row1' width=\"27%\"><b><font face=\"Verdana\" size=\"2\">" . $lang['mngws_directory'] . "</font></b></td>\r\n\t\t\t\t\t\t\t<td class='row1' width=\"71%\"><input type=\"text\" name=\"directory\" value=\"" . $data['DIRECTORY'] . "\" size=\"20\"></td>\r\n\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t<td class='row3' width=\"98%\" colspan=\"2\">\r\n\t\t\t\t\t\t\t" . $lang['mngws_info4'] . "</td>\r\n\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t</table>\r\n\t\t\t\t\t<p align=\"center\"><input type=\"submit\" value=\"Conferma\" name=\"B1\"></p>\r\n\t\t\t\t</form>\r\n\t\t\t\t</td>\r\n\t\t\t</tr>\r\n\t\t</table>\r\n\t</div>\r\n\t\r\n\t</body>\r\n\t\r\n\t</html>\r\n\t";
}
示例#3
0
if (!$_ENV['sql_dbport']) {
    $_ENV['sql_dbport'] = "3306";
}
$db = new db($_ENV['sql_user'], $_ENV['sql_passwd'], $_ENV['sql_dbname'], $_ENV['sql_host'] . ":" . $_ENV['sql_dbport']);
// nascondo gli errori mysql
$db->hide_errors();
//configurazione
$query = "SELECT * FROM config WHERE 1";
$result = $db->get_results($query);
foreach ($result as $riga) {
    $config[$riga->MAIN_GROUP][$riga->SUBKEY][$riga->FKEY] = $riga->VALUE;
}
include "langsupport.php";
// determino la lingua
if (!$_REQUEST['lang']) {
    $blanguage = GetUserLanguage();
} else {
    $blanguage = $_REQUEST['lang'];
}
// lingua
$lang = load_lang('lang_index', $blanguage);
?>

<html>
<head>
<link rel="shortcut icon" href="favicon.ico">
<link type="text/css" rel="stylesheet" href="style_page.css" />

<script> 
function goTo(screen)
{
示例#4
0
        break;
    case "3":
        $bgcolor = "000000";
        $textcolor = "FFFF00";
        break;
}
if (!isset($_GET['date'])) {
    $date = GetLatestDate($c, 0, "", $channels_excluded_from_crono, $dbh, "");
} else {
    if ($_GET['date'] == "") {
        $date = GetLatestDate($c, 0, "", $channels_excluded_from_crono, $dbh, "");
    } else {
        $date = $_GET['date'];
    }
}
$lang = GetUserLanguage($c, $dbh);
if (isset($delete)) {
    if ($delete > 0) {
        DeleteMessage($dbh, $delete);
        $delete = -1;
    }
}
if (isset($edit)) {
    if (isset($delete_att)) {
        DeleteAttachments($delete_att, $dbh);
    }
    /*
    if (isset($publish_att)) {
    	PublishAttachments($m,$publish_att,$dbh);
    } else {
    	PublishAttachments($m,"",$dbh);
function layout($data = array())
{
    if (!$_REQUEST['lang']) {
        $blanguage = GetUserLanguage();
    } else {
        $blanguage = $_REQUEST['lang'];
    }
    // lingua
    $lang = load_lang('lang_addboard', $blanguage);
    $portalibera = FindFreePort();
    echo "\r\n\r\n</center>\r\n<br>\r\n<div align=\"center\">\r\n\t<table border=\"0\" width=\"500\" id=\"table1\">\r\n\t\t<tr>\r\n\t\t\t<th class='row1'>\r\n\t\t\t<font face=\"Verdana\"><b>" . $lang['addboard_impnewbrd'] . "</b></font></th>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<td class='row1' >\r\n            <table cellSpacing=\"0\" cellPadding=\"0\" width=\"100%\" align=\"center\" border=\"0\" id=\"table3\">\r\n              <tr>\r\n                <td><center>\r\n                <form method=\"post\" encType=\"multipart/form-data\" action=\"addboard.php?submit=1\">\r\n                  <table width=\"550\" align=\"center\" id=\"table4\">\r\n                    <tr>\r\n                      <td align=\"middle\">&nbsp; <b>" . $lang['addboard_xmlload'] . "</b>\r\n                      <input type=\"file\" name=\"userfile\"><br>\r\n                      <input type=\"hidden\" name=\"file\" value=1>\r\n                      <input type=\"submit\" value=\"Importa\"> </td>\r\n                    </tr>\r\n                  </table>\r\n                </form>\r\n                </center></td>\r\n              </tr>\r\n            </table>\r\n            <p align=\"center\"><br>\r\n            <b>" . $lang['addboard_userdata'] . "</b></p>\r\n            <form method=\"POST\" action=\"addboard.php?import=1\">\r\n\t\t\t\t\r\n\t\t\t\t<table border=\"0\" width=\"100%\" id=\"table2\">\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td class='row1' width=\"27%\"><b>\r\n\t\t\t\t\t\t<font size=\"2\">" . $lang['addboard_sessname'] . "</font></b></td>\r\n\t\t\t\t\t\t<td class='row1' width=\"71%\"><input type=\"text\" name=\"bsession\" value=\"{$data['root']['BOARD']['SESSION']}\" size=\"20\"></td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td class='row3' colspan=\"2\">" . $lang['addboard_info1'] . "</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td class='row1' width=\"27%\"><b>\r\n\t\t\t\t\t\t<font size=\"2\">" . "descrizione" . "</font></b></td>\r\n\t\t\t\t\t\t<td class='row1' width=\"71%\"><input type=\"text\" name=\"bdesc\" value=\"{$data['root']['BOARD']['DESC']}\" size=\"50\"></td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td class='row3' colspan=\"2\">" . "descrizione board o nome per esteso" . "</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td class='row1' width=\"27%\"><b><font face=\"Verdana\" size=\"2\">porta</font></b></td>\r\n\t\t\t\t\t\t<td class='row1' width=\"71%\"><input type=\"text\" name=\"bport\" value=\"{$portalibera}\" size=\"20\"></td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td class='row3' width=\"98%\" colspan=\"2\">\r\n\t\t\t\t\t\t" . $lang['addboard_insertvalue'] . " &gt; \r\n\t\t\t\t\t\t" . $lang['addboard_valueinfo'] . "</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td class='row1' width=\"27%\"><b><font face=\"Verdana\" size=\"2\">bind</font></b></td>\r\n\t\t\t\t\t\t<td class='row1' width=\"71%\"><select size=\"1\" name=\"bind\">\r\n\t\t\t\t\t\t<option selected value=\"127.0.0.1\">127.0.0.1</option>\r\n\t\t\t\t\t\t<option value=\"*\">*</option>\r\n\t\t\t\t\t\t</select></td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td class='row3' width=\"98%\" colspan=\"2\">\r\n\t\t\t\t\t\t" . $lang['addboard_info3'] . "</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td class='row1' width=\"98%\" colspan=\"2\">\r\n                        <p align=\"center\"><br>\r\n                        <b>" . $lang['addboard_boarddata'] . "<br>\r\n                        " . $lang['addboard_info4'] . "<br>\r\n&nbsp;</b></td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td class='row1' width=\"27%\"><b><font face=\"Verdana\" size=\"2\">id</font></b></td>\r\n\t\t\t\t\t\t<td class='row1' width=\"71%\"><input type=\"text\" name=\"bid\" value=\"{$data['root']['BOARD']['ID']}\" size=\"49\"></td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td class='row3' width=\"98%\" colspan=\"2\">\r\n\t\t\t\t\t\t" . $lang['addboard_uniqueid'] . "</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td class='row1' width=\"27%\"><b><font size=\"2\">" . $lang['addboard_pb'] . "</font></b></td>\r\n\t\t\t\t\t\t<td class='row1' width=\"71%\">\r\n\t\t\t\t\t\t<textarea rows=\"6\" name=\"pkey\" cols=\"41\">{$data['root']['BOARD']['PKEY']}</textarea></td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td class='row3' width=\"98%\" colspan=\"2\">" . $lang['addboard_decpk'] . "</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td class='row1' width=\"27%\" height=\"16\"></td>\r\n\t\t\t\t\t\t<td class='row1' width=\"71%\" height=\"16\"></td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t</table>\r\n\t\t\t\t<p align=\"center\"><input type=\"submit\" value=\"Conferma\" name=\"B1\"></p>\r\n\t\t\t</form>\r\n\t\t\t</td>\r\n\t\t</tr>\r\n\t</table>\r\n</div>\r\n\r\n</body>\r\n\r\n</html>\r\n";
}