?> ">Next (TODO) ›</a> </div> </div> </div> </div> <!-- MAIN --> <div class="row"> <!-- ORIGINAL TEXT BOX --> <div class="col-xs-6 col-md-6 col-lg-6"> <div class="panel panel-default"> <div class="panel-body"> <?php try { $db = new SQLite3(SQLITE_FILENAME); if ($row = DbManager::getOriginalById($db, $id)) { $text = $row['text_encoded']; if (defined('NEWLINE_REPLACE') && NEWLINE_REPLACE && defined('NEWLINECHAR')) { $text = str_replace(NEWLINECHAR, ' ', $text); } echo '<textarea id="original_text" rows="10" style="background: white;" class="form-control" disabled>', $text, '</textarea>'; } $db->close(); unset($db); } catch (Exception $e) { print_r($e); } ?> </div> <div class="panel-footer"> <button type="submit" class="btn btn-default" id="preview-original-btn"><span class="glyphicon glyphicon-search"></span> Preview</button>