[ Index ]
 

Code source de PRADO 3.0.6

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/demos/composer/protected/pages/ -> Home.page (source)

   1  <%@ MasterClass="Application.pages.Layout" Theme="PradoSoft" %>
   2  <com:TContent ID="body" >
   3  
   4  <com:TPanel CssClass="classinfo" GroupingText="Class Information">
   5  class
   6  <com:TTextBox ID="ClassName"
   7      Text=<%#$this->Page->ClassDefinition->ClassName%>
   8      CssClass="slTextBox"/>
   9  extends
  10  <com:TTextBox ID="ParentClass"
  11      Text=<%#$this->Page->ClassDefinition->ParentClass%>
  12      CssClass="slTextBox"/>
  13  implements <com:TTextBox ID="Interfaces" CssClass="slTextBox"/>
  14  </com:TPanel>
  15  
  16  <com:TPanel CssClass="propertydef" GroupingText="Property Definitions">
  17  <com:TRepeater ID="PropertyList" OnItemCommand="propertyAction">
  18  
  19  <prop:EmptyTemplate>
  20  No properties defined.<br/>
  21  </prop:EmptyTemplate>
  22  
  23  <prop:HeaderTemplate>
  24  <table>
  25  <tr>
  26    <th>Name</th>
  27    <th>Type</th>
  28    <th>Default Value</th>
  29    <th>Storage Mode</th>
  30    <th>Accessibility</th>
  31    <th>Comments</th>
  32    <th>Actions</th>
  33  </tr>
  34  </prop:HeaderTemplate>
  35  
  36  <prop:FooterTemplate>
  37  </table>
  38  </prop:FooterTemplate>
  39  
  40  <prop:ItemTemplate>
  41  <tr>
  42    <td>
  43    <com:TTextBox ID="PropertyName" Text=<%# $this->DataItem->Name %> CssClass="slTextBox"/>
  44    </td>
  45    <td>
  46    <com:TDropDownList ID="PropertyType" SelectedValue=<%# $this->DataItem->Type %> >
  47      <com:TListItem Text="string" />
  48      <com:TListItem Text="integer" />
  49      <com:TListItem Text="boolean" />
  50      <com:TListItem Text="enumerable" />
  51      <com:TListItem Text="float" />
  52      <com:TListItem Text="mixed" />
  53    </com:TDropDownList>
  54    </td>
  55    <td>
  56    <com:TTextBox ID="DefaultValue" Text=<%# $this->DataItem->DefaultValue %> CssClass="slTextBox"/>
  57    </td>
  58    <td>
  59    <com:TDropDownList ID="Storage" SelectedValue=<%# $this->DataItem->Storage %> >
  60      <com:TListItem Text="ViewState" />
  61      <com:TListItem Text="ControlState" />
  62      <com:TListItem Text="Memory" />
  63    </com:TDropDownList>
  64    </td>
  65    <td>
  66    <com:TCheckBox ID="IsProtected" Text="protected" Checked=<%# $this->DataItem->IsProtected %> />
  67    <com:TCheckBox ID="ReadOnly" Text="read-only" Checked=<%# $this->DataItem->ReadOnly %> />
  68    </td>
  69    <td>
  70    <com:TTextBox ID="Comments" Text=<%# $this->DataItem->Comments %> CssClass="slTextBox"/>
  71    </td>
  72    <td>
  73    <com:TButton
  74            Text="Remove"
  75            CommandName="remove"
  76            CommandParameter=<%# $this->ItemIndex %>
  77            CssClass="button"
  78            />
  79    <com:TButton
  80            Text="Up"
  81            CommandName="up"
  82            CommandParameter=<%# $this->ItemIndex %>
  83            Enabled=<%# $this->ItemIndex > 0%>
  84            CssClass="button"
  85            />
  86    <com:TButton
  87            Text="Down"
  88            CommandName="down"
  89            CommandParameter=<%# $this->ItemIndex %>
  90            Enabled=<%# $this->ItemIndex < $this->Page->ClassDefinition->Properties->Count-1 %>
  91            CssClass="button"
  92            />
  93    </td>
  94  </tr>
  95  </prop:ItemTemplate>
  96  
  97  </com:TRepeater>
  98  <p>
  99  <com:TButton Text="New Property" OnCommand="propertyAction" CommandName="add" CssClass="button" />
 100  </p>
 101  </com:TPanel>
 102  
 103  <com:TPanel CssClass="eventdef" GroupingText="Event Definitions">
 104  <com:TRepeater ID="EventList" OnItemCommand="eventAction">
 105  
 106  <prop:EmptyTemplate>
 107  <p>No events defined</p>
 108  </prop:EmptyTemplate>
 109  
 110  <prop:HeaderTemplate>
 111  <table>
 112  <tr>
 113    <th>Name</th>
 114    <th>Comments</th>
 115    <th>Actions</th>
 116  </tr>
 117  </prop:HeaderTemplate>
 118  
 119  <prop:FooterTemplate>
 120  </table>
 121  </prop:FooterTemplate>
 122  
 123  <prop:ItemTemplate>
 124  <tr>
 125    <td>
 126    <com:TTextBox ID="EventName" Text=<%# $this->DataItem->Name %> CssClass="slTextBox"/>
 127    </td>
 128    <td>
 129    <com:TTextBox ID="Comments" Text=<%# $this->DataItem->Comments %> CssClass="slTextBox"/>
 130    </td>
 131    <td>
 132    <com:TButton
 133            Text="Remove"
 134            CommandName="remove"
 135            CommandParameter=<%# $this->ItemIndex %>
 136            CssClass="button"
 137            />
 138    <com:TButton
 139            Text="Up"
 140            CommandName="up"
 141            CommandParameter=<%# $this->ItemIndex %>
 142            Enabled=<%# $this->ItemIndex > 0%>
 143            CssClass="button"
 144            />
 145    <com:TButton
 146            Text="Down"
 147            CommandName="down"
 148            CommandParameter=<%# $this->ItemIndex %>
 149            Enabled=<%# $this->ItemIndex < $this->Page->ClassDefinition->Events->Count-1 %>
 150            CssClass="button"
 151            />
 152    </td>
 153  </tr>
 154  </prop:ItemTemplate>
 155  
 156  </com:TRepeater>
 157  <p>
 158  <com:TButton Text="New Event" OnCommand="eventAction" CommandName="add" CssClass="button" />
 159  </p>
 160  </com:TPanel>
 161  
 162  <com:TPanel CssClass="comments" GroupingText="Comments">
 163  <com:TTextBox ID="Comments" TextMode="MultiLine" Columns="80" Rows="6" />
 164  <br/>
 165  Author Name
 166  <com:TTextBox ID="AuthorName"
 167      Text=<%#$this->Page->ClassDefinition->Author%>
 168      CssClass="slTextBox"/>
 169  Author Email
 170  <com:TTextBox ID="AuthorEmail"
 171      Text=<%#$this->Page->ClassDefinition->Email%>
 172      CssClass="slTextBox"/>
 173      <p>
 174      <com:TButton Text="Generate Code" OnClick="generateCode" CssClass="button" />
 175      </p>
 176  </com:TPanel>
 177  
 178  <com:TPanel CssClass="generator">
 179      <com:TTextHighlighter>
 180          <com:TLiteral ID="SourceCode" />
 181      </com:TTextHighlighter>
 182  </com:TPanel>
 183  
 184  </com:TContent>


Généré le : Sun Feb 25 21:07:04 2007 par Balluche grâce à PHPXref 0.7