예제 #1
0
if (!defined('BASEPATH')) {
    exit('No direct script access allowed');
}
/**
 * View to collect details about user's script
 *
 *
 */
$this->load->helper('form');
$this->load->helper('url');
$this->load->helper('language');
$this->load->helper('progressor');
?>
<h2>Submit essay</h2>
<?php 
echo eb_progress_bar($progressSteps, 'details');
?>
<h3>Enter details of your essay</h3>
<?php 
if ($this->validation->error_string != '') {
    $errors[] = $this->validation->error_string;
}
$this->load->view('chunks/messages_ajax', array('errors' => @$errors));
?>
<form action="<?php 
echo $formAction;
?>
" method="POST">
<?php 
echo eb_select('subject', 'Subject area of essay', $this->config->item('subjects'), array('value' => $extantData['subject']));
echo eb_input_textarea('question', 'Question', array('value' => $extantData['question']));
예제 #2
0
<?php

$this->load->helper('progressor');
$this->load->helper('form');
?>
<h2>Submit Answer</h2>
<?php 
echo eb_progress_bar($progressSteps);
?>
<h3>Confirm Answer & Submit</h3>
<h4>Pages</h4>
<ol id="pagesAdded">
	<?php 
if (@is_array($pagesPresent)) {
    $i = 0;
    foreach ($pagesPresent as $page) {
        if ($page) {
            ?>
		<li><?php 
            echo $page;
            ?>
</li>
	<?php 
        }
    }
    ?>
	<?php 
}
?>
</ol>
<h4>Answer Details</h4>
예제 #3
0
<?php

if (!defined('BASEPATH')) {
    exit('No direct script access allowed');
}
$this->load->helper('progressor');
$this->load->helper('form');
?>
<h2>Submit essay</h2>
<?php 
echo eb_progress_bar($progressSteps, 'pay');
?>
<h3>Pay for essay</h3>
<p>When you are ready to pay for your essay, click on one of the checkout methods to continue. As soon as your payment has been sent our tutors will be able to being looking over your essay.</p>
<table class="checkout">
<form method="POST" action="<?php 
echo site_url('user/pay', true);
?>
">
<tr class="header"><th class="description">Question</th><th class="amount">Amount</th></tr>
<?php 
// data for each row
$i = 0;
$total = 0.0;
foreach ($scripts as $script) {
    $i++;
    strlen($script['question']) > 36 ? $question = substr($script['question'], 0, 33) . '...' : ($question = $script['question']);
    $amount = $script['value'] ? $script['value'] : 9.99;
    $total += $amount;
    ?>
<tr <?php 
예제 #4
0
}
/**
 * View to show both the async and standard uploads
 * @todo make the asyncFields controlled by controller, specifiying start page etc.
 * @todo add pages already uploaded
 * @todo add progress bar
 */
$this->load->helper('url');
$this->load->helper('language');
$this->load->helper('progressor');
$this->load->helper('form');
$this->lang->load('upload');
?>
<h2>Submit essay</h2>
<?php 
echo eb_progress_bar($progressSteps, 'upload');
?>
<h3>Upload an electronic answer</h3>
<p>Upload a document</p>
<form action="<?php 
echo base_url();
?>
index.php/user/upload/documents" method="POST" target="upload_target1" enctype="multipart/form-data" id="uploader">
    <input type="hidden" name="MAX_FILE_SIZE" value="10000000" />
    <div class="field">
        <label for="page">Select document:</label>
        <input type="file" name="exambuff" class="upload" />
        <?php 
eb_hidden('token', $token);
?>
    </div>