SimplifiedEntryExample7

From WeBWorK_wiki
Jump to navigation Jump to search

<style type="text/css"> .editSuggestion label {margin-right:1em;} .editSuggestion .drop {margin-left: 0.5em} .editSuggestion input.submit {margin-top: 0.5em} .editSuggestion .formSection {margin-top: 1em} .editSuggestion .tagSect {margin-top: 0.2em} .editSuggestion label.desc {width: 18em; display: block; float: left; text-align:left;} .editSuggestion legend {font-weight: normal;} .editSuggestion fieldset {margin-bottom: 0.7em} .editSuggestion .bottom {} </style> <form action="#" class="editSuggestion">

 <fieldset>
   <legend>Tags</legend>
<label for="description" class="desc">Description</label><input type="text" value="Finding the sum of two random integers" id="description" name="description" size="40"/>
<label for="description" class="desc">Keywords</label><input type="text" value="arithmetic, addition, sum" id="description" name="description" size="40"/>
 </fieldset>


 <fieldset>
   <legend>Problem</legend>
<label for="context" class="desc">Context</label>
     <select id="context" name="context">
       <option value="numeric">Numeric</option>
       <option value="vector">Vector</option>
</select>
<label for="function1" class="desc">Option 1</label>
     <select id="function1" name="function1">
       <option value="numeric">function</option>
       <option value="numeric">variables</option>
     </select>
     <select id="function1" name="function1">
       <option value="numeric">disable</option>
     </select>
<input type="text" value="sin, cos, tan"/>
<label for="function1" class="desc">Option 2</label>
     <select id="function1" name="function1">
       <option value="numeric">variables</option>
       <option value="numeric">function</option>
     </select>
     <select id="function1" name="function1">
       <option value="numeric">are</option>
     </select>
     <select id="function1" name="function1">
       <option value="numeric">real</option>
     </select>
<input type="text" value="x"/>
<input type="submit" value="Add Option" class="submit"/>


<label for="calc">Calculations</label>
<textarea rows="5" cols="80" name="calc">$a = random(1,6);

$b = random(1,6); $answer = $a + $b;

</textarea>
<label for="text">Text of problem<label></legend>
   <textarea rows="10" cols="80" name="text">What is the sum of \($a\) and \($b\)? $BR

\{ans_rule(10)\}

</textarea>
<label for="answer1" class="desc">Answer 1</label><input type="text" id="answer1" name="answer1" value="$answer"/>
<input type="submit" value="Add answer" class="submit"/>
 </fieldset>

   <label for="seed" class="desc">Preview using seed</label>
   <input type="text" value="1234" id="seed" name="seed"/>
<input type="submit" value="Preview" class="submit"/>
   <label for="add" class="desc">After save, add to set <select class="drop"><option>MathSet1</option></select></label><input type="checkbox" name="add" id="add"/>
<label for="location" class="desc">Save to file</label> <input type="radio" name="as" /> Original file
<label class="desc">.</label><input type="radio" name="as" /> New file <input type="text" id="location" name="location" size="30" value="/settest/multiPartExample.pg" />
     <input type="submit" value="Save" class="submit"/><input type="submit" value="Revert" />