File: app/views/edit.php

Recommend this page to a friend!
  Classes of Ali YILMAZ  >  PHP PhoneBook  >  app/views/edit.php  >  Download  
File: app/views/edit.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP PhoneBook
Phone book manager application based on MVC
Author: By
Last change:
Date: 9 months ago
Size: 1,297 bytes


Class file image Download
<?php $this->mindLoad('app/views/layout/header'); ?>

<form action="edit" method="post">

    <div class="form-group">
        <label for="name">Name</label>
        <input type="text" name="name" class="form-control" id="name" value="<?=$record['name'];?>">

    <div class="form-group">
        <label for="phone">Phone</label>
        <input type="tel" name="phone" class="form-control" id="phone" value="<?=$record['phone'];?>">

    <div class="form-group">
        <label for="email">Email</label>
        <input type="email" name="email" class="form-control" id="email" value="<?=$record['email'];?>">

    <input type="hidden" name="id" value="<?=$record['id'];?>">

    <button type="submit" class="btn btn-default btn-xs btn-success">
        <span class="glyphicon glyphicon-refresh" aria-hidden="true"></span> Update

    <a href="remove/<?=$this->post['id'];?>" class="btn btn-default btn-xs btn-danger">
        <span class="glyphicon glyphicon-trash" aria-hidden="true"></span> Remove

    <a href="<?=$this->base_url;?>" class="btn btn-default btn-xs btn-warning">
        <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span> Cancel


<?php $this->mindLoad('app/views/layout/footer'); ?>

For more information send a message to info at phpclasses dot org.