Common UI and .x_btn style cleaning.

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12222 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ChanMyeong 2012-11-14 15:28:42 +00:00
parent 9984a9e9af
commit 27c12c5dfb
55 changed files with 203 additions and 225 deletions

View file

@ -1,15 +1,3 @@
jQuery(document).ready(function($){
$('.uploaded_image').css('cursor', 'pointer');
$('.uploaded_image_path').hide();
$('.uploaded_image').bind('click', function(e){
var path = $(this).find('.uploaded_image_path').html();
var html = '<div class="x_well selected_image_path">' + path + '</div>';
$('.selected_image_path').remove();
$('.uploaded_image_list').after(html);
});
});
function doPreviewLayoutCode()
{
var $form = jQuery('#fo_layout'), $act = $form.find('input[name=act]');

View file

@ -11,24 +11,23 @@
<p>{nl2br($lang->about_layout_image_repository)}</p>
<ul class="x_thumbnails uploaded_image_list">
<li loop="$layout_image_list => $no, $file" class="x_span2">
<li loop="$layout_image_list => $no, $file" class="x_span2" style="float:none;display:inline-block;_display:inline;zoom:1;vertical-align:top">
{@$ext=substr(strrchr($file,'.'),1)}
<div class="x_thumbnail a uploaded_image">
<div class="x_thumbnail a uploaded_image x_clearfix">
<script cond="$ext == 'swf' || $ext == 'flv'">
//<![CDATA[
displayMultimedia('{getUrl('')}{$layout_image_path}{$file}', '100px', '100px');
//]]>
</script>
<img cond="$ext != 'swf' && $ext != 'flv'" src="{getUrl('')}{$layout_image_path}{$file}" />
<div class="x_caption">
<p class="uploaded_image_path">{$layout_image_path}{$file}</p>
<form action="./" method="post" style="margin:0;padding:0">
<div style="width:100%;word-wrap:break-word">
<p class="uploaded_image_path" style="margin:5px 0 0 0;font:11px/1.25 Tahoma, Geneva, sans-serif">{$layout_image_path}{$file}</p>
<form action="./" method="post" class="x_pull-right" style="margin:0;padding:0">
<input type="hidden" name="module" value="layout" />
<input type="hidden" name="act" value="procLayoutAdminUserImageDelete" />
<input type="hidden" name="layout_srl" value="{$layout_srl}" />
<input type="hidden" name="filename" value="{$file}" />
<input class="x_btn x_btn-mini x_btn-danger" type="submit" value="{$lang->cmd_delete}" />
<input class="x_icon-remove" type="submit" value="{$lang->cmd_delete}" title="{$lang->cmd_delete}" style="width:14px" />
</form>
</div>
</div>
@ -39,11 +38,10 @@
<input type="hidden" name="module" value="layout" />
<input type="hidden" name="act" value="procLayoutAdminUserImageUpload" />
<input type="hidden" name="layout_srl" value="{$layout_srl}" />
<div class="x_control-group">
<input type="file" name="user_layout_image" value="" />
<span class="x_help-block">{$lang->msg_layout_image_target}</span>
</div>
<p>
<input type="file" class="overlap" name="user_layout_image" value="" title="{$lang->uploaded_file}" />
<span class="x_help-inline">{$lang->msg_layout_image_target}</span>
</p>
<div class="x_clearfix btnArea">
<div class="x_pull-right">
<button type="submit" class="x_btn x_btn-primary">{$lang->cmd_save}</button>
@ -69,15 +67,19 @@
<section class="section">
<h1>HTML</h1>
<textarea name="code" rows="8" cols="42" style="width:100%;height:300px;font-size:11px;">{$layout_code}</textarea>
<div class="x_btn-group">
<a loop="$widget_list => $widget" class="x_btn x_btn-mini" href="{getUrl('','module','admin','act','dispWidgetAdminGenerateCode','selected_widget',$widget->widget)}" target="_blank">{$widget->title}</a>
<div style="margin-right:14px">
<textarea name="code" rows="8" cols="42" style="width:100%;height:300px;font-size:11px;">{$layout_code}</textarea>
</div>
<div>
<block loop="$widget_list => $widget"> <i>|</i> <a href="{getUrl('','module','admin','act','dispWidgetAdminGenerateCode','selected_widget',$widget->widget)}" target="_blank">{$widget->title}</a></block>
</div>
</section>
<section class="section">
<h1>CSS</h1>
<textarea name="code_css" rows="8" cols="42" style="width:100%;height:300px;font-size:11px;">{$layout_code_css}</textarea>
<div style="margin-right:14px">
<textarea name="code_css" rows="8" cols="42" style="width:100%;height:300px;font-size:11px;">{$layout_code_css}</textarea>
</div>
</section>
<div class="x_clearfix btnArea">

View file

@ -3,24 +3,23 @@
<p>{nl2br($lang->about_layout_image_repository)}</p>
<ul class="x_thumbnails uploaded_image_list">
<li loop="$layout_image_list => $no, $file" class="x_span2">
<li loop="$layout_image_list => $no, $file" class="x_span2" style="float:none;display:inline-block;_display:inline;zoom:1;vertical-align:top">
{@$ext=substr(strrchr($file,'.'),1)}
<div class="x_thumbnail a uploaded_image">
<div class="x_thumbnail a uploaded_image x_clearfix">
<script cond="$ext == 'swf' || $ext == 'flv'">
//<![CDATA[
displayMultimedia('{getUrl('')}{$layout_image_path}{$file}', '100px', '100px');
//]]>
</script>
<img cond="$ext != 'swf' && $ext != 'flv'" src="{getUrl('')}{$layout_image_path}{$file}" />
<div class="x_caption">
<p class="uploaded_image_path">{$layout_image_path}{$file}</p>
<form action="./" method="post" style="margin:0;padding:0">
<div style="width:100%;word-wrap:break-word">
<p class="uploaded_image_path" style="margin:5px 0 0 0;font:11px/1.25 Tahoma, Geneva, sans-serif">{$layout_image_path}{$file}</p>
<form action="./" method="post" class="x_pull-right" style="margin:0;padding:0">
<input type="hidden" name="module" value="layout" />
<input type="hidden" name="act" value="procLayoutAdminUserImageDelete" />
<input type="hidden" name="layout_srl" value="{$layout_srl}" />
<input type="hidden" name="filename" value="{$file}" />
<input class="x_btn x_btn-mini x_btn-danger" type="submit" value="{$lang->cmd_delete}" />
<input class="x_icon-remove" type="submit" value="{$lang->cmd_delete}" title="{$lang->cmd_delete}" style="width:14px" />
</form>
</div>
</div>
@ -31,11 +30,12 @@
<input type="hidden" name="module" value="layout" />
<input type="hidden" name="act" value="procLayoutAdminUserImageUpload" />
<input type="hidden" name="layout_srl" value="{$layout_srl}" />
<div class="x_control-group">
<input type="file" name="user_layout_image" value="" />
<span class="x_help-block">{$lang->msg_layout_image_target}</span>
</div>
<p>
<span class="x_btn fileBtn">
{$lang->uploaded_file} <input type="file" name="user_layout_image" value="" title="{$lang->uploaded_file}" />
</span>
<span class="x_help-inline">{$lang->msg_layout_image_target}</span>
</p>
<div class="x_clearfix btnArea">
<div class="x_pull-right">
<button type="submit" class="x_btn x_btn-primary">{$lang->cmd_save}</button>
@ -61,15 +61,19 @@
<section class="section">
<h1>HTML</h1>
<textarea name="code" rows="8" cols="42" style="width:100%;height:300px;font-size:11px;">{$layout_code}</textarea>
<div class="x_btn-group">
<a loop="$widget_list => $widget" class="x_btn x_btn-mini" href="{getUrl('','module','admin','act','dispWidgetAdminGenerateCode','selected_widget',$widget->widget)}" target="_blank">{$widget->title}</a>
<div style="margin-right:14px">
<textarea name="code" rows="8" cols="42" style="width:100%;height:300px;font-size:11px;">{$layout_code}</textarea>
</div>
<div>
<block loop="$widget_list => $widget"> <i class="vr">|</i> <a href="{getUrl('','module','admin','act','dispWidgetAdminGenerateCode','selected_widget',$widget->widget)}" target="_blank">{$widget->title}</a></block>
</div>
</section>
<section class="section">
<h1>CSS</h1>
<textarea name="code_css" rows="8" cols="42" style="width:100%;height:300px;font-size:11px;">{$layout_code_css}</textarea>
<div style="margin-right:14px">
<textarea name="code_css" rows="8" cols="42" style="width:100%;height:300px;font-size:11px;">{$layout_code_css}</textarea>
</div>
</section>
<div class="x_clearfix btnArea">

View file

@ -44,7 +44,7 @@
<div class="x_control-group">
<label class="x_control-label" for="header_script">{$lang->header_script}</label>
<div class="x_controls">
<textarea name="header_script" id="header_script" rows="8" cols="42">{$selected_layout->header_script}</textarea>
<textarea name="header_script" id="header_script" rows="4" cols="42">{$selected_layout->header_script}</textarea>
<span class="x_help-block">{$lang->about_header_script}</span>
</div>
</div>
@ -67,15 +67,15 @@
<div cond="$var->type == 'textarea'">
{@$use_multilang_textarea = true}
<textarea name="{$name}" rows="8" cols="42" class="lang_code"><!--@if(strpos($var->value, "$user_lang->") !== false)-->{htmlspecialchars($var->value)}<!--@else-->{$var->value}<!--@end--></textarea>
<textarea name="{$name}" rows="4" cols="42" class="lang_code"><!--@if(strpos($var->value, "$user_lang->") !== false)-->{htmlspecialchars($var->value)}<!--@else-->{$var->value}<!--@end--></textarea>
</div>
<block cond="$var->type == 'image'">
<input type="hidden" name="{$name}" id="file_{$name}" value="{$var->value}" />
<div id="preview_{$name}" class="x_thumbnail" style="<!--@if(!$var->value)-->display:none;<!--@end-->max-width:250px;margin-bottom:20px;">
<img src="../../../{$var->value}"|cond="$var->value" alt="" style="max-width:250px;" />
<div class="x_caption">
<input class="x_btn x_btn-danger x_btn-mini" type="button" value="{$lang->cmd_delete}" onclick="deleteImage('{$name}')" />
<div id="preview_{$name}" class="x_thumbnail" style="<!--@if(!$var->value)-->display:none;<!--@end-->max-width:210px;margin-bottom:20px;">
<img src="../../../{$var->value}"|cond="$var->value" alt="" style="max-width:100%" />
<div style="text-align:right">
<button class="x_icon-remove" type="button" onclick="deleteImage('{$name}')" title="{$lang->cmd_delete}">{$lang->cmd_delete}</button>
</div>
</div>
<form action="./" enctype="multipart/form-data" method="post" target="hiddenIframe" class="imageUpload">
@ -84,8 +84,8 @@
<input type="hidden" name="layout_srl" value="{$layout_srl}" />
<input type="hidden" name="name" value="{$name}" />
<p>
<input type="file" name="img" id="file_select_{$name}" value="" />
<input class="x_btn x_btn-mini x_btn-primary" type="submit" value="{$lang->cmd_submit}" />
<input type="file" name="img" id="file_select_{$name}" value="" title="{$lang->uploaded_file}" />
<input class="x_btn" type="submit" value="{$lang->cmd_submit}" />
</p>
</form>
</block>