westdc-zf1/application/default/views/scripts/data/pdf.phtml

130 lines
6.8 KiB
PHTML

<?php
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->data);
$this->headTitle('Offline Order');
$this->headTitle()->setSeparator(' - ');
$this->breadcrumb('<a href="/">Home</a>');
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
$this->breadcrumb('<a href="/data/order">Offline Order</a>');
$this->breadcrumb('Offline Order PDF generate');
$this->breadcrumb()->setSeparator(' > ');
?>
<div class="row">
<div class="span3">
<div class="well sidebar-nav">
<?= $this->partial('account/left.phtml'); ?>
</div><!--/.well -->
</div><!--/span-->
<div class="span9">
<h3>Submit Offline Order</h3>
<h4>Dataset list</h4>
<blockquote>
<ul class="unstyled">
<?php foreach ($this->data2 as $i=>$md) : ?>
<li><?php echo ($i+1).". ".$md['title']; ?></li>
<?php endforeach; ?>
</ul></blockquote>
<hr />
<h4>Offline PDF form</h4>
<?php if ($this->messages): foreach($this->messages as $msg): ?>
<div class="alert"><?php echo $msg; ?></div>
<?php endforeach;endif; ?>
<?php if ($this->msg) : ?>
<?php echo $this->msg; ?>
<?php endif; ?>
<?php if ($this->error) : ?>
<?php echo $this->error; ?>
<?php endif; ?>
<form id="OfflinePdf" enctype="application/x-www-form-urlencoded" class="form-horizontal" action="" method="post">
<div class="control-group">
<label class="control-label" name="realname">Name</label>
<div class="controls">
<input type="text" name="realname" id="realname" value="<?= empty($this->formData['realname']) ? "":$this->formData['realname']?>" helper="formText"> </div>
</div>
<div class="control-group">
<label class="control-label" name="email">E-Mail</label>
<div class="controls">
<input type="text" name="email" id="email" value="<?= empty($this->formData['email']) ? "":$this->formData['email']?>" helper="formText"> </div>
</div>
<div class="control-group">
<label class="control-label" name="phone">Phone</label>
<div class="controls">
<input type="text" name="phone" id="phone" value="<?= empty($this->formData['phone']) ? "":$this->formData['phone']?>" helper="formText"> </div>
</div>
<div class="control-group">
<label class="control-label" name="unit">Company/Organization</label>
<div class="controls">
<input type="text" name="unit" id="unit" value="<?= empty($this->formData['unit']) ? "":$this->formData['unit']?>" helper="formText" class="input-block-level"> </div>
</div>
<div class="control-group">
<label class="control-label" name="address">Address</label>
<div class="controls">
<input type="text" name="address" id="address" value="<?= empty($this->formData['address']) ? "":$this->formData['address']?>" helper="formText" class="input-block-level"> </div>
</div>
<div class="control-group">
<label class="control-label" name="postcode">Postcode</label>
<div class="controls">
<input type="text" name="postcode" id="postcode" value="<?= empty($this->formData['postcode']) ? "":$this->formData['postcode']?>" helper="formText"> </div>
</div>
<div class="control-group">
<label class="control-label" name="project_id">Fund number</label>
<div class="controls">
<input type="text" name="project_id" id="project_id" value="<?= empty($this->formData['project_id']) ? "":$this->formData['project_id']?>" helper="formText"> </div>
</div>
<div class="control-group">
<label class="control-label" name="project_type">Fund type</label>
<div class="controls">
<select name="project_type" id="project_type" helper="formSelect">
<option value="" label="Fund type" <?= empty($this->formData['project_type']) ? 'selected="selected"':"" ?>>Fund type</option>
<?php foreach($this->projectType as $k=>$v) {?>
<option value="<?= $v ?>" <?= $this->formData['project_type'] == $v ? 'selected="selected"':"" ?>><?= $k ?></option>
<?php }?>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label" name="project_title">Fund title</label>
<div class="controls">
<input type="text" name="project_title" id="project_title" value="<?= empty($this->formData['project_title']) ? "":$this->formData['project_title']?>" helper="formText" class="input-block-level">
</div>
</div>
<div class="control-group">
<label class="control-label" name="leader">Fund PI</label>
<div class="controls">
<input type="text" name="project_leader" id="leader" value="<?= empty($this->formData['project_leader']) ? "":$this->formData['project_leader']?>" helper="formText" class="input">
</div>
</div>
<div class="control-group">
<label class="control-label" name="project">Data Usage<br/>(Please write about 50-100 words)</label>
<div class="controls">
<textarea name="project" id="project" helper="formTextarea" rows="3" class="input-block-level" cols="80"><?= empty($this->formData['project']) ? "":$this->formData['project']?></textarea> </div>
</div>
<div class="control-group">
<div class="controls">
<input type="hidden" name="id" value="8018" helper="formHidden" id="id">
<input type="submit" name="save" id="savebutton" value="PDF Preview" class="btn">
<input type="submit" name="submit" id="submitbutton" value="Download PDF" class="btn btn-primary">
</div>
</div>
<div class="control-group">
<div class="controls">
<div class="alert alert-success">When download the PDF, please sign your name, and re-generate the PDF and <a href="/data/order/ac/offline2">upload PDF</a></div>
</div>
</div>
</form>
</div><!--/span-->
</div>