// fix update view.tpl in AdminRequestSqlController
This commit is contained in:
@@ -24,47 +24,44 @@
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
{if isset($view['error'])}
|
||||
<p>{l s ='This query has no result.'}</p>
|
||||
{else}
|
||||
<h2>{$view['name']}</h2>
|
||||
<table cellpadding="0" cellspacing="0" class="table" id="viewRequestSql">
|
||||
<thead>
|
||||
<tr>
|
||||
{foreach $view['key'] AS $key}
|
||||
<th align="center">{$key}</th>
|
||||
{/foreach}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach $view['results'] AS $result}
|
||||
<tr>
|
||||
{foreach $view['key'] AS $name}
|
||||
{if isset($view['attributes'][$name])}
|
||||
<td>{$view['attributes'][$name]}</td>
|
||||
{else}
|
||||
<td>{$result[$name]}</td>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
{extends file="helper/view/view.tpl"}
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
var width = $('#viewRequestSql').width();
|
||||
if (width > 990){
|
||||
$('#viewRequestSql').css('display','block').css('overflow-x', 'scroll');
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{/if}
|
||||
|
||||
<br /><br />
|
||||
|
||||
{if isset($back)}
|
||||
<a href="{$back}"><img src="../img/admin/arrow2.gif" />{l s='Back to list'}</a>
|
||||
{/if}
|
||||
<br />
|
||||
{block name="override_tpl"}
|
||||
{if isset($view['error'])}
|
||||
<p>{l s ='This query has no result.'}</p>
|
||||
{else}
|
||||
<h2>{$view['name']}</h2>
|
||||
<table cellpadding="0" cellspacing="0" class="table" id="viewRequestSql">
|
||||
<thead>
|
||||
<tr>
|
||||
{foreach $view['key'] AS $key}
|
||||
<th align="center">{$key}</th>
|
||||
{/foreach}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach $view['results'] AS $result}
|
||||
<tr>
|
||||
{foreach $view['key'] AS $name}
|
||||
{if isset($view['attributes'][$name])}
|
||||
<td>{$view['attributes'][$name]}</td>
|
||||
{else}
|
||||
<td>{$result[$name]}</td>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
var width = $('#viewRequestSql').width();
|
||||
if (width > 990){
|
||||
$('#viewRequestSql').css('display','block').css('overflow-x', 'scroll');
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user