From 4c1d4f5cb2921ca10665295657e845774c486941 Mon Sep 17 00:00:00 2001 From: Nozomi Anzai Date: Fri, 25 May 2012 17:13:07 +0900 Subject: [PATCH] Fix Notice errors. --- templates/help/en/queryCache.tpl | 16 +++++++++++++--- templates/help/ja/queryCache.tpl | 14 +++++++++++--- templates/queryCache.tpl | 32 ++++++++++++++++++++++++++++---- 3 files changed, 52 insertions(+), 10 deletions(-) diff --git a/templates/help/en/queryCache.tpl b/templates/help/en/queryCache.tpl index f3974d5..36de7ca 100644 --- a/templates/help/en/queryCache.tpl +++ b/templates/help/en/queryCache.tpl @@ -21,19 +21,27 @@

It is possible to search for the data that exists in the query cache. It searches for the query string and the database name, and it processes it by the partial agreement retrieval. It becomes a search for the logical product with the query string and the database name. - {if $deleteRow > 0} + {if isset($deleteRow) && $deleteRow > 0} {/if} - - + + {else} + + {/if} @@ -56,6 +64,7 @@ The query string, database name and create time which existing in cache is displ + {if isset($queryCache)} {foreach name=querycache from=$queryCache item=cache} {if $smarty.foreach.querycache.iteration % 2 == 0} @@ -68,6 +77,7 @@ The query string, database name and create time which existing in cache is displ {/foreach} + {/if}
{$deleteRow|escape}{$message.strDeleted|escape}
{$message.strQueryStr|escape} + {if isset($qQueryStr)} + + {else} + + {/if}
{$message.strDb|escape}{if isset($qDb)} +
{$message.strDb|escape} {$message.strCreateTime|escape}
{$cache.create_time|escape}
diff --git a/templates/help/ja/queryCache.tpl b/templates/help/ja/queryCache.tpl index cda276a..66e12ea 100644 --- a/templates/help/ja/queryCache.tpl +++ b/templates/help/ja/queryCache.tpl @@ -21,19 +21,27 @@

クエリキャッシュのデータを検索することができます。検索対象は、クエリ文字列とデータベース名で、部分一致検索を行うことができます。クエリ文字列とデータベース名はAND検索になります。

- {if $deleteRow > 0} + {if isset($deleteRow) && $deleteRow > 0} {/if} - - + + {else} + + {/if} diff --git a/templates/queryCache.tpl b/templates/queryCache.tpl index 30887cc..2831ae6 100644 --- a/templates/queryCache.tpl +++ b/templates/queryCache.tpl @@ -43,7 +43,7 @@ function sendAction(action) { - {if $deleteRow > 0} + {if isset($deleteRow) && $deleteRow > 0} @@ -69,9 +69,33 @@ function sendAction(action) { - - - + + + {foreach name=querycache from=$queryCache item=cache} {if $smarty.foreach.querycache.iteration % 2 == 0} -- 2.39.5
{$deleteRow|escape}{$message.strDeleted|escape}
{$message.strQueryStr|escape} + {if isset($qQueryStr)} + + {else} + + {/if}
{$message.strDb|escape}{if isset($qDb)} +
{$deleteRow|escape}{$message.strDeleted|escape}
{if $col == "query" && $sort == "ascending"} ascending{$message.strQueryStr|escape} {elseif $col == "query" && $sort == "descending"} descending{$message.strQueryStr|escape} {else} spacer{$message.strQueryStr|escape} {/if} {if $col == "dbname" && $sort == "ascending"} ascending{$message.strDb|escape} {elseif $col == "dbname" && $sort == "descending"} descending{$message.strDb|escape} {else} spacer{$message.strDb|escape} {/if} {if $col == "create_time" && $sort == "ascending"} ascending{$message.strCreateTime|escape} {elseif $col == "create_time" && $sort == "descending"} descending{$message.strCreateTime|escape} {else} spacer{$message.strCreateTime|escape} {/if} + {if $col == "query" && $sort == "ascending"} + ascending{$message.strQueryStr|escape} + {elseif $col == "query" && $sort == "descending"} + descending{$message.strQueryStr|escape} + {else} + spacer{$message.strQueryStr|escape} + {/if} + + {if $col == "dbname" && $sort == "ascending"} + ascending{$message.strDb|escape} + {elseif $col == "dbname" && $sort == "descending"} + descending{$message.strDb|escape} + {else} + spacer{$message.strDb|escape} + {/if} + + {if $col == "create_time" && $sort == "ascending"} + ascending{$message.strCreateTime|escape} + {elseif $col == "create_time" && $sort == "descending"} + descending{$message.strCreateTime|escape} + {else} + spacer{$message.strCreateTime|escape} + {/if} +