<?php

use Glial\Html\Form\Form;
echo Form::Select("mysql_server", "id", $data['list_server'], "", array("class" => "form-control"));
Beispiel #2
0
?>
</div>
                            <div class="col-md-2"><?php 
echo Form::select("cleaner_foreign_key", "constraint_column", $data, "", array("class" => "form-control column constraint"), 1);
?>
</div>
                            <div class="col-md-2"><?php 
echo Form::select("cleaner_foreign_key", "referenced_schema", $data, "", array("class" => "form-control schema referenced"), 1);
?>
</div>
                            <div class="col-md-2"><?php 
echo Form::select("cleaner_foreign_key", "referenced_table", $data, "", array("class" => "form-control tables referenced"), 1);
?>
</div>
                            <div class="col-md-2"><?php 
echo Form::select("cleaner_foreign_key", "referenced_column", $data, "", array("class" => "form-control column referenced"), 1);
?>
</div>

                        </div>
                    </div>
                    <div class="col-md-1"><button type="reset" class="btn btn-default delete-row" disabled="disabled"><span class="glyphicon glyphicon-remove" style="font-size:12px"></span> <?php 
echo __('Delete');
?>
</button></div>

                </div>   
            </div>
        </div>

        <div class="row">
Beispiel #3
0
echo "</tr>";
echo "<tr>";
echo "<td class=\"first\">" . __("Country") . " :</td>";
echo "<td>" . Form::select("backup_storage_area", "id_geolocalisation_country", $data['geolocalisation_country'], "", array("class" => "form-control")) . "</td>";
echo "</tr>";
echo "<tr>";
echo "<td class=\"first\">" . __("City") . " :</td>";
//todo remove basic.php and add autocomplete to Form
echo "<td>" . autocomplete("backup_storage_area", "id_geolocalisation_city", "form-control") . "</td>";
echo "</tr>";
echo "<tr>";
echo "<td colspan=\"2\"><h3 class=\"item\">" . __("Account SSH") . " :</h3></td>";
echo "</tr>";
/*
echo "<tr>";
echo "<td>Identifiant </td>";
echo "<td>: <input class=\"text\" type=\"text\" name=\"identifiant\" value=\"".$_GET['identifiant']."\" /></td>";
echo "</tr>";
*/
echo "<tr>";
echo "<td class=\"first\">" . __("Login") . " :</td>";
echo "<td>" . Form::input("backup_storage_area", "ssh_login", array("class" => "form-control", "autocomplete" => "false", "autocomplete" => "off", "autocomplete" => "new-password")) . "</td>";
echo "</tr>";
echo "<tr>";
echo "<td class=\"first\">" . __("Password") . " :</td>";
echo "<td>" . Form::input("backup_storage_area", "ssh_password", array("class" => "form-control", "type" => "password", "autocomplete" => "false", "autocomplete" => "off", "autocomplete" => "new-password")) . "</td>";
echo "</tr>";
echo "</table>";
echo "<div class=\"form-actions\" style=\"margin:0\"><input class=\"btn btn-primary\" type=\"submit\" value=\"" . __("Validate") . "\" /> " . "<input class=\"btn\" type=\"reset\" value=\"" . __("Delete") . "\" /></div>";
echo "</div>";
echo "</form>";
Beispiel #4
0
 * and open the template in the editor.
 */
use SensioLabs\AnsiConverter\AnsiToHtmlConverter;
use Glial\Html\Form\Form;
$converter = new AnsiToHtmlConverter();
$html = $converter->convert($data['log']);
?>

File log : <code><?php 
echo $data['log_file'];
?>
</code><br /><br />
<pre id="data_log" style="background-color: black; overflow: auto; height:500px; padding: 10px 15px; font-family: monospace;"><?php 
echo $html;
?>
</pre>

<br />
<form action="" method="post">

    <?php 
echo '<div class="form-group">';
echo __("Refresh time (in seconds) : ") . Form::select("daemon_main", "refresh_time", $data['refresh_time'], "", array());
echo ' - ';
echo __("Thread concurency : ") . Form::select("daemon_main", "thread_concurency", $data['thread_concurency'], "", array());
echo ' - ';
echo __("Delay before to consider MySQL server as down (in seconds) : ") . Form::select("daemon_main", "max_delay", $data['max_delay'], "", array());
echo ' <button type="submit" class="btn btn-primary">Submit</button>';
echo '</div>';
?>
</form>
Beispiel #5
0
echo "<th>" . __("Top") . "</th>";
echo "<th>" . __("Location") . "</th>";
echo "<th>" . __("Name") . "</th>";
echo "<th>" . __("Email") . "</th>";
echo "<th>" . __("Rank") . "</th>";
echo "<th>" . __("Points") . "</th>";
echo "<th>" . __("Last online") . "</th>";
echo "<tr>";
$i = 0;
foreach ($data['user'] as $line) {
    $i++;
    if ($i % 2 == 0) {
        echo "<tr class=\"couleur2\">";
    } else {
        echo "<tr class=\"couleur1\">";
    }
    echo "<td>#{$i}</td>";
    echo "<td><img class=\"country\" src=\"" . IMG . "country/type1/" . strtolower($line['id_country']) . ".gif\" width=\"18\" height=\"12\" /> " . $line['libelle'] . "</td>";
    echo "<td>" . $line['firstname'] . " " . $line['name'] . "</td>";
    echo "<td>" . $line['email'] . "</td>";
    echo "<td>";
    echo Form::select("user_main", "id_group", $data['group'], $line['id_group'], array("class" => "form-control"), $line['id']);
    echo "</td>";
    //echo "<td>".$line['rank']."</td>";
    echo "<td>" . $line['points'] . "</td>";
    echo "<td>" . $line['date_last_connected'] . "</td>";
    echo "<tr>";
}
echo "</table>";
echo '<button type="submit" class="btn btn-success"><span class="glyphicon glyphicon-refresh" style="font-size:12px"></span> ' . __("Update") . '</button>';
echo '</form>';
<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
use Glial\Html\Form\Form;
Form::$select_display_msg = false;
echo '<div>';
echo '<form style="display:inline" action="" method="post">';
echo __("Client") . " : ";
echo Form::select("client", "libelle", $data['client'], "", array("data-live-search" => "true", "class" => "selectpicker", "data-actions-box" => "true", "multiple" => "multiple"));
echo " - " . __("Environment") . " : ";
echo Form::select("environment", "libelle", $data['environment'], "", array("data-live-search" => "true", "class" => "selectpicker", "data-actions-box" => "true", "multiple" => "multiple"));
echo ' <button type="submit" class="btn btn-primary">' . __("Filter") . '</button>';
Form::$select_display_msg = true;
echo '<input type="hidden" name="client_environment" value="1" />';
echo '</form>';
echo '</div>';
//"multiple" => "multiple",
Beispiel #7
0
echo '<th>' . __('IP') . '</th>';
echo '<th>' . __('Port') . '</th>';
echo '</tr>';
$i = 0;
$style = '';
foreach ($data['servers'] as $server) {
    $i++;
    echo '<tr>';
    echo '<td>' . $i . '</td>';
    echo '<td>' . $server['id'] . '</td>';
    echo '<td style="' . $style . '">';
    echo '<span class="glyphicon ' . (empty($server['error']) ? "glyphicon-ok" : "glyphicon-remove") . '" aria-hidden="true"></span>';
    echo '</td>';
    echo '<td style="' . $style . '">';
    echo '<span class="glyphicon ' . (empty($server['ssh_available']) ? "glyphicon-remove" : "glyphicon-ok") . '" aria-hidden="true"></span>';
    echo '</td>';
    echo '<td style="' . $style . '">' . '<input type="checkbox" name="monitored[' . $server['id'] . ']" ' . ($server['is_monitored'] == 1 ? 'checked="checked"' : '') . '" />' . '</td>';
    echo '<td>';
    echo Form::select("client", "libelle", $data['clients'], $server['id_client'], array());
    echo '</td>';
    echo '<td>';
    echo Form::select("environment", "libelle", $data['environments'], $server['id_environment'], array());
    echo '</td>';
    echo '<td>' . __('Tags') . '</td>';
    echo '<td>' . $server['name'] . '</td>';
    echo '<td>' . Form::input("mysql_server", "display_name", $server['name']) . '</td>';
    echo '<td>' . $server['ip'] . '</td>';
    echo '<td>' . $server['port'] . '</td>';
    echo '</tr>';
}
echo '</table>';
<?php

use Glial\Html\Form\Form;
Form::setAjax(true);
echo Form::select("cleaner_foreign_key", "constraint_column", $data['column']);
<?php

use Glial\Html\Form\Form;
Form::setAjax(true);
echo Form::select("cleaner_foreign_key", "constraint_table", $data['table']);
Beispiel #10
0
                                <td style="text-align:right;"><?php 
echo __("Login");
?>
 (Email)</td>
                                <td><?php 
echo Form::input("user_main", "login", array("class" => "form-control", "autocomplete" => "false", "autocomplete" => "off"));
?>
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align:right;"><?php 
echo __("Password");
?>
                                </td>
                                <td><?php 
echo Form::input("user_main", "password", array("type" => "password", "class" => "form-control", "autocomplete" => "false", "autocomplete" => "off", "autocomplete" => "new-password"));
?>
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align:right;">
                                    <input id="Reset" type="reset" name="Reset" value="Réinitialiser" class="btn btn-large btn-default">
                                    
                                </td>
                                <td><input id="login" type="submit" name="login" value="Connexion" class="btn btn-primary btn-large">
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </form>
                <?php 
Beispiel #11
0
                <h3 style="margin-bottom: 3px;"><?php 
echo __("Forgot password ?");
?>
</h3>
                <form id="loginForm" name="loginForm" method="post" action="" class="form-horizontal">
                    <input type="hidden" name="loginForm" value="loginForm">

                    <table class="table" style="margin-top: 7px;">
                        <tbody>
                            <tr>
                                <td style="text-align:right;"><?php 
echo __("Email");
?>
                                </td>
                                <td><?php 
echo Form::input("user_main", "email", array("class" => "form-control"));
?>
                                </td>
                            </tr>

                            <tr>
                                <td style="text-align:right;">
                                    <input id="login" type="submit" name="login" value="<?php 
echo __("Validate");
?>
" class="btn btn-primary btn-large">
                                </td>
                                <td><input id="Reset" type="reset" name="Reset" value="<?php 
echo __("Delete");
?>
" class="btn btn-large">
Beispiel #12
0
<div class="well">

    <?php 
//print_r($_GET);
//echo $data['sql'];
echo '<form class="form-inline" action="" method="post">';
echo ' <div class="form-group" role="group" aria-label="Default button group">';
echo __("Server : ");
echo ' ';
echo Form::select("mysql_server", "id", $data['servers'], "", array("data-live-search" => "true", "class" => "selectpicker", "data-width" => "auto"));
echo ' ';
echo Form::select("mysql_status_name", "id", $data['status'], "", array("data-live-search" => "true", "class" => "selectpicker", "data-width" => "auto"));
echo ' ';
echo Form::select("mysql_status_value_int", "date", $data['interval'], "", array("data-live-search" => "true", "class" => "selectpicker", "data-width" => "auto"));
echo ' Derivate : ';
echo Form::select("mysql_status_value_int", "derivate", $data['derivate'], "", array("data-live-search" => "true", "class" => "selectpicker", "data-width" => "auto"));
echo ' <button type="submit" class="btn btn-primary">' . __("Filter") . '</button>';
echo '</div>';
echo '</form>';
?>
  
</div>


<!--
<div style="height:600px; width:1600px">
<canvas id="myChart" height="500" width="1600"></canvas>
</div>
-->
<?php 
if (!empty($data['fields_required'])) {
Beispiel #13
0
            $icon = 'glyphicon-play';
            $text = __("Actived");
        }
        echo ' <a href="' . LINK . 'backup/toggleShedule/' . $backup_list['id_backup_database'] . '" class="btn ' . $class . ' delete-item"><span class="glyphicon ' . $icon . '" style="font-size:12px"></span> ' . $text . '</a>';
        echo '</td>';
        echo '<td><a href="' . LINK . '/backup/deleteShedule/' . $backup_list['id_backup_database'] . '" class="btn btn-danger delete-item"><span class="glyphicon glyphicon-trash" style="font-size:12px"></span> ' . __("Delete") . '</a>';
        echo '</td>';
        echo '</tr>';
    }
    echo '<tr id="tr-' . $i . '" class="blah">';
    echo '<td>#</td>';
    echo '<td>' . Form::autocomplete("backup_database", "id_mysql_server", array("class" => "server form-control")) . '</td>';
    echo '<td>' . Form::autocomplete("backup_database", "id_mysql_server_2", array("class" => "ip form-control", "style" => "width:150px")) . '</td>';
    echo '<td>' . Form::select("backup_database", "id_mysql_database", $data['databases'], "", array("class" => "form-control")) . '</td>';
    //echo '<td>' . 0 . '</td>';
    echo '<td>' . Form::select("backup_database", "id_backup_storage_area", $data['storage_area'], "", array("class" => "form-control")) . '</td>';
    echo '<td>' . Form::select("backup_database", "id_backup_type", $data['type_backup'], "", array("class" => "form-control")) . '</td>';
    echo '<td>' . Form::input("crontab", "minutes", array("class" => "form-control", "style" => "width:40px")) . '</td>';
    echo '<td>' . Form::input("crontab", "hours", array("class" => "form-control", "style" => "width:40px")) . '</td>';
    echo '<td>' . Form::input("crontab", "day_of_month", array("class" => "form-control", "style" => "width:40px")) . '</td>';
    echo '<td>' . Form::input("crontab", "month", array("class" => "form-control", "style" => "width:40px")) . '</td>';
    echo '<td>' . Form::input("crontab", "day_of_week", array("class" => "form-control", "style" => "width:40px")) . '</td>';
    echo '<td>';
    echo '<a href="#" class="btn btn-danger delete-line"><span class="glyphicon glyphicon-trash" style="font-size:12px"></span> ' . __("Delete") . '</a>';
    echo '</td>';
    echo '</tr>';
    Form::setIndice(false);
    echo '</table>';
    echo '<a href="#" id="add" class="btn btn-primary"><span class="glyphicon glyphicon glyphicon-plus" style="font-size:12px"></span> ' . __("Add a backup") . '</a>' . ' - <button type="submit" class="btn btn-success"><span class="glyphicon glyphicon-ok" style="font-size:12px"></span> ' . __("Save") . '</button>';
    echo '</form>';
}
Beispiel #14
0
echo "<td>" . Form::input("user_main", "email", array("class" => "form-control")) . "</td>";
echo "</tr>";
echo "<tr>";
echo "<td class=\"first\">" . __("Firstname") . " :</td>";
echo "<td>" . Form::input("user_main", "firstname", array("class" => "form-control")) . "</td>";
echo "</tr>";
echo "<tr>";
echo "<td class=\"first\">" . __("Last name") . " :</td>";
echo "<td>" . Form::input("user_main", "name", array("class" => "form-control")) . "</td>";
echo "</tr>";
echo "<tr>";
echo "<td colspan=\"2\"><h3 class=\"item\">" . __("Location") . " :</h3></td>";
echo "</tr>";
echo "<tr>";
echo "<td class=\"first\">" . __("Country") . " :</td>";
echo "<td>" . Form::select("user_main", "id_geolocalisation_country", $data['geolocalisation_country'], "", array("class" => "form-control ac_input")) . "</td>";
echo "</tr>";
echo "<tr>";
echo "<td class=\"first\">" . __("City") . " :</td>";
//TODO replace with one from Form
echo "<td>" . autocomplete("user_main", "id_geolocalisation_city", "form-control") . "</td>";
echo "</tr>";
echo "<tr>";
echo "<td colspan=\"2\"><h3 class=\"item\">" . __("Password") . " :</h3></td>";
echo "</tr>";
/*
echo "<tr>";
echo "<td>Identifiant </td>";
echo "<td>: <input class=\"text\" type=\"text\" name=\"identifiant\" value=\"".$_GET['identifiant']."\" /></td>";
echo "</tr>";
*/
Beispiel #15
0
</div>
            <div class="col-md-4"><?php 
echo Form::select("mysql_server", "login", array(array("id" => "1", "libelle" => "Login / Password"), array("id" => "2", "libelle" => "SSH keys")), "", array("class" => "form-control"));
?>
</div>
            <div class="col-md-4"></div>
        </div>


                <div class="row">
            <div class="col-md-4"><?php 
echo __("Path for temp backup");
?>
</div>
            <div class="col-md-4"><?php 
echo Form::input("mysql_server", "password", array("class" => "form-control", "placeholder" => "Password of mysql server"));
?>
</div>
            <div class="col-md-4"></div>
        </div>


        <div class="row">
            <div class="col-md-12">
                <button type="submit" class="btn btn-success"><span class="glyphicon glyphicon-ok" style="font-size:12px"></span> Save</button>
                <button type="reset" class="btn btn-danger"><span class="glyphicon glyphicon-remove" style="font-size:12px"></span> Reset</button>
            </div>
        </div>
    </div>

<?php

use Glial\Html\Form\Form;
Form::setAjax(true);
echo Form::select("mysql_database", "id", $data['databases']);
Beispiel #17
0
</div>
        </div>

        <div class="row">
            <div class="col-md-4"><?php 
echo __("Database");
?>
</div>
            <div class="col-md-4">
                <?php 
echo Form::select("compare_main", "database__original", $data['listdb1'], "", array("class" => "form-control"));
?>
            </div>
            <div class="col-md-4">
                <?php 
echo Form::select("compare_main", "database__compare", $data['listdb2'], "", array("class" => "form-control"));
?>
            </div>
        </div>


        <div class="row">
            <div class="col-md-12">
                <button type="submit" class="btn btn-success"><span class="glyphicon glyphicon-transfer" style="font-size:12px"></span> <?php 
echo __("Compare");
?>
</button>
                <button type="reset" class="btn btn-danger"><span class="glyphicon glyphicon-remove" style="font-size:12px"></span> <?php 
echo __("Reset");
?>
</button>
Beispiel #18
0
    $params = explode("/", trim($_GET['url'], "/"));
    //print_r($params);
    foreach ($params as $key => $param) {
        foreach ($array as $var) {
            if (strstr($param, $var . ':')) {
                unset($params[$key]);
            }
        }
    }
    $ret = implode('/', $params);
    return $ret;
}
echo '<br />';
echo '<form action="" method="POST">';
echo __("Server") . " : ";
echo Form::select("mysql_server", "id", $data['servers'], "", array("data-live-search" => "true", "class" => "selectpicker", "data-width" => "auto"));
echo ' ';
echo '<button type="submit" class="btn btn-primary">Filter</button>';
echo '</form>';
echo '</div>';
if (!empty($_GET['mysql_server']['id'])) {
    if (!empty($data['view_available']) && count($data['view_available']) > 0) {
        ?>
        <div class="row">
            <div class="col-md-2">

                <?php 
        echo '<table class="table table-condensed table-bordered table-striped">';
        echo '<tr>';
        echo '<th>' . __("Reporting") . '</th>';
        echo '</tr>';
Beispiel #19
0
use Glial\Html\Form\Form;
echo '<div class="well">';
echo '<form action="" method="post" class="form-inline">';
echo '<div class="form-group">';
\Glial\Synapse\FactoryController::addNode("Common", "getSelectServerAvailable", array());
//echo Form::select('mysql_server', 'id', $data['server_mysql'], "", array('style' => 'margin-bottom:0px', 'class' => 'form-control'));
//class="form-control"
if ($data['performance_schema']) {
    echo ' ';
    echo Form::select('database', 'id', $data['databases'], "", array('style' => 'margin-bottom:0px', 'class' => 'form-control'));
    echo ' ';
    echo Form::input('database', 'filter', array('style' => 'margin-bottom:0px', 'placeholder' => __("Filter"), 'class' => 'form-control'));
    echo '<b> ' . __("ORDER BY") . ' </b>';
    echo Form::select('field', 'id', $data['fields'], "", array('style' => 'margin-bottom:0px', 'class' => 'form-control'));
    echo ' ';
    echo Form::select('orderby', 'id', $data['orderby'], "", array('style' => 'margin-bottom:0px', 'class' => 'form-control'));
}
echo ' <button type="submit" class="btn btn-primary">Submit</button>';
echo '</div>';
echo '</form>';
if (!empty($data['pagination'])) {
    echo '<br />';
    echo $data['pagination'];
}
echo '</div>';
if ($data['performance_schema']) {
    echo '<div class="well">';
    echo __("Results found : ") . "<b>" . $data['count'] . "</b>";
    echo '</div>';
    echo '<table class="table table-condensed table-bordered table-striped">';
    echo '<tr>';