rhymix/modules/widget/tpl/widget_style_generate_code_in_page.html
ChanMyeong 024a234f6a Admin HTML Markup Clean.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9377 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-09-27 12:53:33 +00:00

94 lines
3.5 KiB
HTML

<load target="../../admin/tpl/js/admin.js" usecdn="true" />
<load target="../../admin/tpl/css/admin.css" usecdn="true" />
<load target="../../admin/tpl/css/admin_{$lang_type}.css" usecdn="true" />
<load target="css/widget.css" usecdn="true" />
<load target="js/generate_code.js" usecdn="true" />
<!--%load_js_plugin("ui.colorpicker")-->
<script type="text/javascript">
jQuery(document).ready(function(){
getWidgetVars();
});
</script>
<div class="x" style="padding: 0 10px;">
<h2 class="h2">{$lang->widgetstyle}</h2>
<form class="form" action="./" method="post" id="fo_widget">
<input type="hidden" name="module_srl" value="{$module_srl}" />
<input type="hidden" name="widget_sequence" value="" />
<input type="hidden" name="style" value="" />
<input type="hidden" name="widget_padding_left" value="" />
<input type="hidden" name="widget_padding_right" value="" />
<input type="hidden" name="widget_padding_top" value="" />
<input type="hidden" name="widget_padding_bottom" value="" />
<input type="hidden" name="module" value="widget" />
<input type="hidden" name="act" value="" />
<input type="hidden" name="widgetstyle" value="{$widgetstyle}" />
<input type="hidden" name="selected_widget" value="{$selected_widget}" />
<a href="{getUrl('widgetstyle','none')}" class="widgetStyle"><img src="images/widgetstyle_none.gif" title="{$lang->notuse}" /></a>
<a loop="$widgetStyle_list => $key, $widgetStyle" cond="$widgetStyle->preview" href="{getUrl('widgetstyle',$widgetStyle->widgetStyle)}" class="widgetStyle <!--@if($widgetStyle->widgetStyle==$widgetstyle)-->selected<!--@end-->"><img src="{getUrl()}{$widgetStyle->preview}" title="{$widgetStyle->title}" /><span>{$widgetStyle->title}</span></a>
<block cond="$widgetstyle_info">
<h3 class="h3">{$widgetstyle_info->title} ver {$widgetstyle_info->version}</h3>
<ul>
<li>
<p class="q">{$lang->description}</p>
<p class="a">{$widgetstyle_info->description}</p>
</li>
<li>
<p class="q">{$lang->author}</p>
<p class="a">
<block loop="$widgetstyle_info->author => $author">
{$author->name} ({$author->homepage})
</block>
</p>
</li>
<li>
<p class="q">{$lang->regdate}</p>
<p class="a">{zdate($widgetstyle_info->date,'Y-m-d')}</p>
</li>
</ul>
<block loop="$widgetstyle_info->extra_var => $id, $var">
{@$suggestion_id++}
<block cond="!$not_first && !$var->group"><ul></block>
<block cond="$group != $var->group">
<block cond="$not_first"></ul></block>
<h3 class="h3">{$var->group}</h3>
<ul>
{@$group = $var->group}
</block>
{@$not_first = true}
<li>
<p class="q">{$var->name}</p>
<p class="a">
<input cond="$var->type == 'text'" type="text" name="{$id}" />
<input cond="$var->type == 'color'" type="text" name="{$id}" class="color-indicator" />
<textarea cond="$var->type == 'textarea'" name="{$id}"></textarea>
<select cond="$var->type == 'select'" name="{$id}">
<option loop="$var->options => $key, $val" value="{$key}">{$val}</option>
</select>
<block cond="$var->type == 'filebox'">
<input type="hidden" name="{$id}" />
<a href="#modalFilebox" class="modalAnchor filebox">{$lang->cmd_select}</a>
</block>
</p>
<p class="desc">{$var->description}</p>
</li>
</block>
</ul>
</block>
<div class="btnArea">
<span class="btn small"><input type="submit" value="{$lang->cmd_setup}" /></span>
</div>
</form>
<include target="widget_generate_code.filebox.html" />
</div>