Code Search for Developers
 
 
  

translations.php from ECP (EliteCore Project) at Krugle


Show translations.php syntax highlighted

<?php
$TA = new TA();
$TA->addQuery(TA :: SELECT, "xcs_engine_localization_languages");
$TA->Execute();
$languages = array ();
while ($object = $TA->Result()->FetchObject()) {
	$languages[] = $object;
}
$TA->End();
?>
<dl>
<? foreach($languages as $language): ?>
<dt><?=$language->name?>:&nbsp;</dt>
<dd>
<form action="openWindow.php?module=<?=$currentModule->getInstance()?>&amp;file=admin&amp;op=save" method="post">
	<? if ($_GET['type'] == 'textarea'): ?>
		<?=WYSIWYG::Show('text',$currentModule->object->getText($_GET['l_base'],$_GET['l_instance'],$_GET['l_id'],$_GET['l_field'],$language->id));?>
	<? else: ?>
	<input type="text" name="text" value="<?=$currentModule->object->getText($_GET['l_base'],$_GET['l_instance'],$_GET['l_id'],$_GET['l_field'],$language->id) ?>" />
	<? endif; ?>
	<input type="hidden" name="l_base" value="<?=$_GET['l_base']?>" />
	<input type="hidden" name="l_instance" value="<?=$_GET['l_instance']?>" />
	<input type="hidden" name="l_id" value="<?=$_GET['l_id']?>" />
	<input type="hidden" name="l_field" value="<?=$_GET['l_field']?>" />
	<input type="hidden" name="language" value="<?=$language->id?>" />
	<input type="submit" value="<?=$currentModule->form__save?>" />
</form>
</dd>
<? endforeach; ?>
</dl>



See more files for this project here

ECP (EliteCore Project)

EliteCore Project is a PHP5.1/Javascript/AJAX/XHTML/CSS framework for creating WEB 2.0 applications and services.The basic open-source instalation can be also used as an interactive personal page or BLOG.This project uses the latest features available.

Project homepage: http://sourceforge.net/projects/elitecore
Programming language(s): JavaScript,PHP,XML
License: cpl

  language/
    czech.xml
    english.xml
  templates/
    default/
      saved.php
  admin.php
  class.php
  config.xml
  translations.php