diff --git a/main/help/faq.php b/main/help/faq.php new file mode 100644 index 0000000000..a71508460d --- /dev/null +++ b/main/help/faq.php @@ -0,0 +1,107 @@ + + + + + + +<?php echo get_lang('H'.$helpName); ?> + + +'') +{ + ?> + + + + +
+
+

+'; +} +?> +

+ add_html_editor('faq_content',null, false); + $form -> addElement('submit','faq_submit', get_lang('Ok')); + $form -> setDefaults(array('faq_content'=>file_get_contents(api_get_path(SYS_PATH).'home/faq.html'))); + if($form -> validate()) + { + $content = $form -> getSubmitValue('faq_content'); + $fp = fopen(api_get_path(SYS_PATH).'home/'.$faq_file,'w'); + fwrite($fp, $content); + fclose($fp); + echo $content; + } + else + { + $form -> display(); + } +} +else +{ + echo file_get_contents(api_get_path(SYS_PATH).'home/'.$faq_file); +} +?> +
+
+ + \ No newline at end of file diff --git a/main/help/help.php b/main/help/help.php index f3ab93d999..bfb261e257 100644 --- a/main/help/help.php +++ b/main/help/help.php @@ -65,10 +65,13 @@ if(api_get_setting('stylesheets')<>'')
+

+

+