merge from 1.7.3.5(r13153:r13167)

git-svn-id: http://xe-core.googlecode.com/svn/trunk@13168 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2013-09-29 23:32:39 +00:00
parent cc47d2b247
commit 2d3f149b5a
2042 changed files with 129266 additions and 126243 deletions

View file

@ -1,90 +1,96 @@
<load target="css/editor.css" usecdn="true" />
<load target="css/editor_admin.css" usecdn="true" />
<load target="js/editor_admin.js" usecdn="true" />
<h1 class="h1">{$lang->cmd_setup}</h1>
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<div class="x_page-header">
<h1>{$lang->editor}</h1>
</div>
<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/editor/tpl/setup_component/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>
<form ruleset="setupComponent" action="./" method="post">
<input type="hidden" name="module" value="editor" />
<input type="hidden" name="act" value="procEditorAdminSetupComponent" />
<input type="hidden" name="component_name" value="{$component_name}" />
<div class="table">
<table width="100%" border="1" cellspacing="0">
<tr>
<th scope="row"><div>{$lang->component_name}</div></th>
<td>{$component->title}({$component->component_name}) ver. {$component->version}</td>
</tr>
<tr>
<th scope="row"><div>{$lang->component_author}</div></th>
<td class="blue">
<!--@foreach($component->author as $author)-->
{$author->name} (<a href="{$author->homepage}" onclick="window.open(this.href);return false;">{$author->homepage}</a>, <a href="mailto:{$author->email_address}">{$author->email_address}</a>)<br />
<!--@endforeach-->
</td>
</tr>
<!--@if($component->link)-->
<tr>
<th scope="row"><div>{$lang->component_link}</div></th>
<td><a href="#" onclick="winopen('{$component->link}');return false;">{$component->link}</a></td>
</tr>
<!--@end-->
<!--@foreach($component->extra_vars as $key => $val)-->
<tr class="row{$cycle_idx}">
<th scope="row"><div>{$val->title}</div></th>
<td>
<input type="text" name="{$key}" value="{$val->value}" />
<p>{$val->description}</p>
</td>
</tr>
<!--@end-->
<tr>
<th scope="row"><div>{$lang->grant}</div></th>
<td>
<!--@foreach($group_list as $key => $val)-->
<input type="checkbox" name="target_group" value="{$key}" <!--@if(in_array($key, $component->target_group))-->checked="checked"<!--@end--> id="group_{$key}"> <label for="group_{$key}">{$val->title}</label> &nbsp;
<!--@end-->
<p>{$lang->about_component_grant}</p>
</td>
</tr>
<!--@if($mid_list)-->
<tr>
<th scope="row"><div>
{$lang->module}
<input type="checkbox" onclick="XE.checkboxToggleAll('mid_list'); return false;" />
</div></th>
<td>
<p>{$lang->about_component_mid}</p>
<!--@foreach($mid_list as $module_category_srl => $modules)-->
<div class="module_category_title">
<input type="checkbox" onclick="XE.checkboxToggleAll('mid_list', { wrap:'section_{$module_category_srl}' }); return false;" />
<!--@if($modules->title)-->
{$modules->title}
<!--@else-->
{$lang->none_category}
<!--@end-->
</div>
<div id="section_{$module_category_srl}">
<!--@foreach($modules->list as $key => $val)-->
<div class="module_list">
<input type="checkbox" value="{$key}" name="mid_list" id="chk_mid_list_{$key}" <!--@if(in_array($key, $component->mid_list))-->checked="checked"<!--@end--> />
<label for="chk_mid_list_{$key}">{$key} ({$val->browser_title})</label>
</div>
<!--@end-->
</div>
<!--@end-->
</td>
</tr>
<!--@end-->
</table>
</div>
<div class="btnArea">
<span class="btn"><a href="{getUrl('', 'module', 'admin', 'act', 'dispEditorAdminIndex')}" >{$lang->cmd_back}</a></span>
<span class="btn"><input type="submit" value="{$lang->cmd_apply}" /></span>
</div>
</form>
<section class="section">
<h1>{$lang->cmd_setup}</h1>
<form ruleset="setupComponent" action="./" method="post" class="x_form-horizontal">
<input type="hidden" name="module" value="editor" />
<input type="hidden" name="act" value="procEditorAdminSetupComponent" />
<input type="hidden" name="component_name" value="{$component_name}" />
<input type="hidden" name="xe_validator_id" value="modules/editor/tpl/setup_component/1" />
<div class="x_control-group">
<label class="x_control-label">{$lang->component_name}</label>
<div class="x_controls">{$component->title}({$component->component_name}) ver. {$component->version}</div>
</div>
<div class="x_control-group">
<label class="x_control-label">{$lang->component_author}</label>
<div class="x_controls">
<!--@foreach($component->author as $author)-->
{$author->name} (<a href="{$author->homepage}" onclick="window.open(this.href);return false;">{$author->homepage}</a>, <a href="mailto:{$author->email_address}">{$author->email_address}</a>)<br />
<!--@endforeach-->
</div>
</div>
<div class="x_control-group" cond="$component->link">
<label class="x_control-label">{$lang->component_link}</label>
<div class="x_controls">
<a href="#" onclick="winopen('{$component->link}');return false;">{$component->link}</a>
</div>
</div>
<div class="x_control-group" loop="$component->extra_vars=>$key,$val">
<label class="x_control-label">{$val->title}</label>
<div class="x_controls">
<input type="text" name="{$key}" value="{$val->value}" />
<span class="x_help-block">{$val->description}</span>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label">{$lang->grant}</label>
<div class="x_controls">
<label class="x_inline" loop="$group_list=>$key,$val">
<input type="checkbox" name="target_group[]" value="{$key}" <!--@if(in_array($key, $component->target_group))-->checked="checked"<!--@end--> id="group_{$key}"> {$val->title}
</label>
</div>
</div>
<div class="x_control-group" cond="$mid_list">
<label class="x_control-label">
{$lang->module}
</label>
<div class="x_controls">
<span class="x_help-block">{$lang->about_component_mid}</span>
<label class="checked" for="check_all"> <input id="check_all" type="checkbox"/> Check all</label>
<!--@foreach($mid_list as $module_category_srl => $modules)-->
<!--@if(count($mid_list) > 1)-->
<fieldset>
<legend>
<input type="checkbox" />
<!--@if($modules->title)-->{$modules->title}<!--@else-->{$lang->none_category}<!--@end-->
</legend>
<!--@end-->
<div id="section_{$module_category_srl}">
<!--@foreach($modules->list as $key => $val)-->
<label>
<input type="checkbox" value="{$key}" name="mid_list[]" id="chk_mid_list_{$key}" <!--@if(in_array($key, $component->mid_list))-->checked="checked"<!--@end--> />
{$key} ({$val->browser_title})
</label>
<!--@end-->
</div>
<!--@if(count($mid_list) > 1)-->
</fieldset>
<!--@end-->
<!--@end-->
</div>
</div>
<div class="x_clearfix btnArea">
<a class="x_btn x_pull-left" href="{getUrl('', 'module', 'admin', 'act', 'dispEditorAdminIndex')}" >{$lang->cmd_back}</a>
<button type="submit" class="x_btn x_btn-primary x_pull-right">{$lang->cmd_save}</button>
</div>
</form>
</section>
<script>
(function($){
$('#check_all')
.bind('click', function(e){
if (this.checked){
$('input[name=mid_list\\[\\]]').attr('checked', 'checked');
}else{
$('input[name=mid_list\\[\\]]').removeAttr('checked');
}
});
})(jQuery);
</script>