<?php
/*
* Include the main configuration file.
*/
require_once("config.php");
// Main array. Each element has six parts.
// stepnum => The current step number
// completion => A decimal indicating the amount of time spent on this step
// title => The title of this step
// teachertitle => The title of this step for teachers
// links => An array of questions and page anchors pointing to them
// teacherlinks => Links and information for teachers in this step
// image => An image file for this step
// action => The goal or action associated with this step
// teacheraction => The goal for teachers associated with this step
//This array only gets loaded if the form has been submitted...
//if (isset($_POST))
//if (isset($format))
//{
// BEGIN ARRAY
$arr_instructions = Array(
// full urls here make the links active in Outlook if the schedule is emailed
//Step 1
"step1" => Array(
"stepnum" => 1,
"completion" => $STEP_1_PERCENT,
"title" => "Question",
"teachertitle" => "Preparation",
"links" => Array(
Array("anchor" => "", "question" => "What do you know about your assignment?"),
Array("anchor" => "#know", "question" => "What do you know about your topic?"),
Array("anchor" => "#want", "question" => "What do you want to know?"),
Array("anchor" => "#focus", "question" => "What's the question or problem you will focus on?")
),
"teacherlinks" => Array (
Array("anchor" => "", "question" => "About the $CALC_TITLE"),
Array("anchor" => "#learn", "question" => "What do you want them to learn?"),
Array("anchor" => "#insturctions", "question" => "What instructions have you prepared for your student?"),
Array("anchor" => "#move", "question" => "How do you get the student to move from a topic to a question?")
),
"image" => "clip_image001.gif",
"action" => "Write a specific research question or hypothesis.",
"teacheraction" => "Write guidelines and draft <a href=\"docs/research_process_rubric.pdf\">rubric</a> for the evaluation of the project. Reserve labs and ensure access to necessary software and hardware.<br /><br /> Review each student's research question or tentative hypothesis."
),
//Step 2
"step2" => Array(
"stepnum" => 2,
"completion" => $STEP_2_PERCENT,
"title" => "Gather",
"teachertitle" => "The search proces",
"links" => Array(
Array("anchor" => "", "question" => "About this step"),
Array("anchor" => "#look", "question" => "Where will you look for information?"),
Array("anchor" => "#searchtools", "question" => "What search tools will you use to find the best information to answer your question?"),
Array("anchor" => "#key", "question" => "What keywords will you use?"),
Array("anchor" => "#best", "question" => "How will you identify the best sources?"),
Array("anchor" => "#record", "question" => "How will you record what you find?"),
Array("anchor" => "#credit", "question" => "How will you give credit to your sources?")
),
"teacherlinks" => Array (
Array("anchor" => "", "question" => "About this step"),
Array("anchor" => "#resources", "question" => "How will you introduce your students to information resources?"),
Array("anchor" => "#tools", "question" => "What tools will you require your students to use in their information search?"),
Array("anchor" => "#keywords", "question" => "How will you guide your student to select appropriate keywords?"),
Array("anchor" => "#evaluate", "question" => "How will you advise your student on evaluation of resources?"),
Array("anchor" => "#notes", "question" => "How will instruct your students in note-taking?"),
Array("anchor" => "#bibliography", "question" => "How will you instruct your students to format a bibliography?")
),
"image" => "clip_image002.gif",
"action" => "Create an annotated bibliography and record notes from sources.",
"teacheraction" => "Review each students notes and draft bibliography."
),
//Step 3
"step3" => Array(
"stepnum" => 3,
"completion" => $STEP_3_PERCENT,
"title" => "Conclude",
"links" => Array(
Array("anchor" => "", "question" => "What did you learn from reading, listening, and viewing?"),
Array("anchor" => "#organize", "question" => "How will you organize the information you found to answer your question or defend your hypothesis?")
),
"teacherlinks" => Array (
Array("anchor" => "", "question" => "About this step"),
Array("anchor" => "#thinking", "question" => "How will you encourage creative and critical thinking as students consider their learning and draw conclusions?"),
Array("anchor" => "#organizing", "question" => "How will you introduce you students to organizing information to support their conclusion? ")
),
"image" => "clip_image003.gif",
"action" => "Confirm thesis and outline main points.",
"teacheraction" => "Review thesis statements and outline"
),
//Step 4
"step4" => Array(
"stepnum" => 4,
"completion" => $STEP_4_PERCENT,
"title" => "Communicate",
"links" => NULL,
"teacherlinks" => NULL,
"image" => "clip_image004.gif",
"action" => NULL,
"teacheraction" => NULL
),
//Step 5
"step5" => Array(
"stepnum" => 5,
"completion" => $STEP_5_PERCENT,
"title" => "Evaluate",
"links" => Array(
Array("anchor" => "", "question" => "How did you do?"),
Array("anchor" => "#improve", "question" => "How can you improve next time?")
),
"teacherlinks" => Array (
Array("anchor" => "", "question" => "About this step"),
Array("anchor" => "#do", "question" => "How did your student do?"),
Array("anchor" => "#do", "question" => "How can your student improve next time?")
),
"image" => "clip_image005.gif",
"action" => "Complete evaluation of process and product",
"teacheraction" => "Review the Evaluation Rubric with your students."
)
);
// END ARRAY
// Fill in Step 4 based on the requested format.
//switch ($_POST['format'])
switch (strtoupper($format))
{
// Slides step 4
case "SLIDES":
$arr_instructions['step4']['links'] = Array (
Array("anchor" => "", "question" => "Oral presentation with slides"),
Array("anchor" => "#storyboard", "question" => "Storyboard"),
Array("anchor" => "#visuals", "question" => "Create visuals"),
Array("anchor" => "#slides", "question" => "Create slides"),
Array("anchor" => "#rehearse", "question" => "Rehearse"),
Array("anchor" => "#present", "question" => "Present")
);
$arr_instructions['step4']['teacherlinks'] = Array (
Array("anchor" => "", "question" => "About this step"),
Array("anchor" => "#teacherstoryboard", "question" => "Storyboard"),
Array("anchor" => "#teachervisuals", "question" => "Visuals"),
Array("anchor" => "#teacherslides", "question" => "Slides"),
Array("anchor" => "#teacherrehearse", "question" => "Rehearse"),
Array("anchor" => "#teacherpresent", "question" => "Present")
);
$arr_instructions['step4']['action'] = "Prepare final presentation";
$arr_instructions['step4']['teacheraction'] = "Prepare final presentation";
break;
case "VIDEO":
// Video step 4
$arr_instructions['step4']['links'] = Array (
Array("anchor" => "", "question" => "Documentary Video"),
Array("anchor" => "#storyboard", "question" => "Create a storyboard"),
Array("anchor" => "#shot list", "question" => "Write a script and shot list"),
Array("anchor" => "#visuals", "question" => "Create visuals"),
Array("anchor" => "#rehearse", "question" => "Rehearse and shoot"),
Array("anchor" => "#edit", "question" => "Edit"),
Array("anchor" => "#preview", "question" => "Preview"),
Array("anchor" => "#export", "question" => "Export")
);
$arr_instructions['step4']['teacherlinks'] = Array (
Array("anchor" => "", "question" => "About this step"),
Array("anchor" => "#teacherstoryboard", "question" => "Create a storyboard"),
Array("anchor" => "#teachershotlist", "question" => "Write a script and shot list"),
Array("anchor" => "#teachervisuals", "question" => "Create visuals"),
Array("anchor" => "#rehearse", "question" => "Rehearse and shoot"),
Array("anchor" => "#teacheredit", "question" => "Edit"),
Array("anchor" => "#teacherpreview", "question" => "Preview"),
Array("anchor" => "#teacherexport", "question" => "Export")
);
$arr_instructions['step4']['action'] = "Prepare final video";
$arr_instructions['step4']['teacheraction'] = "Prepare final video";
break;
// Essay step 4
case "ESSAY": // Default to essay...
default:
$arr_instructions['step4']['links'] = Array (
Array("anchor" => "", "question" => "Written Essay"),
Array("anchor" => "#draft", "question" => "Draft text and create visuals"),
Array("anchor" => "#revise", "question" => "Revise text and insert visuals"),
Array("anchor" => "#edit", "question" => "Edit"),
Array("anchor" => "#final", "question" => "Print final paper")
);
$arr_instructions['step4']['teacherlinks'] = Array (
Array("anchor" => "", "question" => "About this step"),
Array("anchor" => "#teacherdraft", "question" => "Draft text and create visuals"),
Array("anchor" => "#teacherrevise", "question" => "Revise text and insert visuals"),
Array("anchor" => "#teacheredit", "question" => "Edit"),
Array("anchor" => "#teacherfinal", "question" => "Print final paper")
);
$arr_instructions['step4']['action'] = "Prepare final essay";
$arr_instructions['step4']['teacheraction'] = "Prepare final essay";
break;
}
//} // if (isset($_POST))
// SET UP THE TIMES
if (isset($monthone) && isset($dayone) && isset($yearone))
{
$date1 = $monthone."/".$dayone."/".$yearone;
$time1 = strtotime($date1) + 43200;
}
if (isset($monthtwo) && isset($daytwo) && isset($yeartwo))
{
$date2 = $monthtwo."/".$daytwo."/".$yeartwo;
$time2 = strtotime($date2);
}
//if (isset($_POST['format']))
if (!empty($format))
{
$instructions = $arr_instructions;
}
if (isset($time1) && isset($time2))
{
$days = days_between($time1, $time2);
$dates = out_of_time($time1, $time2, $instructions);
}
?>