rhymix/modules/layout/tpl/layout_edit.html
flyskyko 2601043ee8 layout module
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8920 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-08-26 08:48:29 +00:00

102 lines
4.1 KiB
HTML

<include target="header.html" />
<load target="css/adminEdit.css" />
<load target="js/adminEdit.js" />
<h2 class="h2">{$selected_layout->layout_title}</h2>
<h3 class="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>
<fieldset class="section">
<ul class="uploaded_image_list">
<li loop="$layout_image_list => $no, $file">
{@$ext=substr(strrchr($file,'.'),1)}
<div class="a uploaded_image">
<script cond="$ext == 'swf' || $ext == 'flv'" type="text/javascript">
//<![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}" />
<input class="text" type="submit" value="{$lang->cmd_delete}" />
</form>
</li>
</ul>
<form class="form" 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>
</div>
</form>
</fieldset>
<block cond="$selected_layout->type == 'faceoff'">
<h3 class="h3">{$lang->layout_migration}</h3>
<p>{nl2br($lang->about_layout_migration)}</p>
<table cellspacing="0" class="rowTable">
<tr>
<th scope="row"><div>{$lang->layout_export}</div></th>
<td>
<a href="{getUrl('','act','procLayoutAdminUserLayoutExport','layout_srl',$layout_srl)}" class="button black strong"><span>{$lang->layout_btn_export}</span></a>
<p>{$lang->about_layout_export}</p>
</td>
</tr>
<tr>
<th scope="row"><div>{$lang->layout_import}</div></th>
<td>
<form ruleset="userLayoutImport" action="{getUrl('')}" method="post" enctype="multipart/form-data">
<input type="hidden" name="module" value="layout" />
<input type="hidden" name="act" value="procLayoutAdminUserLayoutImport" />
<input type="hidden" name="layout_srl" value="{$layout_srl}" />
<input type="file" name="file" />
<span class="button black strong"><button type="submit">{$lang->cmd_submit}</button></span>
</form>
<p>{$lang->about_layout_import}</p>
</td>
</tr>
</table>
</block>
<form id="fo_layout" class="form" ruleset="codeUpdate" action="./" method="post">
<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" style="width:100%;height:300px;font-size:11px;">{$layout_code}</textarea>
<!--@foreach($widget_list as $widget)-->
<span class="btn"><a href="{getUrl('','module','widget','act','dispWidgetGenerateCode','selected_widget',$widget->widget,'module_srl',$module_srl)}" onclick="popopen(this.href,'GenerateCodeInPage');return false;">{$widget->title}</a></span>
<!--@end-->
</div>
<h3 class="h3">CSS</h3>
<div>
<textarea name="code_css" 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>