Format code, fix lang variable

1.10.x
Julio Montoya 10 years ago
parent 4f152ade52
commit 8948def44d
  1. 56
      main/social/skills_ranking.php

@ -1,5 +1,6 @@
<?php <?php
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
/** /**
* @package chamilo.social * @package chamilo.social
* @author Julio Montoya <gugli100@gmail.com> * @author Julio Montoya <gugli100@gmail.com>
@ -20,20 +21,56 @@ $url = api_get_path(WEB_AJAX_PATH).'model.ajax.php?a=get_user_skill_ranking';
//The order is important you need to check the the $column variable in the model.ajax.php file //The order is important you need to check the the $column variable in the model.ajax.php file
$columns = array( $columns = array(
get_lang('Photo'), get_lang('Photo'),
get_lang('Firstname'), get_lang('FirstName'),
get_lang('Lastname'), get_lang('LastName'),
get_lang('SkillsAcquired'), get_lang('SkillsAcquired'),
get_lang('CurrentlyLearning'), get_lang('CurrentlyLearning'),
get_lang('Rank') get_lang('Rank')
); );
$column_model = array( $column_model = array(
array('name'=>'photo', 'index'=>'photo', 'width'=>'10', 'align'=>'center', 'sortable' => 'false'), array(
array('name'=>'firstname', 'index'=>'firstname', 'width'=>'70', 'align'=>'left', 'sortable' => 'false'), 'name' => 'photo',
array('name'=>'lastname', 'index'=>'lastname', 'width'=>'70', 'align'=>'left', 'sortable' => 'false'), 'index' => 'photo',
array('name'=>'skills_acquired', 'index'=>'skills_acquired', 'width'=>'30 ', 'align'=>'left', 'sortable' => 'false'), 'width' => '10',
array('name'=>'currently_learning', 'index'=>'currently_learning', 'width'=>'30', 'align'=>'left', 'sortable' => 'false'), 'align' => 'center',
array('name'=>'rank', 'index'=>'rank', 'width'=>'30', 'align'=>'left', 'sortable' => 'false') 'sortable' => 'false',
),
array(
'name' => 'firstname',
'index' => 'firstname',
'width' => '70',
'align' => 'left',
'sortable' => 'false',
),
array(
'name' => 'lastname',
'index' => 'lastname',
'width' => '70',
'align' => 'left',
'sortable' => 'false',
),
array(
'name' => 'skills_acquired',
'index' => 'skills_acquired',
'width' => '30 ',
'align' => 'left',
'sortable' => 'false',
),
array(
'name' => 'currently_learning',
'index' => 'currently_learning',
'width' => '30',
'align' => 'left',
'sortable' => 'false',
),
array(
'name' => 'rank',
'index' => 'rank',
'width' => '30',
'align' => 'left',
'sortable' => 'false',
),
); );
//Autowidth //Autowidth
@ -58,9 +95,6 @@ $jqgrid = Display::grid_js(
$content = Display::grid_html('skill_ranking'); $content = Display::grid_html('skill_ranking');
$tpl = new Template(get_lang('Ranking')); $tpl = new Template(get_lang('Ranking'));
//$tpl->assign('actions', $actions);
//$tpl->assign('message', $message);
$tpl->assign('jqgrid_html', $jqgrid); $tpl->assign('jqgrid_html', $jqgrid);
$content .= $tpl->fetch('default/skill/skill_ranking.tpl'); $content .= $tpl->fetch('default/skill/skill_ranking.tpl');
$tpl->assign('content', $content); $tpl->assign('content', $content);

Loading…
Cancel
Save