Esempio n. 1
0
<?php

echo '<table>';
echo '<tr>';
echo '<td style="width: 80px;">Host</td>';
echo '<td style="width: 140px;">Username</td>';
echo '<td style="width: 140px;">DB Name</td>';
echo '<td style="width: 80px;">' . KY::getText()->textForKey('label.prefix') . '</td>';
echo '</tr>';
foreach ($params['rows'] as $row) {
    echo '<tr>';
    echo '<td>' . $row->host . '</td>';
    echo '<td>' . $row->username . '</td>';
    echo '<td>' . $row->dbname . '</td>';
    echo '<td>' . $row->prefix . '</td>';
    echo '<td><a class="button" href="' . KY::getRoute()->urlForRoute('db.delete', array('id' => $row->id)) . '">Delete</a></td>';
    echo '</tr>';
}
echo '</table>';
echo '</form>';
Esempio n. 2
0
<?php

$text = KY::getText();
$route = KY::getRoute();
$currentRoute = $route->getCurrentRoute();
?>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
    <head>
        <script src='http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js'></script>
        <link rel="stylesheet" type="text/css" href="<?php 
echo $route->getBaseUrl();
?>
/static/styles.css">
            <title>KY BACKUP</title>

    </head>
    <body>
        <div id="container">

            <h1><?php 
echo '<a href="' . $route->urlForRoute('home') . '">' . $text->textForKey('title') . '</a></h1>';
?>
                <p class="byline">by <strong><a href="http://www.kalianey.com" target="_blank"/>Kalianey</a></strong></p>
    
<?php 
echo '<div class="main_menu">';
echo '<ul>';
echo '<li><a href="' . $route->urlForRoute('home') . '">' . $text->textForKey('home') . '</a></li>';
echo '<li><a href="' . $route->urlForRoute('job.index') . '">' . $text->textForKey('jobs') . '</a>';
Esempio n. 3
0
<?php

include 'config.php';
KY::init();
KY::getText()->setLanguage($language);
KY::getDB()->connect($mysql_host, $mysql_user, $mysql_pass, $mysql_db);
KY::getView()->setBasePath($viewPath);
KY::getRoute()->setBaseUrl($baseurl);
KY::getRoute()->setUrlVar($urlVarName);
include 'routes.php';
KY::getView()->draw('header');
$currentRoute = KY::getRoute()->getCurrentRoute();
KY::getRoute()->loadRoute($currentRoute);