Issue 2380: Admin UI Refactoring - Advanced - Layouts

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11636 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
flyskyko 2012-10-09 02:37:16 +00:00
parent 683b48658e
commit 01a0d56e32
12 changed files with 306 additions and 448 deletions

View file

@ -1,89 +1,93 @@
<include target="header.html" />
<load target="css/adminEdit.css" usecdn="true" />
<load target="js/adminEdit.js" usecdn="true" />
<h2 class="h2">{$selected_layout->layout_title}</h2>
<h2>{$selected_layout->layout_title}</h2>
<h3 class="h3">{$selected_layout->title} ver {$selected_layout->version} ({$selected_layout->layout})</h3>
<h3>{$selected_layout->title} ver {$selected_layout->version} ({$selected_layout->layout})</h3>
<p>{nl2br($lang->about_layout_code)}</p>
<h3 class="h3">{$lang->layout_image_repository}</h3>
<p>{nl2br($lang->about_layout_image_repository)}</p>
<section class="section">
<h1>{$lang->layout_image_repository}</h1>
<p>{nl2br($lang->about_layout_image_repository)}</p>
<fieldset class="section">
<ul class="uploaded_image_list">
<li loop="$layout_image_list => $no, $file">
<ul class="x_thumbnails uploaded_image_list">
<li loop="$layout_image_list => $no, $file" class="x_span2">
{@$ext=substr(strrchr($file,'.'),1)}
<div class="a uploaded_image">
<div class="x_thumbnail a uploaded_image">
<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>
<div class="uploaded_image_path">{$layout_image_path}{$file}</div>
<form action="./" method="post">
<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}" />
<div class="x_caption">
<p class="uploaded_image_path">{$layout_image_path}{$file}</p>
<form action="./" method="post" 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="text" type="submit" value="{$lang->cmd_delete}" />
</form>
<input class="x_btn x_btn-mini x_btn-danger" type="submit" value="{$lang->cmd_delete}" />
</form>
</div>
</div>
</li>
</ul>
<form class="form" ruleset="imageUpload" action="./" method="post" enctype="multipart/form-data">
<input type="hidden" name="module" value="layout" />
<input type="hidden" name="act" value="procLayoutAdminUserImageUpload" />
<input type="hidden" name="layout_srl" value="{$layout_srl}" />
<ul>
<li>
<p class="a"><input type="file" name="user_layout_image" value="" /> <span class="desc">{$lang->msg_layout_image_target}</span></p>
</li>
</ul>
<div class="btnArea">
<span class="btn medium"><input type="submit" value="{$lang->cmd_save}" /></span>
<form ruleset="imageUpload" action="./" method="post" enctype="multipart/form-data">
<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>
<div class="x_clearfix btnArea">
<div class="x_pull-right">
<button type="submit" class="x_btn x_btn-primary">{$lang->cmd_save}</button>
</div>
</div>
</form>
</fieldset>
</section>
<block cond="$selected_layout->type == 'faceoff'">
<fieldset class="section">
<h3 class="h3">{$lang->faceoff_export}</h3>
<section class="section">
<h1>{$lang->faceoff_export}</h1>
<p>{nl2br($lang->about_faceoff_export)}</p>
<ul class="form">
<li>
<p class="q">{$lang->layout_export}</p>
<p class="a"><span class="btn small"><a href="{getUrl('', 'act', 'procLayoutAdminUserLayoutExport', 'layout_srl', $layout_srl)}">{$lang->layout_btn_export}</a></span></p>
<p class="desc">{$lang->about_layout_export}</p>
</li>
</ul>
</fieldset>
<p>
<a class="x_btn" href="{getUrl('', 'act', 'procLayoutAdminUserLayoutExport', 'layout_srl', $layout_srl)}">{$lang->layout_btn_export}</a>
</p>
</section>
</block>
<fieldset class="section">
<form id="fo_layout" class="form" ruleset="codeUpdate" action="./" method="post">
<form id="fo_layout" class="form" ruleset="codeUpdate" action="./" method="post">
<input type="hidden" name="module" value="layout" />
<input type="hidden" name="layout_srl" value="{$layout_srl}" />
<input type="hidden" name="act" value="procLayoutAdminCodeUpdate" />
<h3 class="h3">HTML</h3>
<div>
<textarea name="code" rows="8" cols="42" style="width:100%;height:300px;font-size:11px;">{$layout_code}</textarea>
<span loop="$widget_list => $widget" class="btn"><a href="{getUrl('','module','admin','act','dispWidgetAdminGenerateCode','selected_widget',$widget->widget)}" target="_blank">{$widget->title}</a></span>
<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>
</section>
<h3 class="h3">CSS</h3>
<div>
<textarea name="code_css" rows="8" cols="42" style="width:100%;height:300px;font-size:11px;">{$layout_code_css}</textarea>
</div>
<div class="btnArea" style="float: left" >
<span class="btn medium"><button type="submit" name="mode" value="reset">{$lang->cmd_reset}</button></span>
</div>
<div class="btnArea">
<span class="btn medium"><button type="button" onclick="doPreviewLayoutCode();">{$lang->cmd_preview}</button></span>
<span class="btn medium"><button type="submit" name="mode" value="save">{$lang->cmd_save}</button></span>
</div>
</form>
</fieldset>
<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>
</section>
<div class="x_clearfix btnArea">
<span class="x_pull-left">
<button type="submit" class="x_btn" name="mode" value="reset">{$lang->cmd_reset}</button>
</span>
<span class="x_pull-right x_btn-group">
<button type="button" class="x_btn" onclick="doPreviewLayoutCode()">{$lang->cmd_preview}</button>
<button type="submit" class="x_btn x_btn-primary" name="mode" value="save">{$lang->cmd_save}</button>
</span>
</div>
</form>