parent
							
								
									97fb308583
								
							
						
					
					
						commit
						268040ff99
					
				@ -0,0 +1,37 @@ | 
				
			||||
<?php | 
				
			||||
/* For licensing terms, see /license.txt */ | 
				
			||||
/** | 
				
			||||
 * Show information about Mozilla OpenBadges | 
				
			||||
 * @author Angel Fernando Quiroz Campos <angel.quiroz@beeznest.com> | 
				
			||||
 * @package chamilo.admin.openbadges | 
				
			||||
 */ | 
				
			||||
$cidReset = true; | 
				
			||||
 | 
				
			||||
require_once '../../inc/global.inc.php'; | 
				
			||||
require_once '../../inc/lib/fileUpload.lib.php'; | 
				
			||||
 | 
				
			||||
$this_section = SECTION_PLATFORM_ADMIN; | 
				
			||||
 | 
				
			||||
$skillId = intval($_GET['id']); | 
				
			||||
 | 
				
			||||
$objSkill = new Skill(); | 
				
			||||
$skills = $objSkill->get_all(); | 
				
			||||
 | 
				
			||||
$interbreadcrumb = array( | 
				
			||||
    array( | 
				
			||||
        'url' => api_get_path(WEB_CODE_PATH) . 'admin/index.php', | 
				
			||||
        'name' => get_lang('Administration') | 
				
			||||
    ), | 
				
			||||
    array( | 
				
			||||
        'url' => api_get_path(WEB_CODE_PATH) . 'admin/openbadges/index.php', | 
				
			||||
        'name' => get_lang('OpenBadges') | 
				
			||||
    ) | 
				
			||||
); | 
				
			||||
 | 
				
			||||
$tpl = new Template('Skills'); | 
				
			||||
$tpl->assign('platformAdminEmail', get_setting('emailAdministrator')); | 
				
			||||
$tpl->assign('skills', $skills); | 
				
			||||
 | 
				
			||||
$contentTemplate = $tpl->get_template('openbadges/list.tpl'); | 
				
			||||
 | 
				
			||||
$tpl->display($contentTemplate); | 
				
			||||
@ -0,0 +1,56 @@ | 
				
			||||
{% extends "default/layout/main.tpl" %} | 
				
			||||
 | 
				
			||||
{% block body %} | 
				
			||||
    <div class="span12"> | 
				
			||||
        <h1 class="page-header">{{ 'Badges' | get_lang }}</h1> | 
				
			||||
        <ul class="nav nav-tabs"> | 
				
			||||
            <li> | 
				
			||||
                <a href="{{ _p.web_main }}admin/openbadges/index.php">{{ 'Home' | get_lang }}</a> | 
				
			||||
            </li> | 
				
			||||
            <li> | 
				
			||||
                <a href="{{ _p.web_main }}admin/openbadges/issuer.php">{{ 'IssuerInfo' | get_lang }}</a> | 
				
			||||
            </li> | 
				
			||||
            <li class="active"> | 
				
			||||
                <a href="{{ _p.web_main }}admin/openbadges/list.php">{{ 'Skills' | get_lang }}</a> | 
				
			||||
            </li> | 
				
			||||
        </ul> | 
				
			||||
        <div class="tab-content"> | 
				
			||||
            <div class="tab-pane active"> | 
				
			||||
                <table class="table table-bordered table-striped"> | 
				
			||||
                    <thead> | 
				
			||||
                        <tr> | 
				
			||||
                            <th>{{ 'Name' | get_lang }}</th> | 
				
			||||
                            <th>{{ 'Description' | get_lang }}</th> | 
				
			||||
                            <th>{{ 'Actions' | get_lang }}</th> | 
				
			||||
                        </tr> | 
				
			||||
                    </thead> | 
				
			||||
                    <tfoot> | 
				
			||||
                        <tr> | 
				
			||||
                            <th>{{ 'Name' | get_lang }}</th> | 
				
			||||
                            <th>{{ 'Description' | get_lang }}</th> | 
				
			||||
                            <th>{{ 'Actions' | get_lang }}</th> | 
				
			||||
                        </tr> | 
				
			||||
                    </tfoot> | 
				
			||||
                    <tbody> | 
				
			||||
                        {% for skill in skills %} | 
				
			||||
                            <tr> | 
				
			||||
                                <td> | 
				
			||||
                                    {% if skill.icon %} | 
				
			||||
                                        <img src="{{ [_p.web_main, skill.icon] | join('') }}" width="50" alt="{{ skill.name }}"> | 
				
			||||
                                    {% endif %} | 
				
			||||
                                    {{ skill.name }} | 
				
			||||
                                </td> | 
				
			||||
                                <td>{{ skill.description }}</td> | 
				
			||||
                                <td> | 
				
			||||
                                    <a href="{{ _p.web_main }}admin/openbadges/create.php?id={{ skill.id }}" title="{{ 'Edit' | get_lang }}"> | 
				
			||||
                                        <img src="{{ _p.web_img }}icons/22/edit.png" alt="{{ 'Edit' | get_lang }}"> | 
				
			||||
                                    </a> | 
				
			||||
                                </td> | 
				
			||||
                            </tr> | 
				
			||||
                        {% endfor %} | 
				
			||||
                    </tbody> | 
				
			||||
                </table> | 
				
			||||
            </div> | 
				
			||||
        </div> | 
				
			||||
    </div> | 
				
			||||
{% endblock %} | 
				
			||||
| 
		 Before Width: | Height: | Size: 7.5 KiB  | 
					Loading…
					
					
				
		Reference in new issue