Using Display::return_icon and using WEB_IMG_PATH see #6903

1.10.x
Julio Montoya 11 years ago
parent 2cd7fa0559
commit 4cf8abc3fe
  1. 9
      main/tracking/lp_results_by_user.php
  2. 4
      main/upload/form.scorm.php
  3. 15
      main/upload/upload.document.php
  4. 2
      main/upload/upload_ppt.php
  5. 10
      main/upload/upload_word.php
  6. 18
      main/user/class.php

@ -86,8 +86,10 @@ if (!$export_to_csv) {
echo '<div class="actions" style ="font-size:10pt;">';
if ($global) {
echo '<div style="float:right"> <a href="'.api_get_self().'?export=1&score='.$filter_score.'&exercise_id='.$exercise_id.'"><img align="absbottom" src="../img/csv.gif">&nbsp;'.get_lang('ExportAsCSV').'</a>' .
'<a href="javascript: void(0);" onclick="javascript: window.print()"><img align="absbottom" src="../img/printmgr.gif">&nbsp;'.get_lang('Print').'</a></div>';
echo '<div style="float:right"> <a href="'.api_get_self().'?export=1&score='.$filter_score.'&exercise_id='.$exercise_id.'">
'.Display::return_icon('csv.gif', get_lang('ExportAsCSV')).' &nbsp;'.get_lang('ExportAsCSV').'</a>' .
'<a href="javascript: void(0);" onclick="javascript: window.print()">
'.Display::return_icon('printmgr.gif', get_lang('Print')).' </a></div>';
$menu_items[] = '<a href="'.api_get_path(WEB_CODE_PATH).'mySpace/?view=teacher">'.get_lang('TeacherInterface').'</a>';
if (api_is_platform_admin()) {
@ -111,7 +113,8 @@ if (!$export_to_csv) {
<a href="courseLog.php?'.api_get_cidreq().'&studentlist=false">'.get_lang('CourseTracking').'</a>&nbsp;|&nbsp';
echo '<a href="courseLog.php?'.api_get_cidreq().'&studentlist=resources">'.get_lang('ResourcesTracking').'</a>';
echo ' | '.get_lang('ExamTracking').'';
echo '<a href="'.api_get_self().'?export=1&score='.$filter_score.'&exercise_id='.$exercise_id.'"><img align="absbottom" src="../img/excel.gif">&nbsp;'.get_lang('ExportAsXLS').'</a><br /><br />';
echo '<a href="'.api_get_self().'?export=1&score='.$filter_score.'&exercise_id='.$exercise_id.'">
'.Display::return_icon('excel.gif', get_lang('ExportAsXLS')).' </a><br /><br />';
}
echo '</div>';

@ -44,8 +44,8 @@ require_once api_get_path(LIBRARY_PATH).'specific_fields_manager.lib.php';
echo '<div class="actions">';
echo '<a href="../newscorm/lp_controller.php?cidReq='.$_course['sysCode'].'">'.Display::return_icon('back.png', get_lang('ReturnToLearningPaths'), '', ICON_SIZE_MEDIUM).'</a>';
echo '</div>';
$form = new FormValidator('', 'POST', 'upload.php', '', 'id="upload_form" enctype="multipart/form-data" style="background-image: url(\'../img/scorm.jpg\'); background-repeat: no-repeat; background-position: 620px;"');
//style="background-image: url(\'../img/scorm.jpg\'); background-repeat: no-repeat; background-position: 620px;"
$form = new FormValidator('', 'POST', 'upload.php', '', 'id="upload_form" enctype="multipart/form-data" ');
$form->addElement('header', '', $nameTools);
$form->addElement('hidden', 'curdirpath', $path);
$form->addElement('hidden', 'tool', $my_tool);

@ -178,21 +178,20 @@ if (isset($_GET['createdir'])) {
Display::display_normal_message($new_folder_text);
} else { //give them a link to create a directory
?>
<p><a href="<?php echo api_get_self(); ?>?path=<?php echo $path; ?>&amp;createdir=1"><img src="../img/new_folder.gif"
border="0" align="absmiddle"
alt=""/> <?php echo(get_lang(
'CreateDir'
));?></a></p>
<p>
<a href="<?php echo api_get_self(); ?>?path=<?php echo $path; ?>&amp;createdir=1">
<?php echo Display::return_icon('new_folder.gif').get_lang('CreateDir'); ?>
</a>
</p>
<?php
}
?>
<div id="folderselector">
<?php
<?php
//form to select directory
//$folders = DocumentManager::get_all_document_folders($_course,$to_group_id,$is_allowed_to_edit);
//echo(build_directory_selector($folders,$path,$group_properties['directory']));
?>
?>
</div>
<!-- start upload form -->

@ -94,7 +94,7 @@ $form->addElement('html', Display::return_message($message, 'info', false));
// build the form
$div_upload_limit = get_lang('UploadMaxSize').' : '.ini_get('post_max_size');
$form->addElement('file', 'user_file', array('<img src="../img/powerpoint_big.gif" />', $div_upload_limit));
$form->addElement('file', 'user_file', array(Display::return_icon('powerpoint_big.gif'), $div_upload_limit));
$form->addElement('checkbox', 'take_slide_name', '', get_lang('TakeSlideName'));
if (api_get_setting('search_enabled') == 'true') {
require_once(api_get_path(LIBRARY_PATH).'specific_fields_manager.lib.php');

@ -16,15 +16,12 @@ $language_file[] = "learnpath";
$language_file[] = "scormdocument";
// global settings initialisation
require_once "../inc/global.inc.php";
$form_style = '
<style>
.row {
width: 200px;
}
.convert_button{
background: url("../img/icons/22/learnpath.png") 0px 0px no-repeat;
padding: 2px 0px 2px 22px;
}
#dynamic_div_container{float:left;margin-right:10px;}
@ -98,9 +95,7 @@ $interbreadcrumb[] = array("url" => "../newscorm/lp_controller.php?action=list",
$nameTools = get_lang("WoogieConversionPowerPoint");
Display :: display_header($nameTools);
//echo '<img src="../img/mascot.png"><br />';
echo '<span style="color: #5577af; font-size: 16px; font-family: Arial; margin-left: 10px;">'.get_lang("WelcomeWoogieSubtitle").'</span><br>';
echo '<span style="color: #5577af; font-size: 16px; margin-left: 10px;">'.get_lang("WelcomeWoogieSubtitle").'</span><br>';
$message = get_lang("WelcomeWoogieConverter");
@ -168,7 +163,8 @@ $user_file_template =
EOT;
$renderer->setElementTemplate($user_file_template);
$form->addElement('file', 'user_file', '<img src="../img/word_big.gif" align="absbottom" />');
$form->addElement('file', 'user_file', Display::return_icon('word_big.gif'));
if (api_get_setting('search_enabled') == 'true') {
$form->addElement('checkbox', 'index_document', '', get_lang('SearchFeatureDoIndexDocument'));
$form->addElement('html', '<br />');

@ -36,7 +36,7 @@ $usergroup = new UserGroup();
if (api_is_allowed_to_edit()) {
echo '<div class="actions">';
if ($type == 'registered') {
echo '<a href="class.php?'.api_get_cidreq().'&type=not_registered">'.Display::return_icon('add.png', get_lang("AddClassesToACourse"), array(), ICON_SIZE_MEDIUM).'</a>';
echo '<a href="class.php?'.api_get_cidreq().'&type=not_registered">'.Display::return_icon('add.png', get_lang("AddClassesToACourse"), array(), ICON_SIZE_MEDIUM).'</a>';
} else {
echo '<a href="class.php?'.api_get_cidreq().'&type=registered">'.Display::return_icon('empty_evaluation.png', get_lang("Classes"), array(), ICON_SIZE_MEDIUM).'</a>';
}
@ -55,7 +55,7 @@ if (api_is_allowed_to_edit()) {
}
break;
case 'remove_class_from_course':
$id = $_GET['id'];
$id = $_GET['id'];
if (!empty($id)) {
$usergroup->unsubscribe_courses_from_usergroup($id, array(api_get_course_int_id()));
}
@ -72,8 +72,8 @@ $columns = array(get_lang('Name'), get_lang('Users'), get_lang('Actions'));
//Column config
$column_model = array(
array('name'=>'name', 'index'=>'name', 'width'=>'35', 'align'=>'left'),
array('name'=>'users', 'index'=>'users', 'width'=>'15', 'align'=>'left'),
array('name'=>'name', 'index'=>'name', 'width'=>'35', 'align'=>'left'),
array('name'=>'users', 'index'=>'users', 'width'=>'15', 'align'=>'left'),
array('name'=>'actions', 'index'=>'actions', 'width'=>'20', 'align'=>'left','sortable'=>'false'),
);
//Autowidth
@ -84,10 +84,10 @@ $extra_params['height'] = 'auto';
//With this function we can add actions to the jgrid
$action_links = 'function action_formatter (cellvalue, options, rowObject) {
return \''
.' <a href="class.php?action=add_class&id=\'+options.rowId+\'"><img src="../img/icons/22/user_to_class.png" title="'.get_lang('SubscribeUsersToClass').'"></a>'
.' <a onclick="javascript:if(!confirm('."\'".addslashes(api_htmlentities(get_lang("ConfirmYourChoice"),ENT_QUOTES))."\'".')) return false;" href="?action=delete&id=\'+options.rowId+\'"><img title="'.get_lang('Delete').'" src="../img/delete.png"></a>\';
}';
return \''
.' <a href="class.php?action=add_class&id=\'+options.rowId+\'"><img src="../img/icons/22/user_to_class.png" title="'.get_lang('SubscribeUsersToClass').'"></a>'
.' <a onclick="javascript:if(!confirm('."\'".addslashes(api_htmlentities(get_lang("ConfirmYourChoice"),ENT_QUOTES))."\'".')) return false;" href="?action=delete&id=\'+options.rowId+\'"><img title="'.get_lang('Delete').'" src="../img/delete.png"></a>\';
}';
?>
<script>
$(function() {
@ -99,4 +99,4 @@ $(function() {
</script>
<?php
$usergroup->display_teacher_view();
Display :: display_footer();
Display :: display_footer();

Loading…
Cancel
Save