Exemplo n.º 1
0
echo __("Database use for cleaning");
?>
</div>
            <div class="col-md-4"><?php 
echo Form::input("cleaner_main", "cleaner_db", array("class" => "form-control", "placeholder" => "This database will store tmp tables used for cleaning, take care with replication."));
?>
</div>
            <div class="col-md-4"></div>
        </div>
        <div class="row">
            <div class="col-md-4"><?php 
echo __("Prefix for tables used for clean");
?>
</div>
            <div class="col-md-4"><?php 
echo Form::input("cleaner_main", "prefix", array("class" => "form-control", "placeholder" => "The prefix is the solution if you want store tmp table in same database."));
?>
</div>
            <div class="col-md-4"></div>
        </div>

    </div>


    <div class="well">

        <div class="row">
            <h3><?php 
echo __("Define virtual foreign keys");
?>
</h3>
Exemplo n.º 2
0
echo "<form action=\"\" method=\"post\" class=\"form-horizontal\" width=\"100%\">";
echo "<table style=\"margin-bottom: 0px;\" class=\"form table\" width=\"100%\">";
echo "<tr>";
echo "<td colspan=\"2\"><h3 class=\"item\">" . __("Signalétique", "fr") . " :</h3></td>";
echo "</tr>";
echo "<tr>";
echo "<td class=\"first\">" . __("Email") . " (" . __("Username") . ") :</td>";
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>";
Exemplo n.º 3
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>

Exemplo n.º 4
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>";
Exemplo n.º 5
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>';
Exemplo n.º 6
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 
Exemplo n.º 7
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">
Exemplo n.º 8
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>';
}
Exemplo n.º 9
0
 * 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;
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">';