Пример #1
0
         $text = __("Desactived");
     } else {
         $class = 'btn-success';
         $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>';