function content_5778b6e51b94f3_78556021($_smarty_tpl)
    {
        if (!is_callable('smarty_function_func')) {
            include '/homepages/37/d619410358/htdocs/developer/ext/smarty3/plugins/function.func.php';
        }
        ?>
<div class="fldTitle">Business Address 
	<div class="fldTitleLinks">
	<a href="<?php 
        echo smarty_function_func(array('name' => 'LeadField', 'field' => 'MapQuestUrl', 'BusinessAddress' => $_smarty_tpl->tpl_vars['BusinessAddress']->value, 'BusinessCity' => $_smarty_tpl->tpl_vars['BusinessCity']->value, 'BusinessState' => $_smarty_tpl->tpl_vars['BusinessState']->value, 'BusinessZip' => $_smarty_tpl->tpl_vars['BusinessZip']->value), $_smarty_tpl);
        ?>
" target="_blank">MapQuest</a>
	</div>
</div>
            <input type="text" readonly="readonly" class="inpWide" value="<?php 
        echo $_smarty_tpl->tpl_vars['value']->value;
        ?>
" /><?php 
    }
    function content_5778af8c28b7b5_84722249($_smarty_tpl)
    {
        if (!is_callable('smarty_function_func')) {
            include '/homepages/37/d619410358/htdocs/developer/ext/smarty3/plugins/function.func.php';
        }
        if (!is_callable('smarty_function_html_options')) {
            include '/homepages/37/d619410358/htdocs/developer/ext/smarty3/plugins/function.html_options.php';
        }
        echo smarty_function_func(array('name' => 'SupportSearchBoxData', 'var' => 'suppsearch'), $_smarty_tpl);
        ?>
		

<form method="get" action="/support.php">
<input type="hidden" name="cmd" value="search" />
<table cellspacing="0" cellpadding="0" width="100%" border="0" class="leftNavTable">
  <col class="col1" />
  <col class="col2" />
    <tr class="menuitemsub_k">
	<td colspan="2">
	
	<table style="width:178px" border="0" cellspacing="0" cellpadding="0">
	<tr>
	<td style='width:138px;padding:0px 2px 0px 4px;vertical-align:middle'><input type="text" name="str" style='width:138px' value="<?php 
        echo $_smarty_tpl->tpl_vars['suppsearch']->value['SupportSearchStr'];
        ?>
"></td>
	<td style='width:30px; padding:0px 2px 0px 2px;vertical-align:middle'><input style='width:25px;padding:1px;' type="submit" value="Go" /></td></tr></table>      </td>
    </tr>
    <tr class="menuitemsub_k" 
                      >
      <td colspan="2" style='width:178px;padding:0px 2px 0px 4px;'><select style='width:170px' name="type">
	<option value="all">Search All</option>
	<?php 
        echo smarty_function_html_options(array('options' => $_smarty_tpl->tpl_vars['suppsearch']->value['selSupportSearchType'], 'selected' => $_smarty_tpl->tpl_vars['suppsearch']->value['SupportSearchType']), $_smarty_tpl);
        ?>

	  </select> </td>
    </tr>
</table>
</form><?php 
    }
    function content_5778af75c9b755_97675149($_smarty_tpl)
    {
        if (!is_callable('smarty_function_func')) {
            include '/homepages/37/d619410358/htdocs/developer/ext/smarty3/plugins/function.func.php';
        }
        echo '<script';
        ?>
 language="Javascript">
$(document).ready(function() {
	myBodyOnLoad();
	<?php 
        echo smarty_function_func(array('name' => 'BodyOnLoad'), $_smarty_tpl);
        ?>

});
<?php 
        echo '</script';
        ?>
>


<?php 
    }
    function content_5778b5e1ad9e94_87175621($_smarty_tpl)
    {
        if (!is_callable('smarty_function_js_include')) {
            include '/homepages/37/d619410358/htdocs/developer/ext/smarty3/plugins/function.js_include.php';
        }
        if (!is_callable('smarty_function_html_options')) {
            include '/homepages/37/d619410358/htdocs/developer/ext/smarty3/plugins/function.html_options.php';
        }
        if (!is_callable('smarty_function_func')) {
            include '/homepages/37/d619410358/htdocs/developer/ext/smarty3/plugins/function.func.php';
        }
        if (!is_callable('smarty_modifier_truncate')) {
            include '/homepages/37/d619410358/htdocs/developer/ext/smarty3/plugins/modifier.truncate.php';
        }
        if (!is_callable('smarty_modifier_money')) {
            include '/homepages/37/d619410358/htdocs/developer/ext/smarty3/plugins/modifier.money.php';
        }
        echo $_smarty_tpl->getSubTemplate('calendar.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>





<?php 
        echo smarty_function_js_include(array('src' => '/css/listboxes.css'), $_smarty_tpl);
        ?>



<?php 
        echo '<script';
        ?>
 language="javascript">

function myInit(){
}

function myFormSubmit(f){
	return true;
}

function onDel(f){
	var dd=document.getElementsByName('sel[]');
	var i;
	var c=0;
	for(i=0;i<dd.length;i++) if(dd[i].checked) c=1;
	if(!c){alert('No items selected');return false;}

	return confirm('Are you sure you want to delete selected items?')
}


function myExport(){
	var s=$('#formFilt').serialize()+'&format=export';
	myRedirect('/cashadvance.php?'+s);
	//formFilt
}
function myExport1(){
	var s=$('#formFilt').serialize()+'&cmd=repcolumns';
	myRedirect('/cashadvance.php?'+s);
	//formFilt
}

<?php 
        echo '</script';
        ?>
>
<style>
.toleft{borderX:solid red 1px;}
A.aMCALoan{ font-size:12pt;font-weight:bold}
span.spCreditScore{color:red}
span.spStatus{color:green;}
span.spStatus_Pending{color:red}

span.spFundingType{color:green;font-weight:bold}

DIV.cashAdvSection{
	border:solid  #3399FF 1px;
	margin:10px;
	width:648px;
	
     background: -webkit-gradient(linear, 0 0, 0 bottom, from(#E7F2FA), to(#AAE7FD));
	background: -moz-linear-gradient(#E7F2FA, #AAE7FD);
	background: linear-gradient(#E7F2FA, #AAE7FD);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#E7F2FA, endColorstr=#AAE7FD);
	
}

.cashAdvSection .tdLeft{
padding:8px;
}

.cashAdvSection .tdRight{
padding:8px;
}

.cashAdvSection table.tblRightBlock TD{
	border-bottom:solid #CCCCCC 1px;
}
</style>



<div class="TitleRow">
  	  <div class="toleft"><strong>MCA/Funding Services - 
	  <?php 
        if ($_smarty_tpl->tpl_vars['statusTitle']->value) {
            echo $_smarty_tpl->tpl_vars['statusTitle']->value;
        } else {
            ?>
All Accounts<?php 
        }
        ?>
	  
	  </strong></div>
  	  <div class="toright">&nbsp;
		<?php 
        if (permitted('SUPERADMIN-RIGHTS')) {
            ?>
          	<input type="button" value="Export" onclickx="myRedirect('<?php 
            echo $_smarty_tpl->tpl_vars['exportLink']->value;
            ?>
')" onclick="myExport()"/>
        <?php 
        }
        ?>
      
        <?php 
        echo $_smarty_tpl->getSubTemplate('status/mca_instr.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>

      </div>
	  
	  <!--add tehila-->
		<div class="toright">
				<input type="button" value="Design Report" onclickx="myRedirect('<?php 
        echo $_smarty_tpl->tpl_vars['exportLink']->value;
        ?>
')" onclick="myExport1()"/>
		</div>	
		<!--end tehila-->		
  	   
</div>



<TABLE WIDTH="100%">
  <TR >
    <TD align="center" class="tdValueColumn">
	  <form method="get" id="formFilt">
	  <input type="hidden" name="cmd" value="cashadv_list" />
<div class="boxLeft">
  <div class="fldTitle">Search by Users</div>
  <select name="owner_uid" onchange="this.form.submit()" style="width:90px">
    <option value="">All Users</option>
	      
	  <?php 
        echo smarty_function_html_options(array('options' => $_smarty_tpl->tpl_vars['selUser']->value, 'selected' => $_smarty_tpl->tpl_vars['owner_uid']->value), $_smarty_tpl);
        ?>

    
        </select>
</div>
	    
       <div class="boxLeft">
         <div class="fldTitle">Search by Lenders</div>
         <select name="lender_uid" onchange="this.form.submit()" style="width:90px">
          <option value="">All Lenders</option>
	        
	  <?php 
        echo smarty_function_html_options(array('options' => $_smarty_tpl->tpl_vars['selLender']->value, 'selected' => $_smarty_tpl->tpl_vars['lender_uid']->value), $_smarty_tpl);
        ?>

    
        </select>
       </div>	    
        
       <div class="boxLeft">
         <div class="fldTitle">Search by Type</div>
         <select name="FundingType" onchange="this.form.submit()" style="width:120px">
          <option value="">All Funding Types</option>
	        
	  <?php 
        echo smarty_function_html_options(array('options' => $_smarty_tpl->tpl_vars['selFundingType']->value, 'selected' => $_smarty_tpl->tpl_vars['FundingType']->value), $_smarty_tpl);
        ?>

    
        </select>
       </div>

       <div class="boxLeft">
         <div class="fldTitle">Search Status Level</div>
         <select name="status" onchange="this.form.submit()" style="width:120px">
          
	        
	  <?php 
        echo smarty_function_html_options(array('options' => $_smarty_tpl->tpl_vars['selStatus']->value, 'selected' => $_smarty_tpl->tpl_vars['status']->value), $_smarty_tpl);
        ?>

    
        </select>
       </div>

<!--add tehila
<div class="boxLeft">
	<div class="fldTitle">titel</div>

	<div class="toleft">&nbsp;
	    <input type="button" value="Edit Columns" onclickx="myRedirect('<?php 
        echo $_smarty_tpl->tpl_vars['exportLink']->value;
        ?>
')" onclick="myExport1()"/>
</div>
<!--end tehila-->

        
		<div class="toright">
           <div class="boxLeft">
             <div class="fldTitle">Start Date</div>
             <input class="rep_date" id="date1" type="text"
                name="date1" value="<?php 
        echo $_smarty_tpl->tpl_vars['date1']->value;
        ?>
" style="width:70px" maxlength="10" onchangeX="this.form.submit()" />
           </div>            
            
           <div class="boxLeft">
             <div class="fldTitle">End Date</div>
             <input class="rep_date" id="date2"
                type="text" name="date2" value="<?php 
        echo $_smarty_tpl->tpl_vars['date2']->value;
        ?>
" style="width:70px" maxlength="10" onchangeX="this.form.submit()" />
           </div>            
    
           <div class="boxLeft"><div class="fldTitle">&nbsp;</div>
             <input type="submit" value="Go"  style="width:38px"  />
           </div>
		</div>
	  </form>
	  </TD>
  </TR>
  <TR >
    <TD class="tdListNav"><?php 
        echo $_smarty_tpl->tpl_vars['rep']->value['pagerHtml'];
        ?>
</TD>
  </TR>
    
   <?php 
        if ($_smarty_tpl->tpl_vars['AchworksNotifier']->value) {
            ?>
   <tr><td><?php 
            echo $_smarty_tpl->tpl_vars['AchworksNotifier']->value;
            ?>
</td></tr>
   <?php 
        }
        ?>


    <TR >
    <TD class="tdListNav2"><?php 
        if (permitted('ADMIN-RIGHTS')) {
            ?>
<div class="navCheckAll"><input  name="checkbox" type="checkbox"  title="Check All" onclick="checkAll(this)" /></div><?php 
        }
        ?>
      <div class="navSortBy">
      	<a class="<?php 
        if ($_smarty_tpl->tpl_vars['layout']->value == 1) {
            ?>
disabled<?php 
        }
        ?>
" href="cashadvance.php?cmd=cashadv_list&layout=1">1-Up</a> 
        - <a class="<?php 
        if ($_smarty_tpl->tpl_vars['layout']->value == 3) {
            ?>
disabled<?php 
        }
        ?>
"href="cashadvance.php?cmd=cashadv_list&layout=3">3-Up</a> 
        
        Sort By: 
        <a href="<?php 
        echo $_smarty_tpl->tpl_vars['rep']->value['this']->orderlink('id');
        ?>
" class="<?php 
        echo $_smarty_tpl->tpl_vars['rep']->value['this']->orderclass('id');
        ?>
">Contract #</a>, 
        <a href="<?php 
        echo $_smarty_tpl->tpl_vars['rep']->value['this']->orderlink('BusinessName');
        ?>
" class="<?php 
        echo $_smarty_tpl->tpl_vars['rep']->value['this']->orderclass('BusinessName');
        ?>
">DBA Name</a>, 
        <a href="<?php 
        echo $_smarty_tpl->tpl_vars['rep']->value['this']->orderlink('date');
        ?>
" class="<?php 
        echo $_smarty_tpl->tpl_vars['rep']->value['this']->orderclass('date');
        ?>
">Date</a>, 
      <a href="<?php 
        echo $_smarty_tpl->tpl_vars['rep']->value['this']->orderlink('status');
        ?>
" class="<?php 
        echo $_smarty_tpl->tpl_vars['rep']->value['this']->orderclass('status');
        ?>
">Status</a>        </div></TD> 
    </TR>
</TABLE>






<form method="post">
  <input type="hidden" name="cmd" value="cashadv_del">


<?php 
        if ($_smarty_tpl->tpl_vars['layout']->value == 1) {
            ?>

<?php 
            $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['item']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['rep']->value['list'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value) {
                $_smarty_tpl->tpl_vars['item']->_loop = true;
                ?>
    <?php 
                echo $_smarty_tpl->getSubTemplate('boxes/mca_box.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('item' => $_smarty_tpl->tpl_vars['item']->value), 0);
                ?>

<?php 
            }
            ?>

<?php 
        } else {
            ?>

<div class="appList3up">
<?php 
            $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['item']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['rep']->value['list'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value) {
                $_smarty_tpl->tpl_vars['item']->_loop = true;
                ?>
   <div class="appListSection appListSection_<?php 
                echo $_smarty_tpl->tpl_vars['item']->value['StatusColor'];
                ?>
 3up"><div class="level2">

		<div class="blockContainer">
            <?php 
                if (permitted('SUPERADMIN-RIGHTS')) {
                    ?>
            <input <?php 
                    if (!$_smarty_tpl->tpl_vars['item']->value['allowDelete']) {
                        ?>
disabled<?php 
                    }
                    ?>
  name="sel[]" value="<?php 
                    echo $_smarty_tpl->tpl_vars['item']->value['cashadv_id'];
                    ?>
" type="checkbox" />
            <?php 
                }
                ?>
            <a href="/cashadvance.php?cmd=cashadv_edit&app_id=<?php 
                echo $_smarty_tpl->tpl_vars['app_id']->value;
                ?>
&cashadv_id=<?php 
                echo $_smarty_tpl->tpl_vars['item']->value['cashadv_id'];
                ?>
" class="aMCALoan">MCA Acct # <?php 
                echo $_smarty_tpl->tpl_vars['item']->value['cashadv_idStr'];
                ?>
</a><br />
            
            <strong>DBA:</strong> <span class="spTooltip" onmouseover="tooltip.show('<div style=\'max-width:300px\'><?php 
                echo smarty_function_func(array('name' => 'MCAInfoPopup', 'cashadv_id' => $_smarty_tpl->tpl_vars['item']->value['cashadv_id']), $_smarty_tpl);
                ?>
</div>');" onmouseout="tooltip.hide();"><?php 
                echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['item']->value['DBAName'], 24, '...', true);
                ?>
</span>
            
            <br />
            <strong>Owner:</strong>  <span title="<?php 
                echo $_smarty_tpl->tpl_vars['item']->value['OwnerName'];
                ?>
"><?php 
                echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['item']->value['OwnerName'], 24, '...', true);
                ?>
</span><br />
            <br />
            Funding Type: <span class="spFundingType">
            	
                <?php 
                if ($_smarty_tpl->tpl_vars['item']->value['FundingProduct'] == 'Fixed Daily ACH') {
                    ?>
Fixed ACH<?php 
                }
                ?>
                <?php 
                if ($_smarty_tpl->tpl_vars['item']->value['FundingProduct'] == 'MCA') {
                    ?>
CC TXN %<?php 
                }
                ?>
                <?php 
                if ($_smarty_tpl->tpl_vars['item']->value['FundingProduct'] == 'LockBox') {
                    ?>
LockBox/TXN %<?php 
                }
                ?>
                <?php 
                if ($_smarty_tpl->tpl_vars['item']->value['FundingProduct'] == 'CCFixed') {
                    ?>
Fixed + CC<?php 
                }
                ?>
                </span> <br />
            Funding: $<?php 
                echo smarty_modifier_money(($tmp = @$_smarty_tpl->tpl_vars['item']->value['AmountRequested']) === null || $tmp === '' ? 0 : $tmp, 2);
                ?>
 <br />
            Payback: $<?php 
                echo smarty_modifier_money(($tmp = @$_smarty_tpl->tpl_vars['item']->value['TotalPayback']) === null || $tmp === '' ? 0 : $tmp, 2);
                ?>
 (<?php 
                echo ($tmp = @$_smarty_tpl->tpl_vars['item']->value['PaybackCoeff']) === null || $tmp === '' ? 0 : $tmp;
                ?>
)<br />

            <?php 
                if ($_smarty_tpl->tpl_vars['item']->value['FundingProduct'] == 'Fixed Daily ACH') {
                    ?>
Daily ACH: <?php 
                    echo smarty_modifier_money($_smarty_tpl->tpl_vars['item']->value['perfPayments'], 0);
                    ?>
 of <?php 
                    echo $_smarty_tpl->tpl_vars['item']->value['days'];
                    ?>
 Payments<br /><?php 
                }
                ?>
            <?php 
                if ($_smarty_tpl->tpl_vars['item']->value['FundingProduct'] == 'MCA') {
                    ?>
Daily CC: $<?php 
                    echo smarty_modifier_money(($tmp = @$_smarty_tpl->tpl_vars['item']->value['totalHold']) === null || $tmp === '' ? 0 : $tmp, 2);
                    ?>
 of $<?php 
                    echo smarty_modifier_money(($tmp = @$_smarty_tpl->tpl_vars['item']->value['TotalPayback']) === null || $tmp === '' ? 0 : $tmp, 2);
                    ?>
<br /><?php 
                }
                ?>
            <?php 
                if ($_smarty_tpl->tpl_vars['item']->value['FundingProduct'] == 'LockBox') {
                    ?>
Daily CC: $<?php 
                    echo smarty_modifier_money(($tmp = @$_smarty_tpl->tpl_vars['item']->value['totalHold']) === null || $tmp === '' ? 0 : $tmp, 2);
                    ?>
 of $<?php 
                    echo smarty_modifier_money(($tmp = @$_smarty_tpl->tpl_vars['item']->value['TotalPayback']) === null || $tmp === '' ? 0 : $tmp, 2);
                    ?>
<br /><?php 
                }
                ?>
            <?php 
                if ($_smarty_tpl->tpl_vars['item']->value['FundingProduct'] == 'CCFixed') {
                    ?>
            	Daily ACH: <?php 
                    echo smarty_modifier_money($_smarty_tpl->tpl_vars['item']->value['perfPayments'], 0);
                    ?>
 of <?php 
                    echo $_smarty_tpl->tpl_vars['item']->value['days'];
                    ?>
 Payments<br />
            	Daily CC: $<?php 
                    echo smarty_modifier_money(($tmp = @$_smarty_tpl->tpl_vars['item']->value['totalHold']) === null || $tmp === '' ? 0 : $tmp, 2);
                    ?>
 of $<?php 
                    echo smarty_modifier_money(($tmp = @$_smarty_tpl->tpl_vars['item']->value['TotalPayback']) === null || $tmp === '' ? 0 : $tmp, 2);
                    ?>
<br />
            <?php 
                }
                ?>
            
            
            <br />
            <strong>Status:</strong> <span class="spStatus spStatus_<?php 
                echo $_smarty_tpl->tpl_vars['item']->value['Status'];
                ?>
 nobr" title="<?php 
                echo $_smarty_tpl->tpl_vars['item']->value['lastNote'];
                ?>
">&nbsp;<strong><?php 
                echo $_smarty_tpl->tpl_vars['item']->value['statusTitle'];
                ?>
</strong></span>
            
            
            <br />
            <strong>Sales Rep:</strong> <span title="<?php 
                echo $_smarty_tpl->tpl_vars['item']->value['UserName'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['item']->value['UserName'];
                ?>
</span>
            <br />

            Comm: $<?php 
                echo smarty_modifier_money(($tmp = @$_smarty_tpl->tpl_vars['item']->value['RepComm']) === null || $tmp === '' ? 0 : $tmp, 2);
                ?>

		</div>
        
    </div>
    </div>
    
    
<?php 
            }
            ?>
</div>


<?php 
        }
        ?>



<?php 
        if (permitted('SUPERADMIN-RIGHTS')) {
            ?>
    <TABLE WIDTH="100%">
    <tr class="trSubmitBar">
      <td>
        <input name="btnDelete" type="submit" onclick="return onDel(this.form)" value="Delete" /></td>
    </tr>
    </TABLE>
<?php 
        }
        ?>


</form>

<?php 
        echo '<script';
        ?>
 type="text/javascript">
    Calendar.setup({
        inputField     :    "date1",      // id of the input field
        ifFormat       :    "%m/%d/%Y",//"%Y-%m-%d",	// %H:%M",       // format of the input field
        showsTime      :    true,            // will display a time selector
        button         :    "date1",   // trigger for the calendar (button ID)
        singleClick    :    true,           // double-click mode
        step           :    1                // show all years in drop-down boxes (instead of every other year as default)
    });
    Calendar.setup({
        inputField     :    "date2",      // id of the input field
        ifFormat       :    "%m/%d/%Y",//"%Y-%m-%d",	// %H:%M",       // format of the input field
        showsTime      :    true,            // will display a time selector
        button         :    "date2",   // trigger for the calendar (button ID)
        singleClick    :    true,           // double-click mode
        step           :    1                // show all years in drop-down boxes (instead of every other year as default)
    });

<?php 
        echo '</script';
        ?>
>

<?php 
    }
    function content_5778af75d5ba21_86432951($_smarty_tpl)
    {
        if (!is_callable('smarty_function_js_include')) {
            include '/homepages/37/d619410358/htdocs/developer/ext/smarty3/plugins/function.js_include.php';
        }
        if (!is_callable('smarty_function_func')) {
            include '/homepages/37/d619410358/htdocs/developer/ext/smarty3/plugins/function.func.php';
        }
        echo smarty_function_js_include(array('src' => '/js/mybox.js'), $_smarty_tpl);
        ?>


<?php 
        if ($_smarty_tpl->tpl_vars['node']->value) {
            ?>
	<?php 
            echo smarty_function_func(array('name' => 'SecNodeStatus', 'node' => $_smarty_tpl->tpl_vars['node']->value, 'sec' => 'mybox', 'var' => 'SecNodeStatus'), $_smarty_tpl);
            ?>

<?php 
        }
        ?>

<div data-num="<?php 
        echo $_smarty_tpl->tpl_vars['SecNodeStatus']->value['sortOrder'];
        ?>
" data-navcol="<?php 
        echo $_smarty_tpl->tpl_vars['SecNodeStatus']->value['navCol'];
        ?>
" data-node="<?php 
        echo $_smarty_tpl->tpl_vars['node']->value;
        ?>
" class="mybox <?php 
        echo $_smarty_tpl->tpl_vars['class']->value;
        ?>
 <?php 
        if ($_smarty_tpl->tpl_vars['node']->value) {
            ?>
mybox-slide<?php 
        }
        ?>
">
	<h2>
		<div class="title">
			<?php 
        if ($_smarty_tpl->tpl_vars['url']->value) {
            ?>
				<a href="<?php 
            echo $_smarty_tpl->tpl_vars['url']->value;
            ?>
"><?php 
            echo ($tmp = @$_smarty_tpl->tpl_vars['title']->value) === null || $tmp === '' ? '&nbsp;' : $tmp;
            ?>
</a>
			<?php 
        } else {
            ?>
				<?php 
            echo ($tmp = @$_smarty_tpl->tpl_vars['title']->value) === null || $tmp === '' ? '&nbsp;' : $tmp;
            ?>

			<?php 
        }
        ?>
		</div>
		<?php 
        if ($_smarty_tpl->tpl_vars['node']->value) {
            ?>
	    <div id="<?php 
            echo $_smarty_tpl->tpl_vars['node']->value;
            ?>
_btn" onclick="mybox_showHideBox('<?php 
            echo $_smarty_tpl->tpl_vars['node']->value;
            ?>
')" class="rightMinus"></div>
	    <?php 
        }
        ?>
	</h2>
	<div id="<?php 
        echo $_smarty_tpl->tpl_vars['node']->value;
        ?>
_block" class="box-inner">
    	<?php 
        echo $_smarty_tpl->tpl_vars['content']->value;
        ?>

	</div>
	<div class="more">&nbsp;</div>
</div>


<?php 
        if ($_smarty_tpl->tpl_vars['node']->value) {
            echo '<script';
            ?>
 language="javascript">
	mybox_initBox('<?php 
            echo $_smarty_tpl->tpl_vars['node']->value;
            ?>
','<?php 
            echo $_smarty_tpl->tpl_vars['SecNodeStatus']->value['state'];
            ?>
','<?php 
            echo $_smarty_tpl->tpl_vars['SecNodeStatus']->value['sortOrder'];
            ?>
');
<?php 
            echo '</script';
            ?>
>
<?php 
        }
    }
    function content_5778af8c1e3f43_66332368($_smarty_tpl)
    {
        if (!is_callable('smarty_function_func')) {
            include '/homepages/37/d619410358/htdocs/developer/ext/smarty3/plugins/function.func.php';
        }
        ?>
	<?php 
        echo smarty_function_func(array('name' => 'LeadSearchBoxData', 'var' => 'leadsearch'), $_smarty_tpl);
        ?>
		
    <form method="get" action="/leads.php?cmd=search">
    <input type="hidden" name="cmd" value="search">

    <table cellspacing="0" cellpadding="0" width="100%" border="0" class="leftNavTable">
      <col class="col1" />
      <col class="col2" />
        <tr class="menuitemsub_k">
    	<td colspan="2">
    	
    	<table style="width:178px" border="0" cellspacing="0" cellpadding="0">
    	<tr>
    	<td style='width:140px;padding:0px 2px 0px 4px;vertical-align:middle'><input type="text" name="LeadSearchStr" style='width:138px' value="<?php 
        echo $_smarty_tpl->tpl_vars['leadsearch']->value['LeadSearchStr'];
        ?>
"></td>
    	<td style='width:30px; padding:0px 2px 0px 2px;vertical-align:middle'><input style='width:25px;padding:1px;' type="submit" value="Go" /></td>
    	</tr>
    	</table>	</td>
        </tr>
        <tr class="menuitemsub_k" 
                          >
          <td colspan="2" style='width:178px;padding:0px 2px 0px 4px;'><select style='width:170px' name="LeadSearchType">
    		<option value="BusinessName" <?php 
        if ($_smarty_tpl->tpl_vars['leadsearch']->value['LeadSearchType'] == 'BusinessName') {
            ?>
selected<?php 
        }
        ?>
 >Merchant Name</option>
    		<option value="lead_id" <?php 
        if ($_smarty_tpl->tpl_vars['leadsearch']->value['LeadSearchType'] == 'lead_id') {
            ?>
selected<?php 
        }
        ?>
 >Lead #</option>
    		<option value="ContactName" <?php 
        if ($_smarty_tpl->tpl_vars['leadsearch']->value['LeadSearchType'] == 'ContactName') {
            ?>
selected<?php 
        }
        ?>
 >Contact Name</option>
    		<option value="Email" <?php 
        if ($_smarty_tpl->tpl_vars['leadsearch']->value['LeadSearchType'] == 'Email') {
            ?>
selected<?php 
        }
        ?>
 >Email</option>
    		<option value="Phone" <?php 
        if ($_smarty_tpl->tpl_vars['leadsearch']->value['LeadSearchType'] == 'Phone') {
            ?>
selected<?php 
        }
        ?>
 >Phone</option>
    	  </select> </td>
        </tr>
    </table>
    </form>    
<?php 
    }
    function content_5778b6e5dfdd32_08076555($_smarty_tpl)
    {
        if (!is_callable('smarty_function_func')) {
            include '/homepages/37/d619410358/htdocs/developer/ext/smarty3/plugins/function.func.php';
        }
        ?>
<div class="TitleRow">
        <?php 
        echo $_smarty_tpl->tpl_vars['title']->value;
        ?>


		<div class="toright">
    		<?php 
        if (!$_smarty_tpl->tpl_vars['hideMCAHeaderButtons']->value) {
            ?>
        		<?php 
            if (permitted('TOPMENU-Status')) {
                ?>
              	<input type="button" value="MCA" disabled onclick="myRedirect('/')"/>
              	<input type="button" value="Processing" onclick="myRedirect('/apps_status.php?cmd=edit_app&app_id=<?php 
                echo $_smarty_tpl->tpl_vars['linked_app_id']->value;
                ?>
')"/>
                <?php 
            }
            ?>
                <?php 
            echo $_smarty_tpl->getSubTemplate('status/mca_instr.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
            ?>

			<?php 
        }
        ?>
        </div>
</div>

<table width="100%">
    
    
    
    <TR >
      <TD class="tdGtabs">
		<?php 
        echo $_smarty_tpl->getSubTemplate('gtabs.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('gtabs' => $_smarty_tpl->tpl_vars['gtabs']->value), 0);
        ?>
	  
        </TD>
    </TR>

    <TR >
      <TD >
        <?php 
        echo $_smarty_tpl->getSubTemplate('tab_links.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tab_links' => $_smarty_tpl->tpl_vars['tab_links']->value), 0);
        ?>

        </TD>
    </TR>
    


    <tr > 
      	<td class="tdValueColumn"> 
    	  	<div class="toleft">
    	  		<span class="spTooltip" onmouseover="tooltip.show('<?php 
        echo smarty_function_func(array('name' => 'MCAInfoPopup', 'cashadv_id' => $_smarty_tpl->tpl_vars['cashadv_id']->value), $_smarty_tpl);
        ?>
');" onmouseout="tooltip.hide();"></span>		
    	  		<span class="spMCALoan"><strong>MCA/ACH Acct #</strong> <?php 
        echo $_smarty_tpl->tpl_vars['cashadv_idStr']->value;
        echo $_smarty_tpl->tpl_vars['cashadv_idModifier']->value;
        ?>
</span>
    	  	</div>

    	  	<div class="toright">

    		<?php 
        if (!$_smarty_tpl->tpl_vars['hideMCAHeaderButtons']->value) {
            ?>
			  <?php 
            if (permitted('TOPMENU-Status')) {
                ?>
    	  		<strong>DBA:</strong> 
    			<span class="spTooltip" onmouseover="tooltip.show('<div style=\'max-width:300px\'><?php 
                echo smarty_function_func(array('name' => 'DBAInfoPopup', 'app_id' => $_smarty_tpl->tpl_vars['linked_app_id']->value), $_smarty_tpl);
                ?>
</div>');" onmouseout="tooltip.hide();">
                <a href="/apps_status.php?cmd=edit_app&app_id=<?php 
                echo $_smarty_tpl->tpl_vars['linked_app_id']->value;
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['BusinessName']->value;
                ?>
</a></span> - <strong>MID#</strong> <a href="/apps_status.php?cmd=edit_app&app_id=<?php 
                echo $_smarty_tpl->tpl_vars['app_id']->value;
                ?>
"><?php 
                echo ($tmp = @$_smarty_tpl->tpl_vars['MID']->value) === null || $tmp === '' ? '(Not Available)' : $tmp;
                ?>
</a>
                </span>	   
			  <?php 
            } else {
                ?>
    	  		<strong>DBA:</strong> 
    			<span class="spTooltip" onmouseover="tooltip.show('<div style=\'max-width:300px\'><?php 
                echo smarty_function_func(array('name' => 'DBAInfoPopup', 'app_id' => $_smarty_tpl->tpl_vars['linked_app_id']->value), $_smarty_tpl);
                ?>
</div>');" onmouseout="tooltip.hide();">
                <a href="/cashadvance.php?cmd=cashadv_edit&cashadv_id=<?php 
                echo $_smarty_tpl->tpl_vars['cashadv_id']->value;
                ?>
&tab=dba"><?php 
                echo $_smarty_tpl->tpl_vars['BusinessName']->value;
                ?>
</a></span> - <strong>MID#</strong> <a href="/cashadvance.php?cmd=cashadv_edit&cashadv_id=<?php 
                echo $_smarty_tpl->tpl_vars['cashadv_id']->value;
                ?>
&tab=dba"><?php 
                echo ($tmp = @$_smarty_tpl->tpl_vars['MID']->value) === null || $tmp === '' ? '(Not Available)' : $tmp;
                ?>
</a>
                </span>	   
              <?php 
            }
            ?>
			<?php 
        }
        ?>

    		</div>
		</td>
	</tr>


    
</table>



<?php 
    }
    function content_5778af8a5cee41_83131062($_smarty_tpl)
    {
        if (!is_callable('smarty_function_func')) {
            include '/homepages/37/d619410358/htdocs/developer/ext/smarty3/plugins/function.func.php';
        }
        ?>


<?php 
        echo '<script';
        ?>
>

function divTopMenuMouseover(key, isSubmenu){
	el('div1TopMenu_'+key).className='div1TopMenuUp';
    if(isSubmenu){
		el('div2TopMenu_'+key).className='div2TopMenuShow';
	}

}

function divTopMenuMouseout(key){
	el('div1TopMenu_'+key).className='div1TopMenu';
	el('div2TopMenu_'+key).className='div2TopMenuHide';
}
<?php 
        echo '</script';
        ?>
>



<div align="center">
<table class="topMenuTable" border="0" cellspacing="0" cellpadding="0"  style="" >
  <tr>
	<td>
	  <div class="myTopMenuSeparator"></div>
	</td>
<?php 
        echo smarty_function_func(array('name' => 'MainMenuData', 'var' => 'menudata', 'menu_id' => $_smarty_tpl->tpl_vars['menu_id']->value), $_smarty_tpl);
        ?>


<?php 
        $_smarty_tpl->tpl_vars['topitem'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['topitem']->_loop = false;
        $_smarty_tpl->tpl_vars['topkey'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['menudata']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['topitem']->key => $_smarty_tpl->tpl_vars['topitem']->value) {
            $_smarty_tpl->tpl_vars['topitem']->_loop = true;
            $_smarty_tpl->tpl_vars['topkey']->value = $_smarty_tpl->tpl_vars['topitem']->key;
            ?>
    <td valign="middle">
	

<div class="myTopMenuHolder" 
	<?php 
            if ($_smarty_tpl->tpl_vars['topitem']->value['menu']) {
                ?>
 
		onmouseover="divTopMenuMouseover('<?php 
                echo $_smarty_tpl->tpl_vars['topkey']->value;
                ?>
',1)" 
	<?php 
            } else {
                ?>
 
		onmouseover="divTopMenuMouseover('<?php 
                echo $_smarty_tpl->tpl_vars['topkey']->value;
                ?>
',0)" 
	<?php 
            }
            ?>
	onmouseout="divTopMenuMouseout('<?php 
            echo $_smarty_tpl->tpl_vars['topkey']->value;
            ?>
')"
	>
	<div id="div1TopMenu_<?php 
            echo $_smarty_tpl->tpl_vars['topkey']->value;
            ?>
" class="div1TopMenu" 
		onclick="<?php 
            if ($_smarty_tpl->tpl_vars['item']->value['window']) {
                ?>
 window.open('<?php 
                echo $_smarty_tpl->tpl_vars['topitem']->value['url'];
                ?>
')  <?php 
            } else {
                ?>
 document.location.href='<?php 
                echo $_smarty_tpl->tpl_vars['topitem']->value['url'];
                ?>
' <?php 
            }
            ?>
"
		><?php 
            echo $_smarty_tpl->tpl_vars['topitem']->value['title'];
            ?>
</div>

<div style='position:relative'><div id="div2TopMenu_<?php 
            echo $_smarty_tpl->tpl_vars['topkey']->value;
            ?>
" class="div2TopMenuHide">
  <table class="tblTopMenuDrop" width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
<?php 
            $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['items']->_loop = false;
            $_smarty_tpl->tpl_vars['keysec'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['topitem']->value['menu'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
                $_smarty_tpl->tpl_vars['items']->_loop = true;
                $_smarty_tpl->tpl_vars['keysec']->value = $_smarty_tpl->tpl_vars['items']->key;
                ?>
	
      <td align="left" style='width:200px;' valign="top"><div class="topMenuCol<?php 
                echo $_smarty_tpl->tpl_vars['keysec']->value;
                ?>
">
  <?php 
                $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['item']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['items']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value) {
                    $_smarty_tpl->tpl_vars['item']->_loop = true;
                    ?>
  	<?php 
                    if ($_smarty_tpl->tpl_vars['item']->value['type'] == 'header') {
                        ?>
	  <h3><?php 
                        echo $_smarty_tpl->tpl_vars['item']->value['title'];
                        ?>
</h3>
	<?php 
                    } else {
                        ?>
    <div class="myTopMenuItem" onmouseover="this.className='myTopMenuItemUp'" onmouseout="this.className='myTopMenuItem'"  onclick="<?php 
                        if ($_smarty_tpl->tpl_vars['item']->value['onclick']) {
                            echo $_smarty_tpl->tpl_vars['item']->value['onclick'];
                            ?>
 <?php 
                        } else {
                            ?>
 document.location.href='<?php 
                            echo $_smarty_tpl->tpl_vars['item']->value['url'];
                            ?>
' <?php 
                        }
                        ?>
">
	<?php 
                        echo $_smarty_tpl->tpl_vars['item']->value['title'];
                        if ($_smarty_tpl->tpl_vars['item']->value['showCnt']) {
                            ?>
&nbsp;(<?php 
                            echo $_smarty_tpl->tpl_vars['item']->value['cntValue'];
                            ?>
)<?php 
                        }
                        ?>
	</div>
	<?php 
                    }
                    ?>
  <?php 
                }
                ?>
	  

	  </div></td>
<?php 
            }
            ?>
    
</tr>
  </table>
  </div></div>
</div>
	
</td>
<td>
  <div class="myTopMenuSeparator"></div>
</td>
<?php 
        }
        ?>
 


	
  </tr>
</table>
</div>
<?php 
    }
    function content_5778af8a1aae99_91151934($_smarty_tpl)
    {
        if (!is_callable('smarty_function_func')) {
            include '/homepages/37/d619410358/htdocs/developer/ext/smarty3/plugins/function.func.php';
        }
        if (!is_callable('smarty_function_js_include')) {
            include '/homepages/37/d619410358/htdocs/developer/ext/smarty3/plugins/function.js_include.php';
        }
        if (!is_callable('smarty_modifier_money')) {
            include '/homepages/37/d619410358/htdocs/developer/ext/smarty3/plugins/modifier.money.php';
        }
        if (!is_callable('smarty_block_m')) {
            include '/homepages/37/d619410358/htdocs/developer/ext/smarty3/plugins/block.m.php';
        }
        if (!is_callable('smarty_modifier_date_format')) {
            include '/homepages/37/d619410358/htdocs/developer/ext/smarty3/plugins/modifier.date_format.php';
        }
        if (!is_callable('smarty_block_mybox')) {
            include '/homepages/37/d619410358/htdocs/developer/ext/smarty3/plugins/block.mybox.php';
        }
        if (!is_callable('smarty_modifier_date')) {
            include '/homepages/37/d619410358/htdocs/developer/ext/smarty3/plugins/modifier.date.php';
        }
        ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<HEAD>
<?php 
        echo '<script';
        ?>
 type="text/javascript" src="/js/init.js"><?php 
        echo '</script';
        ?>
>
<?php 
        echo smarty_function_func(array('name' => 'TplData', 'var' => 'tpldata'), $_smarty_tpl);
        ?>

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<TITLE><?php 
        echo $_smarty_tpl->tpl_vars['PAGETITLE']->value;
        ?>
</TITLE>
<?php 
        echo smarty_function_js_include(array('src' => '/css/style.css'), $_smarty_tpl);
        ?>

<?php 
        echo smarty_function_js_include(array('src' => '/corp/style_c.css'), $_smarty_tpl);
        ?>

<?php 
        echo smarty_function_js_include(array('src' => '/css/tpl_page_template.css'), $_smarty_tpl);
        ?>


<style>
<?php 
        if (!permitted('ADMIN-RIGHTS')) {
            ?>
  .AdminOnlyVisibility {display:none}
<?php 
        }
        ?>

</style>

<style>



</style>






<?php 
        echo smarty_function_js_include(array('src' => '/js/functions.js'), $_smarty_tpl);
        ?>

<?php 
        echo smarty_function_js_include(array('src' => '/js/main.js'), $_smarty_tpl);
        ?>

<?php 
        echo smarty_function_js_include(array('src' => '/js/jquery-1.9.1.min.js'), $_smarty_tpl);
        ?>

<?php 
        echo smarty_function_js_include(array('src' => '/js/jquery-ui-1.11.2/jquery-ui.css'), $_smarty_tpl);
        ?>

<?php 
        echo smarty_function_js_include(array('src' => '/js/jquery-ui-1.11.2/jquery-ui.min.js'), $_smarty_tpl);
        ?>


<?php 
        echo smarty_function_js_include(array('src' => '/js/bubble.js'), $_smarty_tpl);
        ?>

<?php 
        echo smarty_function_js_include(array('src' => '/js/nav.js'), $_smarty_tpl);
        ?>

<?php 
        echo smarty_function_js_include(array('src' => '/js/mybox.js'), $_smarty_tpl);
        ?>

<?php 
        echo $_smarty_tpl->getSubTemplate('startup.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>





<?php 
        echo '<script';
        ?>
 language="javascript">
function openViewMerchantApp(){
if(confirm('This Customer App Link is for Customers use only.  If you are a user, and want to submit an Online Customer App to the corporate office, please go to the "Submit Online App" link'))
 	window.open('/merchant.php?agent_id=<?php 
        echo $_smarty_tpl->tpl_vars['LoginInfo']->value['uid'];
        ?>
');
}
<?php 
        echo '</script';
        ?>
>
<?php 
        echo smarty_function_js_include(array('src' => '/corp/favicon.ico'), $_smarty_tpl);
        ?>

<?php 
        echo $_smarty_tpl->getSubTemplate('BodyOnLoad.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>



<?php 
        echo '<script';
        ?>
>
$(document).ready(function(){

	mybox_sortableNavInit();

	var flagSearch=false;
	$('#mainSearch')
		.val('search dba or legal business name...')
		.focus(function(){
			if(flagSearch==false){
				flagSearch=true;
				this.value='';
			}
		});
	$('#mainSearchBtn').click(function(){
		if(flagSearch){
			return true;
		}else{
			return false;
		}
	});
	
});
<?php 
        echo '</script';
        ?>
>


</HEAD>
<BODY TOPMARGIN=0 LEFTMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>






<div id="page_template">    
<table id="xmostOuterTable" cellpadding="0" cellspacing="0" border="0" width="100%" >
  
<tr>
  <td>
<DIV class="header2">

			

		  <div class="search-bar">
            <form method="get" action="/mainsearch.php">
		    <input type="text" class="search-field" value="" id="mainSearch" name="q" />
	    	<button type="submit" class="search-button" id="mainSearchBtn"><span class="button-content"></span></button>
			</form>
		  </div>


		<div class="toleft">
			<a href="/home.php">Welcome <strong><?php 
        echo $_smarty_tpl->tpl_vars['LoginInfo']->value['FullName'];
        ?>
</strong></a> 
	  		<?php 
        if (permitted('USERS-MyAccount')) {
            ?>
            	| <a href="/user.php?cmd=edit_user&uid=<?php 
            echo $_smarty_tpl->tpl_vars['LoginInfo']->value['uid'];
            ?>
">My Account</a>
            <?php 
        }
        ?>
 
	  		| <a href="/logout.php">Log Out</a>
        </div>
		<div class="toright">
		  
		  <a href="/support/?tab=manual">Help</a>


		  <?php 
        if (permitted('TOPMENU-Support')) {
            ?>
	
		  	| <a href="/support.php">Support</a>
		  <?php 
        }
        ?>
	
	  
		  <?php 
        if (permitted('SUPPORT-About')) {
            ?>
		  	| <a href="javascript:;" onclick="showPopUp('/site_config.php?cmd=show&code=aboutus',700,700)">About</a>
		  <?php 
        }
        ?>
	  
		  <?php 
        if (permitted('SUPPORT-Contact')) {
            ?>
		    | <a href="javascript:;" onclick="showPopUp('/site_config.php?cmd=show&code=contactus',700,700)">Contact</a>
		  <?php 
        }
        ?>
	 	



		  <?php 
        if (permitted('confShowLogo')) {
            ?>
			|
		  	<a href="/home.php?cmd=hidelogo">Hide Logo</a>
		  <?php 
        } else {
            ?>
          	|
		  	<a href="/home.php?cmd=showlogo">View Logo</a>
		  <?php 
        }
        ?>
	


        </div>
    
</DIV>

</td>
</tr>  
  
  
<tr>
	<td>
    
<div class="divOuterTable">
    <TABLE  BORDER=0  CELLSPACING="0" CELLPADDING="0" width="100%">
      
      <?php 
        if (permitted('confShowLogo')) {
            ?>
<tr>
        <td >
        <div align="center">
        <a href="/home.php"><img class="block" style="max-width:840px;max-height:113px" src="/corp/<?php 
            echo $_smarty_tpl->tpl_vars['CONFIG']->value['logo_fname'];
            ?>
" border="0"></a>
        </div>
        </td>

        </tr>		
      <?php 
        }
        ?>
	
      
      <TR >
        <TD>
          <DIV id="tabcontainer">
            <?php 
        echo $_smarty_tpl->getSubTemplate('menu_bar.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>

          </DIV>
          </TD>
      </TR>
      
      <TR >
        <TD>
          <DIV id="toplinkscontainer">
				<?php 
        $_smarty_tpl->tpl_vars['s'] = new Smarty_variable('', null, 0);
        ?>

                <?php 
        if (permitted('ONLINEAPPS-AgentApp')) {
            ?>
					<?php 
            echo $_smarty_tpl->tpl_vars['s']->value;
            $_smarty_tpl->tpl_vars['s'] = new Smarty_variable('-', null, 0);
            ?>
	                <a href="javascript:;" onClick="window.location.href='/app_manager.php?cmd=add_app&app_id=NEW'">Add Account</a>
                <?php 
        }
        ?>
	

                <?php 
        if (permitted('ONLINEAPPS-AddLead')) {
            ?>
					<?php 
            echo $_smarty_tpl->tpl_vars['s']->value;
            $_smarty_tpl->tpl_vars['s'] = new Smarty_variable('-', null, 0);
            ?>
	                <a href="javascript:;" onClick="window.location.href='/leads.php?cmd=add_lead'">Add Lead</a>
                <?php 
        }
        ?>
	
    
                <?php 
        if (permitted('ONLINEAPPS-SubmitNewRef')) {
            ?>
					<?php 
            echo $_smarty_tpl->tpl_vars['s']->value;
            $_smarty_tpl->tpl_vars['s'] = new Smarty_variable('-', null, 0);
            ?>
	                <a href="javascript:;" onClick="window.open('/referral_merch.php?agent_id=<?php 
            echo $_smarty_tpl->tpl_vars['LoginInfo']->value['uid'];
            ?>
')">Add Referral</a>
                <?php 
        }
        ?>
	


                <?php 
        if (permitted('ONLINEAPPS-ShopCart')) {
            ?>
					<?php 
            echo $_smarty_tpl->tpl_vars['s']->value;
            $_smarty_tpl->tpl_vars['s'] = new Smarty_variable('-', null, 0);
            ?>
	                <a href="javascript:;" onClick="window.open('/shoppingcart/')">Shop Cart</a>
                <?php 
        }
        ?>
	


                <?php 
        if (permitted('ONLINEAPPS-PerfChart')) {
            ?>
					<?php 
            echo $_smarty_tpl->tpl_vars['s']->value;
            $_smarty_tpl->tpl_vars['s'] = new Smarty_variable('-', null, 0);
            ?>
	                <a href="javascript:;" onClick="window.open('/piechart/')">Perf Charts</a>
                <?php 
        }
        ?>
	
    
                <?php 
        if (permitted('ONLINEAPPS-EmailInbox')) {
            ?>
					<?php 
            echo $_smarty_tpl->tpl_vars['s']->value;
            $_smarty_tpl->tpl_vars['s'] = new Smarty_variable('-', null, 0);
            ?>
	                <a href="javascript:;" onClick="window.open('/mailbox.php?cmd=inbox&mailboxfolder=inbox')">Email (<?php 
            echo $_smarty_tpl->tpl_vars['tpldata']->value['cntMails'];
            ?>
)</a>
                <?php 
        }
        ?>
	

                <?php 
        if (permitted('ONLINEAPPS-Calendar')) {
            ?>
					<?php 
            echo $_smarty_tpl->tpl_vars['s']->value;
            $_smarty_tpl->tpl_vars['s'] = new Smarty_variable('-', null, 0);
            ?>
	                <a href="javascript:;" onClick="window.open('/calendar.php?cmd=month')">Calendar</a>
                <?php 
        }
        ?>
	


                <?php 
        if (permitted('ONLINEAPPS-Search')) {
            ?>
					<?php 
            echo $_smarty_tpl->tpl_vars['s']->value;
            $_smarty_tpl->tpl_vars['s'] = new Smarty_variable('-', null, 0);
            ?>
	                <a href="javascript:;" onClick="window.location.href='/search.php'">Search Acct & Leads</a>
                <?php 
        }
        ?>
	
    
                <?php 
        if (permitted('ONLINEAPPS-MerchantApp')) {
            ?>
					<?php 
            echo $_smarty_tpl->tpl_vars['s']->value;
            $_smarty_tpl->tpl_vars['s'] = new Smarty_variable('-', null, 0);
            ?>
	                <a href="javascript:;" onClick="openViewMerchantApp()">Web Apps</a>
                <?php 
        }
        ?>
	
    
                <?php 
        if (permitted('ONLINEAPPS-Tickets')) {
            ?>
					<?php 
            echo $_smarty_tpl->tpl_vars['s']->value;
            $_smarty_tpl->tpl_vars['s'] = new Smarty_variable('-', null, 0);
            ?>
	                <a href="javascript:;" onclick="window.location.href='/tickets.php?cmd=list'">Tickets (<?php 
            echo smarty_modifier_money($_smarty_tpl->tpl_vars['tpldata']->value['openTickets'], 0);
            ?>
)</a>
                <?php 
        }
        ?>
	
                
                <?php 
        if (permitted('ONLINEAPPS-News')) {
            ?>
    				<?php 
            echo $_smarty_tpl->tpl_vars['s']->value;
            $_smarty_tpl->tpl_vars['s'] = new Smarty_variable('-', null, 0);
            ?>
	                <a href="javascript:;" onclick="window.location.href='/news.php?cmd=view_news'">Unread News (<?php 
            echo smarty_modifier_money($_smarty_tpl->tpl_vars['tpldata']->value['unreadNews'], 0);
            ?>
)</a>
                <?php 
        }
        ?>
	
                
                <?php 
        if (permitted('ONLINEAPPS-Projects')) {
            ?>
    				<?php 
            echo $_smarty_tpl->tpl_vars['s']->value;
            $_smarty_tpl->tpl_vars['s'] = new Smarty_variable('-', null, 0);
            ?>
	                <a href="javascript:;" onclick="window.location.href='/projectboard'">Projects</a>
                <?php 
        }
        ?>
	


			
          </DIV>
          </TD>
      </TR>
      
      <?php 
        if (permitted('confShowLoginInfo')) {
            ?>
      <TR >
        <TD  ><TABLE class="BlueBar" WIDTH="100%" >
          <TR> 
            <TD  ><?php 
            echo $_smarty_tpl->tpl_vars['CONFIG']->value['SYS_DESC'];
            ?>
<BR>
              <?php 
            echo $_smarty_tpl->tpl_vars['CONFIG']->value['SYS_ISO'];
            ?>
<BR>
              <?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('m', array());
            $_block_repeat = true;
            echo smarty_block_m(array(), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                ?>
User Support<?php 
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_m(array(), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>
: <?php 
            echo $_smarty_tpl->tpl_vars['CONFIG']->value['SYS_SUPPORT'];
            ?>
</TD>
            <TD  valign="top"> <P title="Login time: <?php 
            echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['LoginInfo']->value['login_time'], '%x %X');
            ?>
" STYLE="text-align: right;">
              <?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('m', array());
            $_block_repeat = true;
            echo smarty_block_m(array(), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                ?>
Logged
              in as User ID<?php 
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_m(array(), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>
 "<?php 
            echo $_smarty_tpl->tpl_vars['LoginInfo']->value['UserName'];
            ?>
" <?php 
            echo $_smarty_tpl->tpl_vars['LoginInfo']->value['UserType'];
            ?>
<br>
              <?php 
            echo $_smarty_tpl->tpl_vars['LoginInfo']->value['BusinessName'];
            ?>
<br>
              <?php 
            echo $_smarty_tpl->tpl_vars['LoginInfo']->value['FullName'];
            ?>
                 <BR>
              </P></TD>
            </TR>
          </TABLE></TD>
        </TR>
      <?php 
        }
        ?>
		  
      <TR >
        <TD>
		  <div align="center">		
          <?php 
        if ($_smarty_tpl->tpl_vars['contentsWide']->value) {
            ?>
          	<div style="padding-top:12px;">
            <?php 
            echo $_smarty_tpl->tpl_vars['contentsWide']->value;
            ?>

            </div>
          <?php 
        } else {
            ?>
              
              <table class="page_2colTbl" cellspacing="0" border="0">
              	
                <!--col class="pagecol_col1a" />
              	<col class="pagecol_col1" />
              	<col class="pagecol_col2" />
              	<col class="pagecol_col3" />
              	<col class="pagecol_col3a" /-->
                <tr>
                  <td class="page_col1a mySortable navCol" data-navcol="1"></td>
                  <td class="page_col1  mySortable navCol" data-navcol="2"> 
                      
                      <?php 
            if ($_smarty_tpl->tpl_vars['my']->value->lead_alert->isAllowed) {
                ?>
					  	<?php 
                $_smarty_tpl->smarty->_tag_stack[] = array('mybox', array('node' => "LeftPanel_alertsdue", 'title' => "Today's Appts/Tasks", 'class' => "box-one box-gray"));
                $_block_repeat = true;
                echo smarty_block_mybox(array('node' => "LeftPanel_alertsdue", 'title' => "Today's Appts/Tasks", 'class' => "box-one box-gray"), null, $_smarty_tpl, $_block_repeat);
                while ($_block_repeat) {
                    ob_start();
                    ?>

                      	<a href="javascript:;" onClick="showPopUp('leads.php?cmd=alert_popup',700,500);">
                        <table border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td style='padding:4px'><img class="block" src="../assets/images/icon_warning.png" width="48" height="48" border="0"></td>
                          <td align="center" valign="middle"><span style='font-size:9pt'>Tasks/Appointments <br>
                            Are Due Today</span></td>
                          </tr>
                        </table>
                        </a>
						<?php 
                    $_block_content = ob_get_clean();
                    $_block_repeat = false;
                    echo smarty_block_mybox(array('node' => "LeftPanel_alertsdue", 'title' => "Today's Appts/Tasks", 'class' => "box-one box-gray"), $_block_content, $_smarty_tpl, $_block_repeat);
                }
                array_pop($_smarty_tpl->smarty->_tag_stack);
                ?>

                      <?php 
            }
            ?>
                      
                      <?php 
            if ($_smarty_tpl->tpl_vars['my']->value->lead_alert->startPopup) {
                ?>
                      	<?php 
                echo '<script';
                ?>
 type="text/javascript">showPopUp('leads.php?cmd=alert_popup',700,500);<?php 
                echo '</script';
                ?>
>
                      <?php 
            }
            ?>
                      
                      <?php 
            echo smarty_function_func(array('name' => 'PageLinks', 'col' => 1), $_smarty_tpl);
            ?>

                      
                      
                     
                      
                      
                      <?php 
            if ($_smarty_tpl->tpl_vars['CONFIG']->value['SYS_SSLLINK']) {
                ?>
                      <div style='text-align:center;padding-top:8px;'>
                        <a href="<?php 
                echo $_smarty_tpl->tpl_vars['CONFIG']->value['SYS_SSLLINK'];
                ?>
" target="_blank"><img src="/corp/ssl_image.gif" border="0"></a>			</div>
                      <?php 
            }
            ?>
			
                      
                      <?php 
            if ($_smarty_tpl->tpl_vars['CONFIG']->value['sslCertificateLinkCode']) {
                ?>
                      <div>
                      <iframe scrolling="no" style='text-align:center;padding:4px;width:100%;height:50px;' frameborder="0" src="/linkcodes.php?cmd=sslCertificateLinkCode"
                      OnLoad="var h=this.contentWindow.document.body.scrollHeight+0;this.style.height=h+'px'">
                      </iframe>
                      </div>
                      <?php 
            }
            ?>
                      
                      
                      <?php 
            if ($_smarty_tpl->tpl_vars['CONFIG']->value['sslPciCertificateLinkCode']) {
                ?>
                      	<div>
                        <iframe scrolling="no" style='text-align:center;padding:4px;width:100%;height:50px;' frameborder="0" src="/linkcodes.php?cmd=sslPciCertificateLinkCode"
                      OnLoad="var h=this.contentWindow.document.body.scrollHeight+0;this.style.height=h+'px'">
                      </iframe>			
                        </div>
                      <?php 
            }
            ?>
                                    
					<?php 
            echo '<script';
            ?>
>
						
						//mybox_sortableInit('.mySortable.c1');
						//mybox_sortableInit('.mySortable.LeftPanel.c2');
						
						<?php 
            echo '</script';
            ?>
>
                  </td>
                  <td class="page_col2">
                  
                    <?php 
            echo $_smarty_tpl->tpl_vars['contents']->value;
            ?>

                  
                  </td>
                  
                  <td class="page_col3   mySortable navCol" data-navcol="3">
                  
                      <?php 
            if (permitted('RIGHTCOLBOX-datetime')) {
                ?>
                      	<?php 
                echo $_smarty_tpl->getSubTemplate("box_datetime.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                ?>

                      <?php 
            }
            ?>

                      



                      <?php 
            if (permitted('confShowBackup') && permitted('SUPERADMIN-RIGHTS')) {
                ?>
                          <?php 
                $_smarty_tpl->smarty->_tag_stack[] = array('mybox', array('node' => "col3_backup", 'title' => "CRM Backup", 'class' => "box-one box-gray"));
                $_block_repeat = true;
                echo smarty_block_mybox(array('node' => "col3_backup", 'title' => "CRM Backup", 'class' => "box-one box-gray"), null, $_smarty_tpl, $_block_repeat);
                while ($_block_repeat) {
                    ob_start();
                    ?>

                          	<?php 
                    echo smarty_function_func(array('name' => 'BackupBoxData', 'var' => 'BackupBoxData'), $_smarty_tpl);
                    ?>
		
                           
                              <?php 
                    if ($_smarty_tpl->tpl_vars['BackupBoxData']->value['showAlert']) {
                        ?>
                                  <?php 
                        echo smarty_function_js_include(array('src' => '/js/flash_text.js'), $_smarty_tpl);
                        ?>

                                  <div id="flashTable1" ><div style='width:100%;border:none' align="center"
                                  class="RedFlashText" onClick="window.location.href='/update_corp.php?cmd=backup'" title="Database backed up <?php 
                        echo $_smarty_tpl->tpl_vars['BackupBoxData']->value['age'];
                        ?>
 days ago">
                                  <span class='nobr'>DB Backup Past Due</span></div></div >
                              <?php 
                    }
                    ?>

                          	<table class="leftNavTable">
                              <tr class="menuitemsub_k">
                              <td>
                               &nbsp;Last Backup: <div class="toright"><?php 
                    echo smarty_modifier_date($_smarty_tpl->tpl_vars['BackupBoxData']->value['date']);
                    ?>
</div>
                          	</td>
                              </tr>
                              <tr class="menuitemsub_k">
                              <td>
                               &nbsp;Version: <div class="toright"><?php 
                    echo $_smarty_tpl->tpl_vars['BackupBoxData']->value['db_version'];
                    ?>
</div>
                              </td>
                              </tr>
                              <tr class="menuitemsub_k">
                              <td>
                               &nbsp;Perform Backup <div class="toright"><a href="/update_corp.php?cmd=backup">Start</a></div>
                              </td>
                              </tr>
                             	</table>
                          <?php 
                    $_block_content = ob_get_clean();
                    $_block_repeat = false;
                    echo smarty_block_mybox(array('node' => "col3_backup", 'title' => "CRM Backup", 'class' => "box-one box-gray"), $_block_content, $_smarty_tpl, $_block_repeat);
                }
                array_pop($_smarty_tpl->smarty->_tag_stack);
                ?>

                      <?php 
            }
            ?>

                      <?php 
            echo smarty_function_func(array('name' => 'PageLinks', 'col' => 3), $_smarty_tpl);
            ?>

                  

                  </td>
                  <td class="page_col3a  mySortable navCol" data-navcol="4"></td>
    
                  
                  </tr>
                </table>
              
		   <?php 
        }
        ?>
	              
          </div>
          </TD>
      </TR>
      <TR> 
        
        <TD valign="top" style='width:671px;'></TD>
      </TR>
      </TABLE>    


</div>	
</td>
</tr>
<tr>
  <td><DIV class="footer3">
                  <div><?php 
        echo $_smarty_tpl->tpl_vars['CONFIG']->value['CopyrightText'];
        ?>
</div>
                  <div><?php 
        echo $_smarty_tpl->tpl_vars['CONFIG']->value['PoweredBy'];
        ?>
</div>
</DIV>

<DIV class="footer4">
				  <?php 
        echo $_smarty_tpl->getSubTemplate('footerLinksDiv.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>

</DIV>

</td>
</tr>
</table>





</div>


<?php 
        echo smarty_function_func(array('name' => 'IMCode'), $_smarty_tpl);
        ?>



</BODY>
</HTML><?php 
    }
    function content_5778b5e47cc351_66524193($_smarty_tpl)
    {
        if (!is_callable('smarty_function_func')) {
            include '/homepages/37/d619410358/htdocs/developer/ext/smarty3/plugins/function.func.php';
        }
        ?>
	<?php 
        echo smarty_function_func(array('name' => 'MCASearchBoxData', 'var' => 'mcasearch'), $_smarty_tpl);
        ?>
		
    <form method="get" action="/cashadvance.php">
    <input type="hidden" name="cmd" value="search" />
    <table cellspacing="0" cellpadding="0" width="100%" border="0" class="leftNavTable">
      <col class="col1" />
      <col class="col2" />

        <tr class="menuitemsub_k">
    	<td colspan="2">
    	
    	<table style="width:178px" border="0" cellspacing="0" cellpadding="0">
    	<tr>
    	<td style='width:138px;padding:0px 2px 0px 4px;vertical-align:middle'><input type="text" name="str" style='width:138px' value="<?php 
        echo $_smarty_tpl->tpl_vars['mcasearch']->value['MCASearchStr'];
        ?>
" title="Search by DBA Name, Legal Name or Contract #"></td>
    	<td style='width:30px; padding:0px 2px 0px 2px;vertical-align:middle'><input style='width:25px;padding:1px;' type="submit" value="Go" /></td></tr></table>      </td>
        </tr>
        <tr class="menuitemsub_k" 
                          >
          <td colspan="2" style='width:178px;padding:0px 2px 0px 4px;'><select style='width:170px' name="SearchType">
    		<option value="BusinessName"  <?php 
        if ($_smarty_tpl->tpl_vars['mcasearch']->value['MCASearchType'] == 'BusinessName') {
            ?>
selected<?php 
        }
        ?>
 >DBA Name</option>
    		<option value="CorporateName" <?php 
        if ($_smarty_tpl->tpl_vars['mcasearch']->value['MCASearchType'] == 'CorporateName') {
            ?>
selected<?php 
        }
        ?>
 >Legal Name</option>
    		<option value="OwnerName" <?php 
        if ($_smarty_tpl->tpl_vars['mcasearch']->value['MCASearchType'] == 'OwnerName') {
            ?>
selected<?php 
        }
        ?>
 >Owner Name</option>
    		<option value="ContactName" <?php 
        if ($_smarty_tpl->tpl_vars['mcasearch']->value['MCASearchType'] == 'ContactName') {
            ?>
selected<?php 
        }
        ?>
 >Contact Name</option>
    		<option value="MID" <?php 
        if ($_smarty_tpl->tpl_vars['mcasearch']->value['MCASearchType'] == 'MID') {
            ?>
selected<?php 
        }
        ?>
 >MID</option>
    		<option value="cashadv_id" <?php 
        if ($_smarty_tpl->tpl_vars['mcasearch']->value['MCASearchType'] == 'cashadv_id') {
            ?>
selected<?php 
        }
        ?>
 >Contract #</option>
    	  </select> </td>
        </tr>
    </table>
    </form>
<?php 
    }
    function content_5778b5e1bcf7f5_65896561($_smarty_tpl)
    {
        if (!is_callable('smarty_function_func')) {
            include '/homepages/37/d619410358/htdocs/developer/ext/smarty3/plugins/function.func.php';
        }
        if (!is_callable('smarty_modifier_truncate')) {
            include '/homepages/37/d619410358/htdocs/developer/ext/smarty3/plugins/modifier.truncate.php';
        }
        if (!is_callable('smarty_modifier_money')) {
            include '/homepages/37/d619410358/htdocs/developer/ext/smarty3/plugins/modifier.money.php';
        }
        if (!is_callable('smarty_modifier_date_format')) {
            include '/homepages/37/d619410358/htdocs/developer/ext/smarty3/plugins/modifier.date_format.php';
        }
        ?>
<div classX="cashAdvSection" class="appListSection appListSection_<?php 
        echo $_smarty_tpl->tpl_vars['item']->value['StatusColor'];
        ?>
"><div class="level2">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td valign="top" class="tdLeft"> 
          	<?php 
        if (permitted('SUPERADMIN-RIGHTS')) {
            ?>
				<input <?php 
            if (!$_smarty_tpl->tpl_vars['item']->value['allowDelete']) {
                ?>
disabled<?php 
            }
            ?>
  name="sel[]" value="<?php 
            echo $_smarty_tpl->tpl_vars['item']->value['cashadv_id'];
            ?>
" type="checkbox" />
			<?php 
        }
        ?>
		  <a href="/cashadvance.php?cmd=cashadv_edit&app_id=<?php 
        echo $_smarty_tpl->tpl_vars['app_id']->value;
        ?>
&cashadv_id=<?php 
        echo $_smarty_tpl->tpl_vars['item']->value['cashadv_id'];
        ?>
" class="aMCALoan">MCA/ACH Acct # <?php 
        echo $_smarty_tpl->tpl_vars['item']->value['cashadv_idStr'];
        ?>
</a><br />
            <strong>DBA:</strong> <span class="spTooltip" onmouseover="tooltip.show('<div style=\'max-width:300px\'><?php 
        echo smarty_function_func(array('name' => 'MCAInfoPopup', 'cashadv_id' => $_smarty_tpl->tpl_vars['item']->value['cashadv_id']), $_smarty_tpl);
        ?>
</div>');" onmouseout="tooltip.hide();"><?php 
        echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['item']->value['DBAName'], 24, '...', true);
        ?>
</span><br />
            <strong>Owner:</strong>  <span title="<?php 
        echo $_smarty_tpl->tpl_vars['item']->value['OwnerName'];
        ?>
"><?php 
        echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['item']->value['OwnerName'], 24, '...', true);
        ?>
</span><br />
            <br />
            Funding Type: <span class="spFundingType"><?php 
        echo $_smarty_tpl->tpl_vars['item']->value['FundingProductTitle'];
        ?>
</span> <br />
            Funding Requested: $<?php 
        echo smarty_modifier_money($_smarty_tpl->tpl_vars['item']->value['AmountRequested'], 2);
        ?>
 <br />
            Payback Amount: $<?php 
        echo smarty_modifier_money($_smarty_tpl->tpl_vars['item']->value['TotalPayback'], 2);
        ?>
 (<?php 
        echo $_smarty_tpl->tpl_vars['item']->value['PaybackCoeff'];
        ?>
)<br />
			<?php 
        if ($_smarty_tpl->tpl_vars['item']->value['FundingProduct'] == 'Fixed Daily ACH') {
            ?>
ACH Payback: <?php 
            echo smarty_modifier_money($_smarty_tpl->tpl_vars['item']->value['perfPayments'], 0);
            ?>
 of <?php 
            echo $_smarty_tpl->tpl_vars['item']->value['days'];
            ?>
 Payments<br /><?php 
        }
        ?>
			<?php 
        if ($_smarty_tpl->tpl_vars['item']->value['FundingProduct'] == 'MCA') {
            ?>
MCA Payback: $<?php 
            echo smarty_modifier_money($_smarty_tpl->tpl_vars['item']->value['totalHold'], 2);
            ?>
 of $<?php 
            echo smarty_modifier_money($_smarty_tpl->tpl_vars['item']->value['TotalPayback'], 2);
            ?>
<br /><?php 
        }
        ?>
			<?php 
        if ($_smarty_tpl->tpl_vars['item']->value['FundingProduct'] == 'CCFixed') {
            ?>
				ACH Payback: <?php 
            echo smarty_modifier_money($_smarty_tpl->tpl_vars['item']->value['perfPayments'], 0);
            ?>
 of <?php 
            echo $_smarty_tpl->tpl_vars['item']->value['days'];
            ?>
 Payments<br />
				MCA Payback: $<?php 
            echo smarty_modifier_money($_smarty_tpl->tpl_vars['item']->value['totalHold'], 2);
            ?>
 of $<?php 
            echo smarty_modifier_money($_smarty_tpl->tpl_vars['item']->value['TotalPayback'], 2);
            ?>
<br />
			<?php 
        }
        ?>
            <br />
            <strong>Broker:</strong> <?php 
        echo $_smarty_tpl->tpl_vars['item']->value['UserName'];
        ?>
 ($<?php 
        echo smarty_modifier_money($_smarty_tpl->tpl_vars['item']->value['RepComm'], 2);
        ?>
) </td>
          <td valign="top" class="tdRight"><table class="tblRightBlock" width="100%" border="0" cellspacing="0" cellpadding="0">
            
            <tr>
              <td><div class="toleft">Status:</div>                <div class="toright"><span class="spStatus spStatus_<?php 
        echo $_smarty_tpl->tpl_vars['item']->value['Status'];
        ?>
 nobr" title="<?php 
        echo $_smarty_tpl->tpl_vars['item']->value['lastNote'];
        ?>
">&nbsp;<strong><?php 
        echo $_smarty_tpl->tpl_vars['item']->value['statusTitle'];
        ?>
 </strong>(<?php 
        echo $_smarty_tpl->tpl_vars['item']->value['ageD'];
        ?>
 Days, <?php 
        echo $_smarty_tpl->tpl_vars['item']->value['ageH'];
        ?>
 Hrs)</span></div></td>
              </tr>
            <tr>
              <td><div class="toleft">Date Received:</div>                
              <div class="toright"><?php 
        echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['item']->value['cashadv_created'], '%b %d, %Y at %H:%M %p');
        ?>
</div></td>
              </tr>
            <tr>
              <td><div class="toleft">Monthly CC Processing:</div>                <div class="toright">$ <?php 
        echo smarty_modifier_money(($tmp = @$_smarty_tpl->tpl_vars['item']->value['MonthlyCC']) === null || $tmp === '' ? 0 : $tmp, 2);
        ?>
</div></td>
              </tr>
            <tr>
              <td><div class="toleft">Monthly Bank Deposits:</div>                <div class="toright"><span class="spTooltip" onmouseover="tooltip.show('<?php 
        echo $_smarty_tpl->tpl_vars['item']->value['pop12month'];
        ?>
');" onmouseout="tooltip.hide();">  $ <?php 
        echo smarty_modifier_money(($tmp = @$_smarty_tpl->tpl_vars['item']->value['MonthlyBankDeposits']) === null || $tmp === '' ? 0 : $tmp, 2);
        ?>
</span></div></td>
              </tr>
            <tr>
              <td><div class="toleft">Avg Daily Bank Bal:</div>                <div class="toright">$ <?php 
        echo smarty_modifier_money(($tmp = @$_smarty_tpl->tpl_vars['item']->value['AverageBankBalance']) === null || $tmp === '' ? 0 : $tmp, 2);
        ?>
</div></td>
              </tr>
            <tr>
              <td><div class="toleft">Business Inception:</div>                <div class="toright"><?php 
        echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['item']->value['InceptionDate'], '%b %d, %Y');
        ?>
</div></td>
              </tr>
            <tr>
              <td><div class="toleft">Nature of Business:</div>                <div class="toright"><?php 
        echo $_smarty_tpl->tpl_vars['item']->value['MerchantType'];
        ?>
</div></td>
              </tr>
            <tr>
              <td><div class="toleft">Credit Score:</div>                <div class="toright"><span class="spCreditScore"><?php 
        echo $_smarty_tpl->tpl_vars['item']->value['CreditScoreTitle'];
        ?>
</span></div></td>
              </tr>
            <tr>
              <td><div class="toleft">Email Activity:</div>                
              	<div class="toright">
                All (<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['item']->value['cntEmailTotal']) === null || $tmp === '' ? 0 : $tmp;
        ?>
) - DBA (<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['item']->value['cntEmailDBA']) === null || $tmp === '' ? 0 : $tmp;
        ?>
) - Lenders (<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['item']->value['cntEmailLender']) === null || $tmp === '' ? 0 : $tmp;
        ?>
)
                </div>
              </td>
            </tr>
            <tr>
              <td><div class="toleft">Lenders:</div>                
              <div class="toright">
              	Accept (<?php 
        echo $_smarty_tpl->tpl_vars['item']->value['cntLendAccept'];
        ?>
) - Conditional (<?php 
        echo $_smarty_tpl->tpl_vars['item']->value['cntLendCond'];
        ?>
) - Decline (<?php 
        echo $_smarty_tpl->tpl_vars['item']->value['cntLendDecline'];
        ?>
)
              </div></td>
            </tr>
            
            
          </table></td>
        </tr>
      </table>
    </div>
    </div><?php 
    }