<input type="hidden" id="id" class="form-control" value="<?php echo $data['id']; ?> "> <input type="text" id="post_title" class="form-control" placeholder="Post title" value="<?php echo $data['title']; ?> "> <br> <textarea name="" id="post_text" class="form-control" rows="3" required="required" placeholder="Post text"><?php echo $data['text']; ?> </textarea> <br> <button type="button" class="btn btn-success" id="savebtn">Save post</button> <a href="http://<?php echo __MAIN__; ?> "> <button type="button" class="btn btn-warning" id="cancelbtn">Cancel</button> </a> </form> </div> </div> </div> <?php Helper::addJS('edit');
<input type="password" class="form-control" id="regpass" placeholder="******"> </div> <div class="form-group"> <label for="regname">Password again</label> <input type="password" class="form-control" id="regpass2" placeholder="******"> </div> <div class="form-group"> <label for="authlevel">Authentication level</label> <select name="authlevel" id="authlevel" class="form-control" required="required"> <option value="1">View only</option> <option value="2">View & Create</option> <option value="3">View & Create & Edit</option> <option value="4">View & Create & Edit & Delete</option> </select> </div> <div> Restrictions: <ul> <li>Username : >5 characters</li> <li>Password : >5 characters</li> </ul> </div> <button type="button" class="btn btn-primary" id="regbtn">Register</button> </form> </div> <?php Helper::addJS('register');
<?php use Lib\Helper; ?> </div> </div> <?php Helper::addJS('main'); ?> </body> </html>
<h6><b>Author:</b> <?php echo $post['posted_by']; ?> </h6> <h6><b>Date:</b> <?php echo $post['date']; ?> </h6> <p style="word-break: break-all;"><?php echo $post['text']; ?> ...</p> <button type="button" class="btn btn-sm btn-success readmore" data-alias="<?php echo $post['alias']; ?> " >Read more</button> <hr> <?php } ?> <?php Helper::addJS('index'); ?> </div>