Example #1
0
                    <tr>
                        <?
                        echo $form->hiddenField($file, '[' . $i . ']extension');
                        echo $form->hiddenField($file, '[' . $i . ']id');
                        echo $form->hiddenField($file, '[' . $i . ']dataset_id');
                        echo $form->hiddenField($file, '[' . $i . ']location');
                        echo $form->hiddenField($file, '[' . $i . ']extension');
                        ?>

                        <td class="left"><?php echo $file->name ?></td>
                        <td class="left"><?= CHtml::activeDropDownList($file, '[' . $i . ']code', $samples_data, array('class' => 'span2')); ?></td>

                        <td class="left"><?= CHtml::activeDropDownList($file, '[' . $i . ']type_id', CHtml::listData(FileType::model()->findAll(), 'id', 'name'), array('class' => 'span2')); ?></td>

                        <td> <?= CHtml::activeDropDownList($file, '[' . $i . ']format_id', CHtml::listData(FileFormat::model()->findAll(), 'id', 'name'), array('class' => 'autowidth')); ?></td>
                        <td><span style="display:none"><?= File::staticGetSizeType($file->size) . ' ' . strlen($file->size) . ' ' . $file->size ?></span><?= MyHtml::encode(File::staticBytesToSize($file->size)) ?></td>

                        <td><?php echo $form->textArea($file, '[' . $i . ']description', array('rows' => 3, 'cols' => 30, 'style' => 'resize:none')); ?></td>

                        <td> <?php echo CHtml::submitButton("Update", array('class' => 'update btn', 'name' => $i)); ?> </td>
                    </tr>

                    <?
                    $i++;
                }
                ?>

            </table>
        </div>
        <div class="span12" style="text-align:center">
            <?php
Example #2
0
            ?>
            <div class="row file-container">
                <div class="span1 logo-container-file"><img src="/images/icons/f-new-icon.png"> </div>
                <div class="span3 file-name"><a href="<?php 
            echo $file->location;
            ?>
"><?php 
            echo strlen($file->name) > 20 ? substr($file->name, 0, 20) . '...' : $file->name;
            ?>
</a></div>
                <div class="span2 file-type"><?php 
            echo $file->type->name;
            ?>
</div>
                <div class="span2 file-size"><?php 
            echo MyHtml::encode(File::staticBytesToSize($file->size));
            ?>
</div>
                <div class="span1 file-checkbox"><input type="checkbox" ></div>
            </div>
            <?php 
        }
    }
    ?>
	</div>
		
	<div style="clear:both;"></div>	
	<br/>
	<?php 
}
?>