Commit 34e66e91 authored by changi67's avatar changi67

[INDENT] No changes

parent d5e494de
......@@ -3,14 +3,13 @@
{/if}
<div id="tiki-mid">
<div class="cbox">
<div class="cbox-title">{icon _id=exclamation alt="{tr}Error{/tr}" style=vertical-align:middle"} {tr}Error{/tr}
</div>
<div class="cbox-data">
{$msg}<br /><br />
</div>
</div>
<div class="cbox">
<div class="cbox-title">{icon _id=exclamation alt="{tr}Error{/tr}" style=vertical-align:middle"} {tr}Error{/tr}</div>
<div class="cbox-data">
{$msg}<br /><br />
</div>
</div>
</div>
{if $prefs.feature_bidi eq 'y'}
</td></tr></table>
{/if}
\ No newline at end of file
{/if}
......@@ -4,25 +4,24 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{if !empty($pageLang)}{$pageLang}{else}{$prefs.language}{/if}" lang="{if !empty($pageLang)}{$pageLang}{else}{$prefs.language}{/if}">
<head>
{include file='header.tpl'}
{include file='header.tpl'}
</head>
<body{html_body_attributes}>
{if $prefs.feature_bidi eq 'y'}
<table dir="rtl" ><tr><td>
{/if}
<div id="tiki-mid">
<div class="cbox">
<div class="cbox-title">{icon _id=exclamation alt="{tr}Error{/tr}" style=vertical-align:middle"}{tr}Error{/tr}</div>
<div class="cbox-data">
{$msg}<br /><br />
<a href="javascript:window.close()" class="linkmenu">{tr}Close Window{/tr}</a><br /><br />
</div>
</div>
</div>
{if $prefs.feature_bidi eq 'y'}
</td></tr></table>
{/if}
{include file='footer.tpl'}
{if $prefs.feature_bidi eq 'y'}
<table dir="rtl" ><tr><td>
{/if}
<div id="tiki-mid">
<div class="cbox">
<div class="cbox-title">{icon _id=exclamation alt="{tr}Error{/tr}" style=vertical-align:middle"}{tr}Error{/tr}</div>
<div class="cbox-data">
{$msg}<br /><br />
<a href="javascript:window.close()" class="linkmenu">{tr}Close Window{/tr}</a><br /><br />
</div>
</div>
</div>
{if $prefs.feature_bidi eq 'y'}
</td></tr></table>
{/if}
{include file='footer.tpl'}
</body>
</html>
<div class="fckeditzone" style="width:{$fck->Width};height:{$fck->Height};">
{if $fck->Compat}
<input type="hidden" id="{$fck->id}" name="{$fck->InstanceName}" value="{$fck->Meat|escape}" style="display:none" />
<input type="hidden" id="{$fck->id}___Config" value="{$fck->ConfigString}" style="display:none" />
<iframe id="{$fck->id}___Frame" src="{$fck->LinkFile}" width="100%" height="100%" frameborder="0" scrolling="no"></iframe>
{else}
<textarea id='editwiki' class="wikiedit" name="{$fck->InstanceName}" rows="4" cols="40" style="width:100%;height:100%;">{$fck->HtmlMeat}</textarea>
{/if}
{if $fck->Compat}
<input type="hidden" id="{$fck->id}" name="{$fck->InstanceName}" value="{$fck->Meat|escape}" style="display:none" />
<input type="hidden" id="{$fck->id}___Config" value="{$fck->ConfigString}" style="display:none" />
<iframe id="{$fck->id}___Frame" src="{$fck->LinkFile}" width="100%" height="100%" frameborder="0" scrolling="no"></iframe>
{else}
<textarea id='editwiki' class="wikiedit" name="{$fck->InstanceName}" rows="4" cols="40" style="width:100%;height:100%;">{$fck->HtmlMeat}</textarea>
{/if}
</div>
{* $Id$ *}
<div>
<div class='box-title'>{if $file_backlinks_title}{tr}{$file_backlinks_title}{/tr}{else}{tr}Backlinks{/tr}{/if}</div>
<div class='box-data'>
<ul>
{foreach from=$backlinks item=object}
<li><a href="{$object.itemId|sefurl:$object.type}">{$object.name|escape}</a></li>
{/foreach}
</ul>
<div class='box-title'>{if $file_backlinks_title}{tr}{$file_backlinks_title}{/tr}{else}{tr}Backlinks{/tr}{/if}</div>
<div class='box-data'>
<ul>
{foreach from=$backlinks item=object}
<li><a href="{$object.itemId|sefurl:$object.type}">{$object.name|escape}</a></li>
{/foreach}
</ul>
</div>
</div>
</div>
\ No newline at end of file
......@@ -53,6 +53,4 @@
{if $headerlib}{$headerlib->output_headers()}{/if}
</head>
<body{html_body_attributes}>
......@@ -22,64 +22,63 @@
{/if}
<br /><br />
<form action="messu-archive.php" method="get">
<label for="mess-mailmessages">{tr}Messages{/tr}:</label>
<select name="flags" id="mess-mailmessages">
<option value="isRead_y" {if $flag eq 'isRead' and $flagval eq 'y'}selected="selected"{/if}>{tr}Read{/tr}</option>
<option value="isRead_n" {if $flag eq 'isRead' and $flagval eq 'n'}selected="selected"{/if}>{tr}Unread{/tr}</option>
<option value="isFlagged_y" {if $flag eq 'isFlagged' and $flagval eq 'y'}selected="selected"{/if}>{tr}Flagged{/tr}</option>
<option value="isFlagged_y" {if $flag eq 'isflagged' and $flagval eq 'n'}selected="selected"{/if}>{tr}Unflagged{/tr}</option>
<option value="" {if $flag eq ''}selected="selected"{/if}>{tr}All{/tr}</option>
</select>
<label for="mess-mailprio">{tr}Priority{/tr}:</label>
<select name="priority" id="mess-mailprio">
<option value="" {if $priority eq ''}selected="selected"{/if}>{tr}All{/tr}</option>
<option value="1" {if $priority eq 1}selected="selected"{/if}>1</option>
<option value="2" {if $priority eq 2}selected="selected"{/if}>2</option>
<option value="3" {if $priority eq 3}selected="selected"{/if}>3</option>
<option value="4" {if $priority eq 4}selected="selected"{/if}>4</option>
<option value="5" {if $priority eq 5}selected="selected"{/if}>5</option>
</select>
<label for="mess-mailcont">{tr}Containing{/tr}:</label>
<input type="text" name="find" id="mess-mailcont" value="{$find|escape}" />
<input type="submit" name="filter" value="{tr}Filter{/tr}" />
<label for="mess-mailmessages">{tr}Messages{/tr}:</label>
<select name="flags" id="mess-mailmessages">
<option value="isRead_y" {if $flag eq 'isRead' and $flagval eq 'y'}selected="selected"{/if}>{tr}Read{/tr}</option>
<option value="isRead_n" {if $flag eq 'isRead' and $flagval eq 'n'}selected="selected"{/if}>{tr}Unread{/tr}</option>
<option value="isFlagged_y" {if $flag eq 'isFlagged' and $flagval eq 'y'}selected="selected"{/if}>{tr}Flagged{/tr}</option>
<option value="isFlagged_y" {if $flag eq 'isflagged' and $flagval eq 'n'}selected="selected"{/if}>{tr}Unflagged{/tr}</option>
<option value="" {if $flag eq ''}selected="selected"{/if}>{tr}All{/tr}</option>
</select>
<label for="mess-mailprio">{tr}Priority{/tr}:</label>
<select name="priority" id="mess-mailprio">
<option value="" {if $priority eq ''}selected="selected"{/if}>{tr}All{/tr}</option>
<option value="1" {if $priority eq 1}selected="selected"{/if}>1</option>
<option value="2" {if $priority eq 2}selected="selected"{/if}>2</option>
<option value="3" {if $priority eq 3}selected="selected"{/if}>3</option>
<option value="4" {if $priority eq 4}selected="selected"{/if}>4</option>
<option value="5" {if $priority eq 5}selected="selected"{/if}>5</option>
</select>
<label for="mess-mailcont">{tr}Containing{/tr}:</label>
<input type="text" name="find" id="mess-mailcont" value="{$find|escape}" />
<input type="submit" name="filter" value="{tr}Filter{/tr}" />
</form>
<br />
<form action="messu-archive.php" method="post" name="form_messu_archive">
<input type="hidden" name="offset" value="{$offset|escape}" />
<input type="hidden" name="find" value="{$find|escape}" />
<input type="hidden" name="sort_mode" value="{$sort_mode|escape}" />
<input type="hidden" name="flag" value="{$flag|escape}" />
<input type="hidden" name="flagval" value="{$flagval|escape}" />
<input type="hidden" name="priority" value="{$priority|escape}" />
<input type="submit" name="delete" value="{tr}Delete{/tr}" />
<input type="submit" name="download" value="{tr}Download{/tr}" />
<input type="hidden" name="offset" value="{$offset|escape}" />
<input type="hidden" name="find" value="{$find|escape}" />
<input type="hidden" name="sort_mode" value="{$sort_mode|escape}" />
<input type="hidden" name="flag" value="{$flag|escape}" />
<input type="hidden" name="flagval" value="{$flagval|escape}" />
<input type="hidden" name="priority" value="{$priority|escape}" />
<input type="submit" name="delete" value="{tr}Delete{/tr}" />
<input type="submit" name="download" value="{tr}Download{/tr}" />
{jq}
var CHECKBOX_LIST = [{{section name=user loop=$items}'msg[{$items[user].msgId}]'{if not $smarty.section.user.last},{/if}{/section}}];
{/jq}
<table class="normal" >
<tr>
<th><input type="checkbox" name="checkall" onclick="checkbox_list_check_all('form_messu_archive',CHECKBOX_LIST,this.checked);" /></th>
<th style="width:18px">&nbsp;</th>
<th><a href="messu-archive.php?flag={$flag}&amp;priority={$priority}&amp;flagval={$flagval}&amp;find={$find}&amp;offset={$offset}&amp;sort_mode={if $sort_mode eq 'user_from_desc'}user_from_asc{else}user_from_desc{/if}">{tr}Sender{/tr}</a></th>
<th><a href="messu-archive.php?flag={$flag}&amp;priority={$priority}&amp;flagval={$flagval}&amp;find={$find}&amp;offset={$offset}&amp;sort_mode={if $sort_mode eq 'subject_desc'}subject_asc{else}subject_desc{/if}">{tr}Subject{/tr}</a></th>
<th><a href="messu-archive.php?flag={$flag}&amp;priority={$priority}&amp;flagval={$flagval}&amp;find={$find}&amp;offset={$offset}&amp;sort_mode={if $sort_mode eq 'date_desc'}date_asc{else}date_desc{/if}">{tr}Date{/tr}</a></th>
<th style="text-align:right">{tr}Size{/tr}</th>
</tr>
{cycle values="odd,even" print=false}
{section name=user loop=$items}
<tr>
<td class="prio{$items[user].priority}"><input type="checkbox" name="msg[{$items[user].msgId}]" /></td>
<td class="prio{$items[user].priority}">{if $items[user].isFlagged eq 'y'}{icon _id='flag_blue' alt="{tr}Flagged{/tr}"}{/if}</td>
<td {if $items[user].isRead eq 'n'}style="font-weight:bold"{/if} class="prio{$items[user].priority}">{$items[user].user_from|userlink}</td>
<td {if $items[user].isRead eq 'n'}style="font-weight:bold"{/if} class="prio{$items[user].priority}"><a class="readlink" href="messu-read_archive.php?offset={$offset}&amp;flag={$flag}&amp;priority={$items[user].priority}&amp;flagval={$flagval}&amp;sort_mode={$sort_mode}&amp;find={$find}&amp;msgId={$items[user].msgId}">{$items[user].subject|escape}</a></td>
<td {if $items[user].isRead eq 'n'}style="font-weight:bold"{/if} class="prio{$items[user].priority}">{$items[user].date|tiki_short_datetime}</td><!--date_format:"%d %b %Y [%H:%I]"-->
<td style="text-align:right;{if $items[user].isRead eq 'n'}font-weight:bold;{/if}" class="prio{$items[user].priority}">{$items[user].len|kbsize}</td>
</tr>
{sectionelse}
<tr><td colspan="6">{tr}No messages to display{/tr}<td></tr>
{/section}
</table>
<table class="normal" >
<tr>
<th><input type="checkbox" name="checkall" onclick="checkbox_list_check_all('form_messu_archive',CHECKBOX_LIST,this.checked);" /></th>
<th style="width:18px">&nbsp;</th>
<th><a href="messu-archive.php?flag={$flag}&amp;priority={$priority}&amp;flagval={$flagval}&amp;find={$find}&amp;offset={$offset}&amp;sort_mode={if $sort_mode eq 'user_from_desc'}user_from_asc{else}user_from_desc{/if}">{tr}Sender{/tr}</a></th>
<th><a href="messu-archive.php?flag={$flag}&amp;priority={$priority}&amp;flagval={$flagval}&amp;find={$find}&amp;offset={$offset}&amp;sort_mode={if $sort_mode eq 'subject_desc'}subject_asc{else}subject_desc{/if}">{tr}Subject{/tr}</a></th>
<th><a href="messu-archive.php?flag={$flag}&amp;priority={$priority}&amp;flagval={$flagval}&amp;find={$find}&amp;offset={$offset}&amp;sort_mode={if $sort_mode eq 'date_desc'}date_asc{else}date_desc{/if}">{tr}Date{/tr}</a></th>
<th style="text-align:right">{tr}Size{/tr}</th>
</tr>
{cycle values="odd,even" print=false}
{section name=user loop=$items}
<tr>
<td class="prio{$items[user].priority}"><input type="checkbox" name="msg[{$items[user].msgId}]" /></td>
<td class="prio{$items[user].priority}">{if $items[user].isFlagged eq 'y'}{icon _id='flag_blue' alt="{tr}Flagged{/tr}"}{/if}</td>
<td {if $items[user].isRead eq 'n'}style="font-weight:bold"{/if} class="prio{$items[user].priority}">{$items[user].user_from|userlink}</td>
<td {if $items[user].isRead eq 'n'}style="font-weight:bold"{/if} class="prio{$items[user].priority}"><a class="readlink" href="messu-read_archive.php?offset={$offset}&amp;flag={$flag}&amp;priority={$items[user].priority}&amp;flagval={$flagval}&amp;sort_mode={$sort_mode}&amp;find={$find}&amp;msgId={$items[user].msgId}">{$items[user].subject|escape}</a></td>
<td {if $items[user].isRead eq 'n'}style="font-weight:bold"{/if} class="prio{$items[user].priority}">{$items[user].date|tiki_short_datetime}</td><!--date_format:"%d %b %Y [%H:%I]"-->
<td style="text-align:right;{if $items[user].isRead eq 'n'}font-weight:bold;{/if}" class="prio{$items[user].priority}">{$items[user].len|kbsize}</td>
</tr>
{sectionelse}
<tr><td colspan="6">{tr}No messages to display{/tr}<td></tr>
{/section}
</table>
</form>
{pagination_links cant=$cant_pages step=$prefs.maxRecords offset=$offset}{/pagination_links}
......@@ -4,7 +4,6 @@
{include file='messu-nav.tpl'}
<br /><br />
{if $message}
<div class="simplebox highlight">
{if $preview eq '1'}
......@@ -86,4 +85,3 @@
</table>
</form>
{/if}
This diff is collapsed.
......@@ -4,14 +4,14 @@
{button href="messu-mailbox.php" _text="{tr}Mailbox{/tr}"}
{button href="messu-compose.php" _text="{tr}Compose{/tr}"}
{if $tiki_p_broadcast eq 'y'}
{if $tiki_p_broadcast eq 'y'}
{button href="messu-broadcast.php" _text="{tr}Broadcast{/tr}"}
{/if}
{/if}
{button href="messu-sent.php" _text="{tr}Sent{/tr}"}
{button href="messu-archive.php" _text="{tr}Archive{/tr}"}
{if $mess_archiveAfter>0}
{if $mess_archiveAfter>0}
({tr}Auto-archive age for read messages:{/tr} {$mess_archiveAfter} {tr}days{/tr})
{/if}
{/if}
</div>
This diff is collapsed.
{* $Id$ *}
{* Error module rendering *}
<div class="box" id="module_error"><div class="box-title">{tr}Error{/tr}</div>
<div class="box-data">
<div class="attention">{tr}'name' parameter for tikimodule missed{/tr}</div>
</div></div>
<div class="box" id="module_error">
<div class="box-title">{tr}Error{/tr}</div>
<div class="box-data">
<div class="attention">{tr}'name' parameter for tikimodule missed{/tr}</div>
</div>
</div>
......@@ -6,10 +6,10 @@
{* Custom fields *}
{section name=ir loop=$customfields}
{if $customfields[ir].show}
<tr>
<td><label for="{$customfields[ir].prefName}">{tr}{$customfields[ir].label}:{/tr}</label></td>
<td><input type="{$customfields[ir].type}" name="{$customfields[ir].prefName}" value="{$customfields[ir].value}" size="{$customfields[ir].size}" id="{$customfields[ir].prefName}" /></td>
</tr>
<tr>
<td><label for="{$customfields[ir].prefName}">{tr}{$customfields[ir].label}:{/tr}</label></td>
<td><input type="{$customfields[ir].type}" name="{$customfields[ir].prefName}" value="{$customfields[ir].value}" size="{$customfields[ir].size}" id="{$customfields[ir].prefName}" /></td>
</tr>
{/if}
{/section}
{include file="register-groupchoice.tpl"}
......@@ -2,19 +2,19 @@
<input id='pass1' type="password" name="pass" onkeypress="regCapsLock(event)" /><strong class='mandatory_star'>*</strong>
{else}
{if $openid_associate neq 'y'}
<tr>
<td><label for="pass1">{tr}Password:{/tr}</label>{if $trackerEditFormId}&nbsp;<strong class='mandatory_star'>*</strong>&nbsp;{/if}</td>
<td>
<input id='pass1' type="password" name="pass" onkeypress="regCapsLock(event)" onkeyup="{if $prefs.feature_ajax neq 'y' && !$userTrackerData}runPassword(this.value, 'mypassword');checkPasswordsMatch('#pass2', '#pass1', '#mypassword2_text');{elseif !$userTrackerData}check_pass();{/if}" />
<div style="float:right;margin-left:5px;">
<div id="mypassword_text"></div>
<div id="mypassword_bar" style="font-size: 5px; height: 2px; width: 0px;"></div>
</div>
{if $prefs.feature_ajax ne 'y'}
{if $prefs.min_pass_length > 1}<div class="highlight"><em>{tr}Minimum {$prefs.min_pass_length} characters long{/tr}</em></div>{/if}
{if $prefs.pass_chr_num eq 'y'}<div class="highlight"><em>{tr}Password must contain both letters and numbers{/tr}</em></div>{/if}
{/if}
</td>
</tr>
<tr>
<td><label for="pass1">{tr}Password:{/tr}</label>{if $trackerEditFormId}&nbsp;<strong class='mandatory_star'>*</strong>&nbsp;{/if}</td>
<td>
<input id='pass1' type="password" name="pass" onkeypress="regCapsLock(event)" onkeyup="{if $prefs.feature_ajax neq 'y' && !$userTrackerData}runPassword(this.value, 'mypassword');checkPasswordsMatch('#pass2', '#pass1', '#mypassword2_text');{elseif !$userTrackerData}check_pass();{/if}" />
<div style="float:right;margin-left:5px;">
<div id="mypassword_text"></div>
<div id="mypassword_bar" style="font-size: 5px; height: 2px; width: 0px;"></div>
</div>
{if $prefs.feature_ajax ne 'y'}
{if $prefs.min_pass_length > 1}<div class="highlight"><em>{tr}Minimum {$prefs.min_pass_length} characters long{/tr}</em></div>{/if}
{if $prefs.pass_chr_num eq 'y'}<div class="highlight"><em>{tr}Password must contain both letters and numbers{/tr}</em></div>{/if}
{/if}
</td>
</tr>
{/if}
{/if}
......@@ -2,13 +2,13 @@
<input type="password" name="passcode" id="passcode" onkeypress="regCapsLock(event)" />
{else}
{if $prefs.useRegisterPasscode eq 'y'}
<tr>
<td><label for="passcode">{tr}Passcode to register:{/tr}</label></td>
<td>
<input type="password" name="passcode" id="passcode" onkeypress="regCapsLock(event)" />
<em>{tr}Not your password.{/tr} {tr}To request a passcode, {if $prefs.feature_contact eq 'y'}<a href="tiki-contact.php">{/if}
contact the system administrator{if $prefs.feature_contact eq 'y'}</a>{/if}{/tr}.</em>
</td>
</tr>
<tr>
<td><label for="passcode">{tr}Passcode to register:{/tr}</label></td>
<td>
<input type="password" name="passcode" id="passcode" onkeypress="regCapsLock(event)" />
<em>{tr}Not your password.{/tr} {tr}To request a passcode, {if $prefs.feature_contact eq 'y'}<a href="tiki-contact.php">{/if}
contact the system administrator{if $prefs.feature_contact eq 'y'}</a>{/if}{/tr}.</em>
</td>
</tr>
{/if}
{/if}
......@@ -3,30 +3,23 @@
{/remarksbox}
<div class="adminoptionbox">
<fieldset>
<legend>{tr}Promote your site{/tr}</legend>
{tr}To submit your site to Tiki.org:{/tr} <a href="tiki-register_site.php">{tr}Submit site{/tr}</a>
</fieldset>
<form class="admin" id="connect" name="connect" action="tiki-admin.php?page=connect" method="post">
<fieldset>
<legend>{tr}Promote your site{/tr}</legend>
{tr}To submit your site to Tiki.org:{/tr} <a href="tiki-register_site.php">{tr}Submit site{/tr}</a>
</fieldset>
<form class="admin" id="connect" name="connect" action="tiki-admin.php?page=connect" method="post">
<fieldset>
<legend>{tr}Help Tiki spread{/tr}</legend>
{preference name=feature_bot_bar_power_by_tw}
</fieldset>
<fieldset>
<legend>{tr}Help improve Tiki{/tr}</legend>
{tr}To submit a feature request or to report a bug:{/tr} <a href="http://dev.tiki.org/Report+a+Bug">{tr}Click here to go to our development site{/tr}</a>
</fieldset>
<legend>{tr}Help improve Tiki{/tr}</legend>
{tr}To submit a feature request or to report a bug:{/tr} <a href="http://dev.tiki.org/Report+a+Bug">{tr}Click here to go to our development site{/tr}</a>
</fieldset>
<div class="heading input_submit_container" style="text-align: center;">
<input type="submit" value="{tr}Change preferences{/tr}" />
</div>
</form>
</form>
</div>
......@@ -20,7 +20,6 @@
{preference name=articles_feature_copyrights}
{preference name=blogues_feature_copyrights}
{preference name=faqs_feature_copyrights}
</div>
</div>
</fieldset>
......
......@@ -18,4 +18,3 @@
<input type="submit" name="directory" value="{tr}Change preferences{/tr}" />
</div>
</form>
<form action="tiki-admin.php?page=metrics" onreset="return(confirm("{tr}Cancel Edit{/tr}"))" class="admin" method="post">
<div class="heading input_submit_container" style="text-align: right">
<input type="submit" value="{tr}Change preferences{/tr}" />
</div>
<fieldset>
<legend>{tr}Metrics Dashboard{/tr}</legend>
<p><a href="tiki-admin_metrics.php">{tr}Configure metrics{/tr}</a></p>
{preference name=feature_metrics_dashboard}
<div class="adminoptionboxchild" id="feature_metrics_dashboard_childcontainer">
{preference name=metrics_pastresults label="{tr}Show past results{/tr}"}
......
......@@ -7,20 +7,16 @@
<fieldset>
<legend>{tr}Polls{/tr}{help url="Polls+Config"}</legend>
<input type="hidden" name="pollprefs" />
{preference name=feature_poll_anonymous}
{preference name=feature_poll_revote}
{preference name=feature_poll_comments}
<div class="adminoptionboxchild" id="feature_poll_comments_childcontainer">
{preference name=poll_comments_per_page}
{preference name=poll_comments_default_ordering}
</div>
{preference name=poll_list_categories}
{preference name=poll_list_objects}
{preference name=poll_multiple_per_object}
</fieldset>
<div class="heading input_submit_container" style="text-align: center">
<input type="submit" name="calprefs" value="{tr}Change settings{/tr}" />
......
......@@ -8,58 +8,55 @@
<h2>{tr}List of featured links{/tr}</h2>
<table class="normal">
<tr>
<th>{tr}URL{/tr}</th>
<th>{tr}Title{/tr}</th>
<th>{tr}Hits{/tr}</th>
<th>{tr}Position{/tr}</th>
<th>{tr}Type{/tr}</th>
<th>{tr}Action{/tr}</th>
</tr>
{cycle values="odd,even" print=false}
{section name=user loop=$links}
<tr class="{cycle}">
<td>{$links[user].url}</td>
<td>{$links[user].title|escape}</td>
<td>{$links[user].hits}</td>
<td>{$links[user].position}</td>
<td>{$links[user].type}</td>
<td>
<a title="{tr}Edit{/tr}" class="link" href="tiki-admin_links.php?editurl={$links[user].url|escape:"url"}">{icon _id='page_edit'}</a> &nbsp;
<a title="{tr}Delete{/tr}" class="link" href="tiki-admin_links.php?remove={$links[user].url|escape:"url"}">{icon _id='cross' alt="{tr}Remove{/tr}"}</a>
</td>
</tr>
{sectionelse}
<tr><td colspan="6" class="odd">
<b>{tr}No records found{/tr}</b>
</td></tr>
{/section}
<tr>
<th>{tr}URL{/tr}</th>
<th>{tr}Title{/tr}</th>
<th>{tr}Hits{/tr}</th>
<th>{tr}Position{/tr}</th>
<th>{tr}Type{/tr}</th>
<th>{tr}Action{/tr}</th>
</tr>
{cycle values="odd,even" print=false}
{section name=user loop=$links}
<tr class="{cycle}">
<td>{$links[user].url}</td>
<td>{$links[user].title|escape}</td>
<td>{$links[user].hits}</td>
<td>{$links[user].position}</td>
<td>{$links[user].type}</td>
<td>
<a title="{tr}Edit{/tr}" class="link" href="tiki-admin_links.php?editurl={$links[user].url|escape:"url"}">{icon _id='page_edit'}</a> &nbsp;
<a title="{tr}Delete{/tr}" class="link" href="tiki-admin_links.php?remove={$links[user].url|escape:"url"}">{icon _id='cross' alt="{tr}Remove{/tr}"}</a>
</td>
</tr>
{sectionelse}
<tr><td colspan="6" class="odd"><b>{tr}No records found{/tr}</b></td></tr>
{/section}
</table>
<br />
{if $editurl eq 'n'}
<h2>{tr}Add Featured Link{/tr}</h2>
<h2>{tr}Add Featured Link{/tr}</h2>
{else}
<h2>{tr}Edit this Featured Link:{/tr} {$title}</h2>
<a href="tiki-admin_links.php">{tr}Create new Featured Link{/tr}</a>
<h2>{tr}Edit this Featured Link:{/tr} {$title}</h2>
<a href="tiki-admin_links.php">{tr}Create new Featured Link{/tr}</a>
{/if}
<form action="tiki-admin_links.php" method="post">
<table class="formcolor">
{if $editurl eq 'n'}
<tr><td>URL</td><td><input type="text" name="url" /></td></tr>
{else}
<tr><td>URL</td><td>{$editurl}
<input type="hidden" name="url" value="{$editurl|escape}" />
</td></tr>
{/if}
<tr><td>{tr}Title{/tr}</td><td><input type="text" name="title" value="{$title|escape}" /></td></tr>
<tr><td>{tr}Position{/tr}</td><td><input type="text" size="3" name="position" value="{$position|escape}" /> (0 {tr}disables the link{/tr})</td></tr>
<tr><td>{tr}Link type{/tr}</td><td>
<select name="type">
<option value="r" {if $type eq 'r'}selected="selected"{/if}>{tr}replace current page{/tr}</option>
<option value="f" {if $type eq 'f'}selected="selected"{/if}>{tr}framed{/tr}</option>
<option value="n" {if $type eq 'n'}selected="selected"{/if}>{tr}open new window{/tr}</option>
</select>
</td></tr>
<tr><td>&nbsp;</td><td><input type="submit" name="add" value="{tr}Save{/tr}" /></td></tr>
</table>
<table class="formcolor">
{if $editurl eq 'n'}
<tr><td>URL</td><td><input type="text" name="url" /></td></tr>
{else}
<tr><td>URL</td><td>{$editurl}<input type="hidden" name="url" value="{$editurl|escape}" /></td></tr>
{/if}
<tr><td>{tr}Title{/tr}</td><td><input type="text" name="title" value="{$title|escape}" /></td></tr>
<tr><td>{tr}Position{/tr}</td><td><input type="text" size="3" name="position" value="{$position|escape}" /> (0 {tr}disables the link{/tr})</td></tr>
<tr><td>{tr}Link type{/tr}</td><td>
<select name="type">
<option value="r" {if $type eq 'r'}selected="selected"{/if}>{tr}replace current page{/tr}</option>
<option value="f" {if $type eq 'f'}selected="selected"{/if}>{tr}framed{/tr}</option>
<option value="n" {if $type eq 'n'}selected="selected"{/if}>{tr}open new window{/tr}</option>
</select>
</td>
</tr>
<tr><td>&nbsp;</td><td><input type="submit" name="add" value="{tr}Save{/tr}" /></td></tr>
</table>
</form>
......@@ -9,69 +9,75 @@
{button href="tiki-admin_surveys.php" _text="{tr}Admin Surveys{/tr}"}
</div>
<h2>
{if $questionId gt 0}{tr}Edit Survey Question{/tr}{else}{tr}Add a New Question to this survey{/tr}{/if}
</h2>
<h2>{if $questionId gt 0}{tr}Edit Survey Question{/tr}{else}{tr}Add a New Question to this survey{/tr}{/if}</h2>
<form action="tiki-admin_survey_questions.php" method="post">
<input type="hidden" name="surveyId" value="{$surveyId|escape}" />
<input type="hidden" name="questionId" value="{$questionId|escape}" />
<table class="formcolor">
<tr><td>{tr}Question{/tr}:</td><td><textarea name="question" rows="5" cols="40">{$info.question|escape}</textarea></td></tr>
<tr><td>{tr}Position{/tr}:</td><td><select name="position">{html_options values=$positions output=$positions selected=$info.position}</select></td></tr>
<tr><td>{tr}Type{/tr}:</td><td>
<select name="type">
<option value='c' {if $info.type eq 'c'}selected=selected{/if}>{tr}One choice{/tr}</option>
<option value='m' {if $info.type eq 'm'}selected=selected{/if}>{tr}Multiple choices{/tr}</option>
<option value='g' {if $info.type eq 'g'}selected=selected{/if}>{tr}Multiple choices of thumbnails from a file gallery{/tr}</option>
<option value='t' {if $info.type eq 't'}selected=selected{/if}>{tr}Short text{/tr}</option>
<option value='x' {if $info.type eq 'x'}selected=selected{/if}>{tr}Wiki textarea{/tr}</option>
<option value='r' {if $info.type eq 'r'}selected=selected{/if}>{tr}Rate (1..5){/tr}</option>
<option value='s' {if $info.type eq 's'}selected=selected{/if}>{tr}Rate (1..10){/tr}</option>
<option value='r' {if $info.type eq 'r'}selected=selected{/if}>{tr}Rate{/tr}</option>
</select></td></tr>
<tr><td>{tr}Answer is mandatory:{/tr}</td><td><input type="checkbox" name="mandatory" {if $info.mandatory eq 'y'}checked="checked"{/if}/></td></tr>
<tr><td>{tr}Number of required answers (for multiple choices):{/tr}</td><td>
{tr}Min:{/tr}<input type="text" name="min_answers" size="4" value="{$info.min_answers}" />
{tr}Max:{/tr}<input type="text" name="max_answers" size="4" value="{$info.max_answers}" />
</td></tr>
<tr><td>&nbsp;</td><td>
{remarksbox type="tip" title="{tr}Tip{/tr}"}
{tr}For a multiple answer question put the answers into the following field, separated by a comma. Example: one,two,many,lots{/tr}.
<br />{tr}For a rate, you can give the maximum value.{/tr}
<br />{tr}For the 'multiple choices of thumbnail from a file gallery' type, options are: Gallery ID. Example: 4{/tr}
{/remarksbox}
</td></tr>
<tr><td>{tr}Options (if apply){/tr}:</td><td><input type="text" name="options" value="{$info.options|escape}" size="80" /></td></tr>
<tr><td >&nbsp;</td><td><input type="submit" name="save" value="{tr}Save{/tr}" /></td></tr>
</table>
<input type="hidden" name="surveyId" value="{$surveyId|escape}" />
<input type="hidden" name="questionId" value="{$questionId|escape}" />
<table class="formcolor">
<tr><td>{tr}Question{/tr}:</td><td><textarea name="question" rows="5" cols="40">{$info.question|escape}</textarea></td></tr>
<tr><td>{tr}Position{/tr}:</td><td><select name="position">{html_options values=$positions output=$positions selected=$info.position}</select></td></tr>
<tr>
<td>{tr}Type{/tr}:</td>
<td>
<select name="type">
<option value='c' {if $info.type eq 'c'}selected=selected{/if}>{tr}One choice{/tr}</option>
<option value='m' {if $info.type eq 'm'}selected=selected{/if}>{tr}Multiple choices{/tr}</option>
<option value='g' {if $info.type eq 'g'}selected=selected{/if}>{tr}Multiple choices of thumbnails from a file gallery{/tr}</option>
<option value='t' {if $info.type eq 't'}selected=selected{/if}>{tr}Short text{/tr}</option>
<option value='x' {if $info.type eq 'x'}selected=selected{/if}>{tr}Wiki textarea{/tr}</option>
<option value='r' {if $info.type eq 'r'}selected=selected{/if}>{tr}Rate (1..5){/tr}</option>
<option value='s' {if $info.type eq 's'}selected=selected{/if}>{tr}Rate (1..10){/tr}</option>
<option value='r' {if $info.type eq 'r'}selected=selected{/if}>{tr}Rate{/tr}</option>
</select>
</td>
</tr>
<tr><td>{tr}Answer is mandatory:{/tr}</td><td><input type="checkbox" name="mandatory" {if $info.mandatory eq 'y'}checked="checked"{/if}/></td></tr>
<tr><td>{tr}Number of required answers (for multiple choices):{/tr}</td>
<td>
{tr}Min:{/tr}<input type="text" name="min_answers" size="4" value="{$info.min_answers}" />
{tr}Max:{/tr}<input type="text" name="max_answers" size="4" value="{$info.max_answers}" />
</td>
</tr>
<tr><td>&nbsp;</td>
<td>
{remarksbox type="tip" title="{tr}Tip{/tr}"}
{tr}For a multiple answer question put the answers into the following field, separated by a comma. Example: one,two,many,lots{/tr}.
<br />{tr}For a rate, you can give the maximum value.{/tr}
<br />{tr}For the 'multiple choices of thumbnail from a file gallery' type, options are: Gallery ID. Example: 4{/tr}
{/remarksbox}
</td>
</tr>
<tr><td>{tr}Options (if apply){/tr}:</td><td><input type="text" name="options" value="{$info.options|escape}" size="80" /></td></tr>
<tr><td >&nbsp;</td><td><input type="submit" name="save" value="{tr}Save{/tr}" /></td></tr>
</table>
</form>
<h2>{tr}Questions{/tr}</h2>
{include file='find.tpl'}
<table class="normal">
<tr>
<th><a href="tiki-admin_survey_questions.php?surveyId={$surveyId}&amp;offset={$offset}&amp;sort_mode={if $sort_mode eq 'questionId_desc'}questionId_asc{else}questionId_desc{/if}">{tr}ID{/tr}</a></th>