public static function small_delete_icon() { print '<img src="' . JxBotConfig::bot_url() . 'jxbot/core/gfx/delete16.png" alt="Delete">'; }
<?php JxWidget::textfield(array('name' => 'input', 'label' => 'Administrator', 'max' => 150, 'autofocus' => true)); ?> <p><?php JxWidget::button('Talk'); ?> </p> <div class="left"> <img src="<?php print JxBotConfig::bot_url(); ?> jxbot/core/gfx/robot-small.png" id="chat-robot"> </div> <div class="bubble" style="max-width: 80%;"> <div class="bubble-top"><div class="bubble-corner-tl"></div><div class="bubble-corner-tr"></div></div> <div class="bubble-left"></div> <div class="bubble-content"> <?php print $response; ?> </div>
function show_process_status() { $stmt = JxBotDB::$db->prepare('SELECT COUNT(*) FROM file WHERE last_update > DATE_SUB(NOW(), INTERVAL 20 SECOND)'); $stmt->execute(); $recent_status_changes = $stmt->fetchAll(PDO::FETCH_NUM)[0][0] != 0; ?> <h2>Status</h2> <?php if ($recent_status_changes == false) { ?> Idle. <?php } else { ?> <p style="margin-top: -20px; "><img src="<?php print JxBotConfig::bot_url(); ?> jxbot/core/gfx/43.GIF" style="vertical-align: middle; margin-right: 1.5em"> <?php $stmt = JxBotDB::$db->prepare('SELECT status,name FROM file WHERE status LIKE \'Loading%\''); $stmt->execute(); $status = $stmt->fetchAll(PDO::FETCH_NUM); if (count($status) == 0) { $status = 'Checking...'; } else { $status = $status[0][0] . ', ' . $status[0][1]; } print $status; ?> </p> <script type="text/javascript"> // ! TODO: Can be improved with an AJAX call to avoid reloading the page window.setTimeout(function() { window.location = '?page=import'; }, 10000); </script> <?php } }
private static function page_complete() { ?> <h1>Installation Complete!</h1> <p>Installation was successful.</p> <p>You can now <a href="<?php print JxBotConfig::bot_url(); ?> jxbot/">login to your bot's administration panel</a> to upload AIML and further configure your bot.</p> <?php }
public static function admin_generate() { JxBotAdmin::ensure_logged_in(); JxBotAdmin::determine_page(); if (JxBotAdmin::$page[0] == 'logout') { JxBotAdmin::do_logout(); } ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>JxBot: Administration</title> <link rel="base" href="<?php print JxBotConfig::bot_url(); ?> jxbot/"> <!--link href="https://fonts.googleapis.com/css?family=Roboto+Condensed|Oswald:700" rel="stylesheet" type="text/css"--> <link href="<?php print JxBotConfig::bot_url(); ?> jxbot/core/css/fonts.css" rel="stylesheet" type="text/css"> <link rel="stylesheet" type="text/css" href="<?php print JxBotConfig::bot_url(); ?> jxbot/core/css/admin.css"> <link rel="stylesheet" type="text/css" href="<?php print JxBotConfig::bot_url(); ?> jxbot/core/css/bubble.css"> <link rel="stylesheet" type="text/css" href="<?php print JxBotConfig::bot_url(); ?> jxbot/core/css/fancy.css"> <link rel="stylesheet" type="text/css" href="<?php print JxBotConfig::bot_url(); ?> jxbot/core/css/phpinfo.css"> <script type="text/javascript" src="<?php print JxBotConfig::bot_url(); ?> jxbot/core/js/admin.js"></script> </head> <body> <div id="nav"> <div id="nav-top"> <img src="<?php print JxBotConfig::bot_url(); ?> jxbot/core/gfx/robot-tiny.png" style="float:right;"><h1>JxBot</h1> </div> <?php JxBotAdmin::admin_sidebar(); ?> <div id="nav-bot"></div> </div> <div id="page"><div id="container"> <?php JxBotAdmin::admin_page(); ?> </div></div> </body> </html> <?php }