public function render() { $list = new MediaList; $list->setHidden('id'); $list->setHidden('content_disposition'); $list->setHidden('InUse'); $list->render(); }
" /> <input type="submit" class="button" name="approve" value="<?php echo $translator->trans('Approve selected', array(), 'media_archive'); ?> " /> <input type="submit" class="button" name="disapprove" value="<?php echo $translator->trans('Disapprove selected', array(), 'media_archive'); ?> " /> <?php } ?> </fieldset> <?php $list = new MediaList(); $list->setColVis(TRUE); $list->setSearch(TRUE); $list->render(); ?> </div><!-- /#files --> </div><!-- /#archive --> <script type="text/javascript"> <!-- $(document).ready(function() { // tabs $('#archive').tabs() .css('border', 'none'); // delete button
<dl class="attachment"> <dt><?php echo $translator->trans('Type'); ?> :</dt> <dd><?php echo $attachment->getMimeType(); ?> </dd> <dt><?php echo $translator->trans('Size', array(), 'media_archive'); ?> :</dt> <dd><?php echo MediaList::FormatFileSize($attachment->getSizeInBytes()); ?> </dd> <?php if ($attachment->getHttpCharset()) { ?> <dt><?php echo $translator->trans('Charset', array(), 'media_archive'); ?> :</dt> <dd><?php echo $attachment->getHttpCharset(); ?> </dd> <?php
<?php /** * @copyright 2013 City of Bloomington, Indiana * @license http://www.gnu.org/licenses/agpl.txt GNU/AGPL, see LICENSE.txt * @author Cliff Ingham <*****@*****.**> */ include '../../../configuration.inc'; $list = new MediaList(); $list->find(); foreach ($list as $media) { $path = APPLICATION_HOME . "/data/media/{$media->getDirectory()}"; $old = "{$path}/{$media->getId()}.{$media->getExtension()}"; $new = "{$path}/{$media->getInternalFilename()}"; rename($old, $new); $media->save(); echo "{$old} -> {$new}\n"; }
<?php if (!$inArchive) { ?> </div> <div id="existing-file"> <form action="do_add_existing.php" method="POST"> <?php // add hiddens echo SecurityToken::formParameter(); foreach (array('f_language_selected', 'f_article_number') as $name) { echo '<input type="hidden" name="', $name; echo '" value="', $$name, '" />', "\n"; } // render list $list = new MediaList; $list->setColVis(FALSE) ->setHidden('content_disposition') ->setHidden('inUse') ->setClickable(FALSE) ->render(); ?> <div style="margin: 8px 0; text-align:center"> <input type="submit" class="button" value="<?php putGS('Attach'); ?>" /> </div> </form> </div>
</div> <div id="existing-file"> <form action="/<?php echo $ADMIN; ?> /articles/files/do_add_existing.php" method="POST"> <?php // add hiddens echo SecurityToken::formParameter(); foreach (array('f_language_selected', 'f_article_number') as $name) { echo '<input type="hidden" name="', $name; echo '" value="', ${$name}, '" />', "\n"; } // render list $list = new MediaList(); $list->setColVis(FALSE)->setHidden('content_disposition')->setHidden('inUse')->setClickable(FALSE)->render(); ?> <div style="margin: 8px 0; text-align:center"> <input type="submit" class="button" value="<?php echo $translator->trans('Attach'); ?> " /> </div> </form> </div> </div><!-- /#tabs --> <?php
<dl class="attachment"> <dt><?php putGS('Type'); ?> :</dt> <dd><?php echo $object->getMimeType(); ?> </dd> <dt><?php putGS('Size'); ?> :</dt> <dd><?php echo MediaList::FormatFileSize($object->getSizeInBytes()); ?> </dd> <?php if ($object->getCharset()) { ?> <dt><?php putGS('Charset'); ?> :</dt> <dd><?php echo $object->getCharset(); ?> </dd> <?php
<?php camp_html_display_msgs(); ?> <div class="wrapper"><div class="main-content-wrapper"> <h2><?php echo $object->getFileName(); ?></h2> <p class="dates"><?php putGS('Created'); ?>: <?php echo $object->getTimeCreated(); ?>, <?php putGS('Last modified'); ?>: <?php echo $object->getLastModified(); ?></p> <?php echo new MediaPlayer($object->getAttachmentUrl() . '?g_show_in_browser=1', $object->getMimeType()); ?> <dl class="attachment"> <dt><?php putGS('Type'); ?>:</dt> <dd><?php echo $object->getMimeType(); ?></dd> <dt><?php putGS('Size'); ?>:</dt> <dd><?php echo MediaList::FormatFileSize($object->getSizeInBytes()); ?></dd> <?php if ($object->getCharset()) { ?> <dt><?php putGS('Charset'); ?>:</dt> <dd><?php echo $object->getCharset(); ?></dd> <?php } ?> </dl> <form name="edit" method="POST" action="do_edit-attachment.php"> <?php echo SecurityToken::FormParameter(); ?> <input type="hidden" name="f_attachment_id" value="<?php echo $object->getAttachmentId(); ?>" /> <div class="ui-widget-content big-block block-shadow padded-strong"> <fieldset class="plain">