?
Current Path : /home1/savoy/www/savoyglobal.net/drafthr/system/application/views/Policies/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/www/savoyglobal.net/drafthr/system/application/views/Policies/singledeclaration.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ foreach($viewinfo as $updata) { $declarationid = $updata['id']; $policyid=$updata['policyid']; $decpolicyno=$updata['decpolicyno']; $date=$updata['date']; $decrefno=$updata['decrefno']; $mode=$updata['mode']; $premiumchange=$updata['premiumchange']; $remarks=$updata['remarks']; $paymentoptions=$updata['paymentoptions']; $amount=$updata['amount']; } $policynum=$this->mastermodel->get_data_srow('policynote',$policyid,'id'); $covername=$this->policiesmodel->get_cover_policy($policyid); $customername=$this->policiesmodel->get_customer_policy($policyid); $date=$this->mastermodel->convdatformat($date); ?> <div class="select-bar"> <label> <img src="<?=base_url()?>/assets/images/backbutton.png" title="Back" class="clickimage" onclick="loaddeclaration('<?=$_SESSION['pagenum']?>','<?=$_SESSION['searchoption']?>','<?=$_SESSION['searchtxt']?>')" alt="Back" align = "center" width="25" height="25" /></label> </div> <fieldset> <legend>Declaration</legend> <ul> <li> <label>Customer Name</label><label class="lbl_column">:</label> <label class="lbl_title"> <?php echo $customername; ?></label></li> <li> <label>Type of Cover</label><label class="lbl_column">:</label> <label class="lbl_title"> <?php echo $covername; ?></label></li> <li> <label>Declaration Ref No</label><label class="lbl_column">:</label> <label class="lbl_title"> <?php echo $decrefno; ?></label></li> <li> <label for="country">Policy No</label><label class="lbl_column">:</label> <label class="lbl_title"> <?php echo $policynum->policyno; ?></label></li> <li> <label for="country">Declaration Policy No</label><label class="lbl_column">:</label> <label class="lbl_title"> <?php echo $decpolicyno; ?></label></li> <li> <label >Declaration Date</label><label class="lbl_column">:</label> <label class="lbl_title"> <?php echo $date; ?></label></li> <li> <label for="date">Remarks</label><label class="lbl_column">:</label> <label class="lbl_title"> <?php echo nl2br($remarks); ?></label></li> <li> <label for="date">Declaration Mode</label><label class="lbl_column">:</label> <label class="lbl_title"> <?php echo $mode; ?></label></li> <li> <label for="date">Change in Premium</label><label class="lbl_column">:</label> <label class="lbl_title"> <?php echo $premiumchange; ?></label></li> <li> <label for="date">Payment Options</label><label class="lbl_column">:</label> <label class="lbl_title"> <?php echo $paymentoptions; ?></label></li> <li> <label for="date">Amount</label><label class="lbl_column">:</label> <label class="lbl_title"> <?php echo $amount; ?></label></li> <li> <label> File Structure<img alt="" class="clickimage" onclick="showfolderstruct()" src="<?=base_url()?>/assets/images/folder-icon.png"/></label> <div id="div3" class="hidden" ><fieldset> <div id="treediv"> <ul id="dhtmlgoodies_tree2" class="dhtmlgoodies_tree"> <li id="node0" noDrag="true" noSiblings="true" noDelete="true" noRename="true"><a href="#">Root Directory</a> <ul> <li id="node1"><a href="#">Uploaded Directories</a> <ul> <?php foreach($directory as $dir) { $dirpath=$dir['dirname']; $subdirectory=$this->mastermodel->get_data('sub_directory',$dir['id'],'parentdir'); ?> <li id="node2" noDelete="true" ><a class="clickimage"onclick="uploadpath('<?=$dirpath?>')"><?php echo $dir['dirname'];?></a> <ul> <?php foreach($declaration_files as $files) { $splitfile=explode('/',$files['filename']); // var_dump($splitfile); //echo count($splitfile); if($splitfile[0]==$dir['dirname'] && count($splitfile)=='2') {?> <li id="node" noRename="true"><a class="clickimage" href="<?=base_url()?>uploads/<?=$dir['dirname']?>/<?=$splitfile[1]?>"><img src="<?=base_url()?>/assets/images/files_32.png"><?php echo $splitfile[1];?></a></li> <?php } $id++; }?> <?php $id=1; foreach($subdirectory as $subdir) { $subpath=$subdir['subdirname']; ?> <li id="node" noRename="true"><a class="clickimage" onclick="uploadsubpath('<?=$dirpath?>','<?=$subpath?>')"><?php echo $subdir['subdirname'];?></a> <ul> <?php foreach($declaration_files as $files) { $splitfile=explode('/',$files['filename']); if($splitfile[0]==$dir['dirname'] && $splitfile[1]==$subdir['subdirname']) {?> <li id="node" noRename="true"><a class="clickimage" href="<?=base_url()?>uploads/<?=$dir['dirname']?>/<?=$subdir['subdirname']?>/<?=$splitfile[2]?>"><img src="<?=base_url()?>/assets/images/files_32.png"><?php echo $splitfile[2];?></a></li> <?php } $id++; }?> </ul> <?php }?> </li> </ul></li> <?php } ?> </ul> </li> </ul> </li></ul> <script type="text/javascript"> treeObj = new JSDragDropTree(); treeObj.setTreeId('dhtmlgoodies_tree2'); treeObj.setMaximumDepth(7); treeObj.setMessageMaximumDepthReached('Maximum depth reached'); // If you want to show a message when maximum depth is reached, i.e. on drop. treeObj.initTree(); treeObj.expandAll(); </script></div></fieldset></div> </li> </ul> </fieldset>