setTimeout(function(){ $( "#iframe" ).attr( "src", function ( i, val ) { return val; }); }, 2000); </script>'; if ($is_editor) { $tool_content .= action_bar(array( array('title' => $langSave, 'url' => "messageList.php?course=$course_code&store=true&".generate_csrf_token_link_parameter(), 'icon' => 'fa-plus-circle', 'level' => 'primary-label', 'button-class' => 'btn-success', 'link-attrs' => "target='messageList'" ), array('title' => $langWash, 'url' => "messageList.php?course=$course_code&reset=true&".generate_csrf_token_link_parameter(), 'icon' => 'fa-trash', 'level' => 'primary', 'link-attrs' => "target='messageList'" ) )); } $tool_content .= "<div class='alert alert-info'>$langTypeMessage</div> <div class='row'><div class='col-sm-12'><div class='form-wrapper'> <form name='chatForm' action='messageList.php' method='POST' target='messageList' onSubmit='return prepare_message();'><input type='hidden' name='course' value='$course_code'/> <fieldset> <div class='col-xs-12'> <div class='input-group'> <input type='text' name='msg' size='80' class='form-control'> <input type='hidden' name='chatLine'>
if ($noWeeklyMessage) { Session::Messages($langCourseWeeklyFormatNotice); } else { Session::Messages($langModifDone,'alert-success'); } redirect_to_home_page("modules/course_info/index.php?course=$course_code"); } } } else { warnCourseInvalidDepartment(); $action_bar_array0 = array( array('title' => $langBackupCourse, 'url' => "archive_course.php?course=$course_code&".generate_csrf_token_link_parameter(), 'icon' => 'fa-archive', 'level' => 'primary-label'), array('title' => $langBack, 'url' => "{$urlServer}courses/$course_code/index.php", 'icon' => 'fa-reply', 'level' => 'primary-label') ); // access control for when to display the link to clone course if (get_config('allow_teacher_clone_course') || $is_admin) { $action_bar_array0 = array_merge($action_bar_array0, array( array('title' => $langCloneCourse, 'url' => "clone_course.php?course=$course_code", 'icon' => 'fa-archive') ));
if($(this).val() == 1) { $('#image_field').removeClass('hidden'); } else { $('#image_field').addClass('hidden'); } }); }); </script>"; $layouts = array(1 => $langCourseLayout1, 2 => $langCourseLayout2, 3 => $langCourseLayout3); $description = $course->description; $layout = $course->home_layout; if (isset($course->course_image)) { $course_image = " <img src='{$urlAppend}courses/$course_code/image/".urlencode($course->course_image)."' style='max-height:100px;max-width:150px;'> <a class='btn btn-xs btn-danger' href='$_SERVER[SCRIPT_NAME]?delete_image=true&" . generate_csrf_token_link_parameter() . "'>$langDelete</a> <input type='hidden' name='course_image' value='".q($course->course_image)."'> "; } else { enableCheckFileSize(); $course_image = fileSizeHidenInput() . "<input type='file' name='course_image' id='course_image'>"; } $tool_content = action_bar(array( array( 'title' => $langBack, 'url' => $urlAppend."courses/".$course_code, 'icon' => 'fa-reply', 'level' => 'primary-label', )