Faculty of Sciences and Social Sciences HOPE Uploading Resources Stewart Blakeway FML 213

Slides:



Advertisements
Similar presentations
MY NCBI (module 4.5).
Advertisements

GALVESTON COUNTY, TX P-CARD TRAINING GALVESTON COUNTY.
2 To register for 1 st time – click “REGISTER NOW” If you are already registered: Login in the “Teachers” section - Enter your Username and Password.
Using…. EasyCBM Reasons to use EasyCBM
Sustainability Tracking, Assessment & Rating System Reporting Tool 101 stars.aashe.org.
Faculty of Sciences and Social Sciences HOPE Variables and Trace Tables Stewart Blakeway FML 213
Faculty of Sciences and Social Sciences HOPE Different Users and Uploading Files Stewart Blakeway FML 213
Faculty of Sciences and Social Sciences HOPE User Sessions & The Include Statement Stewart Blakeway FML 213
Faculty of Sciences and Social Sciences HOPE PHP & MySQL Stewart Blakeway FML 213
Faculty of Sciences and Social Sciences HOPE PHP – Working with Input Stewart Blakeway FML 213
Faculty of Sciences and Social Sciences HOPE Structured Problem Solving Data Structures 3 Stewart Blakeway FML
PHP Scripts HTML Forms Two-tier Software Architecture PHP Tools.
Creating a Dynamic Web Site Stewart Blakeway FML 208
Administrative Functions Certiport Offline Learning System 2.1 Administrative Functions © Certiport, Inc All Rights Reserved.
Uploading Files. Why? By giving a user the option to upload a file you are creating an interactive page You can enable users have a greater web experience.
Web-based Document Management System By Group 3 Xinyi Dong Matthew Downs Joshua Ferguson Sriram Gopinath Sayan Kole.
Health and Wellness for all Arizonans Bureau of EMS and Trauma System Secure, Encrypted, On-Line EMS Services System 2015 Training Programs System Instruction.
1 ThinkLink Learning Online User Manual for Predictive Assessment Series Go to www2.thinklinklearning.com/pas4mlwk. Click Educator Login. Your username.
Employee Self Service (ESS) Version Employee Self Service  access from any computer  view their elected withholding, earnings summary, check.
MySQL in PHP – Page 1 of 17CSCI 2910 – Client/Server-Side Programming CSCI 2910 Client/Server-Side Programming Topic: MySQL in PHP Reading: Williams &
INTERNET APPLICATION DEVELOPMENT For More visit:
Create an online booking system (login/registration)
Getting started on informaworld™ How do I register my institution with informaworld™? How is my institution’s online access activated? What do I do if.
Smart Data OnLine Training
1 PHP and MySQL. 2 Topics  Querying Data with PHP  User-Driven Querying  Writing Data with PHP and MySQL PHP and MySQL.
Integrating and managing your Engaging Networks data Top ten data features.
Creating a Web Site to Gather Data and Conduct Research.
ENTERING ELIGIBLE ENERGY RESOURCE APPLICATIONS IN DELAFILE Version 2.0 August 25, 2015.
PD-Online.ca How to use the online administration of Personality Dimensions®
Wiley eGrade. What is eGrade? Web-based software that enables instructors to automate the process of assigning and grading homework and quiz assignments.
IS 221: DATABASE ADMINISTRATION Lecture 6:Create Users & Manage Users. Information Systems Department 1.
LiveText is an… Online Work Environment and…YOUR Digital Notebook! No More Lost Paper Assignments!
Introduction to MySQL Lab no. 10 Advance Database Management System.
School of Computing and Information Systems CS 371 Web Application Programming PHP – Forms, Cookies, Sessions and Database.
SYST Web Technologies SYST Web Technologies Databases & MySQL.
INTERNET APPLICATION DEVELOPMENT Practical on Sessions.
SuccessMaker. Where are they? Math: Intranet On a server at Vanhoose Reading Web-based.
How to use TREx 1 Disclaimer: TREx under development, minor modifications may occur pending final release. Prepared for Education Service Center TREx Training.
1. Profile settings 2. Messaging system 3. Downloading files 4. Uploading files 5. Creating groups 6. Calendar events.
USNSCC Instructions for Test Admin View this manual using Microsoft’s Internet Explorer. May not be compatible with other browsers To download this document.
PHP+MySQL Integration. Connecting to databases One of the most common tasks when working with dynamic webpages is connecting to a database which holds.
CISC 3140 (CIS 20.2) Design & Implementation of Software Application II Instructor : M. Meyer Address: Course Page:
Intro to DatabasesClass 4 SQL REVIEW To talk to the database, you have to use SQL SQL is used by many databases, not just MySQL. SQL stands for Structured.
Open Source Server Side Scripting ECA 236 Open Source Server Side Scripting PHP & MySQL.
Login to a Database (from a Webpage), Inserting data into a database from a form, getting data from database and display on Webpage Done by: Mashail Alsolamy.
Reports and Learning Resources Module 5 1. SLMS Primary Administrator Training Module 5: Reports and Learning Resources 2.
Tracking Student Progress Online Paul Daniels Kochi University of Technology 2:15 – 3:00 PM.
PHP Database Processing CIS 1715 Web Technologies.
Dr. Venton Kepuska Donald L. Troup. Dynamic Web Calendar
Student Guide to WECSERF Online Learning Portal. Before you start – use your ticket
Alabama’s Professional Development Management System
AMSA SUPERVISOR EDUCATION PROGRAM ONLINE APPLICATION Helpful hints for Registered Users (Students) MRW Computer Systems, Inc. July 14, 2012MRW Computer.
NMD202 Web Scripting Week5. What we will cover today PHP & MySQL Displaying Dynamic Pages Exercises Modifying Data PHP Exercises Assignment 1.
Database Access Control IST2101. Why Implementing User Authentication? Remove a lot of redundancies in duplicate inputs of database information – Your.
Text Name School Name Rep name ISBN of bookstore bundle.
IS2803 Developing Multimedia Applications for Business (Part 2) Lecture 1: Introduction to IS2803 Rob Gleasure
Getting started with VendorVision Getting started with VendorVision Congratulations on using VendorVision! To get started, go to the VendorVision.
PaymentNet: Approvers Procurement Services Laurie Krauel.
UST Connect – Learn how to set up your profile and upload a resume. UST Connect is managed by UST Career Services. (713)
Bibliography and reference manager programs (EndNote, Mendeley, Zotero) 2015 Attila Skulteti
Fab25 User Training Cerium Labs LabCollector - LIMS Lynette Ballast.
American Diploma Project Administrative Site Training.
1.Switch on the computer and wait for loading. 2.Select the Windows 7 OS at the end of the list. 3.Click on the link ‘Administrator’ 4.Enter the administrator.
1.Switch on the computer and wait for loading. 2.Select the Windows 7 OS at the end of the list. 3.Click on the link ‘Administrator’ 4.Enter the administrator.
Meganne C. Bunce IN-TRAIN Administrator at
Architecture Review 10/11/2004
Journal of Mountain Science (JMS)
CCA Skill Certification
1- Open Cambridge LMS page:
Student Launch – KS5.
Presentation transcript:

Faculty of Sciences and Social Sciences HOPE Uploading Resources Stewart Blakeway FML 213

Faculty of Sciences and Social Sciences HOPE What we have done myPhpAdmin – Created a database – Tables – Fields Inserted Data – Registration (this could be a student or tutor) Selected Data – Used as part of the authentication process Session Variables – If the authentication process was successful The include statement – Makes our job much easier

Faculty of Sciences and Social Sciences HOPE What we have done so far Applying user levels to your current users table – Registering as a tutor – Registering as a student Dynamically displaying different menus/links dependent on the user – Authorising the tutor – Authorising the student Allowing a tutor to upload a list of students for registration

Faculty of Sciences and Social Sciences HOPE What we have covered Ace training requires a new system for students that enrol onto their course(s). There will typically be three methods of enrolment: from a list, by a tutor, or by a student. Students that register themselves require authorising by the tutor. Tutors are created by administrator(s) after the credentials of the tutor has been checked. To become a course tutor the individual will register as a tutor. The tutor will have the facility of uploading various resources, such as powerpoint presentations and documents. Once uploaded they should either: be made available to the student, not available or available within a specified date range. Satisfactory

Faculty of Sciences and Social Sciences HOPE What will we do today? Allow tutor to upload a resource – Make available – Make available given date – Close

Faculty of Sciences and Social Sciences HOPE Recap 1.Create a connection to the SQL Server $conn = mysql_connect (“localhost”, “root”, “root”); 2.Select the database mysql_select_db (“database”, $conn); 3.Construct the SQL statement $sql = (“what I want to do with the database”); 4.Execute the SQL mysql_query ($sql,$conn);

Faculty of Sciences and Social Sciences HOPE Our Database acetraining only accounts for students! What about tutors and administrators user userID userForename userSurname user userPassword userType userActive

Faculty of Sciences and Social Sciences HOPE We need to expand our database There may be many resources – Each tutor will have resources – Resources are made available or not This could be within a set period

Faculty of Sciences and Social Sciences HOPE Our Database acetraining We have not considered multiple courses in this implementation user userID userForename userSurname user userPassword userType userActive resource userID resourceName resourceLocation resourceStart resourceFinish

Faculty of Sciences and Social Sciences HOPE showTutorPage() function showTutorPage() { echo (" You are logged in as a tutor, what would you like to do? Show students waiting to be authorised for your course Enter student registration details manually Enrol students from a list "); } Upload Resource

Faculty of Sciences and Social Sciences HOPE uploadResource.php What is the criteria? – make available? from start date / finish date 1.Get Resource 2.Get Start Date (available from) 3.Get Finish Date (available until) 4.Construct SQL based on 1,2 and 3

Faculty of Sciences and Social Sciences HOPE getResource() 1,2 and 3 echo (" Choose a resource to upload: Resource Name Resource Available from / / (dd/mm/yyyy) Resource Available until / / (dd/mm/yyyy) "); Can you sketch out what would be displayed by the browser?

Faculty of Sciences and Social Sciences HOPE uploadFileandProcess() 4 $target_path = basename($_FILES['uploadedfile']['name']); if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) { echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded"; $conn = mysql_connect("localhost","root","root"); mysql_select_db("aceTraining",$conn); $userID = $_SESSION['userID']; $resourceLocation = basename($_FILES['uploadedfile']['name']); $resourceName = $_POST['resourceName']; $startDate = $_POST['s_yyyy']. "-". $_POST['s_mm']. "-". $_POST['s_dd']; $finishDate = $_POST['f_yyyy']. "-". $_POST['f_mm']. "-". $_POST['f_dd']; $sql = ("INSERT INTO resource (userID, resourceName, resourceLocation, resourceStart, resourceFinish) VALUES ('$_SESSION[userID]', '$resourceName', '$resourceLocation', '$startDate', '$finishDate')"); echo " ". $sql. " "; mysql_query($sql,$conn) or die(mysql_error()); } From the form Original Path name Path to temporary file on the server

Faculty of Sciences and Social Sciences HOPE What we have done Allowed the tutor to upload a resource – specified start date – specified finish date – specified resource location – specified resource name Next? – displaying available resources dependent on start and finish date

Faculty of Sciences and Social Sciences HOPE Assume student is logged in! display student page – we have prepared for this in login.php – function called showStudentPage() display resources available for download – ie, what the tutor has uploaded

Faculty of Sciences and Social Sciences HOPE showStudentPage() $currentDate = date('Ymd'); $conn = mysql_connect("localhost","root","root"); mysql_select_db("aceTraining",$conn); $sql = ("SELECT * FROM resource"); $records = mysql_query($sql,$conn) or die (mysql_error()); while ($currentResource = mysql_fetch_array($records)) { echo " "; if ((str_replace("-", "", $currentResource['resourceStart']) <= $currentDate) && (str_replace("-", "", $currentResource['resourceFinish']) >= $currentDate)) { echo (" ". " ". $currentResource['resourceName']. " "); } echo (" "); }

Faculty of Sciences and Social Sciences HOPE Satisfactory We have done enough to pass the webpage criteria of the assessment – don’t forget you also have a report – and a presentation – and an exam

Faculty of Sciences and Social Sciences HOPE Satisfactory Student and Tutor can register – tutor must authorise student, administrator must authorise tutor Student and Tutor can log in Tutor can – authorise pending students – enrol students from a list – upload resources (powerpoint, documents, pdf, etc) – resources can be made available within a given period Students can – view available resources within the given period

Faculty of Sciences and Social Sciences HOPE Considerations Tutors – we have not accounted for tutor(s) delivering multiple courses – we haven’t allowed for the tutor to change start and finish times (or to delete) of uploaded files – we don’t allow the tutor to structure resources (weeks, content type, file type) – Tutors can not change their details ( address, password) Students – we have not accounted for student(s) enrolled for a particular course (or multiple courses) – we have not facilitated the tracking of student progress – we don’t allow the student to change their details

Faculty of Sciences and Social Sciences HOPE Next? Example code is online Next week is a drop-in support session – students that can not get this working should come and speak with me as soon as possible

Faculty of Sciences and Social Sciences HOPE Any Questions? Remaining time is for student support