Пример #1
0
        }
        echo "<div class=q>\n";
        if ($isfinal) {
            echo "<div class=hdrm>\n";
        } else {
            echo "<div class=m>\n";
        }
        echo "<div id=headerleft>{$headerleft}</div><div id=headerright>{$headerright}</div>\n";
        echo "<div id=intro>{$line['intro']}</div>\n";
        echo "</div>\n";
        if (!$isfinal) {
            echo "<div class=cbutn><a href=\"printtest.php?cid={$cid}&aid={$aid}\">Cancel</a></div>\n";
        }
        echo "</div>\n";
        for ($i = 0; $i < $numq; $i++) {
            $sa[$j][$i] = printq($i, $qn[$questions[$i]], $seeds[$i], $points[$questions[$i]]);
        }
        if ($isfinal) {
            echo "<p class=pageb>&nbsp;</p>\n";
        }
    }
    //echo "</table>\n";
    if (!$isfinal) {
        ?>

	<script type="text/javascript">
		var heights = new Array();
		for (var i=0; i<<?php 
        echo $numq;
        ?>
; i++) {
Пример #2
0
        echo "&nbsp;";
        echo "<select name='editValues" . $editCounter . "[]' style='width: 45px' class='form'>";
        echo "<option value='{$row['1']}'>{$row['1']}</option>";
        drawOptions();
        echo "</select>";
    }
    echo "<input type='hidden' name='editValues" . $editCounter . "[]' value='radreply' style='width: 90px'>";
    $editCounter++;
    // we increment the counter for the html elements of the edit attributes
    if (!$row[3]) {
        $row[3] = "unavailable";
    }
    if (!$row[4]) {
        $row[4] = "unavailable";
    }
    printq("\n\t\t\t<img src='images/icons/comment.png' alt='Tip' border='0' onClick=\"javascript:toggleShowDiv('{$row['0']}Tooltip')\" />\n\t\t\t<br/>\n\t                <div id='{$row['0']}Tooltip'  style='display:none;visibility:visible' class='ToolTip2'>\n\t                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n\t\t\t\t\t<i><b>Type:</b> {$row['3']}</i><br/>\n\t\t\t\t&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n\t\t\t\t\t<i><b>Tooltip Description:</b> {$row['4']}</i><br/>\n\t\t\t\t<br/>\n\t                </div>\n\t\t");
}
?>
        <br/><br/>
        <hr><br/>

        <br/>
        <input type='submit' name='submit' value='<?php 
echo $l['buttons']['apply'];
?>
' class='button' />
        <br/>

	</ul>

        </fieldset>  
Пример #3
0
 $headerright = '';
 echo "<div class=q>\n";
 echo "<div class=hdrm>\n";
 echo "<div id=headerleft>{$headerleft}</div><div id=headerright>{$headerright}</div>\n";
 echo "<div id=intro>{$line['intro']}</div>\n";
 echo "</div>\n";
 echo "</div>\n";
 for ($i = 0; $i < $numq; $i++) {
     if ($i > 0) {
         echo $_POST['qsep'];
     }
     for ($j = 0; $j < $copies; $j++) {
         if ($j > 0) {
             echo $_POST['qsep'];
         }
         $sa[] = printq($i, $qn[$questions[$i]], $seeds[$j][$i], $points[$questions[$i]], isset($_POST['showqn']));
     }
 }
 if ($_POST['keys'] > 0) {
     //print answer keys
     echo $_POST['vsep'] . '<br/>';
     echo "<b>Key</b>\n";
     echo "<ol>\n";
     for ($i = 0; $i < count($sa); $i++) {
         echo '<li>';
         if (is_array($sa[$i])) {
             echo printfilter(filter(implode(' ~ ', $sa[$i])));
         } else {
             echo printfilter(filter($sa[$i]));
         }
         echo "</li>\n";
Пример #4
0
        if (isset($city)) {
            echo $city;
        }
        echo "' /> </td></tr>\n                                        <tr><td>State:</td>\n                                            <td> <input name='state' value='";
        if (isset($state)) {
            echo $state;
        }
        echo "' /> </td></tr>\n\n\t\t\t\t\t</table><br/><br/>\n                                            <input type='submit' value='Submit' name='submit'>\n\n                                        </form>\n                                        ";
        break;
    case "2checkout":
        printq('

                                        <font color="blue"><b>Thank you...</b></font>
                                        <br/><br/>

                                        Your PIN code has been created but it will only be activated after you complete and confirm<br/>
                                        your payment. Following is your PIN code, which you will need in-order to access<br/>
                                        our Hotspot services.<br/><br/>

                                        <table><tr><td>PIN Code:</td><td> <b>
                                        ');
        echo $userPIN;
        echo '
                                        </b></td></tr></table>
                                        <br/>

                                        <form action="2co_start.php" method="post">
                                                <input type="hidden" name="business" value="' . $configValues['CONFIG_MERCHANT_BUSINESS_ID'] . '" />

                                                <input type="hidden" id="amount" name="amount" value="';
        if (isset($planCost)) {
Пример #5
0
<br/>




<?php 
if (isset($errorMissingFields) && $errorMissingFields == true) {
    printq('
		<br/>
			<b> Missing fields, please fill out all fields! </b>
		<br/>
		');
}
if (isset($stage2) && $stage2 == true) {
    printq('

		<br/>
			Thank you... this is your user PIN: <b>');
    echo $userPIN;
    echo '</b>
		<br/>
			Please write it down, you will need to enter it at the login page.
		<br/>
		<br/>
			Your account has been created but it will only be active after you complete your payment
		<br/>
			through Paypal, please click the Buy Now button below to complete your payment.

		<br/><br/>

		<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
			<input type="hidden" name="cmd" value="_xclick" />
Пример #6
0
        if (isset($city)) {
            echo $city;
        }
        echo "' /> </li>\r\n\t\t\t\t        State:\r\n\t\t\t\t\t    <li> <input name='state' value='";
        if (isset($state)) {
            echo $state;
        }
        echo "' /> </li>\r\n\r\n\t\t\t\t\t<br/>\r\n\t\t\t\t\t    <input type='submit' value='Submit' name='submit'>\r\n\r\n\t\t\t\t\t</ul>\r\n\t\t\t\t        </form>\r\n\t\t\t\t\t";
        break;
    case "paypal":
        printq('

					<font color="blue">Thank you...</font>
			                <br/>

					Your PIN code has been created but it will only be activated after you complete and confirm
					your payment through PayPal. Following is your PIN code, which you will need in-order to access
					our Hotspot services.<br/><br/>

					<ul><li>PIN Code: <b> 
		                        ');
        echo $userPIN;
        echo '
					</b></li></ul>
					<br/>
					It is recommended that you will write it down now in-case of a failure.<br/><br/>
			
                                        <form action="' . $configValues['CONFIG_MERCHANT_WEB_PAYMENT'] . '" method="post">
                                                <input type="hidden" name="cmd" value="_xclick" />
                                                <input type="hidden" name="business" value="' . $configValues['CONFIG_MERCHANT_BUSINESS_ID'] . '" />
Пример #7
0
 $headerright = '';
 $out .= "<div class=q>\n";
 $out .= "<div class=hdrm>\n";
 $out .= "<div id=headerleft>{$headerleft}</div><div id=headerright>{$headerright}</div>\n";
 $out .= "<div id=intro>{$line['intro']}</div>\n";
 $out .= "</div>\n";
 $out .= "</div>\n";
 for ($i = 0; $i < $numq; $i++) {
     if ($i > 0) {
         $out .= $_REQUEST['qsep'];
     }
     for ($j = 0; $j < $copies; $j++) {
         if ($j > 0) {
             $out .= $_REQUEST['qsep'];
         }
         list($newout, $sa[]) = printq($i, $qn[$questions[$i]], $seeds[$j][$i], $points[$questions[$i]], isset($_REQUEST['showqn']));
         $out .= $newout;
     }
 }
 if ($_REQUEST['keys'] > 0) {
     //print answer keys
     $out .= $_REQUEST['vsep'] . '<br/>';
     $out .= "<b>Key</b>\n";
     $out .= "<ol>\n";
     for ($i = 0; $i < count($sa); $i++) {
         $out .= '<li>';
         if (is_array($sa[$i])) {
             $out .= printfilter(filter(implode(' ~ ', $sa[$i])));
         } else {
             $out .= printfilter(filter($sa[$i]));
         }