Ejemplo n.º 1
0
    protected function getTbody()
    {
        ?>
		<tr class="no-focus">
			<td>
				<form action="<?php 
        echo UrlFactory::module($this->module, 'generate');
        ?>
" method="post">
					<table class="list">
						<thead>
							<tr>
								<th class="action-n2"></th>
								<th>Variable</th>
							<?php 
        foreach ($this->languages as $language) {
            ?>
								<th><?php 
            echo $language->displayFlag();
            ?>
</th>
							<?php 
        }
        ?>
							</tr>
						</thead>
						<tbody>
							<?php 
        foreach ($this->list as $translation) {
            ?>
							<tr>
								<td><!--<?php 
            $this->addNormalUpdateButton($translation)->addNormalDeleteButton($translation);
            ?>
--></td>
								<td><?php 
            echo $translation->variable;
            ?>
</td>
							<?php 
            foreach ($this->languages as $language) {
                ?>
								<td><input type="text" name="<?php 
                echo $translation->variable . '[' . $language->code . ']';
                ?>
" value="<?php 
                echo SqlFields::protect($translation->get($language));
                ?>
" /></td>
							<?php 
            }
            ?>
							</tr>
							<?php 
        }
        ?>
							<tr class="valid">
								<td colspan="<?php 
        echo 2 + count($this->languages);
        ?>
">
									<div class="backoffice-valid">
										<button type="submit"><?php 
        echo Translator::get('module_submit_generate');
        ?>
</button>
									</div>
								</td>
							</tr>
						</tbody>
					</table>
				</form>
			</td>
		</tr>
	<?php 
    }