All pastes #333776 Raw Edit

Miscellany

public text v1 · immutable
#333776 ·published 2007-01-31 03:05 UTC
rendered paste body
          <select name="file.Game.GameID" id="file.Game.GameID">
            <option value="0" selected>Select a Game</option>
            #foreach($item in $games)
            <option value="$item.GameID" #if($game.GameID == $item.GameID)selected#end>$item.Name</option>
            #end
          </select>
          <br />
          <br />
          <span id="category">
          <label for="file.Category.CategoryID">$ResourceManager.Category:</label>
          <br />
          <select name="file.Category.CategoryID" id="file.Category.CategoryID">
            <option value="0" selected>Select a Category</option>
            #foreach($category in $categories)
            <option value="$category.CategoryID">$category.Name</option>
            #end
          </select>
          <br />
          <br />
          </span>
          <script type="text/javascript">new Form.Element.Observer($("file.Game.GameID"), 1, function(element, value) { new Ajax.Updater('category', 'fetchcategories.aspx', {asynchronous:true, evalScripts:true, parameters:'value='+value}) })</script>
          <span id="brand">
          <label for="file.CarFeature.Brand.BrandID">$ResourceManager.Brand:</label>
          <br />
          <select name="file.CarFeature.Brand.BrandID" id="file.CarFeature.Brand.BrandID">
            <option value="0" selected>Select a Brand</option>
            #foreach ($brand in $brands)
            <option value="$brand.BrandID">$brand.Name</option>
            #end
          </select>
          <br />
          <br />
          </span>
          <script type="text/javascript">new Form.Element.Observer($("file.Category.CategoryID"), 1, function(element, value) { new Ajax.Updater('brand', 'fetchbrands.aspx', {asynchronous:true, evalScripts:true, parameters:'value='+value}) })</script>