</div> <div class="row"> <p><?php echo _AT('custom_test_message'); ?> </p> <textarea name="test_message"><?php echo $_POST['test_message']; ?> </textarea> </div> <?php if (is_array($results)) { print_test_table($results, $_POST['tid']); } function print_test_table($results, $post_tids, $id_prefix = '') { ?> <div> <input type="hidden" name="visited_tests" value="1" /> <table class="data" summary="" style="width: 90%" rules="cols"> <thead> <tr> <th scope="col"> </th> <th scope="col"><?php echo _AT('title'); ?> </th> </tr>
<?php // display pre-tests $sql = 'SELECT * FROM '.TABLE_PREFIX."content_prerequisites WHERE content_id=$_REQUEST[cid] AND type='".CONTENT_PRE_TEST."'"; $result = mysql_query($sql, $db); while ($row = mysql_fetch_assoc($result)) { $_POST['pre_tid'][] = $row['item_id']; } ?> <div class="row"> <span style="font-weight:bold"><?php echo _AT('define_pretest'); ?></span><br /> <small>· <?php echo _AT('about_pretest'); ?></small><br /> <?php echo _AT('applies_to_all_sub_pages');?> </div> <?php print_test_table($results, $_POST['pre_tid'], 'pre_');?> <?php function print_test_table($results, $post_tids, $id_prefix='') {?> <div> <table class="data" summary="" style="width: 90%" rules="cols"> <thead> <tr> <th scope="col"> </th> <th scope="col"><?php echo _AT('title'); ?></th> <th scope="col"><?php echo _AT('status'); ?></th> <th scope="col"><?php echo _AT('availability'); ?></th> <th scope="col"><?php echo _AT('result_release'); ?></th> <th scope="col"><?php echo _AT('submissions'); ?></th> <th scope="col"><?php echo _AT('pass_score'); ?></th> <th scope="col"><?php echo _AT('assigned_to'); ?></th> </tr>