Commit 04e09afc authored by filip's avatar filip
Browse files

Implemented new FAQ functionality in help module

parent fb33392c
<?php
// Name of the list
$liste['name'] = 'help_faq_sections';
// Database table
$liste['table'] = 'help_faq_sections';
// Index index field of the database table
$liste['table_idx'] = 'hfs_id';
// Search Field Prefix
#$liste['search_prefix'] = 'search_';
// Records per page
$liste['records_per_page'] = 100;
// Script File of the list
$liste['file'] = 'faq_sections_list.php';
// Script file of the edit form
$liste['edit_file'] = 'faq_sections_edit.php';
// Script File of the delete script
$liste['delete_file'] = 'faq_sections_delete.php';
// Paging Template
$liste['paging_tpl'] = 'templates/paging.tpl.htm';
// Enable auth
$liste['auth'] = 'yes';
?>
<div class="panel panel_support_message">
<div class="pnl_formsarea">
<fieldset class="inlineLabels"><legend>FAQ</legend>
<div class="ctrlHolder">
<label for="hf_section">{tmpl_var name='faq_section_txt'}</label>
<select name="hf_section" id="hf_section" class="selectInput">
{tmpl_var name='hf_section'}
</select>
</div>
<div class="ctrlHolder">
<label for="hf_question">{tmpl_var name='faq_question_txt'}</label>
<input name="hf_question" id="hf_question" value="{tmpl_var name='hf_question'}" size="30" maxlength="255" type="text" class="textInput" />
</div>
<div class="ctrlHolder">
<label for="hf_answer">{tmpl_var name='faq_answer_txt'}</label>
<textarea name="hf_answer" id="hf_answer" rows='10' cols='30'>{tmpl_var name='hf_answer'}</textarea>
</div>
</fieldset>
<input type="hidden" name="id" value="{tmpl_var name='id'}">
<div class="buttonHolder buttons">
<button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','help/faq_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button>
<button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('help/faq_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button>
</div>
</div>
</div>
<div class="panel panel_support_message">
<div class="pnl_formsarea">
<fieldset class="inlineLabels"><legend>Section</legend>
<div class="ctrlHolder">
<label for="hfs_name">{tmpl_var name='faq_section_name_txt'}</label>
<input name="hfs_name" id="hfs_name" value="{tmpl_var name='hfs_name'}" size="30" maxlength="255" type="text" class="textInput" />
</div>
</fieldset>
<input type="hidden" name="id" value="{tmpl_var name='id'}">
<div class="buttonHolder buttons">
<button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','help/faq_sections_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button>
<button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('help/faq_sections_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button>
</div>
</div>
</div>
<tmpl_loop name="records">
<h3>{tmpl_var name='hf_question'}
</h3>
<p>
{tmpl_var name='hf_answer'}
</p>
<tmpl_if name='is_admin'>
<div class="buttons icons16">
<a class="icons16 icoDelete"
href="javascript: del_record('help/faq_delete.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"
>
<span>Delete</span></a>
</div>
<a href="#" onClick="loadContent('help/faq_edit.php?id={tmpl_var name='id'}');">Edit</a>
<br/>
<br/>
<br/>
</tmpl_if>
</tmpl_loop>
<!--<tmpl_var name="paging">-->
<h2>{tmpl_var name="faq_faq_sections_txt"}</h2>
<div class="pnl_toolsarea">
<fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend>
<div class="buttons">
<button class="iconstxt icoAdd" type="button" onclick="loadContent('help/faq_sections_edit.php');">
<span>{tmpl_var name="faq_new_section_txt"}</span>
</button>
</div>
</fieldset>
</div>
<div class="pnl_listarea">
<fieldset><legend><tmpl_var name="faq_sections_txt"></legend>
<table class="list">
<thead>
<tr>
<th class="tbl_col_active" scope="col">{tmpl_var name="faq_section_name_txt"}</th>
<th class="tbl_col_server_id" scope="col">{tmpl_var name="faq_delete_txt"}</th>
<th class="tbl_col_domain" scope="col">{tmpl_var name="faq_edit_txt"}</th>
</tr>
</thead>
<tmpl_loop name="records">
<tr>
<td><b>{tmpl_var name='hfs_name'}</b></td>
<td>
<div class="buttons icons16">
<a class="icons16 icoDelete" href="javascript: del_record('help/faq_sections_delete.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');">
<span>{tmpl_var name="faq_delete_txt"}</span></a> </div>
</td><td>
<a href="#" onClick="loadContent('help/faq_sections_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="faq_edit_txt"}</a>
</td>
</tr>
</tmpl_loop>
</table>
</fieldset>
</div>
Supports Markdown
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