예제 #1
0
 function getFormTemplate()
 {
     $atts =& $this->_table->attributes();
     import('Dataface/TranslationTool.php');
     $tt = new Dataface_TranslationTool();
     $status_selector_html = $tt->getHTMLStatusSelector($this->_record, $this->destinationLanguage, '__translation__[status]');
     $trec =& $tt->getTranslationRecord($this->_record, $this->destinationLanguage);
     $strec =& $tt->getTranslationRecord($this->_record, $this->sourceLanguage);
     return "\n\t\t\t\t<form{attributes}>\n\t\t\t\t\t<fieldset>\n\t\t\t\t\t<legend>" . $atts['label'] . "</legend>\n\t\t\t\t\t<table class=\"translation-form-table\">\n\t\t\t\t\t<thead>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<th width=\"150\" class=\"translation-label-cell-header\"><!-- Field name--></th>\n\t\t\t\t\t\t\t<th width=\"325\" class=\"source-translation-cell-header\">" . df_translate('scripts.Dataface.TranslationForm.LABEL_SOURCE_TRANSLATION', 'Source Translation') . "</th>\n\t\t\t\t\t\t\t<th width=\"325\" class=\"destination-translation-cell-header\">" . df_translate('scripts.Dataface.TranslationForm.LABEL_DESTINATION_TRANSLATION', 'Destination Translation') . "</th>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</thead>\n\t\t\t\t\t<tbody>\n\t\t\t\t\t\t<tr><th>" . df_translate('scripts.Dataface.TranslationForm.LABEL_TRANSLATION_STATUS', 'Translation Status') . ":</th>\n\t\t\t\t\t\t\t<td>" . df_translate('scripts.Dataface.TranslationForm.LABEL_VERSION', 'Version') . ": " . $strec->val('version') . "</td>\n\t\t\t\t\t\t\t<td>{$status_selector_html} Version: " . $trec->val('version') . "</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t{content}\n\t\t\t\t\t</tbody>\n\t\t\t\t\t</table>\n\t\t\t\t\t</fieldset>\n\t\t\t\t</form>";
 }