mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
#275 addon모듈의 확장변수 입력 방식 다양화
- mid_list, select, textarea 타입 추가. - 기존 호환성을 위해 type이 설정되어 있지 않을 경우 기본 값 'text' git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3261 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
f3e6d2843a
commit
364f7acef0
3 changed files with 51 additions and 6 deletions
|
|
@ -24,12 +24,37 @@
|
|||
<td><a href="{$addon_info->author->homepage}" onclick="window.open(this.href);return false;">{$addon_info->author->homepage}</a></td>
|
||||
</tr>
|
||||
|
||||
<!--@foreach($addon_info->extra_vars as $key => $val)-->
|
||||
<!--@foreach($addon_info->extra_vars as $id => $var)-->
|
||||
<tr>
|
||||
<th scope="row">{$val->title}</th>
|
||||
<th scope="row">
|
||||
{$var->title}
|
||||
<!--@if($var->type == 'mid_list')-->
|
||||
<input type="checkbox" onclick="checkboxSelectAll(this.form, '{$var->name}'); return false;" />
|
||||
<!--@end-->
|
||||
</th>
|
||||
<td>
|
||||
<input type="text" name="{$val->name}" value="{$val->value}" class="inputTypeText w400" />
|
||||
<!--@if($val->description)--><p>{$val->description}</p><!--@end-->
|
||||
<!--@if($var->type == 'text')-->
|
||||
<input type="text" name="{$var->name}" value="{$var->value}" class="inputTypeText w400" />
|
||||
|
||||
<!--@elseif($var->type == 'textarea')-->
|
||||
<textarea name="{$var->name}" class="inputTypeTextArea">{$var->value}</textarea>
|
||||
|
||||
<!--@elseif($var->type == 'select')-->
|
||||
<select name="{$var->name}">
|
||||
<!--@foreach($var->options as $val)-->
|
||||
<option value="{$val->value}"<!--@if($var->value == $val->value)--> selected="selected"<!--@end-->>{$val->title}</option>
|
||||
<!--@end-->
|
||||
</select>
|
||||
|
||||
<!--@elseif($var->type == 'mid_list')-->
|
||||
<!--@foreach($mid_list as $key => $val)-->
|
||||
<div class="addon_mid_list">
|
||||
<input type="checkbox" value="{$key}" name="{$var->name}" id="chk_mid_list_{$key}" <!--@if(in_array($key, $var->value))-->checked="checkde" <!--@end-->/>
|
||||
<label for="chk_mid_list_{$key}">{$key} ({$val->browser_title})</label>
|
||||
</div>
|
||||
<!--@end-->
|
||||
<!--@end-->
|
||||
<p class="clear">{nl2br($var->description)}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<!--@end-->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue