Learning with Texts - Fork 2.4.0-fork
Learn foreign languages with texts
Namespaces | Functions
ajax_edit_impr_text.php File Reference

Display table for Improved Annotation (Edit Mode),. More...

Namespaces

namespace  Lwt
 

Functions

 make_trans ($i, $wid, $trans, $word, $lang)
 
 make_form ($textid, $wordlc)
 
 do_ajax_edit_impr_text ($textid, $wordlc)
 

Detailed Description

Display table for Improved Annotation (Edit Mode),.

Ajax call in print_impr_text.php Call: inc/ajax_edit_impr_text.php?id=[textid]

Function Documentation

◆ do_ajax_edit_impr_text()

do_ajax_edit_impr_text (   $textid,
  $wordlc 
)

Do the AJAX modification for editing a printed text.

Parameters
int$textidText ID
string$wordlcWord lowercase. Can be left empty.
Returns
void

◆ make_form()

make_form (   $textid,
  $wordlc 
)

Prepare the form for printed text.

Parameters
int$textidText ID
string$wordlcLowercase word
Returns
string[] $r and $rr.

@global string $tbpref Database table prefix.

◆ make_trans()

make_trans (   $i,
  $wid,
  $trans,
  $word,
  $lang 
)

Make the translation for a word.

Parameters
int$iIndex
int | null$widWord ID or null
string$transTranslation
string$word
int$langLanguage ID
Returns
string HTML-formatted string