} ?> </div> <div class="panel-footer"> <button type="submit" class="btn btn-default" id="preview-original-btn"><span class="glyphicon glyphicon-search"></span> Preview</button> </div> </div> </div> <!-- NEW TEXT BOX --> <div class="col-xs-6 col-md-6 col-lg-6"> <div class="panel panel-default"> <div class="panel-body"> <?php // modified text $db = new SQLite3(SQLITE_FILENAME); if ($row = DbManager::getTranslationByUserAndOriginalId($db, $uname, $id)) { $text = $row['new_text']; if (defined('NEWLINE_REPLACE') && NEWLINE_REPLACE && defined('NEWLINECHAR')) { $text = str_replace(NEWLINECHAR, ' ', $text); } $status = $row['status']; $date = $row['date']; } if (!isset($status)) { $status = 0; } $db->close(); unset($db); ?> <form method="post" id="form1"> <input type="hidden" name="id_text" value="<?php