Location: PHPKode > projects > FiForms Framework > FiForms/apps/books/forms/books.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE fiform PUBLIC "-//FIFORMS//DTD FIFORMDEF 1.1//EN" 
          "http://xml.fiforms.org/dtd/11/fi.dtd">
<fiform 
        allowInsert="yes" 
        ctlPosition="bottom" 
        height="550" 
        insert="current" 
        location="no" 
        menubar="no" 
        resizable="yes" 
        scrollbars="yes" 
        svctlPosition="both" 
        toolbar="no" 
        viewsAllowed="both" 
        whichControls="all" 
        width="750" 
        window="books" 
        defaultView="sheet" 
         version="1.1"
        xmlns="http://xml.fiforms.org/FiForms/">
  <title>Edit Book Collection</title>
  <summary>
    A form to list and modify books in a collection.
  </summary>
  <connect db="fiforms_sample" 
           id="1" 
           server="localhost" 
           type="MySQL" 
           update="books" />
  <iText caption="Title" field="BOOK_TITLE" size="60"/>
  <iDBSelect caption="Author" field="AUTHOR_ID" 
             rowQuery="SELECT AUTHOR_ID, 
                       concat(AUTHOR_FIRSTNAME,&apos; &apos;,AUTHOR_LASTNAME) as AUTHOR_NAME 
                       FROM authors" />
  <iDBSelect caption="Publisher" field="PUB_ID" 
             rowQuery="SELECT PUB_ID, PUB_NAME FROM PUBLISHERS" />
  <iText caption="Copyright Year" field="BOOK_COPYRIGHT" size="10"/>
  <iText caption="ISBN #" field="BOOK_ISBN"/>
  <iText caption="Call #" field="BOOK_CALLNUM"/>
  <iSubform caption="Categories" 
            href="book_categories.xml" 
            params="BOOK_ID=%BOOK_ID%" 
            view="sheet" 
            width="550"
            height="270" />
</fiform>
Return current item: FiForms Framework