diff --git a/templates/ktcore/search2/search_results.smarty b/templates/ktcore/search2/search_results.smarty index 455ffca..3be5c9b 100755 --- a/templates/ktcore/search2/search_results.smarty +++ b/templates/ktcore/search2/search_results.smarty @@ -1,263 +1,263 @@ -{$context->oPage->requireJSResource('resources/js/toggleselect.js')} - -
-

{i18n}Search Criteria{/i18n}

-
-
- {i18n}Search Criteria{/i18n} - {$txtQuery} -
-{if empty($iSavedID)} - {capture assign=options} - {i18n}Search Critieria Editor{/i18n} - {/capture} - {i18n arg_options=$options}Use the #options# to extend your search criteria.{/i18n} -{/if} -{if !$search2_anonymous && !empty($iSavedID)} - {capture assign=options} - Query Editor - {/capture} - {i18n arg_options=$options}To edit the search criteria, use the #options#.{/i18n} -{/if} - -
-
-{if !$search2_anonymous && !empty($iSavedID)} -
- {i18n}Saved Search{/i18n} - {i18n}This is the saved search criteria:{/i18n} {$txtSavedName}.
- {capture assign=options} - {i18n}Manage Saved Search Criteria{/i18n} - {/capture} - {i18n arg_options=$options}To delete this saved search criteria or to edit other saved search criteria, #options#.{/i18n} -
-{/if} -{literal} - -{/literal} -
-
-{if !$search2_anonymous && empty($iSavedID)} -
-
- {i18n}You can save this search:{/i18n} - - -
-
-{/if} - - -
- -{i18n}Search Results{/i18n} - -{if $numResults == 0} - - {i18n}There are no search results matching your search criteria.{/i18n} - -

- {capture assign=options} - {i18n}Search Criteria Editor{/i18n} - {/capture} - - {i18n arg_options=$options}Use the #options# to extend this query.{/i18n} - -{else} - -

- - {assign var=cbid value=0} - - {i18n arg_count=$numResults}Search results found: #count#{/i18n} -
-
- - {foreach item=hit from=$results} - - {else} - {i18n}Folder ID:{/i18n} {$hit->Id} - {/if} - - - - - {if $hit->IsDocument} - - - {/if} - - - - {assign var=cbid value=$cbid+1} - {/foreach} - -
- IsDocument}name="selection_d[]"{else}name="selection_f[]"{/if} id="cb{$cbid}" value="{$hit->Id}"> - - - {if $hit->IsDocument} -   {$hit->Title|truncate:80} - {if $hit->Title != $hit->Filename} -    - - {i18n}Filename:{/i18n} {$hit->Filename|truncate:40} - {/if} - {if $hit->IsAvailable} -    - - - {/if} - - - {if !$hit->IsAvailable} -    - * {i18n}NOT AVAILABLE{/i18n} * - {/if} - - {else} -   {$hit->Title|truncate:80} - - {/if} - - - - {if $hit->IsDocument} - {i18n}Document ID:{/i18n} {$hit->Id} -    - {i18n}Version:{/i18n} {$hit->Version}
{$hit->Text}
- {if $hit->IsDocument} - {$hit->FullPath|truncate:40}/{$hit->Title|truncate:40} - {$hit->Filesize} - {else} - {$hit->FullPath|truncate:40} - {/if} - - - {i18n}Created By:{/i18n} {$hit->CreatedBy} - {if $hit->IsDocument} - {i18n}on{/i18n} {$hit->DateCreated} - {/if} - -
- {if $workflow != ''} - {i18n}Workflow:{/i18n} $hit->Workflow} - {/if} - - - {if $hit->CheckedOutUser != ''} - {i18n}Checked out by:{/i18n} {$hit->CheckedOutUser} - {i18n}on{/i18n} {$hit->DateCheckedOut} - {else} - {i18n}Modified by:{/i18n} {$hit->ModifiedBy} - {i18n}on{/i18n} {$hit->DateModified} - {/if} - -


-   {i18n}Select All{/i18n} - {if $showAll} -   {i18n}Show All{/i18n} - {/if} - {if !$showAll} -   {i18n}Show All{/i18n} - {/if} -
- - - - - - - - {foreach from=$bulkactions item=bulkaction} - - {/foreach} - -
-
- -{/if} - - -
- -{if $endMovement - $startMovement > 0} -
-
- - - {foreach item=move from=$pageMovement} - {if $move == $startMovement} - - {/if} - - {if $move == $endMovement} - - {/if} - {/foreach} - -
{$move}
-{/if} +{$context->oPage->requireJSResource('resources/js/toggleselect.js')} + +
+

{i18n}Search Criteria{/i18n}

+
+
+ {i18n}Search Criteria{/i18n} + {$txtQuery} +
+{if empty($iSavedID)} + {capture assign=options} + {i18n}Search Critieria Editor{/i18n} + {/capture} + {i18n arg_options=$options}Use the #options# to extend your search criteria.{/i18n} +{/if} +{if !$search2_anonymous && !empty($iSavedID)} + {capture assign=options} + Query Editor + {/capture} + {i18n arg_options=$options}To edit the search criteria, use the #options#.{/i18n} +{/if} + +
+
+{if !$search2_anonymous && !empty($iSavedID)} +
+ {i18n}Saved Search{/i18n} + {i18n}This is the saved search criteria:{/i18n} {$txtSavedName}.
+ {capture assign=options} + {i18n}Manage Saved Search Criteria{/i18n} + {/capture} + {i18n arg_options=$options}To delete this saved search criteria or to edit other saved search criteria, #options#.{/i18n} +
+{/if} +{literal} + +{/literal} +
+
+{if !$search2_anonymous && empty($iSavedID)} +
+
+ {i18n}You can save this search:{/i18n} + + +
+
+{/if} + + +
+ +{i18n}Search Results{/i18n} + +{if $numResults == 0} + + {i18n}There are no search results matching your search criteria.{/i18n} + +

+ {capture assign=options} + {i18n}Search Criteria Editor{/i18n} + {/capture} + + {i18n arg_options=$options}Use the #options# to extend this query.{/i18n} + +{else} + +

+ + {assign var=cbid value=0} + + {i18n arg_count=$numResults}Search results found: #count#{/i18n} +
+
+ + {foreach item=hit from=$results} + + {else} + {i18n}Folder ID:{/i18n} {$hit->Id} + {/if} + + + + + {if $hit->IsDocument} + + + {/if} + + + + {assign var=cbid value=$cbid+1} + {/foreach} + +
+ IsDocument}name="selection_d[]"{else}name="selection_f[]"{/if} id="cb{$cbid}" value="{$hit->Id}"> + + + {if $hit->IsDocument} +   {$hit->Title|truncate:80} + {if $hit->Title != $hit->Filename} +    + - {i18n}Filename:{/i18n} {$hit->Filename|truncate:40} + {/if} + {if $hit->IsAvailable} +    + + + {/if} + + + {if !$hit->IsAvailable} +    + * {i18n}NOT AVAILABLE{/i18n} * + {/if} + + {else} +   {$hit->Title|truncate:80} + + {/if} + + + + {if $hit->IsDocument} + {i18n}Document ID:{/i18n} {$hit->Id} +    + {i18n}Version:{/i18n} {$hit->Version}
{$hit->Text}
+ {if $hit->IsDocument} + {$hit->FullPath|truncate:40}/{$hit->Title|truncate:40} - {$hit->Filesize} + {else} + {$hit->FullPath|truncate:40} + {/if} + + + {i18n}Created By:{/i18n} {$hit->CreatedBy} + {if $hit->IsDocument} + {i18n}on{/i18n} {$hit->DateCreated} + {/if} + +
+ {if $workflow != ''} + {i18n}Workflow:{/i18n} $hit->Workflow} + {/if} + + + {if $hit->CheckedOutUser != ''} + {i18n}Checked out by:{/i18n} {$hit->CheckedOutUser} + {i18n}on{/i18n} {$hit->DateCheckedOut} + {else} + {i18n}Modified by:{/i18n} {$hit->ModifiedBy} + {i18n}on{/i18n} {$hit->DateModified} + {/if} + +


+   {i18n}Select All{/i18n} + {if $showAll} +   {i18n}Show All{/i18n} + {/if} + {if !$showAll} +   {i18n}Show All{/i18n} + {/if} +
+ + + + + + + + {foreach from=$bulkactions item=bulkaction} + + {/foreach} + +
+
+ +{/if} + + +
+ +{if $endMovement - $startMovement > 0} +
+
+ + + {foreach item=move from=$pageMovement} + {if $move == $startMovement} + + {/if} + + {if $move == $endMovement} + + {/if} + {/foreach} + +
{$move}
+{/if}