コード例 #1
0
function displayForm()
{
    $translatorObj = new Translator();
    $page_path = $translatorObj->requestToTranslate();
    if ($page_path) {
        $pageObj = new Page($page_path);
        $pageContent = $pageObj->loadContent();
        ?>
<form action='iwanttotranslate.php' method='post' id='myform'>
<input type='hidden' name='pagepath' id='pagepath' value="<?php 
        echo $page_path;
        ?>
">
<div class='container-fluid'>
<div class='row'>
<div class='col-xs-6'>

<p><b>Page:-</b></p>
<textarea name='pageContent' id='pageContent' rows='20' cols='20' style='width:50%' readonly>
<?php 
        echo $pageContent;
        ?>
</textarea>
</div>
<p><b>Translation:-</b></p>

<script language="javascript">
CreateCustomHindiTextArea("id1","",80,20,true);
</script>

</div>
</div>
<input type='submit' name='submit' value='submit'></input>
<input type='button' name='cancel' value='cancel'></input>
</form>
<?php 
    } else {
        echo 'Hurray!!No pages to translate';
    }
}