コード例 #1
0
ファイル: copyitems.php プロジェクト: ericvanboven/IMathAS
		<input type=checkbox name="copygbsetup" value="1"/></td></tr>
	<tr><td class="r">Set all copied items as hidden to students?</td><td><input type="checkbox" name="copyhidden" value="1"/></td></tr>
	<tr><td class="r">Copy offline grade items?</td><td> <input type=checkbox name="copyoffline"  value="1"/></td></tr>
	<tr><td class="r">Remove any withdrawn questions from assessments?</td><td> <input type=checkbox name="removewithdrawn"  value="1" checked="checked"/></td></tr>
	<tr><td class="r">Use any suggested replacements for old questions?</td><td> <input type=checkbox name="usereplaceby"  value="1" checked="checked"/></td></tr>
	<tr><td class="r">Copy rubrics? </td><td><input type=checkbox name="copyrubrics"  value="1" checked="checked"/></td></tr>
	<tr><td class="r">Copy outcomes? </td><td><input type=checkbox name="copyoutcomes"  value="1" /></td></tr>
	<tr><td class="r">Select calendar items to copy?</td><td> <input type=checkbox name="selectcalitems"  value="1"/></td></tr>
	
	<tr><td class="r">Copy "display at top" instructor forum posts? </td><td><input type=checkbox name="copystickyposts"  value="1" checked="checked"/></td></tr>
	
	<tr><td class="r">Append text to titles?</td><td> <input type="text" name="append"></td></tr>
	<tr><td class="r">Add to block:</td><td>

<?php 
            writeHtmlSelect("addto", $page_blockSelect['val'], $page_blockSelect['label'], $selectedVal = null, $defaultLabel = "Main Course Page", $defaultVal = "none", $actions = null);
            ?>
		
		
	</td></tr>
	</tbody>
	</table>
	</fieldset>
	</div>
	<p><input type=submit value="Copy Items"></p>
	</form>
<?php 
        } else {
            if (isset($_GET['loadothers'])) {
                //loading others subblock
                if ($page_hasGroups) {
コード例 #2
0
ファイル: addblock.php プロジェクト: ericvanboven/IMathAS
    ?>
 />
	</span><br class=form />
	<span class=form>Block colors:</span>
	<span class=formright>
	<input type=radio name="colors" value="def" <?php 
    writeHtmlChecked($usedef, 1);
    ?>
 />Use defaults<br/>
	<input type=radio name="colors" value="copy" <?php 
    writeHtmlChecked($usedef, 2);
    ?>
 />Copy colors from block: 
	
	<?php 
    writeHtmlSelect("copycolors", $existBlocksVals, $existBlocksLabels);
    ?>

	<br />&nbsp;<br/>
	<input type=radio name="colors" id="colorcustom" value="custom" <?php 
    if ($usedef == 0) {
        echo "CHECKED";
    }
    ?>
 />Use custom:
	<table style="display: inline; border-collapse: collapse; margin-left: 15px;">
		<tr>
			<td id="ex1" style="border: 1px solid #000;background-color:
			<?php 
    echo $titlebg;
    ?>
コード例 #3
0
ファイル: addwiki.php プロジェクト: ericvanboven/IMathAS
"> 
			<a href="#" onClick="displayDatePicker('edate', this, 'sdate', 'start date'); return false">
			<img src="../img/cal.gif" alt="Calendar"/></A>
			at <input type=text size=10 name=etime value="<?php 
        echo $etime;
        ?>
">
		</span><BR class=form>	
		</div>
		<span class=form>Group wiki?</span><span class=formright>
<?php 
        if ($started) {
            writeHtmlSelect("ignoregroupsetid", $page_groupSelect['val'], $page_groupSelect['label'], $line['groupsetid'], "Not group wiki", 0, $started ? 'disabled="disabled"' : '');
            echo '<input type="hidden" name="groupsetid" value="' . $line['groupsetid'] . '" />';
        } else {
            writeHtmlSelect("groupsetid", $page_groupSelect['val'], $page_groupSelect['label'], $line['groupsetid'], "Not group wiki", 0);
        }
        ?>
		</span><br class="form"/>
		
		<span class=form>Students can edit:</span>
		<span class=formright>
			<input type=radio name="rdatetype" value="Always" <?php 
        if ($revisedate == 2000000000) {
            echo "checked=1";
        }
        ?>
/>Always<br/>
			<input type=radio name="rdatetype" value="Never" <?php 
        if ($revisedate == 0) {
            echo "checked=1";
コード例 #4
0
ファイル: addgrades.php プロジェクト: ericvanboven/IMathAS
     echo "checked=1";
 }
 echo ' /> Don\'t count in grade total<br/><input type=radio name="cntingb" value="2" ';
 if ($cntingb == 2) {
     echo "checked=1";
 }
 echo ' /> Count as Extra Credit</span><br class=form />';
 if (!isset($CFG['GEN']['allowinstraddtutors']) || $CFG['GEN']['allowinstraddtutors'] == true) {
     $page_tutorSelect['label'] = array("No access", "View Scores", "View and Edit Scores");
     $page_tutorSelect['val'] = array(2, 0, 1);
     echo '<span class="form">Tutor Access:</span> <span class="formright">';
     writeHtmlSelect("tutoredit", $page_tutorSelect['val'], $page_tutorSelect['label'], $tutoredit);
     echo '</span><br class="form"/>';
 }
 echo '<span class=form>Use Scoring Rubric</span><span class=formright>';
 writeHtmlSelect('rubric', $rubric_vals, $rubric_names, $rubric);
 echo " <a href=\"addrubric.php?cid={$cid}&amp;id=new&amp;from=addg&amp;gbitem={$_GET['gbitem']}\">Add new rubric</a> ";
 echo "| <a href=\"addrubric.php?cid={$cid}&amp;from=addg&amp;gbitem={$_GET['gbitem']}\">Edit rubrics</a> ";
 echo '</span><br class="form"/>';
 if (count($outcomes) > 0) {
     echo '<span class="form">Associate Outcomes:</span></span class="formright">';
     writeHtmlMultiSelect('outcomes', $outcomes, $outcomenames, $gradeoutcomes, 'Select an outcome...');
     echo '</span><br class="form"/>';
 }
 if ($_GET['gbitem'] != 'new') {
     echo "<br class=form /><div class=\"submit\"><input type=submit value=\"Submit\"/> <a href=\"addgrades.php?stu={$_GET['stu']}&gbmode={$_GET['gbmode']}&cid={$cid}&del={$_GET['gbitem']}\">Delete Item</a> </div><br class=form />";
 } else {
     echo "<span class=form>Upload grades?</span><span class=formright><input type=checkbox name=\"doupload\" /> <input type=submit value=\"Submit\"/></span><br class=form />";
 }
 if ($_GET['gbitem'] == 'new') {
     echo '<span class="form">Assessment snapshot?</span><span class="formright">';
コード例 #5
0
ファイル: chgoffline.php プロジェクト: ericvanboven/IMathAS
<tr>
	<td><input type="checkbox" name="chggbcat" /></td>
	<td class="r">Gradebook category: </td>
	<td>
<?php 
writeHtmlSelect("gbcat", $page_gbcatSelect['val'], $page_gbcatSelect['label'], null, "Default", 0, " id=gbcat");
?>

	</td>
</tr>
<tr class="coptr">
	<td><input type="checkbox" name="chgtutoredit"/></td>
	<td class="r">Tutor Access: </td>
	<td>
<?php 
$page_tutorSelect['label'] = array("No access", "View Scores", "View and Edit Scores");
$page_tutorSelect['val'] = array(2, 0, 1);
writeHtmlSelect("tutoredit", $page_tutorSelect['val'], $page_tutorSelect['label'], $line['tutoredit']);
?>
	</td>
</tr>
</tbody>
</table>
</fieldset>
<div class="submit"><input type="submit" name="submit" value="<?php 
echo _('Apply Changes');
?>
" /></div>
</form>
<?php 
require "../footer.php";
コード例 #6
0
ファイル: manageqset.php プロジェクト: ericvanboven/IMathAS
		</p>
<?php 
                            } else {
                                if (isset($_GET['transfer'])) {
                                    ?>
		<form method=post action="manageqset.php?cid=<?php 
                                    echo $cid;
                                    ?>
&transfer=<?php 
                                    echo $_GET['transfer'];
                                    ?>
">
			Transfer to: 
		
			<?php 
                                    writeHtmlSelect("newowner", $page_transferUserList['val'], $page_transferUserList['label']);
                                    ?>

			<p>
				<input type=submit value="Transfer">
				<input type=button value="Nevermind" class="secondarybtn" onclick="window.location='manageqset.php?cid=<?php 
                                    echo $cid;
                                    ?>
'">
			</p>
		</form>
<?php 
                                } else {
                                    //DEFAULT DISPLAY
                                    echo $page_adminMsg;
                                    echo "<form method=post action=\"manageqset.php?cid={$cid}\">\n";
コード例 #7
0
ファイル: chgforums.php プロジェクト: ericvanboven/IMathAS
<tr class="coptr">
	<td><input type="checkbox" name="chgcntingb" class="chgbox"/></td>
	<td class="r">Count: </td>
	<td><input name="cntingb" value="0" checked="checked" type="radio"> No<br/>
	<input name="cntingb" value="1" type="radio"> Yes<br/>
	<input name="cntingb" value="4" type="radio"> Yes, but hide from students for now<br/>
	<input name="cntingb" value="2" type="radio"> Yes, as extra credit<br/>
	If yes, for: <input type=text size=4 name="points" value=""/> points (leave blank to not change)
	</td>
</tr>
<tr class="coptr">
	<td><input type="checkbox" name="chggbcat" class="chgbox"/></td>
	<td class="r">Gradebook category: </td>
	<td>
<?php 
writeHtmlSelect("gbcat", $page_gbcatSelect['val'], $page_gbcatSelect['label'], null, "Default", 0, " id=gbcat");
?>
	</td>
</tr>
<tr class="coptr">
	<td><input type="checkbox" name="chgforumtype" class="chgbox"/></td>
	<td class="r">Forum Type: </td>
	<td>
		<input type=radio name="forumtype" value="0" checked="checked"/>Regular forum<br/>
		<input type=radio name="forumtype" value="1"/>File sharing forum
	</td>
</tr>
<tr class="coptr">
	<td><input type="checkbox" name="chgtaglist" class="chgbox"/></td>
	<td class="r">Categorize posts?: </td>
	<td>
コード例 #8
0
ファイル: modquestion.php プロジェクト: ericvanboven/IMathAS
    if ($line['showhints'] == 1) {
        echo 'selected="1"';
    }
    ?>
>No</option>
     <option value="2" <?php 
    if ($line['showhints'] == 2) {
        echo 'selected="1"';
    }
    ?>
>Yes</option>
    </select></span><br class="form"/>
    
<span class=form>Use Scoring Rubric</span><span class=formright>
<?php 
    writeHtmlSelect('rubric', $rubric_vals, $rubric_names, $line['rubric']);
    echo " <a href=\"addrubric.php?cid={$cid}&amp;id=new&amp;from=modq&amp;aid={$aid}&amp;qid={$_GET['id']}\">Add new rubric</a> ";
    echo "| <a href=\"addrubric.php?cid={$cid}&amp;from=modq&amp;aid={$aid}&amp;qid={$_GET['id']}\">Edit rubrics</a> ";
    ?>
    </span><br class="form"/>
<?php 
    if (isset($_GET['qsetid'])) {
        //adding new question
        echo "<span class=form>Number of copies of question to add:</span><span class=formright><input type=text size=4 name=copies value=\"1\"/></span><br class=form />";
    } else {
        if (!$beentaken) {
            echo "<span class=form>Number, if any, of additional copies to add to assessment:</span><span class=formright><input type=text size=4 name=copies value=\"0\"/></span><br class=form />";
        }
    }
    if ($beentaken) {
        echo '<span class="form"><a href="#" onclick="$(this).hide();$(\'#advanced\').show();return false">Advanced</a></span><br class="form"/>';
コード例 #9
0
ファイル: managelibs.php プロジェクト: ericvanboven/IMathAS
	<form method=post action="managelibs.php?cid=<?php 
                                echo $cid;
                                ?>
&modify=<?php 
                                echo $_GET['modify'];
                                ?>
">
		<span class=form>Library Name:</span>
		<span class=formright><input type=text name="name" value="<?php 
                                echo $name;
                                ?>
" size=20></span><br class=form>
		<span class=form>Rights: </span>
		<span class=formright>
			<?php 
                                writeHtmlSelect("rights", $page_libRights['val'], $page_libRights['label'], $rights, $defaultLabel = null, $defaultVal = null, $actions = null);
                                ?>
		</span><br class=form>
		
		<span class=form>Sort order: </span>
		<span class=formright>
			<input type="radio" name="sortorder" value="0" <?php 
                                writeHtmlChecked($sortorder, 0);
                                ?>
 />Creation date<br/>
			<input type="radio" name="sortorder" value="1" <?php 
                                writeHtmlChecked($sortorder, 1);
                                ?>
 />Alphabetical
		</span><br class=form>
		
コード例 #10
0
ファイル: admin.php プロジェクト: ericvanboven/IMathAS
				<td class=c><a href="forms.php?action=deladmin&id=<?php 
            echo $page_userDataId[$i];
            ?>
">Delete</a></td>
			</tr>
<?php 
        }
        ?>
		</tbody>
		</table>
		<script type="text/javascript">
		initSortTable('myTable',Array('S','S','S','S',false,false,false),true);
		</script>
		
		<input type=button value="Add New User" onclick="window.location='forms.php?action=newadmin'">

<?php 
        if ($myrights == 100) {
            writeHtmlSelect("selgrpid", $page_userSelectVal, $page_userSelectLabel, $showusers, null, null, "onchange=\"showgroupusers()\"");
        }
        ?>
		<p>Passwords reset to: password</p>
	</div>

<?php 
    }
}
require "../footer.php";
?>

 
コード例 #11
0
ファイル: addrubric.php プロジェクト: ericvanboven/IMathAS
     echo '</p>';
 } else {
     //adding/editing a rubric
     /*  Rubric Types
      *   1: score breakdown (record score and feedback)
      *   0: score breakdown (record score)
      *   3: score total (record score and feedback)
      *   4: score total (record score only)
      *   2: record feedback only (checkboxes)
      */
     $rubtypeval = array(1, 0, 3, 4, 2);
     $rubtypelabel = array('Score breakdown, record score and feedback', 'Score breakdown, record score only', 'Score total, record score and feedback', 'Score total, record score only', 'Feedback only');
     echo "<form method=\"post\" action=\"addrubric.php?cid={$cid}&amp;id={$_GET['id']}{$fromstr}\">";
     echo '<p>Name:  <input type="text" size="70" name="rubname" value="' . str_replace('"', '\\"', $rubname) . '"/></p>';
     echo '<p>Rubric Type: ';
     writeHtmlSelect('rubtype', $rubtypeval, $rubtypelabel, $rubtype, null, null, 'onchange="imasrubric_chgtype()"');
     echo '</p>';
     echo '<p>Share with Group: <input type="checkbox" name="rubisgroup" ' . getHtmlChecked($rubgrp, -1, 1) . ' /></p>';
     echo '<table><thead><tr><th>Rubric Item<br/>Shows in feedback</th><th>Instructor Note<br/>Not in feedback</th><th><span id="pointsheader" ';
     if ($rubtype == 2) {
         echo 'style="display:none;" ';
     }
     if ($rubtype == 3 || $rubtype == 4) {
         echo '>Percentage of score</span>';
     } else {
         echo '>Percentage of score<br/>Should add to 100</span>';
     }
     echo '</th></tr></thead><tbody>';
     for ($i = 0; $i < 15; $i++) {
         echo '<tr><td><input type="text" size="40" name="rubitem' . $i . '" value="';
         if (isset($rubric[$i]) && isset($rubric[$i][0])) {
コード例 #12
0
ファイル: definebadges.php プロジェクト: ericvanboven/IMathAS
            $gbvals[] = $row[0];
            $gblabels[] = $row[1];
        }
        $gtvals = array('0', '3', '1', '2');
        $gtlabels = array('Past Due', 'Past and Attempted', 'Past and Available', 'All (including future)');
        require "../header.php";
        echo '<div class="breadcrumb">' . $curBreadcrumb . ' &gt; <a href="definebadges.php?cid=' . $cid . '">Badge Settings</a> ';
        echo '&gt; Details</div>';
        echo '<div id="headerbadgesettings" class="pagetitle"><h2>Badge Setting Details</h2></div>';
        echo '<form method="post" action="definebadges.php?cid=' . $cid . '&amp;badgeid=' . $badgeid . '">';
        echo '<p>Badge Name: <input type="text" size="80" maxlength="128" name="badgename" value="' . $name . '"/><br/>Max 128 characters</p>';
        echo '<p>Badge Short Name: <input type="text" size="30" maxlength="128" name="badgetext" value="' . $badgetext . '"/> <br/>';
        echo 'This text also displays on the badge image. <br/>Keep it under 24 characters, and not more than 12 characters in a single word.';
        echo '<br>Alternatively, provide a URL for a 90x90 .png to use as the badge image</p>';
        echo '<p>Badge Short Description: <input type="text" size="80" maxlength="128" name="description" value="' . $descr . '"/><br/>Max 128 characters</p>';
        echo '<p>Badge Long Description:<br/> <textarea name="longdescription" cols="80" rows="5">' . $longdescr . '</textarea></p>';
        echo '<p>Select the badge requirements.  All conditions must be met for the badge to be earned</p>';
        echo '<table class="gb"><thead><tr><th>Gradebook Category Total</th><th>Score to Use</th><th>Minimum score required (%)</th></tr></thead><tbody>';
        for ($i = 0; $i < count($gbvals) + 4; $i++) {
            echo '<tr><td>';
            writeHtmlSelect("catselect{$i}", $gbvals, $gblabels, isset($req['data'][$i]) ? $req['data'][$i][0] : null, 'Select...', 'NS');
            echo '</td><td>';
            writeHtmlSelect("cattype{$i}", $gtvals, $gtlabels, isset($req['data'][$i]) ? $req['data'][$i][1] : 0);
            echo '</td><td><input type="text" size="3" name="catscore' . $i . '" value="' . (isset($req['data'][$i]) ? $req['data'][$i][2] : '') . '"/>%</td></tr>';
        }
        echo '</tbody></table>';
        echo '<p><input type="submit" value="Save"/></p>';
        echo '</form>';
        require "../footer.php";
    }
}
コード例 #13
0
ファイル: gbsettings.php プロジェクト: ericvanboven/IMathAS
function disprow($id, $row)
{
    global $cid, $hidelabel, $hideval;
    //name,scale,scaletype,chop,drop,weight
    echo "<tr class=grid id=\"catrow{$id}\"><td>";
    if ($id > 0) {
        echo "<input type=text name=\"name[{$id}]\" value=\"{$row['name']}\"/>";
    } else {
        echo $row['name'];
    }
    "</td>";
    echo '<td>';
    writeHtmlSelect("hide[{$id}]", $hideval, $hidelabel, $row['hidden']);
    echo '</td>';
    //echo "<td><input type=\"checkbox\" name=\"hide[$id]\" value=\"1\" ";
    //writeHtmlChecked($row['hidden'],1);
    //echo "/></td>";
    echo "<td>Scale <input type=text size=3 name=\"scale[{$id}]\" value=\"";
    if ($row['scale'] > 0) {
        echo $row['scale'];
    }
    echo "\"/> (<input type=radio name=\"st[{$id}]\" value=0 ";
    if ($row['scaletype'] == 0) {
        echo "checked=1 ";
    }
    echo "/>points ";
    echo "<input type=radio name=\"st[{$id}]\" value=1 ";
    if ($row['scaletype'] == 1) {
        echo "checked=1 ";
    }
    echo "/>percent)<br/>to perfect score<br/>";
    echo "<input type=checkbox name=\"chop[{$id}]\" value=1 ";
    if ($row['chop'] > 0) {
        echo "checked=1 ";
    }
    echo "/> no total over <input type=text size=3 name=\"chopto[{$id}]\" value=\"";
    if ($row['chop'] > 0) {
        echo round($row['chop'] * 100);
    } else {
        echo "100";
    }
    echo "\"/>%</td>";
    echo "<td>";
    echo 'Calc total: <select name="calctype[' . $id . ']" id="calctype' . $id . '" ';
    if ($row['dropn'] != 0) {
        echo 'disabled="true"';
    }
    echo '><option value="0" ';
    if ($row['calctype'] == 0) {
        echo 'selected="selected"';
    }
    echo '>point total</option><option value="1" ';
    if ($row['calctype'] == 1) {
        echo 'selected="selected"';
    }
    echo '>averaged percents</option></select><br/>';
    echo "<input type=radio name=\"droptype[{$id}]\" value=0 onclick=\"calctypechange({$id},0)\" ";
    if ($row['dropn'] == 0) {
        echo "checked=1 ";
    }
    echo "/>Keep All<br/><input type=radio name=\"droptype[{$id}]\" value=1 onclick=\"calctypechange({$id},1)\" ";
    if ($row['dropn'] > 0) {
        echo "checked=1 ";
    }
    $absr4 = abs($row['dropn']);
    echo "/>Drop lowest <input type=text size=2 name=\"dropl[{$id}]\" value=\"{$absr4}\"/> scores<br/> <input type=radio name=\"droptype[{$id}]\" value=2 onclick=\"calctypechange({$id},1)\" ";
    if ($row['dropn'] < 0) {
        echo "checked=1 ";
    }
    echo "/>Keep highest <input type=text size=2 name=\"droph[{$id}]\" value=\"{$absr4}\"/> scores</td>";
    echo "<td><input type=text size=3 name=\"weight[{$id}]\" value=\"";
    if ($row['weight'] > -1) {
        echo $row['weight'];
    }
    echo "\"/></td>";
    if ($id != 0) {
        echo "<td><a href=\"#\" onclick=\"removeexistcat({$id});return false;\">Remove</a></td></tr>";
    } else {
        echo "<td></td></tr>";
    }
}
コード例 #14
0
ファイル: diagsetup.php プロジェクト: ericvanboven/IMathAS
        ?>
" /></p>

	<p>Attach first level selector to ID: <input type="checkbox" name="entrynotunique" value="1" <?php 
        writeHtmlChecked($entrynotunique, true);
        ?>
 /></p>
	
	<p>ID entry format: 
<?php 
        writeHtmlSelect("entrytype", $page_entryType['val'], $page_entryType['label'], $page_entryTypeSelected);
        ?>
	</p>
	<p>ID entry number of characters?:
<?php 
        writeHtmlSelect("entrydig", $page_entryNums['val'], $page_entryNums['label'], $page_entryNumsSelected);
        ?>
	
	</p>
	<p>
	Allow access without password from computer with these IP addresses.  Use * for wildcard, e.g. 134.39.*<br/>  
	Enter IP address: <input type=text id="ipin" onkeypress="return onenter(event,'ipin','ipout')">
	<input type=button value="Add" onclick="additem('ipin','ipout')"/>
	
	<table>
	<tbody id="ipout">
<?php 
        if (trim($ips) != '') {
            $ips = explode(',', $ips);
            for ($i = 0; $i < count($ips); $i++) {
                ?>
コード例 #15
0
ファイル: exception.php プロジェクト: ericvanboven/IMathAS
	   window.location = togo;
	}
	</script>
	

	<div class=breadcrumb><?php 
    echo $curBreadcrumb;
    ?>
</div>	
	<div id="headerexception" class="pagetitle"><h2>Make Start/Due Date Exception</h2></div>

<?php 
    echo '<h3>' . $stuname . '</h3>';
    echo $page_isExceptionMsg;
    echo '<p><span class="form">Assessment:</span><span class="formright">';
    writeHtmlSelect("aidselect", $page_courseSelect['val'], $page_courseSelect['label'], $_GET['aid'], "Select an assessment", "", " onchange='nextpage()'");
    echo '</span><br class="form"/></p>';
    if (isset($_GET['aid']) && $_GET['aid'] != '') {
        ?>
		
	<form method=post action="exception.php?cid=<?php 
        echo $cid;
        ?>
&aid=<?php 
        echo $_GET['aid'];
        ?>
&uid=<?php 
        echo $_GET['uid'];
        ?>
&asid=<?php 
        echo $asid;
コード例 #16
0
ファイル: importstu.php プロジェクト: ericvanboven/IMathAS
			<input type=text name="code" size=4 value="1"/>
		</span><br class=form>
			
		<span class=form>Assign section value?</span>
		<span class=formright>
			<input type=radio name=sectype value="0" CHECKED>No<br/>
			<input type=radio name=sectype value="1">Yes, use: 
			<input type=text name="secval" size=6 value=""/><br/>
			<input type=radio name=sectype value="2">Yes, use value in column: 
			<input type=text name="seccol" size=4 value="4"/>
		</span><br class=form>
		
		<span class=form>Enroll students in:</span><span class=formright>
<?php 
        if ($isadmin) {
            writeHtmlSelect("enrollcid", $page_adminUserSelectVals, $page_adminUserSelectLabels, $selectedVal = null, $defaultLabel = "None", $defaultVal = 0, $actions = null);
        } else {
            echo "This class";
        }
        ?>
		</span><br class=form>
		
		<div class=submit><input type=submit value="Submit and Review"></div>

<?php 
    }
    echo "\t</form>\n";
}
require "../footer.php";
?>
			
コード例 #17
0
ファイル: timeshift.php プロジェクト: ericvanboven/IMathAS
    ?>
</div>	
	<h3>Shift Course Dates</h3>
	<p>
		This page will change <b>ALL</b> course available dates and due dates based on 
		changing one item.  This is intended to allow you to reset all course item 
		dates for a new term in one action.
	</p>
	<form method=post action="timeshift.php?cid=<?php 
    echo $cid;
    ?>
">
		<span class=form>Select an assessment to base the change on</span>
		<span class=formright>
			<?php 
    writeHtmlSelect("aid", $page_assessmentList['val'], $page_assessmentList['label'], null, null, null, $actions = " id=aid ");
    ?>
		</span><br class=form>
		<span class=form>Change dates based on this assessment's:</span>
		<span class=formright>
			<input type=radio id=base name=base value=0 >Available After date<br/>
			<input type=radio id=base name=base value=1 checked=1>Available Until date (Due date) <br/>
		</span><br class=form>
		<span class=form>Change date to:</span>
		<span class=formright>
			<input type=text size=10 name="sdate" value="<?php 
    echo $sdate;
    ?>
"> 
			<a href="#" onClick="displayDatePicker('sdate', this); return false">
			<img src="../img/cal.gif" alt="Calendar"/>
コード例 #18
0
    writeHtmlChecked($cntingb, 0, 0);
    ?>
 /> Don't count in grade total and hide from students<br/>
				<input type=radio name="cntingb" value="3" <?php 
    writeHtmlChecked($cntingb, 3, 0);
    ?>
 /> Don't count in grade total<br/>
				<input type=radio name="cntingb" value="2" <?php 
    writeHtmlChecked($cntingb, 2, 0);
    ?>
 /> Count as Extra Credit
			</span><br class=form>
			<span class="form">Tutor Access:</span>
				<span class="formright">
	<?php 
    writeHtmlSelect("tutoredit", $page_tutorSelect['val'], $page_tutorSelect['label'], $tutoredit);
    echo '<input type="hidden" name="gradesecret" value="' . $gradesecret . '"/>';
    ?>
			
			</span><br class="form" />
			</div>
		</div>
		
		<span class="form">Open page in:</span>
		<span class="formright">
			<input type=radio name="target" value="0" <?php 
    writeHtmlChecked($line['target'], 0);
    ?>
/>Current window/tab<br/>
			<input type=radio name="target" value="1" <?php 
    writeHtmlChecked($line['target'], 1);
コード例 #19
0
ファイル: modtutorialq.php プロジェクト: ericvanboven/IMathAS
        echo ' style="display:none;"';
    }
    echo '> Feedback to show: <br/>';
    echo '<textarea id="essay' . $n . '-fb" name="essay' . $n . '-fb" cols="80" rows="4">';
    if (isset($feedbacktxtessay[$n])) {
        echo prepd($feedbacktxtessay[$n]);
    }
    echo '</textarea><input type="button" class="txted" value="E" onclick="popupeditor(\'essay' . $n . '-fb\')"/>';
    echo '</div>';
    //end essaywrap div
    echo '</div>';
    //end partwrapper div
}
echo '<h4>Hints</h4>';
echo '<p>This question has ';
writeHtmlSelect("nhints", range(0, 4), range(0, 4), $nhints, null, null, 'onchange="changehparts(this)"');
echo 'hints.</p>';
for ($n = 0; $n < 4; $n++) {
    echo '<p id="hintwrapper' . $n . '"';
    if ($n >= $nhints) {
        echo ' style="display:none;"';
    }
    echo '>Hint ' . ($n + 1) . ':';
    echo '<input autocomplete="off" id="hint' . $n . '" name="hint' . $n . '" type="text" size="80" value="' . (isset($hinttext[$n]) ? prepd($hinttext[$n]) : "") . '"/><input type="button" class="txted" value="E" onclick="popupeditor(\'hint' . $n . '\')"/></p>';
}
echo '<h4>Question Text</h4>';
echo '<p>In the question text, enter <span id="anstipsingle" ';
if ($nparts != 1) {
    echo 'style="display:none;" ';
}
echo '><b>$answerbox</b> to place the question list into the question.  Enter <b>$feedback</b> to indicate where the feedback should be displayed.</span> <span id="anstipmult" ';
コード例 #20
0
    ?>
" />
			</span><br class="form" />
			<span class="form">Use group set:<?php 
    if ($taken) {
        if ($line['isgroup'] == 0) {
            echo '<br/>Only empty group sets can be used after the assessment has started';
        } else {
            echo '<br/>Cannot change group set after the assessment has started';
        }
    }
    ?>
</span>
			<span class="formright">
				<?php 
    writeHtmlSelect('groupsetid', $page_groupsets['val'], $page_groupsets['label'], $line['groupsetid'], null, null, $taken && $line['isgroup'] > 0 ? 'disabled="disabled"' : '');
    ?>
			</span><br class="form" />
			<span class="form">Default Outcome:</span>
			<span class="formright"><select name="defoutcome">
				<?php 
    $ingrp = false;
    $issel = false;
    foreach ($page_outcomeslist as $oc) {
        if ($oc[1] == 1) {
            //is group
            if ($ingrp) {
                echo '</optgroup>';
            }
            echo '<optgroup label="' . htmlentities($oc[0]) . '">';
            $ingrp = true;
コード例 #21
0
ファイル: viewwiki.php プロジェクト: ericvanboven/IMathAS
     $torev = $_GET['torev'];
     $disprev = $_GET['disprev'];
     echo '<p>Are you SURE you want to revert to revision ' . $disprev . ' of ' . $grpnote . ' Wiki page?  All changes after that revision will be deleted.</p>';
     echo "<p><button type=\"button\" onclick=\"window.location.href='viewwiki.php?cid={$cid}&id={$id}&grp={$groupid}&torev={$torev}&revert=true{$framed}'\">Yes, I'm Sure</button> | ";
     echo "<button type=\"button\" class=\"secondarybtn\" onclick=\"window.location.href='viewwiki.php?cid={$cid}&id={$id}&grp={$groupid}{$framed}'\">Nevermind</button></p>";
 } else {
     if (isset($_GET['snapshot'])) {
         echo "<p>Current Version Code.  <a href=\"viewwiki.php?cid={$cid}&id={$id}&grp={$groupid}{$framed}\">Back</a></p>";
         echo '<div class="editor" style="font-family:courier; padding: 10px;">';
         echo str_replace('&gt; &lt;', "&gt;<br/>&lt;", htmlentities($text));
         echo '</div>';
     } else {
         //default page display
         if ($isgroup && isset($teacherid)) {
             echo '<p>Viewing page for group: ';
             writeHtmlSelect('gfilter', $stugroup_ids, $stugroup_names, $groupid, null, null, 'onchange="chgfilter()"');
             echo '</p>';
         } else {
             if ($isgroup) {
                 echo "<p>Group: {$curgroupname}</p>";
             }
         }
         if (isset($teacherid)) {
             echo '<div class="cpmid">';
             if ($isgroup) {
                 $grpnote = "For this group's wiki: ";
             }
             echo "<button type=\"button\" onclick=\"window.location.href='viewwiki.php?cid={$cid}&id={$id}&grp={$groupid}&delall=ask{$framed}'\">Clear Page Contents</button> | ";
             echo "<button type=\"button\" onclick=\"window.location.href='viewwiki.php?cid={$cid}&id={$id}&grp={$groupid}&delrev=ask{$framed}'\">Clear Page History</button> | ";
             echo "<a href=\"viewwiki.php?cid={$cid}&id={$id}&grp={$groupid}&snapshot=true{$framed}\">Current Version Snapshot</a></div>";
         }
コード例 #22
0
echo "<h2>Add/Modify Drill Assessment</h2>";
if ($beentaken) {
    echo '<p>This drill has already been taken!  You will not be able to modify most settings unless you clear out existing attempts.';
    echo " <a href=\"adddrillassess.php?cid={$cid}&daid={$daid}&clearatt=true\" onclick=\"return confirm('Are you SURE you want to clear out existing attempts?');\">Clear existing attempts</a></p>";
}
echo "<form id=\"selform\" method=\"post\" action=\"adddrillassess.php?cid={$cid}&daid={$daid}&record=true\">";
echo '<p><b>Drill type</b></p>';
echo '<p>Scoring type:';
$vals = array('nat', 'nct', 'ncc', 'nst', 'nsc', 't');
$lbls = array('Do N questions then stop.  Record time.', 'Do N questions correct.  Record time.', 'Do N questions correct.  Record total attempts.', 'Do N questions correct in a row.  Record time', 'Do N questions correct in a row.  Record total attempts', 'Do as many correct as possible in N seconds');
writeHtmlSelect('scoretype', $vals, $lbls, $scoretype, null, null, $beentaken ? 'disabled="disabled"' : '');
echo ' where N = <input type="text" size="4" name="n" value="' . $n . '" ' . ($beentaken ? 'disabled="disabled"' : '') . '/></p>';
echo '<p>Feedback on individual questions:';
$vals = array(0, 1, 4, 2, 3);
$lbls = array('Show score, and display answer if wrong', 'Show score, don\'t show answers, give new question if wrong', 'Show score, don\'t show answers, give same question if wrong', 'Don\'t show score', 'Don\'t show score, but provide show answer buttons');
writeHtmlSelect('showtype', $vals, $lbls, $showtype, null, null, $beentaken ? 'disabled="disabled"' : '');
echo '</p>';
echo '<p>Show drill results to student: ';
echo '<input type="checkbox" name="showlast" ' . getHtmlChecked($showtostu & 1, 1) . '/> Show last score. ';
echo '<input type="checkbox" name="showpbest" ' . getHtmlChecked($showtostu & 2, 2) . '/> Show personal best score. ';
echo '<input type="checkbox" name="showcbest" ' . getHtmlChecked($showtostu & 4, 4) . '/> Show class best score.</p>';
if ($beentaken) {
    echo '<p>Reset class bests?  <input type="checkbox" name="clearbests" value="1" /></p>';
}
echo '<table id="usedqtable">';
echo '<tr>';
if (!$beentaken) {
    echo '<th></th>';
}
echo '<th>Description</th><th>Preview</th>';
if (!$beentaken) {