Commit 1930b824 authored by sylvieg's avatar sylvieg

[MOD] some print buttons

parent a26dbcae
<div class="navbar"> {if $mid ne "tiki-directory_browse.tpl"}
<div class="navbar">
{self_link print='y'}{icon _id='printer' align='right' hspace='1' alt='{tr}Print{/tr}'}{/self_link}
{if $mid ne "tiki-directory_browse.tpl"}
{button href="tiki-directory_browse.php" _text="{tr}Browse{/tr}"}
{/if}
......
......@@ -75,6 +75,7 @@
{* The links *}
{if $categ_info.allowSites eq 'y' and count($items) > 0} <b>{tr}Links{/tr}</b><br />
<div class="dirlistsites">
<div class="findtable">
<form method="post" action="tiki-directory_browse.php">
<input type="hidden" name="parent" value="{$parent|escape}" />
{tr}Sort by{/tr}:&nbsp;
......@@ -90,7 +91,7 @@
</select>
<input type="submit" name="xx" value="{tr}sort{/tr}" />
</form>
<br />
</div>
{section name=ix loop=$items}
<div class="dirsite"> {if $prefs.directory_country_flag eq 'y'} <img alt="flag" src="img/flags/{$items[ix].country}.gif" /> {/if} <a class="dirsitelink" href="tiki-directory_redirect.php?siteId={$items[ix].siteId}" {if $prefs.directory_open_links eq 'n'}target='_blank'{/if}>{$items[ix].name}</a> {if $tiki_p_admin_directory_sites eq 'y'}
[<a class="dirsitelink" href="tiki-directory_admin_sites.php?parent={$parent}&amp;siteId={$items[ix].siteId}">{tr}Edit{/tr}</a>]
......
{title}{tr}Stats for survey:{/tr}{$survey_info.name}{/title}
<div class="navbar">
{self_link print='y'}{icon _id='printer' align='right' hspace='1' alt='{tr}Print{/tr}'}{/self_link}
{button href="tiki-list_surveys.php" _text="{tr}List Surveys{/tr}"}
{button href="tiki-survey_stats.php" _text="{tr}Survey Stats{/tr}"}
{if $tiki_p_admin_surveys eq 'y'}
......
......@@ -2,6 +2,7 @@
<div class="description">{$faq_info.description|escape}</div>
<div class="navbar">
{self_link print='y'}{icon _id='printer' align='right' hspace='1' alt='{tr}Print{/tr}'}{/self_link}
{button href="tiki-list_faqs.php" _text="{tr}List FAQs{/tr}"}
{if $tiki_p_admin_faqs eq 'y'}
......@@ -25,6 +26,7 @@
{/section}
</ol>
</div>
<h2>{tr}Answers{/tr}</h2>
{section name=ix loop=$channels}
<a name="q{$channels[ix].questionId}"></a>
......@@ -51,7 +53,7 @@
{/section}
{/if}
<div id="page-bar">
<div class="navbar">
{if $faq_info.canSuggest eq 'y' and $tiki_p_suggest_faq eq 'y'}
{button href="javascript:flip('faqsugg');" _flip_id="faqsugg" _text="{tr}Add Suggestion{/tr}"}
{/if}
......
......@@ -107,4 +107,9 @@ $stats = $dirlib->dir_stats();
$smarty->assign_by_ref('stats', $stats);
ask_ticket('dir-browse');
$smarty->assign('mid', 'tiki-directory_browse.tpl');
$smarty->display("tiki.tpl");
if (isset($_REQUEST['print'])) {
$smarty->display('tiki-print.tpl');
$smarty->assign('print', 'y');
} else {
$smarty->display('tiki.tpl');
}
......@@ -90,4 +90,9 @@ include_once ('tiki-section_options.php');
ask_ticket('survey-stats-survey');
// Display the template
$smarty->assign('mid', 'tiki-survey_stats_survey.tpl');
$smarty->display("tiki.tpl");
if (isset($_REQUEST['print'])) {
$smarty->display('tiki-print.tpl');
$smarty->assign('print', 'y');
} else {
$smarty->display('tiki.tpl');
}
......@@ -106,4 +106,9 @@ if ($prefs['feature_theme_control'] == 'y') {
ask_ticket('view-faq');
// Display the template
$smarty->assign('mid', 'tiki-view_faq.tpl');
$smarty->display("tiki.tpl");
if (isset($_REQUEST['print'])) {
$smarty->display('tiki-print.tpl');
$smarty->assign('print', 'y');
} else {
$smarty->display("tiki.tpl");
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment