Exemplo n.º 1
0
echo autopostBaiduTranslator_apf::bulid_lang_options($fromLanguage);
?>
</select>
	  </td>
	</tr>
	<tr>
      <td>
	    <textarea name="src_text" cols="50" rows="5"><?php 
echo isset($_POST['src_text']) && $_POST['src_text'] != '' ? stripslashes($_POST['src_text']) : 'Hello world!';
?>
</textarea>
	  </td>
    </tr>
	<tr>
     <td><?php 
echo __('Translated into', 'wp-autopost');
?>
 : <select name="toLanguage" ><?php 
$toLanguage = $_POST['toLanguage'] != '' ? $_POST['toLanguage'] : '';
echo autopostBaiduTranslator_apf::bulid_lang_options($toLanguage);
?>
</select></td>
	</tr>
   </table>
   <p><input type="submit" name="test_translate" class="button-primary" value="<?php 
echo __('Test Translate', 'wp-autopost');
?>
" ></p>

  </form>
</div>
           <?php 
        echo autopostBaiduTranslator_apf::bulid_lang_options('');
        ?>
		  </select>
		</td>
	  </tr>

	  <tr> 
	    <td width="16%"><?php 
        echo __('Translated into', 'wp-autopost');
        ?>
:</td>
		<td>
		  <select id="to_Language" name="to_Language" >
            <?php 
        echo autopostBaiduTranslator_apf::bulid_lang_options('');
        ?>
		  </select>
		</td>
	  </tr>
   </table>
  </div>
   
  <div id="use_translator" style="display:none;" >
   <table width="100%">
	  <tr> 
	    <td width="16%"><?php 
        echo __('Post Method', 'wp-autopost');
        ?>
:</td>
		<td>