echo Lang::txt('COM_BILLBOARDS_FIELD_NAME'); ?> :</label><br /> <input type="text" name="billboard[name]" id="billboardname" value="<?php echo $this->escape(stripslashes($this->row->name)); ?> " /> </div> <div class="input-wrap"> <label for="billboardcollection"><?php echo Lang::txt('COM_BILLBOARDS_FIELD_COLLECTION'); ?> :</label><br /> <select name="billboard[collection_id]" id="billboardcollection"> <?php $collections = Collection::all()->rows(); ?> <?php if ($collections->count() > 0) { ?> <?php foreach ($collections as $collection) { ?> <option value="<?php echo $collection->id; ?> "<?php echo $collection->id == $this->row->collection_id ? ' selected="selected"' : ''; ?> > <?php
/** * Browse billboards collections (collections are used to display multiple billboards via mod_billboards) * * @return void */ public function displayTask() { $this->view->rows = Collection::all()->paginated()->ordered(); $this->view->display(); }