|
Learning with Texts - Fork 2.4.0-fork
Learn foreign languages with texts
|
Print/Edit an improved annotated text. More...
Namespaces | |
| namespace | Lwt |
Variables | |
| $textid = (int)getreq('text') | |
| $editmode = getreq('edit') | |
| $delmode = getreq('del') | |
| $ann = get_first_value("select TxAnnotatedText as value from " . $tbpref . "texts where TxID = " . $textid) | |
| $ann_exists = (strlen($ann) > 0) | |
| if($ann_exists) if( $textid==0) if($delmode) | $sql = 'select TxLgID, TxTitle, TxAudioURI, TxSourceURI from ' . $tbpref . 'texts where TxID = ' . $textid |
| $res = do_mysqli_query($sql) | |
| $record = mysqli_fetch_assoc($res) | |
| $title = $record['TxTitle'] | |
| $sourceURI = $record['TxSourceURI'] | |
| $langid = $record['TxLgID'] | |
| $audio = $record['TxAudioURI'] | |
| $textsize = $record['LgTextSize'] | |
| $rtlScript = $record['LgRightToLeft'] | |
| if(!empty($record['LgGoogleTranslateURI'])) | else |
| $items = preg_split('/[\n]/u', $ann) | |
| foreach ( $items as $item) | |
Print/Edit an improved annotated text.
Call: print_impr_text.php?text=[textid]&... ... edit=1 ... edit own annotation ... del=1 ... delete own annotation
| if ( $editmode) else |