if (trim($inputs['input']) != '') { JxBotConverse::resume_conversation('admin'); $response = JxBotConverse::get_response($inputs['input']); } else { $response = JxBotConverse::get_greeting(); } ?> <?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>
function page_edit_tmpl() { $inputs = JxBotUtil::inputs('template'); $template = JxBotNLData::template_fetch($inputs['template']); ?> <?php JxWidget::hidden('category', $template['category']); JxWidget::hidden('tmpl-id', $template['id']); ?> <h2>Edit Template</h2> <p><?php JxWidget::memofield('template', 'Template', $template['template'], 5, true); ?> </p> <p><?php JxWidget::button('Cancel', 'action', 'edit'); ?> <?php JxWidget::button('Save Template', 'action', 'save-tmpl'); ?> </p> <?php }