westdc-zf1/application/default/views/scripts/data/onlineapp-download.phtml

135 lines
6.6 KiB
PHTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
$this->headTitle($this->config->title->site);
$this->headTitle('My account');
$this->headTitle()->setSeparator(' - ');
$this->theme->AppendPlus($this,'jquery');
$this->theme->AppendPlus($this,'colorbox');
?>
<div class="row">
<div class="span3">
<div class="well sidebar-nav">
<?= $this->partial('account/left.phtml'); ?>
</div><!--/.well -->
</div><!--/span-->
<div class="span9">
<h3>Online data Download</h3>
<hr />
<?php if(!empty($this->msg)) { ?>
<?php if(!empty($this->jump_url)) {?>
<div class="alert <?= $this->AlertType;?>">
<a data-dismiss="alert" class="close">×</a>
<?php echo $this->msg ?>
</div>
<?php if(!empty($this->jump_url)) { ?>
<br /><a href="<?= $this->jump_url ?>">Please click this url if your browser is not support auto jump.</a>
<script language="javascript">setTimeout("self.location='<?php echo $this->jump_url ?>'",3000);</script>
<?php } ?>
<?php } ?>
<?php }else{?>
<?php if(!empty($this->error)) { ?>
<div class="alert alert-block alert-error fade in" id="Alert-error-box">
<a class="close" data-dismiss="alert" href="#">×</a>
<?php if(!is_array($this->error)) { ?><h4 class="alert-heading"><?= $this->error ?></h4><?php } else { ?>
<ul>
<?php foreach($this->error as $v) { ?>
<li><?= $v ?></li>
<?php } ?>
</ul>
<?php } ?>
</div>
<?php } ?>
<form action="/data/todownload/" method="post" class="form-horizontal">
<div class="control-group ">
<label class="control-label">Real Name</label>
<div class="controls">
<input type="text" name="realname" value="<?php echo empty($this->info['realname']) ? "":$this->info['realname']; ?>" />
</div>
</div>
<div class="control-group ">
<label class="control-label">Company/Organization</label>
<div class="controls">
<input class="input-block-level" type="text" name="unit" value="<?php echo empty($this->info['unit']) ? "":$this->info['unit']; ?>" />
</div>
</div>
<div class="control-group ">
<label class="control-label">Address</label>
<div class="controls">
<input class="input-block-level" type="text" name="address" value="<?php echo empty($this->info['address']) ? "":$this->info['address']; ?>" />
</div>
</div>
<div class="control-group ">
<label class="control-label">Phone</label>
<div class="controls">
<input type="text" name="phone" value="<?php echo empty($this->info['phone']) ? "":$this->info['phone']; ?>" />
</div>
</div>
<div class="control-group ">
<label class="control-label">Postcode</label>
<div class="controls">
<input type="text" name="postcode" value="<?php echo empty($this->info['postcode']) ? "":$this->info['postcode']; ?>" />
</div>
</div>
<div class="control-group ">
<label class="control-label">Email</label>
<div class="controls">
<input type="email" name="email" value="<?php echo empty($this->info['email']) ? "":$this->info['email']; ?>" required />
</div>
</div>
<div class="control-group ">
<label class="control-label">Fund</label>
<div class="controls">
<select id="project_type" name="project_type">
<?php if(!empty($this->projectType)) { ?>
<?php foreach($this->projectType as $k=>$v) { ?>
<?php if(empty($this->info['project_type'])) {?>
<?php if($v == "") { ?>
<option value="<?= $v ?>" selected="selected"><?= $k ?></option>
<?php }else { ?>
<option value="<?= $v ?>"><?= $k ?></option>
<?php }
} else {?>
<?php if($v == $this->info['project_type']) { ?>
<option value="<?= $v ?>" selected="selected"><?= $k ?></option>
<?php }else { ?>
<option value="<?= $v ?>"><?= $k ?></option>
<?php }
}?>
<?php } ?>
<?php } ?>
</select>
</div>
</div>
<div class="control-group ">
<label class="control-label">Fund number</label>
<div class="controls">
<input type="text" name="project_id" value="<?php echo empty($this->info['project_id']) ? "":$this->info['project_id']; ?>" />
</div>
</div>
<div class="control-group ">
<label class="control-label">Fund title</label>
<div class="controls">
<input class="input-block-level" type="text" name="project_title" value="<?php echo empty($this->info['project_title']) ? "":$this->info['project_title']; ?>" />
</div>
</div>
<div class="control-group ">
<label class="control-label">Fund PI</label>
<div class="controls">
<input class="input-block-level" type="text" name="project_leader" value="<?php echo empty($this->info['project_leader']) ? "":$this->info['project_leader']; ?>" />
</div>
</div>
<div class="control-group ">
<label class="control-label">Data Usage</label>
<div class="controls">
<textarea name="project" rows="3" class="input-block-level"><?php echo empty($this->info['project']) ? "":$this->info['project']; ?></textarea>
</div>
</div>
<div class="form-actions">
<input type="hidden" name="uuid" value="<?= $this->uuid ?>" />
<input type="hidden" name="submit" value="submit" />
<button type="submit" class="btn btn-primary">Submit</button>
<a class="btn" href="/data/<?= $this->uuid ?>">Cancel</a>
</div>
</form>
<?php }?>
</div><!--/span-->
</div><!--/row-->