HEX
Server: Apache/2.2.15 (CentOS)
System: Linux ip-10-0-2-146.eu-west-1.compute.internal 2.6.32-754.35.1.el6.centos.plus.x86_64 #1 SMP Sat Nov 7 11:33:42 UTC 2020 x86_64
User: root (0)
PHP: 5.6.40
Disabled: NONE
Upload Files
File: /www/exchange0old/exchange/cache/%%84^846^846F8B53%%view_debtor.html.php
<?php /* Smarty version 2.6.19, created on 2024-06-17 16:13:45
         compiled from debtors/view_debtor.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'siteUrl', 'debtors/view_debtor.html', 65, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
  <tbody>
    <tr>
      <td align="left" valign="top"><table cellspacing="0" cellpadding="0" border="0" width="100%">
          <tbody>
            <tr>
              <td align="center" valign="top">&nbsp;</td>
            </tr>
            <tr>
              <td align="left" valign="middle" class="login_bg"><table cellspacing="0" cellpadding="0" border="0" width="100%">
                  <tbody>
                    <tr>
                      <td align="left" width="" valign="middle" class="login_bg_t">Exchange Trade Centre | My  Information Account</td>
                      <td width="" align="left" valign="middle" class="txt_11">Originator Organisation ID: <?php echo $_SESSION['user']['org_ref_id']; ?>
  </td>
                      <td align="right" width="" valign="middle" class="txt_11">
                      <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'originator_top_dashboard_links.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>
                    </tr>
                  </tbody>
                </table>
            <tr>
              <td align="center" valign="top" class="about_c"><table cellspacing="5" cellpadding="5" border="0" width="100%">
                  <tbody>
                    <tr>
                      <td align="left" width="18%" valign="top"><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'left_sidebar.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>
                      <td align="right" width="82%" valign="top"><table cellspacing="0" cellpadding="0" border="0" width="100%">
                          <tbody>
                            <tr>
                              <td align="left" valign="top" class="hdr_center"><table cellspacing="0" cellpadding="0" border="0" width="100%">
                                  <tr>
                                    <td colspan="3">
                                    	<?php if (! empty ( $this->_tpl_vars['messages'] )): ?>
                                          <div class="error-msgbox">
                                            <?php $_from = $this->_tpl_vars['messages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['error']):
?>
                                            <?php echo $this->_tpl_vars['error']; ?>

                                            <br>
                                            <?php endforeach; endif; unset($_from); ?>
                                          </div>
                                        <?php endif; ?>
                                        <?php if (! empty ( $this->_tpl_vars['result'] )): ?>
                                          <div class="success-msgbox">
                                            <?php echo $this->_tpl_vars['result']; ?>

                                          </div>
                                    	<?php endif; ?>
                                    </td>
                                  </tr>
                                  <tbody>
                                    <tr>
                                      <td align="left" valign="top" class="inves_top1" colspan="3"><table cellpadding="0" cellspacing="0" border="0" width="99%">
                                          <tr>
                                            <td align="left" style="color:#FFF;"><?php echo $this->_tpl_vars['debtor']['debtor_real_name']; ?>

                                            Information</td>
                                            <td align="center" style="color:#FFF;">ID : <?php echo $this->_tpl_vars['debtor']['debtor_reference_id']; ?>
</td>

                                            <td align="right">
                                              <?php if ($this->_tpl_vars['debtor']['status'] != 8): ?>
                                              		<input type="button" value="Edit" valign="middle" onclick="self.location='index.php?do=editdebtor&id=<?php echo $this->_tpl_vars['debtor']['debtor_id']; ?>
';" class="login_bttn" style="width:70px;">
                                              <?php endif; ?>

                                              <?php if ($this->_tpl_vars['debtor']['noid_link'] == ''): ?>

                                                <input type="button" value="Add NoI" valign="middle" onclick="redirectNoI(<?php echo $this->_tpl_vars['debtor']['parent_id']; ?>
,<?php echo $this->_tpl_vars['debtor']['debtor_id']; ?>
);" class="login_bttn" style="width:80px;">
                                                <?php else: ?>

                                                <a href="<?php echo $this->_tpl_vars['debtor']['noid_link']; ?>
" target="_blank" style="vertical-align:bottom;"><img border="0" alt="Click here to view this report" src="<?php echo ((is_array($_tmp='/images/download_history_pdf.png')) ? $this->_run_mod_handler('siteUrl', true, $_tmp) : smarty_modifier_siteUrl($_tmp)); ?>
" height="25" ></a>

                                                <?php endif; ?>
                                              </td>
                                          </tr>
                                        </table></td>
                                    </tr>
                                    <tr class="row1">
                                      <td align="left" width="40%" valign="middle"><strong>Name  :</strong></td>
                                      <td align="left" colspan="2" valign="top">
                                      	<?php echo $this->_tpl_vars['debtor']['debtor_real_name']; ?>
 <span style="float:right;">
                                        <?php if ($this->_tpl_vars['debtor']['type'] == 'debtor'): ?>
                                      	    <?php if ($this->_tpl_vars['debtor']['history_id'] != '0'): ?>
                                            <a href="index.php?do=viewdebtor_history&id=<?php echo $this->_tpl_vars['debtor']['history_id']; ?>
" class="Clstr_hints">View Trading History</a>
                                            <?php else: ?>
                                            <a href="javascript:replaceDoc(<?php echo $_GET['id']; ?>
);" class="Clstr_hints">Upload Experience File</a>
                                            <?php endif; ?></span> &nbsp;
                                        <?php endif; ?>
                                        </td>
                                    </tr>

                                    <tr class="row2">
                                      <td align="left" width="40%" valign="middle"><strong>Credebt ExchangeID  :</strong></td>
                                      <td align="left" width="58%" valign="top">
                                        <?php echo $this->_tpl_vars['debtor']['debtor_reference_id']; ?>
</td>
                                      <td align="right" width="3%" valign="middle">&nbsp;</td>
                                    </tr>

                                    <tr class="row1">
                                      <td align="left" valign="middle">
                                      	<strong>Registration Number  :</strong></td>
                                      <td align="left" valign="top">
                                      	<?php echo $this->_tpl_vars['debtor']['debtor_company_registration_number']; ?>
</td>
                                      <td align="right" valign="middle"></td>
                                    </tr>
                                    <tr class="row2">
                                      <td align="left" valign="middle"><strong>Trading Name :</strong></td>
                                      <td align="left" valign="top">
                                      	<?php if ($this->_tpl_vars['debtor']['trade_name'] != ''): ?>
                                        	<?php echo $this->_tpl_vars['debtor']['trade_name']; ?>

                                        <?php else: ?>
                                        	n/a
                                        <?php endif; ?></td>
                                      <td align="right" valign="middle"></td>
                                    </tr>
                                    <tr class="row1">
                                      <td align="left" valign="middle"><strong>Previous Name  :</strong></td>
                                      <td align="left" valign="top">
                                      	<?php if ($this->_tpl_vars['debtor']['previous_name'] != ''): ?>
                                        	<?php echo $this->_tpl_vars['debtor']['previous_name']; ?>

                                        <?php else: ?>
                                        	n/a
                                        <?php endif; ?></td>
                                      <td align="right" valign="middle"></td>
                                    </tr>
                                    <!--<tr class="row1">
                                        <td align="left" valign="middle">Organisation  :</td>
                                        <td align="left" valign="top">
                                        	<?php echo $this->_tpl_vars['debtor']['organisation']; ?>
</td>
                                        <td align="right" valign="middle"></td>
                                      </tr>-->
                                    <tr class="row2">
                                    <td align="left" valign="middle"><strong>Currency  :</strong></td>
                                    <td align="left" valign="top">
                                      <?php echo $this->_tpl_vars['debtor']['currency']['currency_code']; ?>
 <?php echo $this->_tpl_vars['debtor']['currency']['country_name']; ?>
</td>
                                    <td align="right" valign="middle"></td>
                                  </tr>
                                    <tr class="row1">
                                      <td align="left" valign="middle"><strong>NACEC  :</strong></td>
                                      <td align="left" valign="top">
                                      	<?php echo $this->_tpl_vars['debtor']['nace_group_id']; ?>
</td>
                                      <td align="right" valign="middle"></td>
                                    </tr>
                                    <tr class="row2">
                                      <td align="left" valign="middle"><strong>NACED  :</strong></td>
                                      <td align="left" valign="top"><?php echo $this->_tpl_vars['debtor']['nace_id']; ?>
</td>
                                      <td align="right" valign="middle"></td>
                                    </tr>
                                    
                                     
                                	<tr>
                                      <td align="left" valign="top" class="inves_top3" colspan="3">
                                      	<strong>Primary Address</strong></td>
                                    </tr>
                                    <tr class="row1">
                                      <td align="left" valign="middle"><strong>Address Line 1  :</strong></td>
                                      <td align="left" valign="top">
                                      	<?php echo $this->_tpl_vars['address']['address_line_one']; ?>
</td>
                                      <td align="right" valign="middle"></td>
                                    </tr>
                                    <tr class="row2">
                                      <td align="left" valign="middle"><strong>Address Line 2 : </strong></td>
                                      <td align="left" valign="top">
                                      	<?php echo $this->_tpl_vars['address']['address_line_two']; ?>
</td>
                                      <td align="right" valign="middle"></td>
                                    </tr>
                                    <tr class="row1">
                                      <td align="left" valign="middle"><strong>City / Town : </strong></td>
                                      <td align="left" valign="top">
                                      	<?php echo $this->_tpl_vars['address']['address_city']; ?>
</td>
                                      <td align="right" valign="middle"></td>
                                    </tr>
                                    <tr class="row2">
                                      <td align="left" valign="middle"><strong>Area / Country :</strong></td>
                                      <td align="left" valign="middle">
                                      	<span style="font-size: 11px; padding-left: 0px;">
                                        <?php echo $this->_tpl_vars['address']['address_state']; ?>

                                        </span></td>
                                      <td align="center" valign="middle"></td>
                                    </tr>
                                    <tr class="row1">
                                      <td align="left" valign="middle"><strong>Country : </strong></td>
                                      <td align="left" valign="top">
                                      	<?php $_from = $this->_tpl_vars['country']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['myId'] => $this->_tpl_vars['i']):
?>
                                            <?php if (( $this->_tpl_vars['i']['country_id'] == $this->_tpl_vars['address']['address_country'] )): ?>
                                           		<?php echo $this->_tpl_vars['i']['country_name']; ?>

                                            <?php endif; ?>
                                        <?php endforeach; endif; unset($_from); ?></td>
                                      <td align="right" valign="middle"></td>
                                    </tr>
                                    <tr class="row2">
                                      <td align="left" valign="middle"><strong>Post Code :</strong></td>
                                      <td align="left" valign="top">
                                      	<?php echo $this->_tpl_vars['address']['address_zipcode']; ?>
</td>
                                      <td align="right" valign="middle"></td>
                                    </tr>
                                    <tr class="row1">
                                      <td align="left" valign="top"><strong>Phone Number :</strong></td>
                                      <td align="left" valign="top">
                                      	<?php echo $this->_tpl_vars['address']['address_phone_country']; ?>

                                        <?php echo $this->_tpl_vars['address']['address_phone_code']; ?>

                                        <?php echo $this->_tpl_vars['address']['address_phone']; ?>
</td>
                                      <td align="center" valign="top"></td>
                                    </tr>
                                    <tr class="row2">
                                      <td align="left" valign="top">
                                      	<span style="font-size: 11px; padding-left: 0px;">
                                        	<strong>Fax Number :</strong>
                                        </span>
                                      </td>
                                      <td align="left" valign="top">
                                      	<?php echo $this->_tpl_vars['address']['address_fax_country']; ?>

                                        <?php echo $this->_tpl_vars['address']['address_fax_code']; ?>

                                        <?php echo $this->_tpl_vars['address']['address_fax']; ?>
</td>
                                      <td align="center" valign="top"></td>
                                    </tr>
                                    <tr class="row1">
                                      <td align="left" valign="top"><strong>Email Address</strong> : </td>
                                      <td align="left" valign="top">
                                      	<?php echo $this->_tpl_vars['address']['address_email']; ?>
</td>
                                      <td align="right" valign="top"></td>
                                    </tr>
                                  
                                    <tr>
                                      <td align="left" valign="top" class="inves_top3" colspan="3">
                                      	<strong>Billing Address&nbsp;&nbsp;</strong></td>
                                    </tr>
                                    <tr class="row1">
                                      <td align="left" valign="middle"><strong>Address Line 1  :</strong></td>
                                      <td align="left" valign="top">
                                      	<?php echo $this->_tpl_vars['billing_address']['address_line_one']; ?>
</td>
                                      <td align="right" valign="middle"></td>
                                    </tr>
                                    <tr class="row2">
                                      <td align="left" valign="middle"><strong>Address Line 2 : </strong></td>
                                      <td align="left" valign="top">
                                      	<?php echo $this->_tpl_vars['billing_address']['address_line_two']; ?>
</td>
                                      <td align="right" valign="middle"></td>
                                    </tr>
                                    <tr class="row1">
                                      <td align="left" valign="middle"><strong>City / Town : </strong></td>
                                      <td align="left" valign="top">
                                      	<?php echo $this->_tpl_vars['billing_address']['address_city']; ?>
</td>
                                      <td align="right" valign="middle"></td>
                                    </tr>
                                    <tr class="row2">
                                      <td align="left" valign="middle">
                                      	<span style="font-size: 11px; padding-left: 0px;">
                                        	<strong>Area / Country :</strong>
                                        </span></td>
                                      <td align="left" valign="middle">
                                      	<span style="font-size: 11px; padding-left: 0px;" id="b_dropState">
                                        	<?php echo $this->_tpl_vars['billing_address']['address_state']; ?>

                                        </span></td>
                                      <td align="center" valign="middle"></td>
                                    </tr>
                                    <tr class="row1">
                                      <td align="left" valign="middle"><strong>Country : </strong></td>
                                      <td align="left" valign="top">
                                      	<?php $_from = $this->_tpl_vars['country']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['myId'] => $this->_tpl_vars['i']):
?>
                                            <?php if (( $this->_tpl_vars['i']['country_id'] == $this->_tpl_vars['billing_address']['address_country'] )): ?>
                                            	<?php echo $this->_tpl_vars['i']['country_name']; ?>

                                            <?php endif; ?>
                                        <?php endforeach; endif; unset($_from); ?></td>
                                      <td align="right" valign="middle"></td>
                                    </tr>
                                    <tr class="row2">
                                      <td align="left" valign="middle"><strong>Post Code :</strong></td>
                                      <td align="left" valign="top">
                                      	<?php echo $this->_tpl_vars['billing_address']['address_zipcode']; ?>
</td>
                                      <td align="right" valign="middle"></td>
                                    </tr>
                                    <tr class="row1">
                                      <td align="left" valign="top">
                                      	<span style="font-size: 11px; padding-left: 0px;">
                                        	<strong>Phone Number :</strong> </span></td>
                                      <td align="left" valign="top">
                                      	<?php echo $this->_tpl_vars['billing_address']['address_phone_country']; ?>

                                        <?php echo $this->_tpl_vars['billing_address']['address_phone_code']; ?>

                                        <?php echo $this->_tpl_vars['billing_address']['address_phone']; ?>
</td>
                                      <td align="center" valign="top"></td>
                                    </tr>
                                    <tr class="row2">
                                      <td align="left" valign="top">
                                      	<span style="font-size: 11px; padding-left: 0px;">
                                        	<strong>Fax Number :</strong>
                                        </span>
                                      </td>
                                      <td align="left" valign="top">
                                      	<?php echo $this->_tpl_vars['billing_address']['address_fax_country']; ?>

                                        <?php echo $this->_tpl_vars['billing_address']['address_fax_code']; ?>

                                        <?php echo $this->_tpl_vars['billing_address']['address_fax']; ?>
</td>
                                      <td align="center" valign="top"></td>
                                    </tr>
                                    <tr class="row1">
                                      <td align="left" valign="top"><strong>Email Address</strong> : </td>
                                      <td align="left" valign="top">
                                      	<?php echo $this->_tpl_vars['billing_address']['address_email']; ?>

                                      </td>
                                      <td align="right" valign="top"></td>
                                    </tr>
                                  
									<tr>
                                      <td align="left" valign="top" class="inves_top3" colspan="3">
                                      	<strong>Account Contact Details</strong>
                                      </td>
                                    </tr>
                                    <tr class="row1">
                                      <td align="left" valign="top">
                                      	<strong>Contact First Name :</strong></td>
                                      <td align="left" valign="top">
                                       	<?php echo $this->_tpl_vars['debtor']['debtor_contact_first_name']; ?>

                                      </td>
                                      <td align="left" valign="top"></td>
                                    </tr>
                                    <tr class="row2">
                                      <td align="left" valign="top">
                                      	<strong>Contact Last Name :</strong>
                                      <td align="left" valign="top">
                                      	<?php echo $this->_tpl_vars['debtor']['debtor_contact_last_name']; ?>
</td>
                                      <td align="left" valign="top"></td>
                                    </tr>
                                    <tr class="row1">
                                      <td align="left" valign="top">
                                       	<strong>Phone  :</strong>
                                      </td>
                                      <td align="left" valign="top">
                                      	<?php echo $this->_tpl_vars['contact_address']['address_phone_country']; ?>

                                        <?php echo $this->_tpl_vars['contact_address']['address_phone_code']; ?>

                                        <?php echo $this->_tpl_vars['contact_address']['address_phone']; ?>
</td>
                                      <td align="left" valign="top">&nbsp;&nbsp;&nbsp;</td>
                                    </tr>
                                    <tr class="row2">
                                      <td align="left" valign="top"><strong>Email :</strong></td>
                                      <td align="left" valign="top">
                                      	<?php echo $this->_tpl_vars['contact_address']['address_email']; ?>
<span style="font-weight:bold;color:#FF0000;font-size:11px;padding-left:5px;">ETR&nbsp;Invoices&nbsp;are&nbsp;Emailed&nbsp;to&nbsp;this&nbsp;Email&nbsp;Address</span></td>
                                      <td align="left" valign="top"></td>
                                    </tr>
                                    <tr class="row1">
                                      <td align="left" valign="top"><strong>Customer Since  :</strong></td>
                                      <td align="left" valign="top">
                                      	<?php echo $this->_tpl_vars['debtor']['customer_since']; ?>
</td>
                                      <td align="left" valign="top"></td>
                                    </tr>
                                    <tr class="row2">
                                      <td align="left" valign="top"><strong>Founded  :</strong></td>
                                      <td align="left" valign="top">
                                      	<?php echo $this->_tpl_vars['debtor']['founded']; ?>
</td>
                                      <td align="left" valign="top"></td>
                                    </tr>
                                    <tr class="row1">
                                      <td align="left" valign="top"><strong>Total Value :</strong></td>
                                      <td align="left" valign="top">
                                      	<?php echo $this->_tpl_vars['debtor']['organisation']['currency_code']; ?>

                                        <?php echo $this->_tpl_vars['debtor']['total_debtor_value']; ?>
</td>
                                      <td align="left" valign="top"></td>
                                    </tr>
                                    <tr class="row2">
                                      <td align="left" valign="top"><strong>Average Payment Cycle :</strong></td>
                                      <td align="left" valign="top">
                                      	<?php echo $this->_tpl_vars['debtor']['average_payment_cycle']; ?>
</td>
                                      <td align="left" valign="top"></td>
                                    </tr>
                                    <tr class="row1">
                                      <td align="left" valign="top"><strong>Credit Notes Issued :</strong></td>
                                      <td align="left" valign="top">
                                      	<?php echo $this->_tpl_vars['debtor']['no_credit_note_issued']; ?>
</td>
                                      <td align="left" valign="top"></td>
                                    </tr>
                                    <tr class="row2">
                                      <td align="left" valign="top">
                                      	<strong>Invoices Predicted Per Annum :</strong></td>
                                      <td align="left" valign="top">
                                      	<?php echo $this->_tpl_vars['debtor']['avg_invoice_predicted_annum']; ?>
</td>
                                      <td align="left" valign="top"></td>
                                    </tr>
                                    <tr class="row1">
                                      <td align="left" valign="top">
                                      	<strong>Predicted Annual Revenue :</strong></td>
                                      <td align="left" valign="top">
                                      	<?php echo $this->_tpl_vars['debtor']['organisation']['currency_code']; ?>

                                        <?php echo $this->_tpl_vars['debtor']['avg_revenue_predicted_annum']; ?>
</td>
                                      <td align="left" valign="top"></td>
                                    </tr>
                                    <tr class="row2">
                                      <td align="left" valign="top"><strong><b>Credit Limit :</b></strong></td>
                                      <td align="left" valign="top"><?php echo $this->_tpl_vars['debtor']['organisation']['currency_code']; ?>
 <?php echo $this->_tpl_vars['debtor']['credit_limit']; ?>
</td>
                                      <td align="left" valign="top"></td>
                                    </tr>

                                    <tr>
                                      <td align="left" valign="top" colspan="3">&nbsp;</td>
                                    </tr>
                                  </tbody>
                                </table></td>
                            </tr>
                          </tbody>
                        </table></td>
                    </tr>
                  </tbody>
                </table></td>
            </tr>
          </tbody>
        </table></td>
    </tr>
  </tbody>
</table>
</td>
</tr>
<tr>
  <td align="left" valign="top">&nbsp;</td>
</tr>
</tbody>
</table>
<div id="assistantpopup" class="clshide" style="display:none; margin:0 auto; width:693px;">
 <div style="position:fixed; top:40%; width:500px; background: none repeat scroll 0% 0% #CCC; padding:5px; z-index:99; margin-top: auto; margin-left: 125px; margin-right: auto; vertical-align: middle;">
      <form enctype="multipart/form-data" method="post" action="javascript:void(0);" name="form1" id="form1">
        <table width="100%" cellspacing="0" cellpadding="0" border="0">
          <tbody>
            <tr>
              <td class=""><table width="100%" cellspacing="0" cellpadding="5" border="0">
                  <tbody>
                    <tr>
                      <td><span>Upload File</span></td>
                      <td valign="middle" align="right"><span style="cursor:pointer" class="closefile">X</span></td>
                    </tr>
                  </tbody>
                </table></td>
            </tr>
            <tr>
              <td><table width="100%" cellspacing="0" cellpadding="10" border="0">
                  <tbody>
                    <tr class="very_lite_gray">
                      <td valign="top" align="center" class="txt_11_red"></td>
                      <td width="" valign="top" align="right"> Add File:</td>
                      <td width="" valign="top" align="left"><input type="file" class="browse clsfile" id="fileupload" name="fileupload" accept=".pdf">
                        <br>
                        <span style="color:#FF0000" id="errorfirst"> </span></td>
                      <td valign="top" align="right">&nbsp;</td>
                    </tr>
                    <tr>
                      <td valign="top" align="center" class="dark_gray_bg" colspan="4"><input type="submit" value="Upload" id="chck"></td>
                    </tr>
                  </tbody>
                </table></td>
            </tr>
          </tbody>
        </table>
      </form>
  </div>
</div>


    <div class="clear"></div>



<div id="popUp" style="display:none;">
  <div id="light" class="white_content">
    <div id="view_plans"> </div>
  </div>
  <div id="fade" class="black_overlay"></div>
</div>

<div class="fancybox"></div>


<script>

var fancybox = $('.fancybox');
var assistantpopup=$('#assistantpopup');

function redirectNoI(id,deb){
      assistantpopup.fadeIn();
      fancybox.show();
}

$('#chck').on('click',function(){

  var dataval = $("#fileupload").val();
  var id = '<?php echo $_GET['id']; ?>
';

  if (dataval == '') {
                    error = 1;
                    $('#errorfirst').html("It's Required, cannot be Blank!");
                    $('#errorfirst').parent().show();
       
  }else{

    document.getElementById('form1').action = 'index.php?do=savefileupload&id='+id+'&flag=view';
  }
});



$('.closefile').on('click', function(e) {
      $(this).closest('.clshide').fadeOut();
      fancybox.hide();
        });


function replaceDoc(id)
{

  mywins = window.open('index.php?do=replacedebtordoc&id='+id,"mywins","width=850,height=400,scrollbars=yes");
  mywins.focus();
}


</script>


<style>


.fancybox{
  background:#000;
  opacity:0.5;
  filter: alpha(opacity = 50);
  position:absolute;
  width:100%;
  height:200%;
  display:none;
  top:0;
  left:0;
}

.black_overlay{ display: block; position: fixed;top: 0%;left: 0%;width: 100%;height: 100%;background-color: black;z-index:1001;-moz-opacity: 0.8;opacity:.80;filter: alpha(opacity=80);}
#view_plans { width:730px;}
.white_content {
    display: block;
    height: auto;
    left: 53%;
    margin: -320px 0 0 -460px;
    overflow: auto;
    position: absolute;
    top: 50%;
    width: 60%;
    z-index: 1002;
}
.inves_top{ background:#c6c3c6;height:25px;line-height:25px; padding-left:10px;color:#fff;}

.very_lite_gray {
    background: #EDEDED !important;
    border-bottom: 2px solid #FFFFFF;
    border-top: 2px solid #FFFFFF;
}

.very_lite_gray td{

    font-size: 11px;
    line-height: 16px;
    padding: 5px;
}
.popup_close{
    right:10px;top:5px;text-indent:-999em;
     background: url("<?php echo ((is_array($_tmp='/images/popup_close.gif')) ? $this->_run_mod_handler('siteUrl', true, $_tmp) : smarty_modifier_siteUrl($_tmp)); ?>
") no-repeat left top;
    height: 16px;
    position: absolute;
    width: 16px;
}
</style>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>