mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 11:11:39 +09:00
#55 radio 타입 설정 값이 채워지도록 보완 및 코드 정리.
This commit is contained in:
parent
c2b3933831
commit
7e379bfee9
2 changed files with 38 additions and 21 deletions
|
|
@ -1,7 +1,8 @@
|
|||
<load target="../../module/tpl/js/multi_order.js" usecdn="true" />
|
||||
<load target="../../module/tpl/js/module_list.js" usecdn="true" />
|
||||
<load target="../../module/tpl/js/mid.js" usecdn="true" />
|
||||
<load target="../../module/tpl/js/multi_order.js" />
|
||||
<load target="../../module/tpl/js/module_list.js" />
|
||||
<load target="../../module/tpl/js/mid.js" />
|
||||
<!--%load_js_plugin("ui.colorpicker")-->
|
||||
|
||||
<div class="x_control-group">
|
||||
<label class="x_control-label" for="skin">{$lang->skin}</label>
|
||||
<div class="x_controls">
|
||||
|
|
@ -12,6 +13,7 @@
|
|||
<input type="button" class="x_btn" value="{$lang->cmd_select}" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="x_control-group">
|
||||
<label class="x_control-label" for="colorset">{$lang->colorset}</label>
|
||||
<div class="x_controls">
|
||||
|
|
@ -19,6 +21,7 @@
|
|||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="x_control-group">
|
||||
<label class="x_control-label" for="widget_cache">{$lang->widget_cache}</label>
|
||||
<div class="x_controls">
|
||||
|
|
@ -26,6 +29,7 @@
|
|||
<p class="x_help-inline">{$lang->about_widget_cache}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{@$suggestion_id = 0}
|
||||
<block loop="$widget_info->extra_var => $id, $var">
|
||||
{@$suggestion_id++}
|
||||
|
|
@ -36,20 +40,25 @@
|
|||
<h1>{$var->group}</h1>
|
||||
{@$group = $var->group}
|
||||
</block>
|
||||
|
||||
{@$not_first = true}
|
||||
<div class="x_control-group <!--@if($var->type == 'mid' || $var->type == 'module_srl_list')-->moduleSearch moduleSearch1 modulefinder<!--@end-->">
|
||||
<label class="x_control-label" for="{$id}"|cond="$var->type != 'radio' && $var->type != 'checkbox'">{$var->name}</label>
|
||||
<div class="x_controls">
|
||||
<div cond="$var->type == 'text'">
|
||||
<block cond="$var->type == 'text'">
|
||||
<input type="text" name="{$id}" />
|
||||
</div>
|
||||
<input cond="$var->type == 'color'" type="text" name="{$id}" value="" id="{$id}" class="color-indicator" style="width:178px" />
|
||||
<div cond="$var->type == 'textarea'">
|
||||
</block>
|
||||
<block cond="$var->type == 'color'">
|
||||
<input type="text" name="{$id}" value="" id="{$id}" class="color-indicator" style="width:178px" />
|
||||
</block>
|
||||
<block cond="$var->type == 'textarea'">
|
||||
<textarea cond="$var->type == 'textarea'" name="{$id}" id="{$id}" rows="8" cols="42"></textarea>
|
||||
</div>
|
||||
<select cond="$var->type == 'select'" name="{$id}" id="{$id}">
|
||||
<option loop="$var->options => $key, $val" value="{$key}">{$val}</option>
|
||||
</select>
|
||||
</block>
|
||||
<block cond="$var->type == 'select'">
|
||||
<select name="{$id}" id="{$id}">
|
||||
<option loop="$var->options => $key, $val" value="{$key}">{$val}</option>
|
||||
</select>
|
||||
</block>
|
||||
<block cond="$var->type == 'select-multi-order'">
|
||||
<!--@if($var->init_options && is_array($var->init_options))-->
|
||||
{@$inits = array_keys($var->init_options)}
|
||||
|
|
@ -122,21 +131,28 @@
|
|||
<input type="hidden" name="{$id}" />
|
||||
<a class="x_btn modalAnchor filebox" href="#modalFilebox">{$lang->cmd_select}</a>
|
||||
</block>
|
||||
<select cond="$var->type == 'menu'" name="{$id}">
|
||||
<option value="">-</option>
|
||||
<option loop="$menu_list => $key, $val" value="{$val->menu_srl}">{$val->title}</option>
|
||||
</select>
|
||||
<label loop="$var->options => $key, $val" cond="$var->type == 'radio'">
|
||||
<input type="radio" name="{$id}" id="{$id}_{$key}" value="{$key}" > {$val}
|
||||
</label>
|
||||
<label loop="$var->options => $key, $val" cond="$var->type == 'checkbox'">
|
||||
<input type="checkbox" name="{$id}" id="{$id}_{$key}" value="{$key}" > {$val}
|
||||
</label>
|
||||
<block cond="$var->type == 'menu'">
|
||||
<select name="{$id}">
|
||||
<option value="">-</option>
|
||||
<option loop="$menu_list => $key, $val" value="{$val->menu_srl}">{$val->title}</option>
|
||||
</select>
|
||||
</block>
|
||||
<block cond="$var->type == 'radio'">
|
||||
<label loop="$var->options => $key, $val">
|
||||
<input type="radio" name="{$id}" id="{$id}_{$key}" value="{$key}" > {$val}
|
||||
</label>
|
||||
</block>
|
||||
<block cond="$var->type == 'checkbox'">
|
||||
<label loop="$var->options => $key, $val">
|
||||
<input type="checkbox" name="{$id}" id="{$id}_{$key}" value="{$key}" > {$val}
|
||||
</label>
|
||||
</block>
|
||||
<p cond="$var->description">{$var->description}</p>
|
||||
</div>
|
||||
</div>
|
||||
</block>
|
||||
</section>
|
||||
|
||||
<script>
|
||||
xe.current_lang = "{$lang_type}";
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue