コード例 #1
0
ファイル: series.php プロジェクト: kevinwojo/hubzero-cms
        // Initiate paging for children
        $pageNav = $this->pagination($ccount, $filters['start'], $filters['limit']);
        $pageNav->setAdditionalUrlParam('id', $this->model->resource->id);
        $pageNav->setAdditionalUrlParam('sortby', $filters['sortby']);
        echo $pageNav->render();
        ?>
				</div><!-- / .subject -->
				<div class="aside">
					<fieldset class="controls">
						<label for="sortby">
							<?php 
        echo Lang::txt('COM_RESOURCES_SORT_BY');
        ?>
:
							<?php 
        echo \Components\Resources\Helpers\Html::formSelect('sortby', $sortbys, $filters['sortby'], '');
        ?>
						</label>
						<p class="submit">
							<input type="submit" value="<?php 
        echo Lang::txt('COM_RESOURCES_GO');
        ?>
" />
						</p>
					</fieldset>
				</div><!-- / .aside -->
			</section><!-- / .main section -->
		</form>
	<?php 
    }
    // if ($this->tab == 'about' && $ccount > 0)
コード例 #2
0
     $html .= $lis;
     $html .= '</ul><input type="hidden" name="atg" id="atg" value="' . htmlentities($tg) . '" /><input type="hidden" name="d" id="d" value="' . $d . '" />';
     break;
 case 2:
     $tools = $this->bits['tools'];
     $typetitle = $this->bits['typetitle'];
     $type = $this->bits['type'];
     $rt = $this->bits['rt'];
     $params = $this->bits['params'];
     $filters = $this->bits['filters'];
     $sortbys = array('date' => Lang::txt('COM_RESOURCES_SORT_BY') . ' ' . Lang::txt('COM_RESOURCES_DATE'), 'title' => Lang::txt('COM_RESOURCES_SORT_BY') . ' ' . Lang::txt('COM_RESOURCES_TITLE'), 'ranking' => Lang::txt('COM_RESOURCES_SORT_BY') . ' ' . Lang::txt('COM_RESOURCES_RANKING'));
     if ($type == 7) {
         $sortbys['users'] = Lang::txt('COM_RESOURCES_SORT_BY') . ' ' . Lang::txt('COM_RESOURCES_USERS');
         $sortbys['jobs'] = Lang::txt('COM_RESOURCES_SORT_BY') . ' ' . Lang::txt('COM_RESOURCES_JOBS');
     }
     $html .= '<h3>' . Lang::txt('COM_RESOURCES') . ' ' . \Components\Resources\Helpers\Html::formSelect('sortby', $sortbys, $this->bits['sortby'], '" onchange="javascript:HUB.TagBrowser.changeSort();"') . '</h3>';
     $html .= '<ul id="ulitems">';
     if ($tools && count($tools) > 0) {
         //$database = App::get('db');
         foreach ($tools as $tool) {
             $tool->title = \Hubzero\Utility\String::truncate($tool->title, 40);
             $supported = null;
             if ($this->bits['supportedtag']) {
                 if (in_array($tool->id, $this->bits['supportedtagusage'])) {
                     $supported = true;
                 }
                 //$supported = $rt->checkTagUsage( $this->bits['supportedtag'], $tool->id );
             }
             $html .= '<li ';
             if ($this->bits['supportedtag'] && ($this->bits['tag'] == $this->bits['supportedtag'] || $supported)) {
                 $html .= 'class="supported" ';