<?xml version="1.0" encoding="UTF-8"?>
<!-- Evolutility - www.evolutility.org - (c) 2012 Olivier Giulieri  -->
<form label="Photo Album"  xmlns="http://www.evolutility.com">
<data icon="album.gif" entity="photo album" entities="photo albums" 
 dbtable="EVOL_PhotoAlbum" 
  sppaging="EvoSP_PagedItem @SQLselect, @SQLtable, @SQLfrom, @SQLwhere, @SQLorderby, @SQLpk, @pageid, @pagesize"  
  splogin="EvoSP_LOGIN @login, @password" dbdetails="1"  />
<panel label="Album" width="100" >
      <field type="text" label="Title" maxlength="100"  dbcolumn="Title" dbcolumnread="Title" required="1" width="62" height="1" search="1" searchlist="1" searchadv="1" searchquick="1" />
      <field type="date" label="Date Posted" dbcolumn="CreationDate" dbcolumnread="CreationDate"
			 width="38" search="1" searchlist="1" searchadv="1"/>
      <field type="textmultiline" optional="1" label="Notes" labellist="Notes" maxlength="200"  dbcolumn="Notes" dbcolumnread="Notes" width="62" height="2" search="1" searchlist="0" searchadv="1" searchquick="1" />
      <field type="formula" readonly="1" label="" labeledit="Photos" labellist="Photos" maxlength="100" format="0 'photos'" 
			 dbcolumn="SELECT COUNT(*) FROM EVOL_Photo P WHERE P.albumid=T.id" dbcolumnread="NBphotos" width="38" height="1" search="1" searchlist="1" searchadv="1" searchquick="1" />
</panel>
<panel-details panelid="0" icon="photo.gif" label="Photos" width="50" dbtabledetails="EVOL_Photo" dbcolumndetails="AlbumID" dbmaxrows="10" >
      <field panelid="0" type="text" label="Title" maxlength="100" dbcolumn="Title" dbcolumnread="Title" searchlist="1" 
      link="demo_photo.aspx?ID=@itemid" />
</panel-details> 
<panel-details panelid="1" label="First Photo" width="50" dbtabledetails="EVOL_Photo" dbcolumndetails="AlbumID" dbmaxrows="1" >
      <field panelid="1" type="image" label="" maxlength="200"  dbcolumn="FileName" dbcolumnread="FileName" width="100" searchlist="1" />
</panel-details> 

</form>

