echo $list->getPluralName();
} else {
    echo sprintf('<input size="50" type="text"
                                name="name_plural" value="%s"/>', $info['name_plural']);
}
?>
            </td>
        </tr>
        <tr>
            <td width="180"><?php 
echo __('Sort Order');
?>
:</td>
            <td><select name="sort_mode">
                <?php 
$sortModes = $list ? $list->getSortModes() : DynamicList::getSortModes();
foreach ($sortModes as $key => $desc) {
    ?>
                <option value="<?php 
    echo $key;
    ?>
" <?php 
    if ($key == $info['sort_mode']) {
        echo 'selected="selected"';
    }
    ?>
><?php 
    echo $desc;
    ?>
</option>
                <?php 
Esempio n. 2
0
echo $errors['name'];
?>
</td>
        </tr>
        <tr>
            <td width="180">Plural Name:</td>
            <td><input size="50" type="text" name="name_plural" value="<?php 
echo $info['name_plural'];
?>
"/></td>
        </tr>
        <tr>
            <td width="180">Sort Order:</td>
            <td><select name="sort_mode">
                <?php 
foreach (DynamicList::getSortModes() as $key => $desc) {
    ?>
                <option value="<?php 
    echo $key;
    ?>
" <?php 
    if ($key == $info['sort_mode']) {
        echo 'selected="selected"';
    }
    ?>
><?php 
    echo $desc;
    ?>
</option>
                <?php 
}