示例#1
0
 $class = strlen($lineName) > 512 || strlen($lineValue) > 2048 ? 'fpcm-ui-important-text' : '';
 ?>
             <tr>
                 <td>
                     <?php 
 fpcm\model\view\helper::textInput('langitems[' . $hash . '][name]', $class, $lineName, false, 512);
 ?>
                 </td>
                 <td>
                     <?php 
 fpcm\model\view\helper::textInput('langitems[' . $hash . '][value]', $class, str_replace(PHP_EOL, '\\n', $lineValue), false, 2048);
 ?>
                 </td>
                 <td class="fpcm-td-select-row fpcm-ui-center">
                     <?php 
 \fpcm\model\view\helper::checkbox('deleteitems[]', '', $hash, '', '', false);
 ?>
                 </td>
             </tr>
             <?php 
 $unique = uniqid();
 ?>
             <tr>
                 <td>
                     <?php 
 fpcm\model\view\helper::textInput('langitems[' . $unique . '][name]', '', '', false, 512, $FPCM_LANG->translate('NKORG_LANGEDITOR_EMPTYLINE'));
 ?>
                 </td>
                 <td>
                     <?php 
 fpcm\model\view\helper::textInput('langitems[' . $unique . '][value]', '', '', false, 2048, $FPCM_LANG->translate('NKORG_LANGEDITOR_EMPTYLINE'));
示例#2
0
            ?>
            <?php 
        } elseif ($options['type'] == 'select') {
            ?>
                <p><?php 
            print $options['description'];
            ?>
:</p>
                <?php 
            \fpcm\model\view\helper::select('userfields[' . $options['name'] . ']', $options['options'], $options['value'], $options['firstempty'], $options['firstenabled'], $options['readonly'], $options['class']);
            ?>
            <?php 
        } elseif ($options['type'] == 'checkbox') {
            ?>
                <?php 
            \fpcm\model\view\helper::checkbox('userfields[' . $options['name'] . ']', $options['class'], $options['value'], $options['description'], $options['id'], $options['selected'], $options['readonly']);
            ?>
            <?php 
        } elseif ($options['type'] == 'radio') {
            ?>
                <?php 
            \fpcm\model\view\helper::radio('userfields[' . $options['name'] . ']', $options['class'], $options['value'], $options['description'], $options['id'], $options['selected'], $options['readonly']);
            ?>
            <?php 
        } else {
            ?>
                <?php 
            \fpcm\model\view\helper::textInput('userfields[' . $options['name'] . ']', $options['class'], $options['value'], $options['readonly'], $options['lenght']);
            ?>
            <?php 
        }
示例#3
0
        <?php 
    $i = 1;
    ?>
        <tr><th class="fpcm-th-full">- <?php 
    print $sortLetter;
    ?>
 -</th></tr>
        <tr><td class="fpcm-ui-spacer"></td></tr>
        <tr>
            <td class="fpcm-ui-center">
                <div class="fpcm-ui-buttonset">
                <?php 
    foreach ($events as $key => $event) {
        ?>
                    <?php 
        \fpcm\model\view\helper::checkbox('nkorgmodulecreator[events][]', 'fpcm-nkorgmodulecreator-eventcheckboxes', $event, $event, md5($event), $event == 'acpConfig' ? true : false, $event == 'acpConfig' ? true : false);
        ?>
                    
        <?php 
        if ($i % 3 == 0) {
            ?>
                </div>
            </td>
        </tr>
        <tr>
            <td class="fpcm-ui-center">
                <div class="fpcm-ui-buttonset">
        <?php 
        }
        ?>
                <?php