2013-04-08 08:43:11 +00:00
<?php
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->data);
2013-11-10 08:34:18 +00:00
$this->headTitle('Offline Order');
2013-04-08 08:43:11 +00:00
$this->headTitle()->setSeparator(' - ');
2013-11-10 08:34:18 +00:00
$this->breadcrumb('< a href = "/" > Home< / a > ');
2013-04-08 08:43:11 +00:00
$this->breadcrumb('< a href = "/data" > '.$this->config->title->data.'< / a > ');
2013-11-10 08:34:18 +00:00
$this->breadcrumb('< a href = "/data/order" > Offline Order< / a > ');
$this->breadcrumb('Offline Order PDF generate');
2013-04-08 08:43:11 +00:00
$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" >
2013-11-10 08:34:18 +00:00
< h3 > Submit Offline Order< / h3 >
< h4 > Dataset list< / h4 >
2013-06-06 13:38:09 +00:00
< blockquote >
2013-04-08 08:43:11 +00:00
< ul class = "unstyled" >
<?php foreach ( $this -> data2 as $i => $md ) : ?>
< li > <?php echo ( $i + 1 ) . ". " . $md [ 'title' ]; ?> </ li >
<?php endforeach ; ?>
2013-06-06 13:38:09 +00:00
< / ul > < / blockquote >
2013-10-28 14:54:21 +00:00
< hr / >
2013-11-10 08:34:18 +00:00
< h4 > Offline PDF form< / h4 >
2013-04-08 08:43:11 +00:00
<?php if ( $this -> messages ) : foreach ( $this -> messages as $msg ) : ?>
< div class = "alert" > <?php echo $msg ; ?> </ div >
<?php endforeach ; endif ; ?>
<?php if ( $this -> msg ) : ?>
2013-10-28 14:54:21 +00:00
<?php echo $this -> msg ; ?>
2013-04-08 08:43:11 +00:00
<?php endif ; ?>
2013-10-28 14:54:21 +00:00
<?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" >
2013-11-10 08:34:18 +00:00
< label class = "control-label" name = "realname" > Name< / label >
2013-10-28 14:54:21 +00:00
< 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" >
2013-11-10 08:34:18 +00:00
< label class = "control-label" name = "phone" > Phone< / label >
2013-10-28 14:54:21 +00:00
< 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" >
2013-11-10 08:34:18 +00:00
< label class = "control-label" name = "unit" > Company/Organization< / label >
2013-10-28 14:54:21 +00:00
< 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" >
2013-11-10 08:34:18 +00:00
< label class = "control-label" name = "address" > Address< / label >
2013-10-28 14:54:21 +00:00
< 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" >
2013-11-10 08:34:18 +00:00
< label class = "control-label" name = "postcode" > Postcode< / label >
2013-10-28 14:54:21 +00:00
< 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" >
2013-11-10 08:34:18 +00:00
< label class = "control-label" name = "project_id" > Fund number< / label >
2013-10-28 14:54:21 +00:00
< 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" >
2013-11-10 08:34:18 +00:00
< label class = "control-label" name = "project_type" > Fund type< / label >
2013-10-28 14:54:21 +00:00
< div class = "controls" >
< select name = "project_type" id = "project_type" helper = "formSelect" >
2013-11-10 08:34:18 +00:00
< option value = "" label = "Fund type" <? = empty ( $this -> formData [ 'project_type' ]) ? 'selected="selected"' : "" ?> > Fund type</ option >
2013-10-28 14:54:21 +00:00
<?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" >
2013-11-10 08:34:18 +00:00
< label class = "control-label" name = "project_title" > Fund title< / label >
2013-10-28 14:54:21 +00:00
< 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" >
2013-11-10 08:34:18 +00:00
< label class = "control-label" name = "leader" > Fund PI< / label >
2013-10-28 14:54:21 +00:00
< 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" >
2013-11-10 08:34:18 +00:00
< label class = "control-label" name = "project" > Data Usage< br / > (Please write about 50-100 words)< / label >
2013-10-28 14:54:21 +00:00
< 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" >
2013-11-10 08:34:18 +00:00
< input type = "submit" name = "save" id = "savebutton" value = "PDF Preview" class = "btn" >
2013-10-28 14:54:21 +00:00
2013-11-10 08:34:18 +00:00
< input type = "submit" name = "submit" id = "submitbutton" value = "Download PDF" class = "btn btn-primary" >
2013-10-28 14:54:21 +00:00
< / div >
< / div >
< div class = "control-group" >
< div class = "controls" >
2013-11-10 08:34:18 +00:00
< 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 >
2013-10-28 14:54:21 +00:00
< / div >
< / div >
< / form >
2013-04-08 08:43:11 +00:00
< / div > <!-- /span -->
2009-03-06 03:20:46 +00:00
< / div >