Subversion Repositories bysoftdeveloper

[/] [design/] [standard/] [templates/] [bysoftdeveloper/] [classes/] [form.tpl] - Blame information for rev 31

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 10 cavin.deng
<div class="block">
2
        {def $classes=fetch('class','list')}
3
        <label>Select class:&nbsp;
4
        <select name="bysoftdeveloperSelectedClass" id="bysoftdeveloperSelectedClass" onchange="javascript:bysoftdeveloperChangeClass();">
5
                <option value="">--Please choose class--</option>
6
                {def $classes=array()}
7
                {foreach $groups as $group}
8
                        <optgroup label="{$group.name|wash}">
9
                        {set $classes=fetch('class','list_by_groups',hash('group_filter',array($group.id)))}
10
                        {foreach $classes as $cs}
11 31 alvawu
                                <option value="{$cs.id}">{$cs.name}</option>
12 10 cavin.deng
                        {/foreach}
13
                        </optgroup>
14
                {/foreach}
15
        </select></label>
16
</div>