<?php if ($_valid && !is_callable('content_56059b42d6e2a')) {function content_56059b42d6e2a($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_truncate')) include '/var/www/kulturedkitsch.info/public_html/vtigercrm/libraries/Smarty/libs/plugins/modifier.truncate.php';
?>
<div class="row-fluid"><?php  $_smarty_tpl->tpl_vars['EXTENSION'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['EXTENSION']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['EXTENSIONS_LIST']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['extensions']['index']=-1;
foreach ($_from as $_smarty_tpl->tpl_vars['EXTENSION']->key => $_smarty_tpl->tpl_vars['EXTENSION']->value){
$_smarty_tpl->tpl_vars['EXTENSION']->_loop = true;
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['extensions']['index']++;
?><?php if ($_smarty_tpl->tpl_vars['EXTENSION']->value->isAlreadyExists()){?><?php $_smarty_tpl->tpl_vars['EXTENSION_MODULE_MODEL'] = new Smarty_variable($_smarty_tpl->tpl_vars['EXTENSION']->value->get('moduleModel'), null, 0);?><?php }else{ ?><?php $_smarty_tpl->tpl_vars['EXTENSION_MODULE_MODEL'] = new Smarty_variable('false', null, 0);?><?php }?><div class="span6"><div class="extension_container extensionWidgetContainer"><div class="extension_header"><div class="font-x-x-large boxSizingBorderBox" style="cursor:pointer"><?php echo vtranslate($_smarty_tpl->tpl_vars['EXTENSION']->value->get('label'),$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</div><input type="hidden" name="extensionName" value="<?php echo $_smarty_tpl->tpl_vars['EXTENSION']->value->get('name');?>
" /><input type="hidden" name="moduleAction" value="<?php if (($_smarty_tpl->tpl_vars['EXTENSION']->value->isAlreadyExists())&&(!$_smarty_tpl->tpl_vars['EXTENSION_MODULE_MODEL']->value->get('trial'))){?><?php if ($_smarty_tpl->tpl_vars['EXTENSION']->value->isUpgradable()){?>Upgrade<?php }else{ ?>Installed<?php }?><?php }else{ ?>Install<?php }?>" /><input type="hidden" name="extensionId" value="<?php echo $_smarty_tpl->tpl_vars['EXTENSION']->value->get('id');?>
" /></div><div><div class="row-fluid extension_contents"><span class="span8"><div class="row-fluid extensionDescription" style="word-wrap:break-word;"><?php $_smarty_tpl->tpl_vars['SUMMARY'] = new Smarty_variable($_smarty_tpl->tpl_vars['EXTENSION']->value->get('summary'), null, 0);?><?php if (empty($_smarty_tpl->tpl_vars['SUMMARY']->value)){?><?php ob_start();?><?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['EXTENSION']->value->get('description'),100);?>
<?php $_tmp1=ob_get_clean();?><?php $_smarty_tpl->tpl_vars['SUMMARY'] = new Smarty_variable($_tmp1, null, 0);?><?php }?><?php echo $_smarty_tpl->tpl_vars['SUMMARY']->value;?>
</div></span><span class="span4"><?php if ($_smarty_tpl->tpl_vars['EXTENSION']->value->get('thumbnailURL')!=null){?><?php $_smarty_tpl->tpl_vars['imageSource'] = new Smarty_variable($_smarty_tpl->tpl_vars['EXTENSION']->value->get('thumbnailURL'), null, 0);?><?php }else{ ?><?php $_smarty_tpl->tpl_vars['imageSource'] = new Smarty_variable(vimage_path('unavailable.png'), null, 0);?><?php }?><img class="thumbnailImage" src="<?php echo $_smarty_tpl->tpl_vars['imageSource']->value;?>
"/></span></div><div class="extensionInfo"><div class="row-fluid"><?php $_smarty_tpl->tpl_vars['ON_RATINGS'] = new Smarty_variable($_smarty_tpl->tpl_vars['EXTENSION']->value->get('avgrating'), null, 0);?><div class="span4"><span class="rating" data-score="<?php echo $_smarty_tpl->tpl_vars['ON_RATINGS']->value;?>
" data-readonly=true></span><span><?php if ($_smarty_tpl->tpl_vars['EXTENSION']->value->get('avgrating')){?>&nbsp;(<?php echo $_smarty_tpl->tpl_vars['EXTENSION']->value->get('avgrating');?>
)<?php }?></span></div><div class="span8"><div class="pull-right"><button class="btn installExtension addButton" style="margin-right:5px;"><?php echo vtranslate('LBL_MORE_DETAILS',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</button><?php if ($_smarty_tpl->tpl_vars['EXTENSION']->value->isVtigerCompatible()){?><?php if (($_smarty_tpl->tpl_vars['EXTENSION']->value->isAlreadyExists())&&(!$_smarty_tpl->tpl_vars['EXTENSION_MODULE_MODEL']->value->get('trial'))){?><?php if (($_smarty_tpl->tpl_vars['EXTENSION']->value->isUpgradable())){?><?php if ($_smarty_tpl->tpl_vars['EXTENSION']->value->get('isprotected')&&$_smarty_tpl->tpl_vars['IS_PRO']->value){?><button class="oneclickInstallFree btn btn-success margin0px <?php if (($_smarty_tpl->tpl_vars['REGISTRATION_STATUS']->value)&&($_smarty_tpl->tpl_vars['PASSWORD_STATUS']->value)){?>authenticated <?php }else{ ?> loginRequired<?php }?>"><?php echo vtranslate('LBL_UPGRADE',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</button><?php }elseif(!$_smarty_tpl->tpl_vars['EXTENSION']->value->get('isprotected')){?><button class="oneclickInstallFree btn btn-success margin0px <?php if (($_smarty_tpl->tpl_vars['REGISTRATION_STATUS']->value)&&($_smarty_tpl->tpl_vars['PASSWORD_STATUS']->value)){?>authenticated <?php }else{ ?> loginRequired<?php }?>"><?php echo vtranslate('LBL_UPGRADE',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</button><?php }?><?php }else{ ?><span class="alert alert-info" style="vertical-align:middle; padding: 5px 10px;"><?php echo vtranslate('LBL_INSTALLED',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</span><?php }?><?php }elseif((($_smarty_tpl->tpl_vars['EXTENSION']->value->get('price')=='Free')||($_smarty_tpl->tpl_vars['EXTENSION']->value->get('price')==0))){?><?php if ($_smarty_tpl->tpl_vars['EXTENSION']->value->get('isprotected')&&$_smarty_tpl->tpl_vars['IS_PRO']->value){?><button class="oneclickInstallFree btn btn-success <?php if (($_smarty_tpl->tpl_vars['REGISTRATION_STATUS']->value)&&($_smarty_tpl->tpl_vars['PASSWORD_STATUS']->value)){?>authenticated <?php }else{ ?> loginRequired<?php }?>"><?php echo vtranslate('LBL_INSTALL',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</button><?php }elseif(!$_smarty_tpl->tpl_vars['EXTENSION']->value->get('isprotected')){?><button class="oneclickInstallFree btn btn-success <?php if (($_smarty_tpl->tpl_vars['REGISTRATION_STATUS']->value)&&($_smarty_tpl->tpl_vars['PASSWORD_STATUS']->value)){?>authenticated <?php }else{ ?> loginRequired<?php }?>"><?php echo vtranslate('LBL_INSTALL',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</button><?php }?><?php }elseif(($_smarty_tpl->tpl_vars['IS_PRO']->value)){?><?php if (($_smarty_tpl->tpl_vars['EXTENSION']->value->get('trialdays')>0)&&($_smarty_tpl->tpl_vars['EXTENSION_MODULE_MODEL']->value=='false')&&($_smarty_tpl->tpl_vars['EXTENSION']->value->get('isprotected')==1)){?><button class="oneclickInstallPaid btn btn-success <?php if (($_smarty_tpl->tpl_vars['REGISTRATION_STATUS']->value)&&($_smarty_tpl->tpl_vars['PASSWORD_STATUS']->value)){?>authenticated <?php }else{ ?> loginRequired<?php }?>" data-trial=true><?php echo vtranslate('LBL_TRY_IT',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</button><?php }elseif((($_smarty_tpl->tpl_vars['EXTENSION_MODULE_MODEL']->value!='false')&&($_smarty_tpl->tpl_vars['EXTENSION_MODULE_MODEL']->value->get('trial')))){?><span class="alert alert-info"><?php echo vtranslate('LBL_TRIAL_INSTALLED',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</span>&nbsp;&nbsp;<?php }?><button class="oneclickInstallPaid btn btn-info <?php if (($_smarty_tpl->tpl_vars['REGISTRATION_STATUS']->value)&&($_smarty_tpl->tpl_vars['PASSWORD_STATUS']->value)){?>authenticated <?php }else{ ?> loginRequired<?php }?>" data-trial=false><?php echo vtranslate('LBL_BUY',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
$<?php echo $_smarty_tpl->tpl_vars['EXTENSION']->value->get('price');?>
</button><?php }?><?php }else{ ?><span class="alert alert-error"><?php echo vtranslate('LBL_EXTENSION_NOT_COMPATABLE',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</span><?php }?></div></div></div></div></div></div></div><?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['extensions']['index']%2!=0){?></div><div class="row-fluid"><?php }?><?php } ?><?php if (empty($_smarty_tpl->tpl_vars['EXTENSIONS_LIST']->value)){?><table class="emptyRecordsDiv"><tbody><tr><td><?php echo vtranslate('LBL_NO_EXTENSIONS_FOUND',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</td></tr></tbody></table><?php }?></div><?php }} ?>
    function content_56327dbce3bfe($_smarty_tpl)
    {
        ?>

<div class="row-fluid main-container">
	<div class="inner-container">
		<div class="row-fluid">
			<div class="span10">
				<h4><?php 
        echo vtranslate('LBL_WELCOME', 'Install');
        ?>
</h4>
			</div>
			<div class="span2">
				<a href="https://wiki.vtiger.com/vtiger6/" target="_blank" class="pull-right">
					<img src="<?php 
        echo vimage_path('help.png');
        ?>
" alt="Help-Icon"/>
				</a>
			</div>
		</div>
		<hr>

		<form class="form-horizontal" name="step1" method="post" action="index.php">
			<input type=hidden name="module" value="Install" />
			<input type=hidden name="view" value="Index" />
			<input type=hidden name="mode" value="Step2" />
			<div class="row-fluid">
				<div class="span4 welcome-image">
					<img src="<?php 
        echo vimage_path('wizard_screen.png');
        ?>
" alt="Vtiger Logo"/>
				</div>
				<div class="span8">
					<div class="welcome-div">
						<h3><?php 
        echo vtranslate('LBL_WELCOME_TO_VTIGER6_SETUP_WIZARD', 'Install');
        ?>
</h3>
						<?php 
        echo vtranslate('LBL_VTIGER6_SETUP_WIZARD_DESCRIPTION', 'Install');
        ?>

					</div>
				</div>
			</div>
			<div class="row-fluid">
				<div class="button-container">
					<input type="submit" class="btn btn-large btn-primary" value="<?php 
        echo vtranslate('LBL_INSTALL_BUTTON', 'Install');
        ?>
"/>
				</div>
			</div>
		</form>
	</div>
</div><?php 
    }
    function content_56327dbce2932($_smarty_tpl)
    {
        ?>
<input type="hidden" id="module" value="Install" />
<input type="hidden" id="view" value="Index" />
<div class="container-fluid page-container">
	<div class="row-fluid">
		<div class="span6">
			<div class="logo">
				<img src="<?php 
        echo vimage_path('logo.png');
        ?>
"/>
			</div>
		</div>
		<div class="span6">
			<div class="head pull-right">
				<h3><?php 
        echo vtranslate('LBL_INSTALLATION_WIZARD', 'Install');
        ?>
</h3>
			</div>
		</div>
	</div>
<?php 
    }
    function content_567d6e7751be3($_smarty_tpl)
    {
        ?>
<div style="margin:0 auto;width: 50em;">
	<table border='0' cellpadding='5' cellspacing='0' height='600px' width="700px">
	<tr><td align='center'>
		<div style='border: 3px solid rgb(153, 153, 153); background-color: rgb(255, 255, 255); width: 80%; position: relative; z-index: 100000020;'>

		<table border='0' cellpadding='5' cellspacing='0' width='98%'>
		<tr>
			<td rowspan='2' width='11%'><img src="<?php 
        echo vimage_path('denied.gif');
        ?>
" ></td>
			<td style='border-bottom: 1px solid rgb(204, 204, 204);' nowrap='nowrap' width='70%'>
				<span class='genHeaderSmall'><?php 
        echo vtranslate($_smarty_tpl->tpl_vars['MESSAGE']->value);
        ?>
</span></td>
		</tr>
		<tr>
			<td class='small' align='right' nowrap='nowrap'>
				<a href='javascript:window.history.back();'><?php 
        echo vtranslate('LBL_GO_BACK');
        ?>
</a><br>
			</td>
		</tr>
		</table>
		</div>
	</td></tr>
	</table>
</div><?php 
    }
    function content_56a2061eefba2($_smarty_tpl)
    {
        ?>
<span class="span2"><img src="<?php 
        echo vimage_path('summary_organizations.png');
        ?>
" class="summaryImg" /></span><span class="span8 margin0px"><span class="row-fluid"><span class="recordLabel font-x-x-large textOverflowEllipsis span8 pushDown" title="<?php 
        echo $_smarty_tpl->tpl_vars['RECORD']->value->getName();
        ?>
"><?php 
        $_smarty_tpl->tpl_vars['NAME_FIELD'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['NAME_FIELD']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['MODULE_MODEL']->value->getNameFields();
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['NAME_FIELD']->key => $_smarty_tpl->tpl_vars['NAME_FIELD']->value) {
            $_smarty_tpl->tpl_vars['NAME_FIELD']->_loop = true;
            $_smarty_tpl->tpl_vars['FIELD_MODEL'] = new Smarty_variable($_smarty_tpl->tpl_vars['MODULE_MODEL']->value->getField($_smarty_tpl->tpl_vars['NAME_FIELD']->value), null, 0);
            if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getPermissions()) {
                ?>
<span class="<?php 
                echo $_smarty_tpl->tpl_vars['NAME_FIELD']->value;
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['RECORD']->value->get($_smarty_tpl->tpl_vars['NAME_FIELD']->value);
                ?>
</span>&nbsp;<?php 
            }
        }
        ?>
</span></span></span><?php 
    }
Пример #6
0
 public function getImagePath()
 {
     $commentor = $this->getCommentedByModel();
     if ($commentor) {
         $customer = $this->get('customer');
         $isMailConverterType = $this->get('from_mailconverter');
         if (!empty($customer) && $isMailConverterType != 1) {
             $recordModel = Vtiger_Record_Model::getInstanceById($customer);
             $imageDetails = $recordModel->getImageDetails();
             if (!empty($imageDetails)) {
                 return $imageDetails[0]['path'] . '_' . $imageDetails[0]['name'];
             } else {
                 return vimage_path('CustomerPortal.png');
             }
         } else {
             if ($isMailConverterType == 1) {
                 return vimage_path('MailConverterComment.png');
             } else {
                 $imagePath = $commentor->getImageDetails();
                 if (!empty($imagePath[0]['name'])) {
                     return $imagePath[0]['path'] . '_' . $imagePath[0]['name'];
                 }
             }
         }
     }
     return false;
 }
    function content_56755d06176cd($_smarty_tpl)
    {
        ?>
<div class="quickWidgetContainer accordion"><?php 
        $_smarty_tpl->tpl_vars['val'] = new Smarty_variable(1, null, 0);
        $_smarty_tpl->tpl_vars['SIDEBARWIDGET'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['SIDEBARWIDGET']->_loop = false;
        $_smarty_tpl->tpl_vars['index'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['QUICK_LINKS']->value['SIDEBARWIDGET'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['SIDEBARWIDGET']->key => $_smarty_tpl->tpl_vars['SIDEBARWIDGET']->value) {
            $_smarty_tpl->tpl_vars['SIDEBARWIDGET']->_loop = true;
            $_smarty_tpl->tpl_vars['index']->value = $_smarty_tpl->tpl_vars['SIDEBARWIDGET']->key;
            ?>
<div class="quickWidget"><div class="accordion-heading accordion-toggle quickWidgetHeader" data-target="#<?php 
            echo $_smarty_tpl->tpl_vars['MODULE']->value;
            ?>
_sideBar_<?php 
            echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['SIDEBARWIDGET']->value->getLabel());
            ?>
"data-toggle="collapse" data-parent="#quickWidgets" data-label="<?php 
            echo $_smarty_tpl->tpl_vars['SIDEBARWIDGET']->value->getLabel();
            ?>
"data-widget-url="<?php 
            echo $_smarty_tpl->tpl_vars['SIDEBARWIDGET']->value->getUrl();
            ?>
" ><span class="pull-left"><img class="imageElement" data-rightimage="<?php 
            echo vimage_path('rightArrowWhite.png');
            ?>
" data-downimage="<?php 
            echo vimage_path('downArrowWhite.png');
            ?>
" src="<?php 
            echo vimage_path('rightArrowWhite.png');
            ?>
" /></span><h5 class="title widgetTextOverflowEllipsis pull-right" title="<?php 
            echo vtranslate($_smarty_tpl->tpl_vars['SIDEBARWIDGET']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE']->value);
            ?>
"><?php 
            echo vtranslate($_smarty_tpl->tpl_vars['SIDEBARWIDGET']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE']->value);
            ?>
</h5><div class="loadingImg hide pull-right"><div class="loadingWidgetMsg"><strong><?php 
            echo vtranslate('LBL_LOADING_WIDGET', $_smarty_tpl->tpl_vars['MODULE']->value);
            ?>
</strong></div></div><div class="clearfix"></div></div><div class="widgetContainer accordion-body collapse" id="<?php 
            echo $_smarty_tpl->tpl_vars['MODULE']->value;
            ?>
_sideBar_<?php 
            echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['SIDEBARWIDGET']->value->getLabel());
            ?>
" data-url="<?php 
            echo $_smarty_tpl->tpl_vars['SIDEBARWIDGET']->value->getUrl();
            ?>
"></div></div><?php 
        }
        ?>
</div><?php 
    }
    function content_54e3f82c1a28f($_smarty_tpl)
    {
        $_smarty_tpl->tpl_vars['WIDTHTYPE'] = new Smarty_variable($_smarty_tpl->tpl_vars['USER_MODEL']->value->get('rowheight'), null, 0);
        echo $_smarty_tpl->getSubTemplate(vtemplate_path('DetailViewBlockView.tpl', 'Vtiger'), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('RECORD_STRUCTURE' => $_smarty_tpl->tpl_vars['RECORD_STRUCTURE']->value, 'MODULE_NAME' => $_smarty_tpl->tpl_vars['MODULE_NAME']->value), 0);
        $_smarty_tpl->tpl_vars["IS_HIDDEN"] = new Smarty_variable(false, null, 0);
        ?>
<table class="table table-bordered equalSplit detailview-table"><thead><tr><th class="blockHeader" colspan="4"><img class="cursorPointer alignMiddle blockToggle <?php 
        if (!$_smarty_tpl->tpl_vars['IS_HIDDEN']->value) {
            ?>
 hide <?php 
        }
        ?>
 "  src="<?php 
        echo vimage_path('arrowRight.png');
        ?>
" data-mode="hide" data-id='INVITE_USER_BLOCK_ID'><img class="cursorPointer alignMiddle blockToggle <?php 
        if ($_smarty_tpl->tpl_vars['IS_HIDDEN']->value) {
            ?>
 hide <?php 
        }
        ?>
"  src="<?php 
        echo vimage_path('arrowDown.png');
        ?>
" data-mode="show" data-id='INVITE_USER_BLOCK_ID'>&nbsp;&nbsp;<?php 
        ob_start();
        echo $_smarty_tpl->tpl_vars['MODULE_NAME']->value;
        $_tmp1 = ob_get_clean();
        echo vtranslate('LBL_INVITE_USER_BLOCK', $_tmp1);
        ?>
</th></tr></thead><tr><td class="fieldLabel <?php 
        echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;
        ?>
"><label class="muted pull-right marginRight10px"><?php 
        echo vtranslate('LBL_INVITE_USERS', $_smarty_tpl->tpl_vars['MODULE_NAME']->value);
        ?>
</label></td><td class="fieldValue <?php 
        echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;
        ?>
"><?php 
        $_smarty_tpl->tpl_vars['USER_NAME'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['USER_NAME']->_loop = false;
        $_smarty_tpl->tpl_vars['USER_ID'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['ACCESSIBLE_USERS']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['USER_NAME']->key => $_smarty_tpl->tpl_vars['USER_NAME']->value) {
            $_smarty_tpl->tpl_vars['USER_NAME']->_loop = true;
            $_smarty_tpl->tpl_vars['USER_ID']->value = $_smarty_tpl->tpl_vars['USER_NAME']->key;
            if (in_array($_smarty_tpl->tpl_vars['USER_ID']->value, $_smarty_tpl->tpl_vars['INVITIES_SELECTED']->value)) {
                echo $_smarty_tpl->tpl_vars['USER_NAME']->value;
                ?>
<br><?php 
            }
        }
        ?>
</td></tr></table><?php 
    }
<?php if ($_valid && !is_callable('content_560879c9cdc56')) {function content_560879c9cdc56($_smarty_tpl) {?>
<div class="container-fluid"><div class="widget_header"><h3><?php echo vtranslate('CustomerPortal',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</h3></div><hr><div class="contents row-fluid"><form id="customerPortalForm" class="form-horizontal"><div class="row-fluid"><input type="hidden" name="portalModulesInfo" value="" /><div class="control-group"><label class="muted control-label"><?php echo vtranslate('LBL_PRIVILEGES',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</label><div class="controls"><span class="row-fluid"><select name="privileges" class="select2 span3"><?php  $_smarty_tpl->tpl_vars['USER_MODEL'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['USER_MODEL']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['USER_MODELS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['USER_MODEL']->key => $_smarty_tpl->tpl_vars['USER_MODEL']->value){
$_smarty_tpl->tpl_vars['USER_MODEL']->_loop = true;
?><?php $_smarty_tpl->tpl_vars['USER_ID'] = new Smarty_variable($_smarty_tpl->tpl_vars['USER_MODEL']->value->getId(), null, 0);?><option value="<?php echo $_smarty_tpl->tpl_vars['USER_ID']->value;?>
" <?php if ($_smarty_tpl->tpl_vars['CURRENT_PORTAL_USER']->value==$_smarty_tpl->tpl_vars['USER_ID']->value){?> selected <?php }?>><?php echo $_smarty_tpl->tpl_vars['USER_MODEL']->value->getName();?>
</option><?php } ?></select><span class="span1">&nbsp;</span><span class="span7"><i class="icon-info-sign alignMiddle"></i>&nbsp;<?php echo vtranslate('LBL_PREVILEGES_MESSAGE',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</span><span class="span1">&nbsp;</span></span></div></div><div class="control-group"><label class="muted control-label"><?php echo vtranslate('LBL_DEFAULT_ASSIGNEE',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</label><div class="controls"><span class="row-fluid"><select name="defaultAssignee" class="select2 span3"><optgroup style="border: none" label="<?php echo vtranslate('LBL_USERS',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
" ><?php  $_smarty_tpl->tpl_vars['USER_MODEL'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['USER_MODEL']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['USER_MODELS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['USER_MODEL']->key => $_smarty_tpl->tpl_vars['USER_MODEL']->value){
$_smarty_tpl->tpl_vars['USER_MODEL']->_loop = true;
?><?php $_smarty_tpl->tpl_vars['USER_ID'] = new Smarty_variable($_smarty_tpl->tpl_vars['USER_MODEL']->value->getId(), null, 0);?><option value="<?php echo $_smarty_tpl->tpl_vars['USER_ID']->value;?>
" <?php if ($_smarty_tpl->tpl_vars['CURRENT_DEFAULT_ASSIGNEE']->value==$_smarty_tpl->tpl_vars['USER_ID']->value){?> selected <?php }?>><?php echo $_smarty_tpl->tpl_vars['USER_MODEL']->value->getName();?>
</option><?php } ?></optgroup><optgroup style="border: none" label="<?php echo vtranslate('LBL_GROUPS',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
"><?php  $_smarty_tpl->tpl_vars['GROUP_MODEL'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['GROUP_MODEL']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['GROUP_MODELS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['GROUP_MODEL']->key => $_smarty_tpl->tpl_vars['GROUP_MODEL']->value){
$_smarty_tpl->tpl_vars['GROUP_MODEL']->_loop = true;
?><?php $_smarty_tpl->tpl_vars['GROUP_ID'] = new Smarty_variable($_smarty_tpl->tpl_vars['GROUP_MODEL']->value->getId(), null, 0);?><option value="<?php echo $_smarty_tpl->tpl_vars['GROUP_ID']->value;?>
" <?php if ($_smarty_tpl->tpl_vars['CURRENT_DEFAULT_ASSIGNEE']->value==$_smarty_tpl->tpl_vars['GROUP_ID']->value){?> selected <?php }?>><?php echo $_smarty_tpl->tpl_vars['GROUP_MODEL']->value->getName();?>
</option><?php } ?></optgroup></select><span class="span1">&nbsp;</span><span class="span7"><i class="icon-info-sign alignMiddle"></i>&nbsp;<?php echo vtranslate('LBL_DEFAULT_ASSIGNEE_MESSAGE',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</span><span class="span1">&nbsp;</span></span></div></div><div class="control-group"><label class="muted control-label"><?php echo vtranslate('LBL_PORTAL_URL',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</label><div class="controls"><span class="row-fluid"><span class="span4 pushDownHalfper"><a class="alignBottom" href="<?php echo $_smarty_tpl->tpl_vars['PORTAL_URL']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['PORTAL_URL']->value;?>
</a></span><span class="span7"><i class="icon-info-sign alignMiddle"></i>&nbsp;<?php echo vtranslate('LBL_PORTAL_URL_MESSAGE',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</span><span class="span1">&nbsp;</span></span></div></div><div><i class="icon-info-sign alignMiddle"></i>&nbsp;<?php echo vtranslate('LBL_DRAG_AND_DROP_MESSAGE',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</div><br><table id="portalModulesTable" class="table table-bordered table-condensed themeTableColor"><thead><tr class="blockHeader"><th><?php echo vtranslate('LBL_MODULE_NAME',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</th><th><?php echo vtranslate('LBL_ENABLE_MODULE',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</th><th><?php echo vtranslate('LBL_VIEW_ALL_RECORDS',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</th></tr></thead><tbody><?php  $_smarty_tpl->tpl_vars['MODEL'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['MODEL']->_loop = false;
 $_smarty_tpl->tpl_vars['TAB_ID'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['MODULES_MODELS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['MODEL']->key => $_smarty_tpl->tpl_vars['MODEL']->value){
$_smarty_tpl->tpl_vars['MODEL']->_loop = true;
 $_smarty_tpl->tpl_vars['TAB_ID']->value = $_smarty_tpl->tpl_vars['MODEL']->key;
?><?php $_smarty_tpl->tpl_vars['MODULE_NAME'] = new Smarty_variable($_smarty_tpl->tpl_vars['MODEL']->value->get('name'), null, 0);?><tr class="portalModuleRow" data-id="<?php echo $_smarty_tpl->tpl_vars['TAB_ID']->value;?>
" data-sequence="<?php echo $_smarty_tpl->tpl_vars['MODEL']->value->get('sequence');?>
" data-module="<?php echo $_smarty_tpl->tpl_vars['MODULE_NAME']->value;?>
"><input type="hidden" name="portalModulesInfo[<?php echo $_smarty_tpl->tpl_vars['TAB_ID']->value;?>
][sequence]" value="<?php echo $_smarty_tpl->tpl_vars['MODEL']->value->get('sequence');?>
" /><td><div class="row-fluid"><span class="span1">&nbsp;</span><span class="span1"><a><img src="<?php echo vimage_path('drag.png');?>
" border="0" title="<?php echo vtranslate('LBL_DRAG',$_smarty_tpl->tpl_vars['MODULE']->value);?>
"/></a></span><span class="span10"><?php echo vtranslate($_smarty_tpl->tpl_vars['MODULE_NAME']->value,$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</span></div></td><td><input type="hidden" name="portalModulesInfo[<?php echo $_smarty_tpl->tpl_vars['TAB_ID']->value;?>
][visible]" value="0" /><input type="checkbox" name="portalModulesInfo[<?php echo $_smarty_tpl->tpl_vars['TAB_ID']->value;?>
][visible]" value="1" <?php if ($_smarty_tpl->tpl_vars['MODEL']->value->get('visible')=='1'){?> checked <?php }?>/></td><td><label class="radio inline"><input type="radio" name="portalModulesInfo[<?php echo $_smarty_tpl->tpl_vars['TAB_ID']->value;?>
][prefValue]" value="1" <?php if ($_smarty_tpl->tpl_vars['MODEL']->value->get('prefvalue')=='1'){?> checked="checked" <?php }?>/>&nbsp;<?php echo vtranslate('LBL_YES',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</label><label class="radio inline"><input type="radio" name="portalModulesInfo[<?php echo $_smarty_tpl->tpl_vars['TAB_ID']->value;?>
][prefValue]" value="0" <?php if ($_smarty_tpl->tpl_vars['MODEL']->value->get('prefvalue')=='0'){?> checked="checked" <?php }?>/>&nbsp;<?php echo vtranslate('LBL_NO',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</label></td></tr><?php } ?></tbody></table></div><div class="row-fluid"><div class="span6 padding1per"><button class="btn btn-success pull-right" type="submit" disabled="true" name="savePortalInfo"><strong><?php echo vtranslate('LBL_SAVE',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</strong></button></div><div class="span6">&nbsp;</div></div></form></div></div>
<?php }} ?>
    function content_54e3febedb0a7($_smarty_tpl)
    {
        ?>
<div class="span2 row-fluid">
	<div id="_quicklinks_mainuidiv_" class="quickWidgetContainer accordion">
		<?php 
        echo $_smarty_tpl->getSubTemplate("modules/MailManager/MainuiQuickLinks.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>

	
		<div id='_folderprogress_' style='float: right; display: none; position: absolute;left: 30px; font-weight: bold;'>
			<span><?php 
        echo vtranslate('JSLBL_LOADING_FOLDERS', $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
</span><img src="<?php 
        echo vimage_path('vtbusy.gif');
        ?>
" border='0' align='absmiddle'>
		</div>
		<div id="_mainfolderdiv_" class="quickWidgetContainer accordion"></div>
	</div>
</div>

<div class="contentsDiv span10 marginLeftZero">
	<div id='_progress_' style='float: right; display: none; position: absolute; right: 35px; font-weight: bold;'>
		<span id='_progressmsg_'>...</span><img src="<?php 
        echo vimage_path('vtbusy.gif');
        ?>
" border='0' align='absmiddle'></div>

	<span id="_messagediv_"><?php 
        if ($_smarty_tpl->tpl_vars['ERROR']->value) {
            ?>
<p><?php 
            echo $_smarty_tpl->tpl_vars['ERROR']->value;
            ?>
</p><?php 
        }
        ?>
</span><br>
	<div id="_contentdiv_"></div>
	<div id="_contentdiv2_"></div>
	<div id="_settingsdiv_"></div>
	<div id="_relationpopupdiv_" style="display:none;position:absolute;width:800px;z-index:80000;"></div>
	<div id="_replydiv_" style="display:none;"></div>
	<div id="replycontentdiv" style="display:none;"></div>

</div>
<div id = '__vtiger__'></div>

<script type='text/javascript'>
	
	jQuery(function(){MailManager.mainui()});
	
</script>
<input type="hidden" name="module" value="MailManager"><?php 
    }
<?php if ($_valid && !is_callable('content_5605a0d218a11')) {function content_5605a0d218a11($_smarty_tpl) {?>

<div class="span2 row-fluid"><div id="_quicklinks_mainuidiv_" class="quickWidgetContainer accordion"><?php echo $_smarty_tpl->getSubTemplate ("modules/MailManager/MainuiQuickLinks.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
<div class="clearfix">&nbsp;<input type="hidden" id="isMailBoxExists" value="<?php if ($_smarty_tpl->tpl_vars['MAILBOX']->value->exists()){?>1<?php }else{ ?>0<?php }?>"/></div><div class="quickWidget"><div class="accordion-heading accordion-toggle quickWidgetHeader" onclick="MailManager.getFoldersList();"><span class="pull-left"><img class="imageElement" data-rightimage="<?php echo vimage_path('rightArrowWhite.png');?>
" data-downimage="<?php echo vimage_path('downArrowWhite.png');?>
" src="<?php echo vimage_path('rightArrowWhite.png');?>
" /></span>&nbsp;<h5 class="title widgetTextOverflowEllipsis pull-right"><?php echo vtranslate('LBL_Folders',$_smarty_tpl->tpl_vars['MODULE']->value);?>
</h5></div><div class="widgetContainer accordion-body collapse in" id="folders"><input type=hidden name="mm_selected_folder" id="mm_selected_folder"><input type="hidden" name="_folder" id="mailbox_folder"></div></div><div id="_mainfolderdiv_" class="quickWidgetContainer accordion"></div></div></div><div class="contentsDiv span10 marginLeftZero"><div id='_progress_' style='float: right; display: none; position: absolute; right: 35px; font-weight: bold;'><span id='_progressmsg_'>...</span><img src="<?php echo vimage_path('vtbusy.gif');?>
" border='0' align='absmiddle'></div><span id="_messagediv_"><?php if ($_smarty_tpl->tpl_vars['ERROR']->value){?><p><?php echo $_smarty_tpl->tpl_vars['ERROR']->value;?>
</p><?php }?></span><div id="_contentdiv_"></div><div id="_contentdiv2_" class="container-fluid"></div><div id="_settingsdiv_"></div><div id="_relationpopupdiv_" style="display:none;position:absolute;width:800px;z-index:80000;"></div><div id="_replydiv_" style="display:none;"></div><div id="replycontentdiv" style="display:none;"></div></div><div id = '__vtiger__'></div><script type='text/javascript'>
		jQuery(function(){MailManager.mainui()});
	</script><input type="hidden" name="module" value="MailManager"><?php }} ?>
<?php if ($_valid && !is_callable('content_56059e5cb78f8')) {function content_56059e5cb78f8($_smarty_tpl) {?>
<span class="span2"><img src="<?php echo vimage_path('summary_Leads.png');?>
" class="summaryImg" /></span><span class="span8 margin0px"><span class="row-fluid"><h4 class="recordLabel pushDown" title="<?php echo $_smarty_tpl->tpl_vars['RECORD']->value->getDisplayValue('salutationtype');?>
&nbsp;<?php echo $_smarty_tpl->tpl_vars['RECORD']->value->getName();?>
"> &nbsp;<?php if ($_smarty_tpl->tpl_vars['RECORD']->value->getDisplayValue('salutationtype')){?><span class="salutation"><?php echo $_smarty_tpl->tpl_vars['RECORD']->value->getDisplayValue('salutationtype');?>
</span>&nbsp;<?php }?><?php $_smarty_tpl->tpl_vars['COUNTER'] = new Smarty_variable(0, null, 0);?><?php  $_smarty_tpl->tpl_vars['NAME_FIELD'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['NAME_FIELD']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['MODULE_MODEL']->value->getNameFields(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['NAME_FIELD']->key => $_smarty_tpl->tpl_vars['NAME_FIELD']->value){
$_smarty_tpl->tpl_vars['NAME_FIELD']->_loop = true;
?><?php $_smarty_tpl->tpl_vars['FIELD_MODEL'] = new Smarty_variable($_smarty_tpl->tpl_vars['MODULE_MODEL']->value->getField($_smarty_tpl->tpl_vars['NAME_FIELD']->value), null, 0);?><?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getPermissions()){?><span class="<?php echo $_smarty_tpl->tpl_vars['NAME_FIELD']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['RECORD']->value->get($_smarty_tpl->tpl_vars['NAME_FIELD']->value);?>
</span><?php if ($_smarty_tpl->tpl_vars['COUNTER']->value==0&&($_smarty_tpl->tpl_vars['RECORD']->value->get($_smarty_tpl->tpl_vars['NAME_FIELD']->value))){?>&nbsp;<?php $_smarty_tpl->tpl_vars['COUNTER'] = new Smarty_variable($_smarty_tpl->tpl_vars['COUNTER']->value+1, null, 0);?><?php }?><?php }?><?php } ?></h4></span><span class="row-fluid"><span class="designation_label">&nbsp;<?php echo $_smarty_tpl->tpl_vars['RECORD']->value->getDisplayValue('designation');?>
</span><?php if ($_smarty_tpl->tpl_vars['RECORD']->value->getDisplayValue('designation')&&$_smarty_tpl->tpl_vars['RECORD']->value->getDisplayValue('company')){?>&nbsp;<?php echo vtranslate('LBL_AT');?>
&nbsp;<?php }?><span class="company_label"><?php echo $_smarty_tpl->tpl_vars['RECORD']->value->get('company');?>
</span></span></span><?php }} ?>
    function content_5506e559c1c46($_smarty_tpl)
    {
        ?>
<span class="span2"><img src="<?php 
        echo vimage_path('summary_Tickets.png');
        ?>
" class="summaryImg" /></span><span class="span10 margin0px"><span class="row-fluid"><h4 class="recordLabel" title="<?php 
        echo $_smarty_tpl->tpl_vars['RECORD']->value->getName();
        ?>
"><?php 
        $_smarty_tpl->tpl_vars['NAME_FIELD'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['NAME_FIELD']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['MODULE_MODEL']->value->getNameFields();
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['NAME_FIELD']->key => $_smarty_tpl->tpl_vars['NAME_FIELD']->value) {
            $_smarty_tpl->tpl_vars['NAME_FIELD']->_loop = true;
            $_smarty_tpl->tpl_vars['FIELD_MODEL'] = new Smarty_variable($_smarty_tpl->tpl_vars['MODULE_MODEL']->value->getField($_smarty_tpl->tpl_vars['NAME_FIELD']->value), null, 0);
            if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getPermissions()) {
                ?>
<span class="<?php 
                echo $_smarty_tpl->tpl_vars['NAME_FIELD']->value;
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['RECORD']->value->get($_smarty_tpl->tpl_vars['NAME_FIELD']->value);
                ?>
</span>&nbsp;<?php 
            }
        }
        ?>
</h4></span><?php 
        $_smarty_tpl->tpl_vars['PRIORITY'] = new Smarty_variable($_smarty_tpl->tpl_vars['RECORD']->value->get('ticketpriorities'), null, 0);
        if (!empty($_smarty_tpl->tpl_vars['PRIORITY']->value)) {
            ?>
<span class="row-fluid"><span class="muted"><?php 
            echo vtranslate('Priority', $_smarty_tpl->tpl_vars['MODULE_NAME']->value);
            ?>
 - </span><?php 
            echo $_smarty_tpl->tpl_vars['RECORD']->value->getDisplayValue('ticketpriorities');
            ?>
</span><?php 
        }
        ?>
</span><?php 
    }
    function content_5678debf0a2b0($_smarty_tpl)
    {
        ?>
<span class="span2"><img src="<?php 
        echo vimage_path('summary_Oppurtunities.png');
        ?>
" class="summaryImg" /></span><span class="span8 margin0px"><span class="row-fluid"><h4 class="recordLabel pushDown" title="<?php 
        echo $_smarty_tpl->tpl_vars['RECORD']->value->getName();
        ?>
"><?php 
        $_smarty_tpl->tpl_vars['NAME_FIELD'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['NAME_FIELD']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['MODULE_MODEL']->value->getNameFields();
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['NAME_FIELD']->key => $_smarty_tpl->tpl_vars['NAME_FIELD']->value) {
            $_smarty_tpl->tpl_vars['NAME_FIELD']->_loop = true;
            $_smarty_tpl->tpl_vars['FIELD_MODEL'] = new Smarty_variable($_smarty_tpl->tpl_vars['MODULE_MODEL']->value->getField($_smarty_tpl->tpl_vars['NAME_FIELD']->value), null, 0);
            if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getPermissions()) {
                ?>
<span class="<?php 
                echo $_smarty_tpl->tpl_vars['NAME_FIELD']->value;
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['RECORD']->value->get($_smarty_tpl->tpl_vars['NAME_FIELD']->value);
                ?>
</span>&nbsp;<?php 
            }
        }
        ?>
</h4></span><?php 
        $_smarty_tpl->tpl_vars['RELATED_TO'] = new Smarty_variable($_smarty_tpl->tpl_vars['RECORD']->value->get('related_to'), null, 0);
        if (!empty($_smarty_tpl->tpl_vars['RELATED_TO']->value)) {
            ?>
<span class="row-fluid"><span class="muted"><?php 
            echo vtranslate('Related to', $_smarty_tpl->tpl_vars['MODULE_NAME']->value);
            ?>
 - </span><?php 
            echo $_smarty_tpl->tpl_vars['RECORD']->value->getDisplayValue('related_to');
            ?>
</span><?php 
        }
        ?>
</span><?php 
    }
    function content_555e15824c949($_smarty_tpl)
    {
        ?>
<span class="span2"><img src="<?php 
        echo vimage_path('summary_Projects.png');
        ?>
" class="summaryImg" /></span><span class="span8 margin0px"><span class="row-fluid"><span class="recordLabel font-x-x-large textOverflowEllipsis pushDown span" title="<?php 
        echo $_smarty_tpl->tpl_vars['RECORD']->value->getName();
        ?>
"><?php 
        $_smarty_tpl->tpl_vars['NAME_FIELD'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['NAME_FIELD']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['MODULE_MODEL']->value->getNameFields();
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['NAME_FIELD']->key => $_smarty_tpl->tpl_vars['NAME_FIELD']->value) {
            $_smarty_tpl->tpl_vars['NAME_FIELD']->_loop = true;
            $_smarty_tpl->tpl_vars['FIELD_MODEL'] = new Smarty_variable($_smarty_tpl->tpl_vars['MODULE_MODEL']->value->getField($_smarty_tpl->tpl_vars['NAME_FIELD']->value), null, 0);
            if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getPermissions()) {
                ?>
<span class="<?php 
                echo $_smarty_tpl->tpl_vars['NAME_FIELD']->value;
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['RECORD']->value->get($_smarty_tpl->tpl_vars['NAME_FIELD']->value);
                ?>
</span>&nbsp;<?php 
            }
        }
        ?>
</span></span><?php 
        $_smarty_tpl->tpl_vars['RELATED_TO'] = new Smarty_variable($_smarty_tpl->tpl_vars['RECORD']->value->get('linktoaccountscontacts'), null, 0);
        if (!empty($_smarty_tpl->tpl_vars['RELATED_TO']->value)) {
            ?>
<span class="row-fluid"><span class="muted"><?php 
            echo vtranslate('Related to', $_smarty_tpl->tpl_vars['MODULE_NAME']->value);
            ?>
 </span><?php 
            echo $_smarty_tpl->tpl_vars['RECORD']->value->getDisplayValue('linktoaccountscontacts');
            ?>
</span><?php 
        }
        ?>
</span><?php 
    }
    function content_5686176aa4c3e($_smarty_tpl)
    {
        ?>
<form name="EditWorkflow" action="index.php" method="post" id="workflow_step3" class="form-horizontal"><input type="hidden" name="module" value="Workflows" /><input type="hidden" name="record" value="<?php 
        echo $_smarty_tpl->tpl_vars['RECORD']->value;
        ?>
" /><input type="hidden" class="step" value="3" /><div class="btn-group"><a class="btn dropdown-toggle addButton" data-toggle="dropdown" href="#"><strong><?php 
        echo vtranslate('LBL_ADD_TASK', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
        ?>
</strong>&nbsp;<span><img class="imageElement" src="<?php 
        echo vimage_path('downArrowWhite.png');
        ?>
" /></span></a><ul class="dropdown-menu"><?php 
        $_smarty_tpl->tpl_vars['TASK_TYPE'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['TASK_TYPE']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['TASK_TYPES']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['TASK_TYPE']->key => $_smarty_tpl->tpl_vars['TASK_TYPE']->value) {
            $_smarty_tpl->tpl_vars['TASK_TYPE']->_loop = true;
            ?>
<li><a class="cursorPointer" data-url="<?php 
            echo $_smarty_tpl->tpl_vars['TASK_TYPE']->value->getEditViewUrl();
            ?>
&for_workflow=<?php 
            echo $_smarty_tpl->tpl_vars['RECORD']->value;
            ?>
"><?php 
            echo vtranslate($_smarty_tpl->tpl_vars['TASK_TYPE']->value->get('label'), $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
            ?>
</a></li><?php 
        }
        ?>
</ul></div><div id="taskListContainer"><?php 
        echo $_smarty_tpl->getSubTemplate(vtemplate_path('TasksList.tpl', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>
</div><br><div class="pull-right"><button class="btn btn-danger backStep" type="button"><strong><?php 
        echo vtranslate('LBL_BACK', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
        ?>
</strong></button>&nbsp;&nbsp;<button class="btn btn-success" type="button" onclick="javascript:window.history.back();"><strong><?php 
        echo vtranslate('LBL_FINISH', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
        ?>
</strong></button></div><div class="clearfix"></div></form><?php 
    }
<?php if ($_valid && !is_callable('content_56081d0da75fc')) {function content_56081d0da75fc($_smarty_tpl) {?>
<?php $_smarty_tpl->tpl_vars['WIDTHTYPE'] = new Smarty_variable($_smarty_tpl->tpl_vars['USER_MODEL']->value->get('rowheight'), null, 0);?><?php echo $_smarty_tpl->getSubTemplate (vtemplate_path('DetailViewBlockView.tpl',$_smarty_tpl->tpl_vars['MODULE_NAME']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('RECORD_STRUCTURE'=>$_smarty_tpl->tpl_vars['RECORD_STRUCTURE']->value,'MODULE_NAME'=>$_smarty_tpl->tpl_vars['MODULE_NAME']->value), 0);?>
<table class="table table-bordered equalSplit detailview-table"><thead><tr><th class="blockHeader" colspan="4"><?php echo vtranslate('LBL_TAG_CLOUD_DISPLAY',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</th></tr></thead><tbody><tr><td class="fieldLabel <?php echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;?>
" id="<?php echo $_smarty_tpl->tpl_vars['MODULE']->value;?>
_detailView_fieldLabel_tagCloud"><label class="muted pull-right marginRight10px"><?php echo vtranslate('LBL_TAG_CLOUD',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</label></td><td class="fieldValue <?php echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;?>
" id="<?php echo $_smarty_tpl->tpl_vars['MODULE']->value;?>
_detailView_fieldValue_tagCloud"><?php $_smarty_tpl->tpl_vars['TAG_CLOUD'] = new Smarty_variable($_smarty_tpl->tpl_vars['RECORD']->value->getTagCloudStatus(), null, 0);?><?php if ($_smarty_tpl->tpl_vars['TAG_CLOUD']->value){?><img src=<?php echo vimage_path("prvPrfSelectedTick.gif");?>
 alt="<?php echo vtranslate('LBL_SHOWN',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
" title="<?php echo vtranslate('LBL_SHOWN',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
" height="12" width="12">&nbsp;&nbsp;<?php echo vtranslate('LBL_SHOWN',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
<?php }else{ ?><img src=<?php echo vimage_path("no.gif");?>
 alt="<?php echo vtranslate('LBL_HIDDEN',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
" title="<?php echo vtranslate('LBL_HIDDEN',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
" height="12" width="12">&nbsp;&nbsp;<?php echo vtranslate('LBL_HIDDEN',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
<?php }?></td><td class="<?php echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;?>
"></td><td class="<?php echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;?>
"></td></tr></tbody></table><br><?php }} ?>
<?php if ($_valid && !is_callable('content_53720a89211f5')) {function content_53720a89211f5($_smarty_tpl) {?>
<input type="hidden" id="module" value="Install" />
<input type="hidden" id="view" value="Index" />
<div class="container-fluid page-container">
	<div class="row-fluid">
		<div class="span6">
			<div class="logo">
				<img src="<?php echo vimage_path('vt1.png');?>
"/>
			</div>
		</div>
		<div class="span6">
			<div class="head pull-right">
				<h3><?php echo vtranslate('LBL_INSTALLATION_WIZARD','Install');?>
</h3>
			</div>
		</div>
	</div>
<?php }} ?>
    function content_54d243c3c29e3($_smarty_tpl)
    {
        echo $_smarty_tpl->getSubTemplate(vtemplate_path("Header.tpl", $_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>
<div class="container-fluid page-container"><div class="row-fluid"><div class="span6"><div class="logo"><img src="<?php 
        echo vimage_path('vt1.png');
        ?>
" alt="Vtiger Logo"/></div></div><div class="span6"><div class="head pull-right"><h3> <?php 
        echo vtranslate('LBL_MIGRATION_WIZARD', $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
</h3></div></div></div><div class="row-fluid main-container"><div class="span12 inner-container"><div class="row-fluid"><div class="span10"><h4> <?php 
        echo vtranslate('LBL_MIGRATION_COMPLETED', $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
 </h4></div></div><hr><div class="row-fluid"><div class="span4 welcome-image"><img src="<?php 
        echo vimage_path('migration_screen.png');
        ?>
" alt="Vtiger Logo"/></div><div class="span1"></div><div class="span6"><br><br><h5><?php 
        echo vtranslate('LBL_MIGRATION_COMPLETED_SUCCESSFULLY', $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
  </h5><br><br><?php 
        echo vtranslate('LBL_RELEASE_NOTES', $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
<br><?php 
        echo vtranslate('LBL_CRM_DOCUMENTATION', $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
<br><?php 
        echo vtranslate('LBL_TALK_TO_US_AT_FORUMS', $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
<br><?php 
        echo vtranslate('LBL_DISCUSS_WITH_US_AT_BLOGS', $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
<br><br>Connect with us &nbsp;&nbsp;<a href="https://www.facebook.com/vtiger" target="_blank"><img src="<?php 
        echo vimage_path('facebook.png');
        ?>
"></a>&nbsp;&nbsp;<a href="https://twitter.com/vtigercrm" target="_blank"><img src="<?php 
        echo vimage_path('twitter.png');
        ?>
"></a>&nbsp;&nbsp;<a href="//www.vtiger.com/products/crm/privacy_policy.html" target="_blank"><img src="<?php 
        echo vimage_path('linkedin.png');
        ?>
"></a><br><br><div class="button-container"><input type="button" onclick="window.location.href='index.php'" class="btn btn-large btn-primary" value="Finish"/></div></div></div></div></div></div></div><?php 
    }
<?php if ($_valid && !is_callable('content_55cc508762e42')) {function content_55cc508762e42($_smarty_tpl) {?>
<!DOCTYPE html><html><head><title>Vtiger login page</title><meta name="viewport" content="width=device-width, initial-scale=1.0"><!-- for Login page we are added --><link href="libraries/bootstrap/css/bootstrap.min.css" rel="stylesheet"><link href="libraries/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet"><link href="libraries/bootstrap/css/jqueryBxslider.css" rel="stylesheet" /><script src="libraries/jquery/jquery.min.js"></script><script src="libraries/jquery/boxslider/jqueryBxslider.js"></script><script src="libraries/jquery/boxslider/respond.min.js"></script><script>jQuery(document).ready(function(){scrollx = jQuery(window).outerWidth();window.scrollTo(scrollx,0);slider = jQuery('.bxslider').bxSlider({auto: true,pause: 4000,randomStart : true,autoHover: true});jQuery('.bx-prev, .bx-next, .bx-pager-item').live('click',function(){ slider.startAuto(); });});</script></head><body><div class="container-fluid login-container"><div class="row-fluid"><div class="span3"><div class="logo"><img src="layouts/vlayout/skins/images/logo.png"><br /><a target="_blank" href="http://<?php echo $_smarty_tpl->tpl_vars['COMPANY_DETAILSCOMPANY_DETAILS']->value['website'];?>
"><?php echo $_smarty_tpl->tpl_vars['COMPANY_DETAILS']->value['name'];?>
</a></div></div><div class="span9"><div class="helpLinks"><a href="https://www.vtiger.com">Vtiger Website</a> |<a href="https://wiki.vtiger.com/vtiger6/">Vtiger Wiki</a> |<a href="https://www.vtiger.com/crm/videos/">Vtiger videos </a> |<a href="https://discussions.vtiger.com/">Vtiger Forums</a></div></div></div><div class="row-fluid"><div class="span12"><div class="content-wrapper"><div class="container-fluid"><div class="row-fluid"><div class="span6"><div class="carousal-container"><div><h2> Get more out of Vtiger </h2></div><ul class="bxslider"><li><div id="slide01" class="slide"><img class="pull-left" src="<?php echo vimage_path('android_text.png');?>
"><img class="pull-right" src="<?php echo vimage_path('android.png');?>
"/></div></li><li><div id="slide02" class="slide"><img class="pull-left" src="<?php echo vimage_path('iphone_text.png');?>
"/><img class="pull-right" src="<?php echo vimage_path('iphone.png');?>
"/></div></li><li><div id="slide03" class="slide"><img class="pull-left" src="<?php echo vimage_path('ipad_text.png');?>
"/><img class="pull-right" src="<?php echo vimage_path('ipad.png');?>
"/></div></li><li><div id="slide04" class="slide"><img class="pull-left" src="<?php echo vimage_path('exchange_conn_text.png');?>
"/><img class="pull-right" src="<?php echo vimage_path('exchange_conn.png');?>
"/></div></li><li><div id="slide05" class="slide"><img class="pull-left" src="<?php echo vimage_path('outlook_text.png');?>
"/><img class="pull-right" src="<?php echo vimage_path('outlook.png');?>
"/></div></li></ul></div></div><div class="span6"><div class="login-area"><div class="login-box" id="loginDiv"><div class=""><h3 class="login-header">Login to Vtiger CRM</h3></div><form class="form-horizontal login-form" style="margin:0;" action="index.php?module=Users&action=Login" method="POST"><?php if (isset($_REQUEST['error'])){?><div class="alert alert-error"><p>Invalid username or password.</p></div><?php }?><?php if (isset($_REQUEST['fpError'])){?><div class="alert alert-error"><p>Invalid Username or Email address.</p></div><?php }?><?php if (isset($_REQUEST['status'])){?><div class="alert alert-success"><p>Mail has been sent to your inbox, please check your e-mail.</p></div><?php }?><?php if (isset($_REQUEST['statusError'])){?><div class="alert alert-error"><p>Outgoing mail server was not configured.</p></div><?php }?><div class="control-group"><label class="control-label" for="username"><b>User name</b></label><div class="controls"><input type="text" id="username" name="username" placeholder="Username"></div></div><div class="control-group"><label class="control-label" for="password"><b>Password</b></label><div class="controls"><input type="password" id="password" name="password" placeholder="Password"></div></div><div class="control-group signin-button"><div class="controls" id="forgotPassword"><button type="submit" class="btn btn-primary sbutton">Sign in</button>&nbsp;&nbsp;&nbsp;<a>Forgot Password ?</a></div></div><img src='//stats.vtiger.com/stats.php?uid=<?php echo $_smarty_tpl->tpl_vars['APPUNIQUEKEY']->value;?>
&v=<?php echo $_smarty_tpl->tpl_vars['CURRENT_VERSION']->value;?>
&type=U' alt='' title='' border=0 width='1px' height='1px'></form><div class="login-subscript"><small> Powered by vtiger CRM <?php echo $_smarty_tpl->tpl_vars['CURRENT_VERSION']->value;?>
</small></div></div><div class="login-box hide" id="forgotPasswordDiv"><form class="form-horizontal login-form" style="margin:0;" action="forgotPassword.php" method="POST"><div class=""><h3 class="login-header">Forgot Password</h3></div><div class="control-group"><label class="control-label" for="user_name"><b>User name</b></label><div class="controls"><input type="text" id="user_name" name="user_name" placeholder="Username"></div></div><div class="control-group"><label class="control-label" for="email"><b>Email</b></label><div class="controls"><input type="text" id="emailId" name="emailId"  placeholder="Email"></div></div><div class="control-group signin-button"><div class="controls" id="backButton"><input type="submit" class="btn btn-primary sbutton" value="Submit" name="retrievePassword">&nbsp;&nbsp;&nbsp;<a>Back</a></div></div></form></div></div></div></div></div></div></div></div></div><div class="navbar navbar-fixed-bottom"><div class="navbar-inner"><div class="container-fluid"><div class="row-fluid"><div class="span6 pull-left" ><div class="footer-content"><small>&#169 2004-<?php echo date('Y');?>
&nbsp;<a href="https://www.vtiger.com"> vtiger.com</a> |<a href="https://www.vtiger.com/LICENSE.txt">Read License</a> |<a href="https://www.vtiger.com/products/crm/privacy_policy.html">Privacy Policy</a> </small></div></div><div class="span6 pull-right" ><div class="pull-right footer-icons"><small><?php echo vtranslate('LBL_CONNECT_WITH_US',$_smarty_tpl->tpl_vars['MODULE']->value);?>
&nbsp;</small><a href="https://www.facebook.com/vtiger"><img src="layouts/vlayout/skins/images/facebook.png"></a>&nbsp;<a href="https://twitter.com/vtigercrm"><img src="layouts/vlayout/skins/images/twitter.png"></a>&nbsp;<a href="https://www.linkedin.com/company/vtiger-systems-india-pvt-ltd"><img src="layouts/vlayout/skins/images/linkedin.png"></a>&nbsp;<a href="http://www.youtube.com/user/vtigercrm"><img src="layouts/vlayout/skins/images/youtube.png"></a></div></div></div></div></div></div></body><script>jQuery(document).ready(function(){jQuery("#forgotPassword a").click(function() {jQuery("#loginDiv").hide();jQuery("#forgotPasswordDiv").show();});jQuery("#backButton a").click(function() {jQuery("#loginDiv").show();jQuery("#forgotPasswordDiv").hide();});jQuery("input[name='retrievePassword']").click(function (){var username = jQuery('#user_name').val();var email = jQuery('#emailId').val();var email1 = email.replace(/^\s+/,'').replace(/\s+$/,'');var emailFilter = /^[^@]+@[^@.]+\.[^@]*\w\w$/ ;var illegalChars= /[\(\)\<\>\,\;\:\\\"\[\]]/ ;if(username == ''){alert('Please enter valid username');return false;} else if(!emailFilter.test(email1) || email == ''){alert('Please enater valid email address');return false;} else if(email.match(illegalChars)){alert( "The email address contains illegal characters.");return false;} else {return true;}});});</script></html>
<?php }} ?>
    function content_567b7c4436bee($_smarty_tpl)
    {
        ?>
<span class="pull-right listViewActions"><?php 
        if (count($_smarty_tpl->tpl_vars['LISTVIEW_LINKS']->value['LISTVIEWSETTING']) > 0) {
            ?>
<span class="btn-group"><button class="btn dropdown-toggle" href="#" data-toggle="dropdown"><img class="alignMiddle" src="<?php 
            echo vimage_path('tools.png');
            ?>
" alt="<?php 
            echo vtranslate('LBL_SETTINGS', $_smarty_tpl->tpl_vars['MODULE']->value);
            ?>
" title="<?php 
            echo vtranslate('LBL_SETTINGS', $_smarty_tpl->tpl_vars['MODULE']->value);
            ?>
">&nbsp;&nbsp;<i class="caret"></i></button><ul class="listViewSetting dropdown-menu"><?php 
            $_smarty_tpl->tpl_vars['LISTVIEW_SETTING'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['LISTVIEW_SETTING']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['LISTVIEW_LINKS']->value['LISTVIEWSETTING'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['LISTVIEW_SETTING']->key => $_smarty_tpl->tpl_vars['LISTVIEW_SETTING']->value) {
                $_smarty_tpl->tpl_vars['LISTVIEW_SETTING']->_loop = true;
                ?>
<li><a href=<?php 
                echo $_smarty_tpl->tpl_vars['LISTVIEW_SETTING']->value->getUrl();
                ?>
><?php 
                echo vtranslate($_smarty_tpl->tpl_vars['LISTVIEW_SETTING']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE']->value);
                ?>
</a></li><?php 
            }
            ?>
</ul></span><?php 
        }
        ?>
</span><div class="clearfix"></div><input type="hidden" id="recordsCount" value=""/><input type="hidden" id="selectedIds" name="selectedIds" /><input type="hidden" id="excludedIds" name="excludedIds" /><?php 
    }
<?php if ($_valid && !is_callable('content_55cc50a25a032')) {function content_55cc50a25a032($_smarty_tpl) {?>

<?php $_smarty_tpl->tpl_vars["announcement"] = new Smarty_variable($_smarty_tpl->tpl_vars['ANNOUNCEMENT']->value->get('announcement'), null, 0);?><?php $_smarty_tpl->tpl_vars['count'] = new Smarty_variable(0, null, 0);?><?php $_smarty_tpl->tpl_vars["dateFormat"] = new Smarty_variable($_smarty_tpl->tpl_vars['USER_MODEL']->value->get('date_format'), null, 0);?><div class="navbar commonActionsContainer noprint"><div class="actionsContainer row-fluid"><div class="span2"><span class="companyLogo"><img src="<?php echo $_smarty_tpl->tpl_vars['COMPANY_LOGO']->value->get('imagepath');?>
" title="<?php echo $_smarty_tpl->tpl_vars['COMPANY_LOGO']->value->get('title');?>
" alt="<?php echo $_smarty_tpl->tpl_vars['COMPANY_LOGO']->value->get('alt');?>
"/>&nbsp;</span></div><div class="span10"><div class="row-fluid"><div class="searchElement span8"><div class="select-search"><select class="chzn-select" id="basicSearchModulesList" style="width:150px;"><option value="" class="globalSearch_module_All"><?php echo vtranslate('LBL_ALL_RECORDS',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</option><?php  $_smarty_tpl->tpl_vars['fieldObject'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['fieldObject']->_loop = false;
 $_smarty_tpl->tpl_vars['MODULE_NAME'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['SEARCHABLE_MODULES']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['fieldObject']->key => $_smarty_tpl->tpl_vars['fieldObject']->value){
$_smarty_tpl->tpl_vars['fieldObject']->_loop = true;
 $_smarty_tpl->tpl_vars['MODULE_NAME']->value = $_smarty_tpl->tpl_vars['fieldObject']->key;
?><?php if (isset($_smarty_tpl->tpl_vars['SEARCHED_MODULE']->value)&&$_smarty_tpl->tpl_vars['SEARCHED_MODULE']->value==$_smarty_tpl->tpl_vars['MODULE_NAME']->value&&$_smarty_tpl->tpl_vars['SEARCHED_MODULE']->value!=='All'){?><option value="<?php echo $_smarty_tpl->tpl_vars['MODULE_NAME']->value;?>
" class="globalSearch_module_<?php echo $_smarty_tpl->tpl_vars['MODULE_NAME']->value;?>
" selected><?php echo vtranslate($_smarty_tpl->tpl_vars['MODULE_NAME']->value,$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</option><?php }else{ ?><option value="<?php echo $_smarty_tpl->tpl_vars['MODULE_NAME']->value;?>
" class="globalSearch_module_<?php echo $_smarty_tpl->tpl_vars['MODULE_NAME']->value;?>
"><?php echo vtranslate($_smarty_tpl->tpl_vars['MODULE_NAME']->value,$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</option><?php }?><?php } ?></select></div><div class="input-append searchBar"><input type="text" class="" id="globalSearchValue" placeholder="<?php echo vtranslate('LBL_GLOBAL_SEARCH');?>
" results="10" /><span id="searchIcon" class="add-on search-icon"><i class="icon-white icon-search "></i></span><span class="adv-search  pull-left"><a class="alignMiddle" id="globalSearch"><?php echo vtranslate('LBL_ADVANCE_SEARCH');?>
</a></span></div></div><div class="notificationMessageHolder span2"></div><div class="nav quickActions btn-toolbar span2 pull-right marginLeftZero"><div class="pull-right commonActionsButtonContainer"><?php if (!empty($_smarty_tpl->tpl_vars['announcement']->value)){?><div class="btn-group cursorPointer"><img class='alignMiddle' src="<?php echo vimage_path('btnAnnounceOff.png');?>
" alt="<?php echo vtranslate('LBL_ANNOUNCEMENT',$_smarty_tpl->tpl_vars['MODULE']->value);?>
" title="<?php echo vtranslate('LBL_ANNOUNCEMENT',$_smarty_tpl->tpl_vars['MODULE']->value);?>
" id="announcementBtn" /></div>&nbsp;<?php }?><div class="btn-group cursorPointer" id="guiderHandler"><?php if (!$_smarty_tpl->tpl_vars['MAIN_PRODUCT_WHITELABEL']->value){?><?php }?></div>&nbsp;<div class="btn-group cursorPointer"><img id="menubar_quickCreate" src="<?php echo vimage_path('btnAdd.png');?>
" class="alignMiddle" alt="<?php echo vtranslate('LBL_QUICK_CREATE',$_smarty_tpl->tpl_vars['MODULE']->value);?>
" title="<?php echo vtranslate('LBL_QUICK_CREATE',$_smarty_tpl->tpl_vars['MODULE']->value);?>
" data-toggle="dropdown" /><ul class="dropdown-menu dropdownStyles commonActionsButtonDropDown"><li class="title"><strong><?php echo vtranslate('Quick Create',$_smarty_tpl->tpl_vars['MODULE']->value);?>
</strong></li><hr/><li id="quickCreateModules"><div class="row-fluid"><div class="span12"><?php  $_smarty_tpl->tpl_vars['moduleModel'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['moduleModel']->_loop = false;
 $_smarty_tpl->tpl_vars['moduleName'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['MENUS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['moduleModel']->key => $_smarty_tpl->tpl_vars['moduleModel']->value){
$_smarty_tpl->tpl_vars['moduleModel']->_loop = true;
 $_smarty_tpl->tpl_vars['moduleName']->value = $_smarty_tpl->tpl_vars['moduleModel']->key;
?><?php if ($_smarty_tpl->tpl_vars['moduleModel']->value->isPermitted('EditView')){?><?php $_smarty_tpl->tpl_vars['quickCreateModule'] = new Smarty_variable($_smarty_tpl->tpl_vars['moduleModel']->value->isQuickCreateSupported(), null, 0);?><?php $_smarty_tpl->tpl_vars['singularLabel'] = new Smarty_variable($_smarty_tpl->tpl_vars['moduleModel']->value->getSingularLabelKey(), null, 0);?><?php if ($_smarty_tpl->tpl_vars['singularLabel']->value=='SINGLE_Calendar'){?><?php $_smarty_tpl->tpl_vars['singularLabel'] = new Smarty_variable('LBL_EVENT_OR_TASK', null, 0);?><?php }?><?php if ($_smarty_tpl->tpl_vars['quickCreateModule']->value=='1'){?><?php if ($_smarty_tpl->tpl_vars['count']->value%3==0){?><div class="row-fluid"><?php }?><div class="span4"><a id="menubar_quickCreate_<?php echo $_smarty_tpl->tpl_vars['moduleModel']->value->getName();?>
" class="quickCreateModule" data-name="<?php echo $_smarty_tpl->tpl_vars['moduleModel']->value->getName();?>
"data-url="<?php echo $_smarty_tpl->tpl_vars['moduleModel']->value->getQuickCreateUrl();?>
" href="javascript:void(0)"><?php echo vtranslate($_smarty_tpl->tpl_vars['singularLabel']->value,$_smarty_tpl->tpl_vars['moduleName']->value);?>
</a></div><?php if ($_smarty_tpl->tpl_vars['count']->value%3==2){?></div><?php }?><?php $_smarty_tpl->tpl_vars['count'] = new Smarty_variable($_smarty_tpl->tpl_vars['count']->value+1, null, 0);?><?php }?><?php }?><?php } ?></div></div></li></ul></div>&nbsp;</div></div></div></div></div></div>
<?php }} ?>
<?php if ($_valid && !is_callable('content_56059b37aa321')) {function content_56059b37aa321($_smarty_tpl) {?>
<div class="sidebarTitleBlock"><h3 class="titlePadding themeTextColor unSelectedQuickLink cursorPointer"><a href="index.php?module=Vtiger&parent=Settings&view=Index"><?php echo vtranslate('LBL_SETTINGS',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</a></h3></div><!--div><input class='input-medium' type='text' name='settingsSearch' placeholder=<?php echo vtranslate("LBL_SEARCH_SETTINGS_PLACEHOLDER",$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
 ></div--><div class="quickWidgetContainer accordion" id="settingsQuickWidgetContainer"><?php  $_smarty_tpl->tpl_vars['MENU'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['MENU']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['SETTINGS_MENUS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['MENU']->key => $_smarty_tpl->tpl_vars['MENU']->value){
$_smarty_tpl->tpl_vars['MENU']->_loop = true;
?><div class="quickWidget"><div class="accordion-heading accordion-toggle quickWidgetHeader" data-parent="#settingsQuickWidgetContainer" data-target="#Settings_sideBar_<?php echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['MENU']->value->getLabel());?>
"data-toggle="collapse" data-parent="#quickWidgets"><span class="pull-left"><img class="imageElement" data-rightimage="<?php echo vimage_path('rightArrowWhite.png');?>
" data-downimage="<?php echo vimage_path('downArrowWhite.png');?>
" src="<?php if ($_smarty_tpl->tpl_vars['SELECTED_MENU']->value->get('blockid')==$_smarty_tpl->tpl_vars['MENU']->value->get('blockid')&&!empty($_smarty_tpl->tpl_vars['SELECTED_FIELDID']->value)){?><?php echo vimage_path('downArrowWhite.png');?>
<?php }else{ ?><?php echo vimage_path('rightArrowWhite.png');?>
<?php }?>" /></span><h5 class="title paddingLeft10px widgetTextOverflowEllipsis" title="<?php echo vtranslate($_smarty_tpl->tpl_vars['MENU']->value->getLabel(),$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
"><?php echo vtranslate($_smarty_tpl->tpl_vars['MENU']->value->getLabel(),$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</h5><div class="clearfix"></div></div><div  style="border-bottom: 1px solid black;" class="widgetContainer accordion-body <?php if ($_smarty_tpl->tpl_vars['SELECTED_MENU']->value->get('blockid')==$_smarty_tpl->tpl_vars['MENU']->value->get('blockid')&&!empty($_smarty_tpl->tpl_vars['SELECTED_FIELDID']->value)){?> in <?php }?> collapse" id="Settings_sideBar_<?php echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['MENU']->value->getLabel());?>
"><?php  $_smarty_tpl->tpl_vars['MENUITEM'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['MENUITEM']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['MENU']->value->getMenuItems(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['MENUITEM']->key => $_smarty_tpl->tpl_vars['MENUITEM']->value){
$_smarty_tpl->tpl_vars['MENUITEM']->_loop = true;
?><div class="<?php if ($_smarty_tpl->tpl_vars['MENUITEM']->value->getId()==$_smarty_tpl->tpl_vars['SELECTED_FIELDID']->value){?> selectedMenuItem selectedListItem<?php }?>" style="padding:7px;border-top:0px;"><div class="row-fluid menuItem"  data-actionurl="<?php echo $_smarty_tpl->tpl_vars['MENUITEM']->value->getPinUnpinActionUrl();?>
"><a href="<?php echo $_smarty_tpl->tpl_vars['MENUITEM']->value->getUrl();?>
" data-id="<?php echo $_smarty_tpl->tpl_vars['MENUITEM']->value->getId();?>
" class="span9 menuItemLabel" data-menu-item="true" ><?php echo vtranslate($_smarty_tpl->tpl_vars['MENUITEM']->value->get('name'),$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</a><span class="span1">&nbsp;</span><img style="margin-right: 6%" id="<?php echo $_smarty_tpl->tpl_vars['MENUITEM']->value->getId();?>
_menuItem" data-pintitle="<?php echo vtranslate('LBL_PIN',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
" data-unpintitle="<?php echo vtranslate('LBL_UNPIN',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
" data-id="<?php echo $_smarty_tpl->tpl_vars['MENUITEM']->value->getId();?>
" class="pinUnpinShortCut cursorPointer hide pull-right" data-unpinimageurl="<?php ob_start();?><?php echo vimage_path('unpin.png');?>
<?php $_tmp1=ob_get_clean();?><?php echo $_tmp1;?>
"  data-pinimageurl="<?php ob_start();?><?php echo vimage_path('pin.png');?>
<?php $_tmp2=ob_get_clean();?><?php echo $_tmp2;?>
" <?php if ($_smarty_tpl->tpl_vars['MENUITEM']->value->isPinned()){?> title="<?php echo vtranslate('LBL_UNPIN',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
" src="<?php echo vimage_path('unpin.png');?>
" data-action="unpin" <?php }else{ ?> title="<?php echo vtranslate('LBL_PIN',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
" src="<?php echo vimage_path('pin.png');?>
" data-action="pin" <?php }?> /><div class="clearfix"></div></div></div><?php } ?></div></div><?php } ?></div><div class="row-fluid"><button type="button" class="row-fluid extensionStorebtn" onclick='window.location.href="index.php?module=ExtensionStore&parent=Settings&view=ExtensionStore"'><?php echo vtranslate('LBL_EXTENSION_STORE',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</button></div>
<?php }} ?>
<?php if ($_valid && !is_callable('content_56059e5e8d482')) {function content_56059e5e8d482($_smarty_tpl) {?>
<?php $_smarty_tpl->tpl_vars["COMMENT_TEXTAREA_DEFAULT_ROWS"] = new Smarty_variable("2", null, 0);?><div class="commentContainer recentComments"><div class="commentTitle row-fluid"><?php if ($_smarty_tpl->tpl_vars['COMMENTS_MODULE_MODEL']->value->isPermitted('EditView')){?><div class="addCommentBlock"><div><textarea name="commentcontent" class="commentcontent"  placeholder="<?php echo vtranslate('LBL_ADD_YOUR_COMMENT_HERE',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
" rows="<?php echo $_smarty_tpl->tpl_vars['COMMENT_TEXTAREA_DEFAULT_ROWS']->value;?>
"></textarea></div><div class="pull-right"><button class="btn btn-success detailViewSaveComment" type="button" data-mode="add"><strong><?php echo vtranslate('LBL_POST',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</strong></button></div></div><?php }?></div><hr><br><div class="commentsBody"><?php if (!empty($_smarty_tpl->tpl_vars['COMMENTS']->value)){?><?php  $_smarty_tpl->tpl_vars['COMMENT'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['COMMENT']->_loop = false;
 $_smarty_tpl->tpl_vars['index'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['COMMENTS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['COMMENT']->key => $_smarty_tpl->tpl_vars['COMMENT']->value){
$_smarty_tpl->tpl_vars['COMMENT']->_loop = true;
 $_smarty_tpl->tpl_vars['index']->value = $_smarty_tpl->tpl_vars['COMMENT']->key;
?><div class="commentDetails"><div class="commentDiv"><div class="singleComment"><div class="commentInfoHeader row-fluid" data-commentid="<?php echo $_smarty_tpl->tpl_vars['COMMENT']->value->getId();?>
" data-parentcommentid="<?php echo $_smarty_tpl->tpl_vars['COMMENT']->value->get('parent_comments');?>
"><div class="commentTitle"><?php $_smarty_tpl->tpl_vars['PARENT_COMMENT_MODEL'] = new Smarty_variable($_smarty_tpl->tpl_vars['COMMENT']->value->getParentCommentModel(), null, 0);?><?php $_smarty_tpl->tpl_vars['CHILD_COMMENTS_MODEL'] = new Smarty_variable($_smarty_tpl->tpl_vars['COMMENT']->value->getChildComments(), null, 0);?><div class="row-fluid"><div class="span1"><?php $_smarty_tpl->tpl_vars['IMAGE_PATH'] = new Smarty_variable($_smarty_tpl->tpl_vars['COMMENT']->value->getImagePath(), null, 0);?><img class="alignMiddle pull-left" src="<?php if (!empty($_smarty_tpl->tpl_vars['IMAGE_PATH']->value)){?><?php echo $_smarty_tpl->tpl_vars['IMAGE_PATH']->value;?>
<?php }else{ ?><?php echo vimage_path('DefaultUserIcon.png');?>
<?php }?>"></div><div class="span11 commentorInfo"><?php $_smarty_tpl->tpl_vars['COMMENTOR'] = new Smarty_variable($_smarty_tpl->tpl_vars['COMMENT']->value->getCommentedByModel(), null, 0);?><div class="inner"><span class="commentorName"><strong><?php echo $_smarty_tpl->tpl_vars['COMMENTOR']->value->getName();?>
</strong></span><span class="pull-right"><p class="muted"><small title="<?php echo Vtiger_Util_Helper::formatDateTimeIntoDayString($_smarty_tpl->tpl_vars['COMMENT']->value->getCommentedTime());?>
"><?php echo Vtiger_Util_Helper::formatDateDiffInStrings($_smarty_tpl->tpl_vars['COMMENT']->value->getCommentedTime());?>
</small></p></span><div class="clearfix"></div></div><div class="commentInfoContent"><?php echo nl2br($_smarty_tpl->tpl_vars['COMMENT']->value->get('commentcontent'));?>
</div></div></div></div></div><div class="row-fluid commentActionsContainer"><?php $_smarty_tpl->tpl_vars["REASON_TO_EDIT"] = new Smarty_variable($_smarty_tpl->tpl_vars['COMMENT']->value->get('reasontoedit'), null, 0);?><div class="row-fluid editStatus"  name="editStatus"><span class="span6<?php if (empty($_smarty_tpl->tpl_vars['REASON_TO_EDIT']->value)){?> hide<?php }?>"><p class="muted"><small>[ <?php echo vtranslate('LBL_EDIT_REASON',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
 ] :<span  name="editReason" class="textOverflowEllipsis"><?php echo nl2br($_smarty_tpl->tpl_vars['REASON_TO_EDIT']->value);?>
</span></small></p></span><?php if ($_smarty_tpl->tpl_vars['COMMENT']->value->getCommentedTime()!=$_smarty_tpl->tpl_vars['COMMENT']->value->getModifiedTime()){?><span class="<?php if (empty($_smarty_tpl->tpl_vars['REASON_TO_EDIT']->value)){?>row-fluid<?php }else{ ?> span6<?php }?>"><p class="muted pull-right"><small><em><?php echo vtranslate('LBL_MODIFIED',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</em></small>&nbsp;<small title="<?php echo Vtiger_Util_Helper::formatDateTimeIntoDayString($_smarty_tpl->tpl_vars['COMMENT']->value->getModifiedTime());?>
" class="commentModifiedTime"><?php echo Vtiger_Util_Helper::formatDateDiffInStrings($_smarty_tpl->tpl_vars['COMMENT']->value->getModifiedTime());?>
</small></p></span><?php }?></div><div class="row-fluid"><div class="pull-right commentActions"><?php if ($_smarty_tpl->tpl_vars['COMMENTS_MODULE_MODEL']->value->isPermitted('EditView')){?><span><a class="cursorPointer replyComment feedback"><i class="icon-share-alt"></i><?php echo vtranslate('LBL_REPLY',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</a><?php if ($_smarty_tpl->tpl_vars['CURRENTUSER']->value->getId()==$_smarty_tpl->tpl_vars['COMMENT']->value->get('userid')){?>&nbsp;<span>|</span>&nbsp;<a class="cursorPointer editComment feedback"><?php echo vtranslate('LBL_EDIT',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</a><?php }?></span><?php }?><span><?php if ($_smarty_tpl->tpl_vars['PARENT_COMMENT_MODEL']->value!=false||$_smarty_tpl->tpl_vars['CHILD_COMMENTS_MODEL']->value!=null){?><?php if ($_smarty_tpl->tpl_vars['COMMENTS_MODULE_MODEL']->value->isPermitted('EditView')){?>&nbsp;<span>|</span>&nbsp;<?php }?><a href="javascript:void(0);" class="cursorPointer detailViewThread"><?php echo vtranslate('LBL_VIEW_THREAD',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</a><?php }?></span></div></div></div></div></div></div><?php } ?><?php }else{ ?><?php echo $_smarty_tpl->getSubTemplate (vtemplate_path("NoComments.tpl"), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
<?php }?></div><?php if ($_smarty_tpl->tpl_vars['PAGING_MODEL']->value->isNextPageExists()){?><div class="row-fluid"><div class="pull-right"><a href="javascript:void(0)" class="moreRecentComments"><?php echo vtranslate('LBL_MORE',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
..</a></div></div><?php }?><div class="hide basicAddCommentBlock"><div class="row-fluid"><span class="span1">&nbsp;</span><div class="span11"><textarea class="commentcontenthidden fullWidthAlways" name="commentcontent" rows="<?php echo $_smarty_tpl->tpl_vars['COMMENT_TEXTAREA_DEFAULT_ROWS']->value;?>
" placeholder="<?php echo vtranslate('LBL_ADD_YOUR_COMMENT_HERE',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
"></textarea></div></div><div class="pull-right"><button class="btn btn-success detailViewSaveComment" type="button" data-mode="add"><strong><?php echo vtranslate('LBL_POST',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</strong></button><a class="cursorPointer closeCommentBlock cancelLink" type="reset"><?php echo vtranslate('LBL_CANCEL',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</a></div></div><div class="hide basicEditCommentBlock" style="min-height: 150px;"><div class="row-fluid"><span class="span1">&nbsp;</span><div class="span11"><input type="text" name="reasonToEdit" placeholder="<?php echo vtranslate('LBL_REASON_FOR_CHANGING_COMMENT',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
" class="input-block-level"/></div></div><div class="row-fluid"><span class="span1">&nbsp;</span><div class="span11"><textarea class="commentcontenthidden fullWidthAlways" name="commentcontent" rows="<?php echo $_smarty_tpl->tpl_vars['COMMENT_TEXTAREA_DEFAULT_ROWS']->value;?>
"></textarea></div></div><div class="pull-right"><button class="btn btn-success detailViewSaveComment" type="button" data-mode="edit"><strong><?php echo vtranslate('LBL_POST',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</strong></button><a class="cursorPointer closeCommentBlock cancelLink" type="reset"><?php echo vtranslate('LBL_CANCEL',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</a></div></div></div><?php }} ?>
    function content_54d2436e7e4fa($_smarty_tpl)
    {
        echo $_smarty_tpl->getSubTemplate(vtemplate_path("Header.tpl", $_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>
<div class="container-fluid page-container"><div class="row-fluid"><div class="span6"><div class="logo"><img src="<?php 
        echo vimage_path('vt1.png');
        ?>
" alt="Vtiger Logo"/></div></div><div class="span6"><div class="head pull-right"><h3><?php 
        echo vtranslate('LBL_MIGRATION_WIZARD', $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
</h3></div></div></div><div class="row-fluid main-container"><div class="span12 inner-container"><div class="row-fluid"><div id="running" class="alignCenter"><br><br><br><br><br><h4> <?php 
        echo vtranslate('LBL_WAIT', $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
 </h4><br><img src="<?php 
        echo vimage_path('migration_loading.gif');
        ?>
"/><h5> <?php 
        echo vtranslate('LBL_INPROGRESS', $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
 </h5></div><div id="success" class="hide"><h4> <?php 
        echo vtranslate('LBL_DATABASE_CHANGE_LOG', $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
 </h4><hr></div></div><div id="showDetails" style="max-height:350px; overflow: auto;"></div><br><div id="nextButton" class="button-container hide"><form action='index.php' method="POST"><input type="hidden" id="module" name="module" value="Migration"><input type="hidden" id="view" name="view" value="Index"><input type="hidden" name="mode" value="step2"><input type="submit" class="btn btn-large btn-primary" value="Next"/></form></div></div></div></div><?php 
    }
    function content_564b7f09aab4b($_smarty_tpl)
    {
        ?>
<div class="container-fluid" id="layoutEditorContainer"><input id="selectedModuleName" type="hidden" value="<?php 
        echo $_smarty_tpl->tpl_vars['SELECTED_MODULE_NAME']->value;
        ?>
" /><div class="widget_header row-fluid"><div class="span8"><h3><?php 
        echo vtranslate('LBL_FIELDS_AND_LAYOUT_EDITOR', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
        ?>
</h3></div><div class="span4"><div class="pull-right"><select class="select2 span3" name="layoutEditorModules"><?php 
        $_smarty_tpl->tpl_vars['MODULE_NAME'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['MODULE_NAME']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['SUPPORTED_MODULES']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['MODULE_NAME']->key => $_smarty_tpl->tpl_vars['MODULE_NAME']->value) {
            $_smarty_tpl->tpl_vars['MODULE_NAME']->_loop = true;
            ?>
<option value="<?php 
            echo $_smarty_tpl->tpl_vars['MODULE_NAME']->value;
            ?>
" <?php 
            if ($_smarty_tpl->tpl_vars['MODULE_NAME']->value == $_smarty_tpl->tpl_vars['SELECTED_MODULE_NAME']->value) {
                ?>
 selected <?php 
            }
            ?>
><?php 
            echo vtranslate($_smarty_tpl->tpl_vars['MODULE_NAME']->value, $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
            ?>
</option><?php 
        }
        ?>
</select></div></div></div><hr><div class="contents tabbable"><ul class="nav nav-tabs layoutTabs massEditTabs"><li class="active"><a data-toggle="tab" href="#detailViewLayout"><strong><?php 
        echo vtranslate('LBL_DETAILVIEW_LAYOUT', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
        ?>
</strong></a></li><li class="relatedListTab"><a data-toggle="tab" href="#relatedTabOrder"><strong><?php 
        echo vtranslate('LBL_ARRANGE_RELATED_TABS', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
        ?>
</strong></a></li></ul><div class="tab-content layoutContent padding20 themeTableColor overflowVisible"><div class="tab-pane active" id="detailViewLayout"><?php 
        $_smarty_tpl->tpl_vars['FIELD_TYPE_INFO'] = new Smarty_variable($_smarty_tpl->tpl_vars['SELECTED_MODULE_MODEL']->value->getAddFieldTypeInfo(), null, 0);
        $_smarty_tpl->tpl_vars['IS_SORTABLE'] = new Smarty_variable($_smarty_tpl->tpl_vars['SELECTED_MODULE_MODEL']->value->isSortableAllowed(), null, 0);
        $_smarty_tpl->tpl_vars['IS_BLOCK_SORTABLE'] = new Smarty_variable($_smarty_tpl->tpl_vars['SELECTED_MODULE_MODEL']->value->isBlockSortableAllowed(), null, 0);
        $_smarty_tpl->tpl_vars['ALL_BLOCK_LABELS'] = new Smarty_variable(array(), null, 0);
        if ($_smarty_tpl->tpl_vars['IS_SORTABLE']->value) {
            ?>
<div class="btn-toolbar"><button class="btn addButton addCustomBlock" type="button"><i class="icon-plus icon-white"></i>&nbsp;<strong><?php 
            echo vtranslate('LBL_ADD_CUSTOM_BLOCK', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
            ?>
</strong></button><span class="pull-right"><button class="btn btn-success saveFieldSequence hide" type="button"><strong><?php 
            echo vtranslate('LBL_SAVE_FIELD_SEQUENCE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
            ?>
</strong></button></span></div><?php 
        }
        ?>
<div id="moduleBlocks"><?php 
        $_smarty_tpl->tpl_vars['BLOCK_MODEL'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['BLOCK_MODEL']->_loop = false;
        $_smarty_tpl->tpl_vars['BLOCK_LABEL_KEY'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['BLOCKS']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['BLOCK_MODEL']->key => $_smarty_tpl->tpl_vars['BLOCK_MODEL']->value) {
            $_smarty_tpl->tpl_vars['BLOCK_MODEL']->_loop = true;
            $_smarty_tpl->tpl_vars['BLOCK_LABEL_KEY']->value = $_smarty_tpl->tpl_vars['BLOCK_MODEL']->key;
            $_smarty_tpl->tpl_vars['FIELDS_LIST'] = new Smarty_variable($_smarty_tpl->tpl_vars['BLOCK_MODEL']->value->getLayoutBlockActiveFields(), null, 0);
            $_smarty_tpl->tpl_vars['BLOCK_ID'] = new Smarty_variable($_smarty_tpl->tpl_vars['BLOCK_MODEL']->value->get('id'), null, 0);
            $_smarty_tpl->createLocalArrayVariable('ALL_BLOCK_LABELS', null, 0);
            $_smarty_tpl->tpl_vars['ALL_BLOCK_LABELS']->value[$_smarty_tpl->tpl_vars['BLOCK_ID']->value] = $_smarty_tpl->tpl_vars['BLOCK_LABEL_KEY']->value;
            ?>
<div id="block_<?php 
            echo $_smarty_tpl->tpl_vars['BLOCK_ID']->value;
            ?>
" class="editFieldsTable block_<?php 
            echo $_smarty_tpl->tpl_vars['BLOCK_ID']->value;
            ?>
 marginBottom10px border1px <?php 
            if ($_smarty_tpl->tpl_vars['IS_BLOCK_SORTABLE']->value) {
                ?>
 blockSortable<?php 
            }
            ?>
" data-block-id="<?php 
            echo $_smarty_tpl->tpl_vars['BLOCK_ID']->value;
            ?>
" data-sequence="<?php 
            echo $_smarty_tpl->tpl_vars['BLOCK_MODEL']->value->get('sequence');
            ?>
" style="border-radius: 4px 4px 0px 0px;background: white;"><div class="row-fluid layoutBlockHeader"><div class="blockLabel span5 padding10 marginLeftZero"><img class="alignMiddle" src="<?php 
            echo vimage_path('drag.png');
            ?>
" />&nbsp;&nbsp;<strong><?php 
            echo vtranslate($_smarty_tpl->tpl_vars['BLOCK_LABEL_KEY']->value, $_smarty_tpl->tpl_vars['SELECTED_MODULE_NAME']->value);
            ?>
</strong></div><div class="span6 marginLeftZero" style="float:right !important;"><div class="pull-right btn-toolbar blockActions" style="margin: 4px;"><?php 
            if ($_smarty_tpl->tpl_vars['BLOCK_MODEL']->value->isAddCustomFieldEnabled()) {
                ?>
<div class="btn-group"><button class="btn addCustomField" type="button"><strong><?php 
                echo vtranslate('LBL_ADD_CUSTOM_FIELD', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
                ?>
</strong></button></div><?php 
            }
            if ($_smarty_tpl->tpl_vars['BLOCK_MODEL']->value->isActionsAllowed()) {
                ?>
<div class="btn-group"><button class="btn dropdown-toggle" data-toggle="dropdown"><strong><?php 
                echo vtranslate('LBL_ACTIONS', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
                ?>
</strong>&nbsp;&nbsp;<i class="caret"></i></button><ul class="dropdown-menu pull-right"><li class="blockVisibility" data-visible="<?php 
                if (!$_smarty_tpl->tpl_vars['BLOCK_MODEL']->value->isHidden()) {
                    ?>
1<?php 
                } else {
                    ?>
0<?php 
                }
                ?>
" data-block-id="<?php 
                echo $_smarty_tpl->tpl_vars['BLOCK_MODEL']->value->get('id');
                ?>
"><a href="javascript:void(0)"><i class="icon-ok <?php 
                if ($_smarty_tpl->tpl_vars['BLOCK_MODEL']->value->isHidden()) {
                    ?>
 hide <?php 
                }
                ?>
"></i>&nbsp;<?php 
                echo vtranslate('LBL_ALWAYS_SHOW', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
                ?>
</a></li><li class="inActiveFields"><a href="javascript:void(0)"><?php 
                echo vtranslate('LBL_INACTIVE_FIELDS', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
                ?>
</a></li><?php 
                if ($_smarty_tpl->tpl_vars['BLOCK_MODEL']->value->isCustomized()) {
                    ?>
<li class="deleteCustomBlock"><a href="javascript:void(0)"><?php 
                    echo vtranslate('LBL_DELETE_CUSTOM_BLOCK', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
                    ?>
</a></li><?php 
                }
                ?>
</ul></div><?php 
            }
            ?>
</div></div></div><div class="blockFieldsList <?php 
            if ($_smarty_tpl->tpl_vars['SELECTED_MODULE_MODEL']->value->isFieldsSortableAllowed($_smarty_tpl->tpl_vars['BLOCK_LABEL_KEY']->value)) {
                ?>
blockFieldsSortable <?php 
            }
            ?>
 row-fluid" style="padding:5px;min-height: 27px"><ul name="sortable1" class="connectedSortable span6" style="list-style-type: none; float: left;min-height: 1px;padding:2px;"><?php 
            $_smarty_tpl->tpl_vars['FIELD_MODEL'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['FIELD_MODEL']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['FIELDS_LIST']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['fieldlist']['index'] = -1;
            foreach ($_from as $_smarty_tpl->tpl_vars['FIELD_MODEL']->key => $_smarty_tpl->tpl_vars['FIELD_MODEL']->value) {
                $_smarty_tpl->tpl_vars['FIELD_MODEL']->_loop = true;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['fieldlist']['index']++;
                $_smarty_tpl->tpl_vars['FIELD_INFO'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldInfo(), null, 0);
                if ($_smarty_tpl->getVariable('smarty')->value['foreach']['fieldlist']['index'] % 2 == 0) {
                    ?>
<li><div class="opacity editFields marginLeftZero border1px" data-block-id="<?php 
                    echo $_smarty_tpl->tpl_vars['BLOCK_ID']->value;
                    ?>
" data-field-id="<?php 
                    echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('id');
                    ?>
" data-sequence="<?php 
                    echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('sequence');
                    ?>
"><div class="row-fluid padding1per"><?php 
                    $_smarty_tpl->tpl_vars['IS_MANDATORY'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMandatory(), null, 0);
                    ?>
<span class="span1">&nbsp;<?php 
                    if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isEditable()) {
                        ?>
<a><img src="<?php 
                        echo vimage_path('drag.png');
                        ?>
" border="0" title="<?php 
                        echo vtranslate('LBL_DRAG', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
                        ?>
"/></a><?php 
                    }
                    ?>
</span><div class="span11 marginLeftZero" style="word-wrap: break-word;"><span class="fieldLabel"><?php 
                    echo vtranslate($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('label'), $_smarty_tpl->tpl_vars['SELECTED_MODULE_NAME']->value);
                    ?>
&nbsp;<?php 
                    if ($_smarty_tpl->tpl_vars['IS_MANDATORY']->value) {
                        ?>
<span class="redColor">*</span><?php 
                    }
                    ?>
</span><span class="btn-group pull-right actions"><?php 
                    if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isEditable()) {
                        ?>
<a href="javascript:void(0)" class="dropdown-toggle editFieldDetails" data-toggle="dropdown"><i class="icon-pencil alignMiddle" title="<?php 
                        echo vtranslate('LBL_EDIT', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
                        ?>
"></i></a><div class="basicFieldOperations pull-right hide" style="width : 250px;"><form class="form-horizontal fieldDetailsForm"><div class="modal-header contentsBackground"><strong><?php 
                        echo vtranslate($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('label'), $_smarty_tpl->tpl_vars['SELECTED_MODULE_NAME']->value);
                        ?>
</strong></div><div style="padding-bottom: 5px;"><span><input type="hidden" name="mandatory" value="O" /><label class="checkbox" style="padding-left: 25px; padding-top: 5px;"><input type="checkbox" name="mandatory" <?php 
                        if ($_smarty_tpl->tpl_vars['IS_MANDATORY']->value) {
                            ?>
 checked <?php 
                        }
                        if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMandatoryOptionDisabled()) {
                            ?>
 readonly="readonly" <?php 
                        }
                        ?>
 value="M" />&nbsp;<?php 
                        echo vtranslate('LBL_MANDATORY_FIELD', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
                        ?>
</label></span><span><input type="hidden" name="presence" value="1" /><label class="checkbox" style="padding-left: 25px; padding-top: 5px;"><input type="checkbox" name="presence" <?php 
                        if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isViewable()) {
                            ?>
 checked <?php 
                        }
                        if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isActiveOptionDisabled()) {
                            ?>
 readonly="readonly" class="optionDisabled"<?php 
                        }
                        ?>
 <?php 
                        if ($_smarty_tpl->tpl_vars['IS_MANDATORY']->value) {
                            ?>
 readonly="readonly" <?php 
                        }
                        ?>
 value="2" />&nbsp;<?php 
                        echo vtranslate('LBL_ACTIVE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
                        ?>
</label></span><span><input type="hidden" name="quickcreate" value="1" /><label class="checkbox" style="padding-left: 25px; padding-top: 5px;"><input type="checkbox" name="quickcreate" <?php 
                        if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isQuickCreateEnabled()) {
                            ?>
 checked <?php 
                        }
                        if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isQuickCreateOptionDisabled()) {
                            ?>
 readonly="readonly" class="optionDisabled"<?php 
                        }
                        ?>
 <?php 
                        if ($_smarty_tpl->tpl_vars['IS_MANDATORY']->value) {
                            ?>
 readonly="readonly" <?php 
                        }
                        ?>
 value="2" />&nbsp;<?php 
                        echo vtranslate('LBL_QUICK_CREATE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
                        ?>
</label></span><span><input type="hidden" name="summaryfield" value="0"/><label class="checkbox" style="padding-left: 25px; padding-top: 5px;"><input type="checkbox" name="summaryfield" <?php 
                        if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isSummaryField()) {
                            ?>
 checked <?php 
                        }
                        if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isSummaryFieldOptionDisabled()) {
                            ?>
 readonly="readonly" class="optionDisabled"<?php 
                        }
                        ?>
 value="1" />&nbsp;<?php 
                        echo vtranslate('LBL_SUMMARY_FIELD', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
                        ?>
</label></span><span><input type="hidden" name="masseditable" value="2" /><label class="checkbox" style="padding-left: 25px; padding-top: 5px;"><input type="checkbox" name="masseditable" <?php 
                        if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMassEditable()) {
                            ?>
 checked <?php 
                        }
                        if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMassEditOptionDisabled()) {
                            ?>
 readonly="readonly" <?php 
                        }
                        ?>
 value="1" />&nbsp;<?php 
                        echo vtranslate('LBL_MASS_EDIT', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
                        ?>
</label></span><span><input type="hidden" name="defaultvalue" value="" /><label class="checkbox" style="padding-left: 25px; padding-top: 5px;"><input type="checkbox" name="defaultvalue" <?php 
                        if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->hasDefaultValue()) {
                            ?>
 checked <?php 
                        }
                        if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isDefaultValueOptionDisabled()) {
                            ?>
 readonly="readonly" <?php 
                        }
                        ?>
 value="" />&nbsp;<?php 
                        echo vtranslate('LBL_DEFAULT_VALUE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
                        ?>
</label><div class="padding1per defaultValueUi <?php 
                        if (!$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->hasDefaultValue()) {
                            ?>
 zeroOpacity <?php 
                        }
                        ?>
" style="padding : 0px 10px 0px 25px;"><?php 
                        if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isDefaultValueOptionDisabled() != "true") {
                            if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType() == "picklist") {
                                $_smarty_tpl->tpl_vars['PICKLIST_VALUES'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getPicklistValues(), null, 0);
                                ?>
<select class="span2" name="fieldDefaultValue" <?php 
                                if (!$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->hasDefaultValue()) {
                                    ?>
 disabled="" <?php 
                                }
                                ?>
 data-validation-engine="validate[required,funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" data-fieldinfo='<?php 
                                echo Vtiger_Util_Helper::toSafeHTML(ZEND_JSON::encode($_smarty_tpl->tpl_vars['FIELD_INFO']->value));
                                ?>
'><?php 
                                $_smarty_tpl->tpl_vars['PICKLIST_VALUE'] = new Smarty_Variable();
                                $_smarty_tpl->tpl_vars['PICKLIST_VALUE']->_loop = false;
                                $_smarty_tpl->tpl_vars['PICKLIST_NAME'] = new Smarty_Variable();
                                $_from = $_smarty_tpl->tpl_vars['PICKLIST_VALUES']->value;
                                if (!is_array($_from) && !is_object($_from)) {
                                    settype($_from, 'array');
                                }
                                foreach ($_from as $_smarty_tpl->tpl_vars['PICKLIST_VALUE']->key => $_smarty_tpl->tpl_vars['PICKLIST_VALUE']->value) {
                                    $_smarty_tpl->tpl_vars['PICKLIST_VALUE']->_loop = true;
                                    $_smarty_tpl->tpl_vars['PICKLIST_NAME']->value = $_smarty_tpl->tpl_vars['PICKLIST_VALUE']->key;
                                    ?>
<option value="<?php 
                                    echo Vtiger_Util_Helper::toSafeHTML($_smarty_tpl->tpl_vars['PICKLIST_NAME']->value);
                                    ?>
" <?php 
                                    if (decode_html($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('defaultvalue')) == $_smarty_tpl->tpl_vars['PICKLIST_NAME']->value) {
                                        ?>
 selected <?php 
                                    }
                                    ?>
><?php 
                                    echo vtranslate($_smarty_tpl->tpl_vars['PICKLIST_VALUE']->value, $_smarty_tpl->tpl_vars['SELECTED_MODULE_NAME']->value);
                                    ?>
</option><?php 
                                }
                                ?>
</select><?php 
                            } elseif ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType() == "multipicklist") {
                                $_smarty_tpl->tpl_vars['PICKLIST_VALUES'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getPicklistValues(), null, 0);
                                $_smarty_tpl->tpl_vars["FIELD_VALUE_LIST"] = new Smarty_variable(explode(' |##| ', $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('defaultvalue')), null, 0);
                                ?>
<select multiple class="span2" data-validation-engine="validate[required,funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" <?php 
                                if (!$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->hasDefaultValue()) {
                                    ?>
 disabled="" <?php 
                                }
                                ?>
  name="fieldDefaultValue" data-fieldinfo='<?php 
                                echo Vtiger_Util_Helper::toSafeHTML(ZEND_JSON::encode($_smarty_tpl->tpl_vars['FIELD_INFO']->value));
                                ?>
'><?php 
                                $_smarty_tpl->tpl_vars['PICKLIST_VALUE'] = new Smarty_Variable();
                                $_smarty_tpl->tpl_vars['PICKLIST_VALUE']->_loop = false;
                                $_from = $_smarty_tpl->tpl_vars['PICKLIST_VALUES']->value;
                                if (!is_array($_from) && !is_object($_from)) {
                                    settype($_from, 'array');
                                }
                                foreach ($_from as $_smarty_tpl->tpl_vars['PICKLIST_VALUE']->key => $_smarty_tpl->tpl_vars['PICKLIST_VALUE']->value) {
                                    $_smarty_tpl->tpl_vars['PICKLIST_VALUE']->_loop = true;
                                    ?>
<option value="<?php 
                                    echo Vtiger_Util_Helper::toSafeHTML($_smarty_tpl->tpl_vars['PICKLIST_VALUE']->value);
                                    ?>
" <?php 
                                    if (in_array(Vtiger_Util_Helper::toSafeHTML($_smarty_tpl->tpl_vars['PICKLIST_VALUE']->value), $_smarty_tpl->tpl_vars['FIELD_VALUE_LIST']->value)) {
                                        ?>
 selected <?php 
                                    }
                                    ?>
><?php 
                                    echo vtranslate($_smarty_tpl->tpl_vars['PICKLIST_VALUE']->value, $_smarty_tpl->tpl_vars['SELECTED_MODULE_NAME']->value);
                                    ?>
</option><?php 
                                }
                                ?>
</select><?php 
                            } elseif ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType() == "boolean") {
                                ?>
<input type="hidden" name="fieldDefaultValue" value="" /><input type="checkbox" name="fieldDefaultValue" value="1"<?php 
                                if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('defaultvalue') == 1) {
                                    ?>
 checked <?php 
                                }
                                ?>
 data-fieldinfo='<?php 
                                echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['FIELD_INFO']->value);
                                ?>
' /><?php 
                            } elseif ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType() == "time") {
                                ?>
<div class="input-append time"><input type="text" class="input-small" data-format="<?php 
                                echo $_smarty_tpl->tpl_vars['USER_MODEL']->value->get('hour_format');
                                ?>
" data-validation-engine="validate[required,funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" <?php 
                                if (!$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->hasDefaultValue()) {
                                    ?>
 disabled="" <?php 
                                }
                                ?>
 data-toregister="time" value="<?php 
                                echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('defaultvalue');
                                ?>
" name="fieldDefaultValue" data-fieldinfo='<?php 
                                echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['FIELD_INFO']->value);
                                ?>
'/><span class="add-on cursorPointer"><i class="icon-time"></i></span></div><?php 
                            } elseif ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType() == "date") {
                                ?>
<div class="input-append date"><?php 
                                $_smarty_tpl->tpl_vars['FIELD_NAME'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('name'), null, 0);
                                ?>
<input type="text" class="input-medium" data-validation-engine="validate[required,funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" <?php 
                                if (!$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->hasDefaultValue()) {
                                    ?>
 disabled="" <?php 
                                }
                                ?>
 name="fieldDefaultValue" data-toregister="date" data-date-format="<?php 
                                echo $_smarty_tpl->tpl_vars['USER_MODEL']->value->get('date_format');
                                ?>
" data-fieldinfo='<?php 
                                echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['FIELD_INFO']->value);
                                ?>
'value="<?php 
                                echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getEditViewDisplayValue($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('defaultvalue'));
                                ?>
" /><span class="add-on"><i class="icon-calendar"></i></span></div><?php 
                            } elseif ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType() == "percentage") {
                                ?>
<div class="input-append"><input type="number" data-validation-engine="validate[required,funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" <?php 
                                if (!$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->hasDefaultValue()) {
                                    ?>
 disabled="" <?php 
                                }
                                ?>
  class="input-medium" name="fieldDefaultValue"value="<?php 
                                echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('defaultvalue');
                                ?>
" data-fieldinfo='<?php 
                                echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['FIELD_INFO']->value);
                                ?>
' step="any" /><span class="add-on">%</span></div><?php 
                            } elseif ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType() == "currency") {
                                ?>
<div class="input-prepend"><span class="add-on"><?php 
                                echo $_smarty_tpl->tpl_vars['USER_MODEL']->value->get('currency_symbol');
                                ?>
</span><input type="text" data-validation-engine="validate[required,funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" <?php 
                                if (!$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->hasDefaultValue()) {
                                    ?>
 disabled="" <?php 
                                }
                                ?>
  class="input-medium" name="fieldDefaultValue"data-fieldinfo='<?php 
                                echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['FIELD_INFO']->value);
                                ?>
' value="<?php 
                                echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getEditViewDisplayValue($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('defaultvalue'));
                                ?>
"data-decimal-seperator='<?php 
                                echo $_smarty_tpl->tpl_vars['USER_MODEL']->value->get('currency_decimal_separator');
                                ?>
' data-group-seperator='<?php 
                                echo $_smarty_tpl->tpl_vars['USER_MODEL']->value->get('currency_grouping_separator');
                                ?>
' /></div><?php 
                            } elseif ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldName() == "terms_conditions" && $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('uitype') == 19) {
                                $_smarty_tpl->tpl_vars['INVENTORY_TERMS_AND_CONDITIONS_MODEL'] = new Smarty_variable(Settings_Vtiger_MenuItem_Model::getInstance("INVENTORYTERMSANDCONDITIONS"), null, 0);
                                ?>
<a href="<?php 
                                echo $_smarty_tpl->tpl_vars['INVENTORY_TERMS_AND_CONDITIONS_MODEL']->value->getUrl();
                                ?>
" target="_blank"><?php 
                                echo vtranslate('LBL_CLICK_HERE_TO_EDIT', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
                                ?>
</a><?php 
                            } else {
                                ?>
<input type="text" class="input-medium" data-validation-engine="validate[required,funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" <?php 
                                if (!$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->hasDefaultValue()) {
                                    ?>
 disabled="" <?php 
                                }
                                ?>
  name="fieldDefaultValue" value="<?php 
                                echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('defaultvalue');
                                ?>
" data-fieldinfo='<?php 
                                echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['FIELD_INFO']->value);
                                ?>
'/><?php 
                            }
                        }
                        ?>
</div></span></div><div class="modal-footer" style="padding: 0px;"><span class="pull-right"><button class="btn btn-success saveFieldDetails" data-field-id="<?php 
                        echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('id');
                        ?>
" type="submit" style="margin: 5px;"><strong><?php 
                        echo vtranslate('LBL_SAVE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
                        ?>
</strong></button></span></div></form></div><?php 
                    }
                    if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isCustomField() == 'true') {
                        ?>
<a href="javascript:void(0)" class="deleteCustomField" data-field-id="<?php 
                        echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('id');
                        ?>
"><i class="icon-trash alignMiddle" title="<?php 
                        echo vtranslate('LBL_DELETE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
                        ?>
"></i></a><?php 
                    }
                    ?>
</span></div></div></div></li><?php 
                }
            }
            ?>
</ul><ul <?php 
            if ($_smarty_tpl->tpl_vars['SELECTED_MODULE_MODEL']->value->isFieldsSortableAllowed($_smarty_tpl->tpl_vars['BLOCK_LABEL_KEY']->value)) {
                ?>
name="sortable2"<?php 
            }
            ?>
 class="connectedSortable span6" style="list-style-type: none; margin: 0; float: left;min-height: 1px;padding:2px;"><?php 
            $_smarty_tpl->tpl_vars['FIELD_MODEL'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['FIELD_MODEL']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['FIELDS_LIST']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['fieldlist1']['index'] = -1;
            foreach ($_from as $_smarty_tpl->tpl_vars['FIELD_MODEL']->key => $_smarty_tpl->tpl_vars['FIELD_MODEL']->value) {
                $_smarty_tpl->tpl_vars['FIELD_MODEL']->_loop = true;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['fieldlist1']['index']++;
                $_smarty_tpl->tpl_vars['FIELD_INFO'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldInfo(), null, 0);
                if ($_smarty_tpl->getVariable('smarty')->value['foreach']['fieldlist1']['index'] % 2 != 0) {
                    ?>
<li><div class="opacity editFields marginLeftZero border1px" data-block-id="<?php 
                    echo $_smarty_tpl->tpl_vars['BLOCK_ID']->value;
                    ?>
" data-field-id="<?php 
                    echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('id');
                    ?>
" data-sequence="<?php 
                    echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('sequence');
                    ?>
"><div class="row-fluid padding1per"><?php 
                    $_smarty_tpl->tpl_vars['IS_MANDATORY'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMandatory(), null, 0);
                    ?>
<span class="span1">&nbsp;<?php 
                    if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isEditable()) {
                        ?>
<a><img src="<?php 
                        echo vimage_path('drag.png');
                        ?>
" border="0" title="<?php 
                        echo vtranslate('LBL_DRAG', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
                        ?>
"/></a><?php 
                    }
                    ?>
</span><div class="span11 marginLeftZero" style="word-wrap: break-word;"><span class="fieldLabel"><?php 
                    if ($_smarty_tpl->tpl_vars['IS_MANDATORY']->value) {
                        ?>
<span class="redColor">*</span><?php 
                    }
                    echo vtranslate($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('label'), $_smarty_tpl->tpl_vars['SELECTED_MODULE_NAME']->value);
                    ?>
&nbsp;</span><span class="btn-group pull-right actions"><?php 
                    if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isEditable()) {
                        ?>
<a href="javascript:void(0)" class="dropdown-toggle editFieldDetails" data-toggle="dropdown"><i class="icon-pencil alignMiddle" title="<?php 
                        echo vtranslate('LBL_EDIT', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
                        ?>
"></i></a><div class="basicFieldOperations pull-right hide" style="width : 250px;"><form class="form-horizontal fieldDetailsForm"><div class="modal-header contentsBackground"><strong><?php 
                        echo vtranslate($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('label'), $_smarty_tpl->tpl_vars['SELECTED_MODULE_NAME']->value);
                        ?>
</strong></div><div style="padding-bottom: 5px;"><span><input type="hidden" name="mandatory" value="O" /><label class="checkbox" style="padding-left: 25px; padding-top: 5px;"><input type="checkbox" name="mandatory" <?php 
                        if ($_smarty_tpl->tpl_vars['IS_MANDATORY']->value) {
                            ?>
 checked <?php 
                        }
                        if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMandatoryOptionDisabled()) {
                            ?>
 readonly="readonly" <?php 
                        }
                        ?>
 value="M" />&nbsp;<?php 
                        echo vtranslate('LBL_MANDATORY_FIELD', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
                        ?>
</label></span><span><input type="hidden" name="presence" value="1" /><label class="checkbox" style="padding-left: 25px; padding-top: 5px;"><input type="checkbox" name="presence" <?php 
                        if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isViewable()) {
                            ?>
 checked <?php 
                        }
                        if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isActiveOptionDisabled()) {
                            ?>
 readonly="readonly" class="optionDisabled"<?php 
                        }
                        ?>
 <?php 
                        if ($_smarty_tpl->tpl_vars['IS_MANDATORY']->value) {
                            ?>
 readonly="readonly" <?php 
                        }
                        ?>
 value="2" />&nbsp;<?php 
                        echo vtranslate('LBL_ACTIVE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
                        ?>
</label></span><span><input type="hidden" name="quickcreate" value="1" /><label class="checkbox" style="padding-left: 25px; padding-top: 5px;"><input type="checkbox" name="quickcreate" <?php 
                        if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isQuickCreateEnabled()) {
                            ?>
 checked <?php 
                        }
                        if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isQuickCreateOptionDisabled()) {
                            ?>
 readonly="readonly" class="optionDisabled"<?php 
                        }
                        ?>
 <?php 
                        if ($_smarty_tpl->tpl_vars['IS_MANDATORY']->value) {
                            ?>
 readonly="readonly" <?php 
                        }
                        ?>
 value="2" />&nbsp;<?php 
                        echo vtranslate('LBL_QUICK_CREATE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
                        ?>
</label></span><span><input type="hidden" name="summaryfield" value="0"/><label class="checkbox" style="padding-left: 25px; padding-top: 5px;"><input type="checkbox" name="summaryfield" <?php 
                        if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isSummaryField()) {
                            ?>
 checked <?php 
                        }
                        if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isSummaryFieldOptionDisabled()) {
                            ?>
 readonly="readonly" class="optionDisabled"<?php 
                        }
                        ?>
 value="1" />&nbsp;<?php 
                        echo vtranslate('LBL_SUMMARY_FIELD', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
                        ?>
</label></span><span><input type="hidden" name="masseditable" value="2" /><label class="checkbox" style="padding-left: 25px; padding-top: 5px;"><input type="checkbox" name="masseditable" <?php 
                        if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMassEditable()) {
                            ?>
 checked <?php 
                        }
                        if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMassEditOptionDisabled()) {
                            ?>
 readonly="readonly" <?php 
                        }
                        ?>
 value="1" />&nbsp;<?php 
                        echo vtranslate('LBL_MASS_EDIT', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
                        ?>
</label></span><span><input type="hidden" name="defaultvalue" value="" /><label class="checkbox" style="padding-left: 25px; padding-top: 5px;"><input type="checkbox" name="defaultvalue" <?php 
                        if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->hasDefaultValue()) {
                            ?>
 checked <?php 
                        }
                        if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isDefaultValueOptionDisabled()) {
                            ?>
 readonly="readonly" <?php 
                        }
                        ?>
 value="" />&nbsp;<?php 
                        echo vtranslate('LBL_DEFAULT_VALUE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
                        ?>
</label><div class="padding1per defaultValueUi <?php 
                        if (!$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->hasDefaultValue()) {
                            ?>
 zeroOpacity <?php 
                        }
                        ?>
" style="padding : 0px 10px 0px 25px;"><?php 
                        if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isDefaultValueOptionDisabled() != "true") {
                            if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType() == "picklist") {
                                $_smarty_tpl->tpl_vars['PICKLIST_VALUES'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getPicklistValues(), null, 0);
                                ?>
<select class="span2" name="fieldDefaultValue" <?php 
                                if (!$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->hasDefaultValue()) {
                                    ?>
 disabled="" <?php 
                                }
                                ?>
 data-validation-engine="validate[required,funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" data-fieldinfo='<?php 
                                echo Vtiger_Util_Helper::toSafeHTML(ZEND_JSON::encode($_smarty_tpl->tpl_vars['FIELD_INFO']->value));
                                ?>
'><?php 
                                $_smarty_tpl->tpl_vars['PICKLIST_VALUE'] = new Smarty_Variable();
                                $_smarty_tpl->tpl_vars['PICKLIST_VALUE']->_loop = false;
                                $_smarty_tpl->tpl_vars['PICKLIST_NAME'] = new Smarty_Variable();
                                $_from = $_smarty_tpl->tpl_vars['PICKLIST_VALUES']->value;
                                if (!is_array($_from) && !is_object($_from)) {
                                    settype($_from, 'array');
                                }
                                foreach ($_from as $_smarty_tpl->tpl_vars['PICKLIST_VALUE']->key => $_smarty_tpl->tpl_vars['PICKLIST_VALUE']->value) {
                                    $_smarty_tpl->tpl_vars['PICKLIST_VALUE']->_loop = true;
                                    $_smarty_tpl->tpl_vars['PICKLIST_NAME']->value = $_smarty_tpl->tpl_vars['PICKLIST_VALUE']->key;
                                    ?>
<option value="<?php 
                                    echo Vtiger_Util_Helper::toSafeHTML($_smarty_tpl->tpl_vars['PICKLIST_NAME']->value);
                                    ?>
" <?php 
                                    if (decode_html($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('defaultvalue')) == $_smarty_tpl->tpl_vars['PICKLIST_NAME']->value) {
                                        ?>
 selected <?php 
                                    }
                                    ?>
><?php 
                                    echo vtranslate($_smarty_tpl->tpl_vars['PICKLIST_VALUE']->value, $_smarty_tpl->tpl_vars['SELECTED_MODULE_NAME']->value);
                                    ?>
</option><?php 
                                }
                                ?>
</select><?php 
                            } elseif ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType() == "multipicklist") {
                                $_smarty_tpl->tpl_vars['PICKLIST_VALUES'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getPicklistValues(), null, 0);
                                $_smarty_tpl->tpl_vars["FIELD_VALUE_LIST"] = new Smarty_variable(explode(' |##| ', $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('defaultvalue')), null, 0);
                                ?>
<select multiple class="span2" data-validation-engine="validate[required,funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" <?php 
                                if (!$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->hasDefaultValue()) {
                                    ?>
 disabled="" <?php 
                                }
                                ?>
  name="fieldDefaultValue" data-fieldinfo='<?php 
                                echo Vtiger_Util_Helper::toSafeHTML(ZEND_JSON::encode($_smarty_tpl->tpl_vars['FIELD_INFO']->value));
                                ?>
'><?php 
                                $_smarty_tpl->tpl_vars['PICKLIST_VALUE'] = new Smarty_Variable();
                                $_smarty_tpl->tpl_vars['PICKLIST_VALUE']->_loop = false;
                                $_from = $_smarty_tpl->tpl_vars['PICKLIST_VALUES']->value;
                                if (!is_array($_from) && !is_object($_from)) {
                                    settype($_from, 'array');
                                }
                                foreach ($_from as $_smarty_tpl->tpl_vars['PICKLIST_VALUE']->key => $_smarty_tpl->tpl_vars['PICKLIST_VALUE']->value) {
                                    $_smarty_tpl->tpl_vars['PICKLIST_VALUE']->_loop = true;
                                    ?>
<option value="<?php 
                                    echo Vtiger_Util_Helper::toSafeHTML($_smarty_tpl->tpl_vars['PICKLIST_VALUE']->value);
                                    ?>
" <?php 
                                    if (in_array(Vtiger_Util_Helper::toSafeHTML($_smarty_tpl->tpl_vars['PICKLIST_VALUE']->value), $_smarty_tpl->tpl_vars['FIELD_VALUE_LIST']->value)) {
                                        ?>
 selected <?php 
                                    }
                                    ?>
><?php 
                                    echo vtranslate($_smarty_tpl->tpl_vars['PICKLIST_VALUE']->value, $_smarty_tpl->tpl_vars['SELECTED_MODULE_NAME']->value);
                                    ?>
</option><?php 
                                }
                                ?>
</select><?php 
                            } elseif ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType() == "boolean") {
                                ?>
<input type="hidden" name="fieldDefaultValue" value="" /><input type="checkbox" name="fieldDefaultValue" value="1"<?php 
                                if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('defaultvalue') == 1) {
                                    ?>
 checked <?php 
                                }
                                ?>
 data-fieldinfo='<?php 
                                echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['FIELD_INFO']->value);
                                ?>
' /><?php 
                            } elseif ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType() == "time") {
                                ?>
<div class="input-append time"><input type="text" class="input-small" data-format="<?php 
                                echo $_smarty_tpl->tpl_vars['USER_MODEL']->value->get('hour_format');
                                ?>
" data-validation-engine="validate[required,funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" <?php 
                                if (!$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->hasDefaultValue()) {
                                    ?>
 disabled="" <?php 
                                }
                                ?>
 data-toregister="time" value="<?php 
                                echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('defaultvalue');
                                ?>
" name="fieldDefaultValue" data-fieldinfo='<?php 
                                echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['FIELD_INFO']->value);
                                ?>
'/><span class="add-on cursorPointer"><i class="icon-time"></i></span></div><?php 
                            } elseif ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType() == "date") {
                                ?>
<div class="input-append date"><?php 
                                $_smarty_tpl->tpl_vars['FIELD_NAME'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('name'), null, 0);
                                ?>
<input type="text" class="input-medium" data-validation-engine="validate[required,funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" <?php 
                                if (!$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->hasDefaultValue()) {
                                    ?>
 disabled="" <?php 
                                }
                                ?>
 name="fieldDefaultValue" data-toregister="date" data-date-format="<?php 
                                echo $_smarty_tpl->tpl_vars['USER_MODEL']->value->get('date_format');
                                ?>
" data-fieldinfo='<?php 
                                echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['FIELD_INFO']->value);
                                ?>
'value="<?php 
                                echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getEditViewDisplayValue($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('defaultvalue'));
                                ?>
" /><span class="add-on"><i class="icon-calendar"></i></span></div><?php 
                            } elseif ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType() == "percentage") {
                                ?>
<div class="input-append"><input type="number" data-validation-engine="validate[required,funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" <?php 
                                if (!$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->hasDefaultValue()) {
                                    ?>
 disabled="" <?php 
                                }
                                ?>
  class="input-medium" name="fieldDefaultValue"value="<?php 
                                echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('defaultvalue');
                                ?>
" data-fieldinfo='<?php 
                                echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['FIELD_INFO']->value);
                                ?>
' step="any" /><span class="add-on">%</span></div><?php 
                            } elseif ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType() == "currency") {
                                ?>
<div class="input-prepend"><span class="add-on"><?php 
                                echo $_smarty_tpl->tpl_vars['USER_MODEL']->value->get('currency_symbol');
                                ?>
</span><input type="text" data-validation-engine="validate[required,funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" <?php 
                                if (!$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->hasDefaultValue()) {
                                    ?>
 disabled="" <?php 
                                }
                                ?>
  class="input-medium" name="fieldDefaultValue"data-fieldinfo='<?php 
                                echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['FIELD_INFO']->value);
                                ?>
' value="<?php 
                                echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getEditViewDisplayValue($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('defaultvalue'));
                                ?>
"data-decimal-seperator='<?php 
                                echo $_smarty_tpl->tpl_vars['USER_MODEL']->value->get('currency_decimal_separator');
                                ?>
' data-group-seperator='<?php 
                                echo $_smarty_tpl->tpl_vars['USER_MODEL']->value->get('currency_grouping_separator');
                                ?>
' /></div><?php 
                            } else {
                                ?>
<input type="text" class="input-medium" data-validation-engine="validate[required,funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" <?php 
                                if (!$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->hasDefaultValue()) {
                                    ?>
 disabled="" <?php 
                                }
                                ?>
  name="fieldDefaultValue" value="<?php 
                                echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('defaultvalue');
                                ?>
" data-fieldinfo='<?php 
                                echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['FIELD_INFO']->value);
                                ?>
'/><?php 
                            }
                        }
                        ?>
</div></span></div><div class="modal-footer" style="padding: 0px;"><span class="pull-right"><button class="btn btn-success saveFieldDetails" data-field-id="<?php 
                        echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('id');
                        ?>
" type="submit" style="margin: 5px;"><strong><?php 
                        echo vtranslate('LBL_SAVE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
                        ?>
</strong></button></span></div></form></div><?php 
                    }
                    if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isCustomField() == 'true') {
                        ?>
<a href="javascript:void(0)" class="deleteCustomField" data-field-id="<?php 
                        echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('id');
                        ?>
"><i class="icon-trash alignMiddle" title="<?php 
                        echo vtranslate('LBL_DELETE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
                        ?>
"></i></a><?php 
                    }
                    ?>
</span></div></div></div></li><?php 
                }
            }
            ?>
</ul></div></div><?php 
        }
        ?>
</div><input type="hidden" class="inActiveFieldsArray" value='<?php 
        echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['IN_ACTIVE_FIELDS']->value);
        ?>
' /><div class="newCustomBlockCopy hide marginBottom10px border1px <?php 
        if ($_smarty_tpl->tpl_vars['IS_BLOCK_SORTABLE']->value) {
            ?>
blockSortable <?php 
        }
        ?>
" data-block-id="" data-sequence="" style="border-radius: 4px;"><div class="row-fluid layoutBlockHeader"><div class="span6 blockLabel padding10"><img class="alignMiddle" src="<?php 
        echo vimage_path('drag.png');
        ?>
" />&nbsp;&nbsp;</div><div class="span6 marginLeftZero"><div class="pull-right btn-toolbar blockActions" style="margin: 4px;"><div class="btn-group"><button class="btn addCustomField hide" type="button"><strong><?php 
        echo vtranslate('LBL_ADD_CUSTOM_FIELD', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
        ?>
</strong></button></div><div class="btn-group"><button class="btn dropdown-toggle" data-toggle="dropdown"><strong><?php 
        echo vtranslate('LBL_ACTIONS', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
        ?>
</strong>&nbsp;&nbsp;<i class="caret"></i></button><ul class="dropdown-menu pull-right"><li class="blockVisibility" data-visible="1" data-block-id=""><a href="javascript:void(0)"><i class="icon-ok"></i>&nbsp;<?php 
        echo vtranslate('LBL_ALWAYS_SHOW', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
        ?>
</a></li><li class="inActiveFields"><a href="javascript:void(0)"><?php 
        echo vtranslate('LBL_INACTIVE_FIELDS', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
        ?>
</a></li><li class="deleteCustomBlock"><a href="javascript:void(0)"><?php 
        echo vtranslate('LBL_DELETE_CUSTOM_BLOCK', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
        ?>
</a></li></ul></div></div></div></div><div class="blockFieldsList row-fluid blockFieldsSortable" style="padding:5px;min-height: 27px"><ul class="connectedSortable span6 ui-sortable" style="list-style-type: none; float: left;min-height:1px;padding:2px;" name="sortable1"></ul><ul class="connectedSortable span6 ui-sortable" style="list-style-type: none; margin: 0;float: left;min-height:1px;padding:2px;" name="sortable2"></ul></div></div><li class="newCustomFieldCopy hide"><div class="marginLeftZero border1px" data-field-id="" data-sequence=""><div class="row-fluid padding1per"><span class="span1">&nbsp;<?php 
        if ($_smarty_tpl->tpl_vars['IS_SORTABLE']->value) {
            ?>
<a><img src="<?php 
            echo vimage_path('drag.png');
            ?>
" border="0" title="<?php 
            echo vtranslate('LBL_DRAG', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
            ?>
"/></a><?php 
        }
        ?>
</span><div class="span11 marginLeftZero" style="word-wrap: break-word;"><span class="fieldLabel"></span><span class="btn-group pull-right actions"><?php 
        if ($_smarty_tpl->tpl_vars['IS_SORTABLE']->value) {
            ?>
<a href="javascript:void(0)" class="dropdown-toggle editFieldDetails" data-toggle="dropdown"><i class="icon-pencil alignMiddle" title="<?php 
            echo vtranslate('LBL_EDIT', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
            ?>
"></i></a><div class="basicFieldOperations hide pull-right" style="width: 250px;"><form class="form-horizontal fieldDetailsForm"><div class="modal-header contentsBackground"></div><div style="padding-bottom: 5px;"><span><input type="hidden" name="mandatory" value="O" /><label class="checkbox" style="padding-left: 25px; padding-top: 5px;"><input type="checkbox" name="mandatory" value="M" />&nbsp;<?php 
            echo vtranslate('LBL_MANDATORY_FIELD', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
            ?>
</label></span><span><input type="hidden" name="presence" value="1" /><label class="checkbox" style="padding-left: 25px; padding-top: 5px;"><input type="checkbox" name="presence" value="2" />&nbsp;<?php 
            echo vtranslate('LBL_ACTIVE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
            ?>
</label></span><span><input type="hidden" name="quickcreate" value="1" /><label class="checkbox" style="padding-left: 25px; padding-top: 5px;"><input type="checkbox" name="quickcreate" value="2" />&nbsp;<?php 
            echo vtranslate('LBL_QUICK_CREATE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
            ?>
</label></span><span><input type="hidden" name="summaryfield" value="0"/><label class="checkbox" style="padding-left: 25px; padding-top: 5px;"><input type="checkbox" name="summaryfield" value="1" />&nbsp;<?php 
            echo vtranslate('LBL_SUMMARY_FIELD', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
            ?>
</label></span><span><input type="hidden" name="masseditable" value="2" /><label class="checkbox" style="padding-left: 25px; padding-top: 5px;"><input type="checkbox" name="masseditable" value="1" />&nbsp;<?php 
            echo vtranslate('LBL_MASS_EDIT', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
            ?>
</label></span><span><input type="hidden" name="defaultvalue" value="" /><label class="checkbox" style="padding-left: 25px; padding-top: 5px;"><input type="checkbox" name="defaultvalue" value="" />&nbsp;<?php 
            echo vtranslate('LBL_DEFAULT_VALUE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
            ?>
</label><div class="padding1per defaultValueUi" style="padding : 0px 10px 0px 25px;"></div></span></div><div class="modal-footer"><span class="pull-right"><button class="btn btn-success saveFieldDetails" data-field-id="" type="submit"><strong><?php 
            echo vtranslate('LBL_SAVE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
            ?>
</strong></button></span></div></form></div><?php 
        }
        ?>
<a href="javascript:void(0)" class="deleteCustomField" data-field-id=""><i class="icon-trash alignMiddle" title="<?php 
        echo vtranslate('LBL_DELETE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
        ?>
"></i></a></span></div></div></div></li><div class="modal addBlockModal hide"><div class="modal-header contentsBackground"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h3><?php 
        echo vtranslate('LBL_ADD_CUSTOM_BLOCK', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
        ?>
</h3></div><form class="form-horizontal addCustomBlockForm"><div class="modal-body"><div class="control-group"><span class="control-label"><span class="redColor">*</span><span><?php 
        echo vtranslate('LBL_BLOCK_NAME', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
        ?>
</span></span><div class="controls"><input type="text" name="label" class="span3" data-validation-engine="validate[required]" /></div></div><div class="control-group"><span class="control-label"><?php 
        echo vtranslate('LBL_ADD_AFTER', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
        ?>
</span><div class="controls"><span class="row-fluid"><select class="span8" name="beforeBlockId"><?php 
        $_smarty_tpl->tpl_vars['BLOCK_LABEL'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['BLOCK_LABEL']->_loop = false;
        $_smarty_tpl->tpl_vars['BLOCK_ID'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['ALL_BLOCK_LABELS']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['BLOCK_LABEL']->key => $_smarty_tpl->tpl_vars['BLOCK_LABEL']->value) {
            $_smarty_tpl->tpl_vars['BLOCK_LABEL']->_loop = true;
            $_smarty_tpl->tpl_vars['BLOCK_ID']->value = $_smarty_tpl->tpl_vars['BLOCK_LABEL']->key;
            ?>
<option value="<?php 
            echo $_smarty_tpl->tpl_vars['BLOCK_ID']->value;
            ?>
" data-label="<?php 
            echo $_smarty_tpl->tpl_vars['BLOCK_LABEL']->value;
            ?>
"><?php 
            echo vtranslate($_smarty_tpl->tpl_vars['BLOCK_LABEL']->value, $_smarty_tpl->tpl_vars['SELECTED_MODULE_NAME']->value);
            ?>
</option><?php 
        }
        ?>
</select></span></div></div></div><?php 
        echo $_smarty_tpl->getSubTemplate(vtemplate_path('ModalFooter.tpl', 'Vtiger'), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>
</form></div><div class="modal createFieldModal hide"><div class="modal-header contentsBackground"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h3><?php 
        echo vtranslate('LBL_CREATE_CUSTOM_FIELD', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
        ?>
</h3></div><form class="form-horizontal createCustomFieldForm"><div class="modal-body"><div class="control-group"><span class="control-label"><?php 
        echo vtranslate('LBL_SELECT_FIELD_TYPE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
        ?>
</span><div class="controls"><span class="row-fluid"><select class="fieldTypesList span7" name="fieldType"><?php 
        $_smarty_tpl->tpl_vars['FIELD_TYPE'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['FIELD_TYPE']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['ADD_SUPPORTED_FIELD_TYPES']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['FIELD_TYPE']->key => $_smarty_tpl->tpl_vars['FIELD_TYPE']->value) {
            $_smarty_tpl->tpl_vars['FIELD_TYPE']->_loop = true;
            ?>
<option value="<?php 
            echo $_smarty_tpl->tpl_vars['FIELD_TYPE']->value;
            ?>
"<?php 
            $_smarty_tpl->tpl_vars['TYPE_INFO_VALUE'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['TYPE_INFO_VALUE']->_loop = false;
            $_smarty_tpl->tpl_vars['TYPE_INFO'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['FIELD_TYPE_INFO']->value[$_smarty_tpl->tpl_vars['FIELD_TYPE']->value];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['TYPE_INFO_VALUE']->key => $_smarty_tpl->tpl_vars['TYPE_INFO_VALUE']->value) {
                $_smarty_tpl->tpl_vars['TYPE_INFO_VALUE']->_loop = true;
                $_smarty_tpl->tpl_vars['TYPE_INFO']->value = $_smarty_tpl->tpl_vars['TYPE_INFO_VALUE']->key;
                ?>
data-<?php 
                echo $_smarty_tpl->tpl_vars['TYPE_INFO']->value;
                ?>
="<?php 
                echo $_smarty_tpl->tpl_vars['TYPE_INFO_VALUE']->value;
                ?>
"<?php 
            }
            ?>
><?php 
            echo vtranslate($_smarty_tpl->tpl_vars['FIELD_TYPE']->value, $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
            ?>
</option><?php 
        }
        ?>
</select></span></div></div><div class="control-group"><span class="control-label"><span class="redColor">*</span>&nbsp;<?php 
        echo vtranslate('LBL_LABEL_NAME', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
        ?>
</span><div class="controls"><input type="text" maxlength="50" name="fieldLabel" value="" data-validation-engine="validate[required, funcCall[Vtiger_Base_Validator_Js.invokeValidation]]"data-validator=<?php 
        echo Zend_Json::encode(array(array('name' => 'FieldLabel')));
        ?>
 /></div></div><div class="control-group supportedType lengthsupported"><span class="control-label"><span class="redColor">*</span>&nbsp;<?php 
        echo vtranslate('LBL_LENGTH', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
        ?>
</span><div class="controls"><input type="text" name="fieldLength" value="" data-validation-engine="validate[required, funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" /></div></div><div class="control-group supportedType decimalsupported hide"><span class="control-label"><span class="redColor">*</span>&nbsp;<?php 
        echo vtranslate('LBL_DECIMALS', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
        ?>
</span><div class="controls"><input type="text" name="decimal" value="" data-validation-engine="validate[required, funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" /></div></div><div class="control-group supportedType preDefinedValueExists hide"><span class="control-label"><span class="redColor">*</span>&nbsp;<?php 
        echo vtranslate('LBL_PICKLIST_VALUES', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
        ?>
</span><div class="controls"><div class="row-fluid"><input type="hidden" id="picklistUi" class="span7 select2" name="pickListValues"placeholder="<?php 
        echo vtranslate('LBL_ENTER_PICKLIST_VALUES', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
        ?>
" data-validation-engine="validate[required, funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" data-validator=<?php 
        echo Zend_Json::encode(array(array('name' => 'PicklistFieldValues')));
        ?>
 /></div></div></div><div class="control-group supportedType picklistOption hide"><span class="control-label">&nbsp;</span><div class="controls"><label class="checkbox"><input type="checkbox" class="checkbox" name="isRoleBasedPickList" value="1" >&nbsp;<?php 
        echo vtranslate('LBL_ROLE_BASED_PICKLIST', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
        ?>
</label></div></div></div><?php 
        echo $_smarty_tpl->getSubTemplate(vtemplate_path('ModalFooter.tpl', 'Vtiger'), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>
</form></div><div class="modal inactiveFieldsModal hide"><div class="modal-header contentsBackground"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h3><?php 
        echo vtranslate('LBL_INACTIVE_FIELDS', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
        ?>
</h3></div><form class="form-horizontal inactiveFieldsForm"><div class="modal-body"><div class="row-fluid inActiveList"></div></div><div class="modal-footer"><div class=" pull-right cancelLinkContainer"><a class="cancelLink" type="reset" data-dismiss="modal"><?php 
        echo vtranslate('LBL_CANCEL', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
        ?>
</a></div><button class="btn btn-success" type="submit" name="reactivateButton"><strong><?php 
        echo vtranslate('LBL_REACTIVATE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
        ?>
</strong></button></div></form></div></div><div class="tab-pane" id="relatedTabOrder"></div></div></div></div><?php 
    }
    function content_56854e5c1849c($_smarty_tpl)
    {
        ?>
<input type="hidden" id="pageStartRange" value="<?php 
        echo $_smarty_tpl->tpl_vars['PAGING_MODEL']->value->getRecordStartRange();
        ?>
" /><input type="hidden" id="pageEndRange" value="<?php 
        echo $_smarty_tpl->tpl_vars['PAGING_MODEL']->value->getRecordEndRange();
        ?>
" /><input type="hidden" id="previousPageExist" value="<?php 
        echo $_smarty_tpl->tpl_vars['PAGING_MODEL']->value->isPrevPageExists();
        ?>
" /><input type="hidden" id="nextPageExist" value="<?php 
        echo $_smarty_tpl->tpl_vars['PAGING_MODEL']->value->isNextPageExists();
        ?>
" /><input type="hidden" id="totalCount" value="<?php 
        echo $_smarty_tpl->tpl_vars['LISTVIEW_COUNT']->value;
        ?>
" /><input type="hidden" value="<?php 
        echo $_smarty_tpl->tpl_vars['ORDER_BY']->value;
        ?>
" id="orderBy"><input type="hidden" value="<?php 
        echo $_smarty_tpl->tpl_vars['SORT_ORDER']->value;
        ?>
" id="sortOrder"><input type="hidden" id="totalCount" value="<?php 
        echo $_smarty_tpl->tpl_vars['LISTVIEW_COUNT']->value;
        ?>
" /><input type='hidden' value="<?php 
        echo $_smarty_tpl->tpl_vars['PAGE_NUMBER']->value;
        ?>
" id='pageNumber'><input type='hidden' value="<?php 
        echo $_smarty_tpl->tpl_vars['PAGING_MODEL']->value->getPageLimit();
        ?>
" id='pageLimit'><input type="hidden" value="<?php 
        echo $_smarty_tpl->tpl_vars['LISTVIEW_ENTRIES_COUNT']->value;
        ?>
" id="noOfEntries"><div class="listViewEntriesDiv" style='overflow-x:auto;'><span class="listViewLoadingImageBlock hide modal" id="loadingListViewModal"><img class="listViewLoadingImage" src="<?php 
        echo vimage_path('loading.gif');
        ?>
" alt="no-image" title="<?php 
        echo vtranslate('LBL_LOADING', $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
"/><p class="listViewLoadingMsg"><?php 
        echo vtranslate('LBL_LOADING_LISTVIEW_CONTENTS', $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
........</p></span><?php 
        $_smarty_tpl->tpl_vars["NAME_FIELDS"] = new Smarty_variable($_smarty_tpl->tpl_vars['MODULE_MODEL']->value->getNameFields(), null, 0);
        $_smarty_tpl->tpl_vars['WIDTHTYPE'] = new Smarty_variable($_smarty_tpl->tpl_vars['CURRENT_USER_MODEL']->value->get('rowheight'), null, 0);
        ?>
<table class="table table-bordered table-condensed listViewEntriesTable"><thead><tr class="listViewHeaders"><th width="1%" class="<?php 
        echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;
        ?>
"></th><?php 
        ob_start();
        echo 99 / count($_smarty_tpl->tpl_vars['LISTVIEW_HEADERS']->value);
        $_tmp1 = ob_get_clean();
        $_smarty_tpl->tpl_vars['WIDTH'] = new Smarty_variable($_tmp1, null, 0);
        $_smarty_tpl->tpl_vars['LISTVIEW_HEADER'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['LISTVIEW_HEADERS']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->total = $_smarty_tpl->_count($_from);
        $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->iteration = 0;
        foreach ($_from as $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->key => $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value) {
            $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->_loop = true;
            $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->iteration++;
            $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->last = $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->iteration === $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->total;
            ?>
<th width="<?php 
            echo $_smarty_tpl->tpl_vars['WIDTH']->value;
            ?>
%" nowrap <?php 
            if ($_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->last) {
                ?>
colspan="2" <?php 
            }
            ?>
 class="<?php 
            echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;
            ?>
"><a  <?php 
            if (!$_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value->has('sort')) {
                ?>
 class="listViewHeaderValues cursorPointer" data-nextsortorderval="<?php 
                if ($_smarty_tpl->tpl_vars['COLUMN_NAME']->value == $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value->get('name')) {
                    echo $_smarty_tpl->tpl_vars['NEXT_SORT_ORDER']->value;
                } else {
                    ?>
ASC<?php 
                }
                ?>
" data-columnname="<?php 
                echo $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value->get('name');
                ?>
" <?php 
            }
            ?>
><?php 
            echo vtranslate($_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value->get('label'), $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
            if ($_smarty_tpl->tpl_vars['COLUMN_NAME']->value == $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value->get('name')) {
                ?>
<img class="<?php 
                echo $_smarty_tpl->tpl_vars['SORT_IMAGE']->value;
                ?>
 icon-white"><?php 
            }
            ?>
</a></th><?php 
        }
        ?>
</tr></thead><tbody><?php 
        $_smarty_tpl->tpl_vars['LISTVIEW_ENTRY'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['LISTVIEW_ENTRIES']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->key => $_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->value) {
            $_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->_loop = true;
            ?>
<tr class="listViewEntries" data-id="<?php 
            echo $_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->value->getId();
            ?>
"<?php 
            if (method_exists($_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->value, 'getDetailViewUrl')) {
                ?>
data-recordurl="<?php 
                echo $_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->value->getDetailViewUrl();
                ?>
"<?php 
            }
            ?>
><td width="1%" nowrap class="<?php 
            echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;
            ?>
"><?php 
            if ($_smarty_tpl->tpl_vars['MODULE']->value == 'CronTasks') {
                ?>
<img src="<?php 
                echo vimage_path('drag.png');
                ?>
" class="alignTop" title="<?php 
                echo vtranslate('LBL_DRAG', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
                ?>
" /><?php 
            }
            ?>
</td><?php 
            $_smarty_tpl->tpl_vars['LISTVIEW_HEADER'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['LISTVIEW_HEADERS']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->total = $_smarty_tpl->_count($_from);
            $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->iteration = 0;
            foreach ($_from as $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->key => $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value) {
                $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->_loop = true;
                $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->iteration++;
                $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->last = $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->iteration === $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->total;
                $_smarty_tpl->tpl_vars['LISTVIEW_HEADERNAME'] = new Smarty_variable($_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value->get('name'), null, 0);
                $_smarty_tpl->tpl_vars['LAST_COLUMN'] = new Smarty_variable($_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->last, null, 0);
                ?>
<td class="listViewEntryValue <?php 
                echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;
                ?>
"  width="<?php 
                echo $_smarty_tpl->tpl_vars['WIDTH']->value;
                ?>
%" nowrap>&nbsp;<?php 
                echo $_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->value->getDisplayValue($_smarty_tpl->tpl_vars['LISTVIEW_HEADERNAME']->value);
                if ($_smarty_tpl->tpl_vars['LAST_COLUMN']->value && $_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->value->getRecordLinks()) {
                    ?>
</td><td nowrap class="<?php 
                    echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;
                    ?>
"><div class="pull-right actions"><span class="actionImages"><?php 
                    $_smarty_tpl->tpl_vars['RECORD_LINK'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['RECORD_LINK']->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->value->getRecordLinks();
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    $_smarty_tpl->tpl_vars['RECORD_LINK']->total = $_smarty_tpl->_count($_from);
                    $_smarty_tpl->tpl_vars['RECORD_LINK']->iteration = 0;
                    foreach ($_from as $_smarty_tpl->tpl_vars['RECORD_LINK']->key => $_smarty_tpl->tpl_vars['RECORD_LINK']->value) {
                        $_smarty_tpl->tpl_vars['RECORD_LINK']->_loop = true;
                        $_smarty_tpl->tpl_vars['RECORD_LINK']->iteration++;
                        $_smarty_tpl->tpl_vars['RECORD_LINK']->last = $_smarty_tpl->tpl_vars['RECORD_LINK']->iteration === $_smarty_tpl->tpl_vars['RECORD_LINK']->total;
                        $_smarty_tpl->tpl_vars["RECORD_LINK_URL"] = new Smarty_variable($_smarty_tpl->tpl_vars['RECORD_LINK']->value->getUrl(), null, 0);
                        ?>
<a <?php 
                        if (stripos($_smarty_tpl->tpl_vars['RECORD_LINK_URL']->value, 'javascript:') === 0) {
                            ?>
 onclick="<?php 
                            echo substr($_smarty_tpl->tpl_vars['RECORD_LINK_URL']->value, strlen("javascript:"));
                            ?>
;if(event.stopPropagation){event.stopPropagation();}else{event.cancelBubble=true;}" <?php 
                        } else {
                            ?>
 href='<?php 
                            echo $_smarty_tpl->tpl_vars['RECORD_LINK_URL']->value;
                            ?>
' <?php 
                        }
                        ?>
><i class="<?php 
                        echo $_smarty_tpl->tpl_vars['RECORD_LINK']->value->getIcon();
                        ?>
 alignMiddle" title="<?php 
                        echo vtranslate($_smarty_tpl->tpl_vars['RECORD_LINK']->value->getLabel(), $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
                        ?>
"></i></a><?php 
                        if (!$_smarty_tpl->tpl_vars['RECORD_LINK']->last) {
                            ?>
&nbsp;&nbsp;<?php 
                        }
                    }
                    ?>
</span></div></td><?php 
                }
                ?>
</td><?php 
            }
            ?>
</tr><?php 
        }
        ?>
</tbody></table><!--added this div for Temporarily --><?php 
        if ($_smarty_tpl->tpl_vars['LISTVIEW_ENTRIES_COUNT']->value == '0') {
            ?>
<table class="emptyRecordsDiv"><tbody><tr><td><?php 
            echo vtranslate('LBL_EQ_ZERO');
            ?>
 <?php 
            echo vtranslate($_smarty_tpl->tpl_vars['MODULE']->value, $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
            ?>
 <?php 
            echo vtranslate('LBL_FOUND');
            ?>
</td></tr></tbody></table><?php 
        }
        ?>
</div><?php 
    }
    function content_566ead00599f3($_smarty_tpl)
    {
        $_smarty_tpl->tpl_vars['FIELD_MODEL_LIST'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['FIELD_MODEL_LIST']->_loop = false;
        $_smarty_tpl->tpl_vars['BLOCK_LABEL_KEY'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['RECORD_STRUCTURE']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['FIELD_MODEL_LIST']->key => $_smarty_tpl->tpl_vars['FIELD_MODEL_LIST']->value) {
            $_smarty_tpl->tpl_vars['FIELD_MODEL_LIST']->_loop = true;
            $_smarty_tpl->tpl_vars['BLOCK_LABEL_KEY']->value = $_smarty_tpl->tpl_vars['FIELD_MODEL_LIST']->key;
            $_smarty_tpl->tpl_vars['BLOCK'] = new Smarty_variable($_smarty_tpl->tpl_vars['BLOCK_LIST']->value[$_smarty_tpl->tpl_vars['BLOCK_LABEL_KEY']->value], null, 0);
            if ($_smarty_tpl->tpl_vars['BLOCK']->value == null || count($_smarty_tpl->tpl_vars['FIELD_MODEL_LIST']->value) <= 0) {
                continue 1;
            }
            $_smarty_tpl->tpl_vars['IS_HIDDEN'] = new Smarty_variable($_smarty_tpl->tpl_vars['BLOCK']->value->isHidden(), null, 0);
            $_smarty_tpl->tpl_vars['WIDTHTYPE'] = new Smarty_variable($_smarty_tpl->tpl_vars['USER_MODEL']->value->get('rowheight'), null, 0);
            ?>
<input type=hidden name="timeFormatOptions" data-value='<?php 
            echo $_smarty_tpl->tpl_vars['DAY_STARTS']->value;
            ?>
' /><table class="table table-bordered equalSplit detailview-table"><thead><tr><th class="blockHeader" colspan="4"><img class="cursorPointer alignMiddle blockToggle <?php 
            if (!$_smarty_tpl->tpl_vars['IS_HIDDEN']->value) {
                ?>
 hide <?php 
            }
            ?>
 "  src="<?php 
            echo vimage_path('arrowRight.png');
            ?>
" data-mode="hide" data-id=<?php 
            echo $_smarty_tpl->tpl_vars['BLOCK_LIST']->value[$_smarty_tpl->tpl_vars['BLOCK_LABEL_KEY']->value]->get('id');
            ?>
><img class="cursorPointer alignMiddle blockToggle <?php 
            if ($_smarty_tpl->tpl_vars['IS_HIDDEN']->value) {
                ?>
 hide <?php 
            }
            ?>
"  src="<?php 
            echo vimage_path('arrowDown.png');
            ?>
" data-mode="show" data-id=<?php 
            echo $_smarty_tpl->tpl_vars['BLOCK_LIST']->value[$_smarty_tpl->tpl_vars['BLOCK_LABEL_KEY']->value]->get('id');
            ?>
>&nbsp;&nbsp;<?php 
            ob_start();
            echo $_smarty_tpl->tpl_vars['BLOCK_LABEL_KEY']->value;
            $_tmp1 = ob_get_clean();
            ob_start();
            echo $_smarty_tpl->tpl_vars['MODULE_NAME']->value;
            $_tmp2 = ob_get_clean();
            echo vtranslate($_tmp1, $_tmp2);
            ?>
</th></tr></thead><tbody <?php 
            if ($_smarty_tpl->tpl_vars['IS_HIDDEN']->value) {
                ?>
 class="hide" <?php 
            }
            ?>
><?php 
            $_smarty_tpl->tpl_vars['COUNTER'] = new Smarty_variable(0, null, 0);
            ?>
<tr><?php 
            $_smarty_tpl->tpl_vars['FIELD_MODEL'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['FIELD_MODEL']->_loop = false;
            $_smarty_tpl->tpl_vars['FIELD_NAME'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['FIELD_MODEL_LIST']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['FIELD_MODEL']->key => $_smarty_tpl->tpl_vars['FIELD_MODEL']->value) {
                $_smarty_tpl->tpl_vars['FIELD_MODEL']->_loop = true;
                $_smarty_tpl->tpl_vars['FIELD_NAME']->value = $_smarty_tpl->tpl_vars['FIELD_MODEL']->key;
                if (!$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isViewableInDetailView()) {
                    continue 1;
                }
                if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('uitype') == "83") {
                    $_smarty_tpl->tpl_vars['tax'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['tax']->_loop = false;
                    $_smarty_tpl->tpl_vars['count'] = new Smarty_Variable();
                    $_from = $_smarty_tpl->tpl_vars['TAXCLASS_DETAILS']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars['tax']->key => $_smarty_tpl->tpl_vars['tax']->value) {
                        $_smarty_tpl->tpl_vars['tax']->_loop = true;
                        $_smarty_tpl->tpl_vars['count']->value = $_smarty_tpl->tpl_vars['tax']->key;
                        if ($_smarty_tpl->tpl_vars['tax']->value['check_value'] == 1) {
                            if ($_smarty_tpl->tpl_vars['COUNTER']->value == 2) {
                                ?>
</tr><tr><?php 
                                $_smarty_tpl->tpl_vars["COUNTER"] = new Smarty_variable(1, null, 0);
                            } else {
                                $_smarty_tpl->tpl_vars["COUNTER"] = new Smarty_variable($_smarty_tpl->tpl_vars['COUNTER']->value + 1, null, 0);
                            }
                            ?>
<td class="fieldLabel <?php 
                            echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;
                            ?>
"><label class='muted pull-right marginRight10px'><?php 
                            echo vtranslate($_smarty_tpl->tpl_vars['tax']->value['taxlabel'], $_smarty_tpl->tpl_vars['MODULE']->value);
                            ?>
(%)</label></td><td class="fieldValue <?php 
                            echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;
                            ?>
"><span class="value"><?php 
                            echo $_smarty_tpl->tpl_vars['tax']->value['percentage'];
                            ?>
</span></td><?php 
                        }
                    }
                } elseif ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('uitype') == "69" || $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('uitype') == "105") {
                    if ($_smarty_tpl->tpl_vars['COUNTER']->value != 0) {
                        if ($_smarty_tpl->tpl_vars['COUNTER']->value == 2) {
                            ?>
</tr><tr><?php 
                            $_smarty_tpl->tpl_vars['COUNTER'] = new Smarty_variable(0, null, 0);
                        }
                    }
                    ?>
<td class="fieldLabel <?php 
                    echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;
                    ?>
"><label class="muted pull-right marginRight10px"><?php 
                    ob_start();
                    echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('label');
                    $_tmp3 = ob_get_clean();
                    ob_start();
                    echo $_smarty_tpl->tpl_vars['MODULE_NAME']->value;
                    $_tmp4 = ob_get_clean();
                    echo vtranslate($_tmp3, $_tmp4);
                    ?>
</label></td><td class="fieldValue <?php 
                    echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;
                    ?>
"><div id="imageContainer" width="300" height="200"><?php 
                    $_smarty_tpl->tpl_vars['IMAGE_INFO'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['IMAGE_INFO']->_loop = false;
                    $_smarty_tpl->tpl_vars['ITER'] = new Smarty_Variable();
                    $_from = $_smarty_tpl->tpl_vars['IMAGE_DETAILS']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars['IMAGE_INFO']->key => $_smarty_tpl->tpl_vars['IMAGE_INFO']->value) {
                        $_smarty_tpl->tpl_vars['IMAGE_INFO']->_loop = true;
                        $_smarty_tpl->tpl_vars['ITER']->value = $_smarty_tpl->tpl_vars['IMAGE_INFO']->key;
                        ob_start();
                        echo $_smarty_tpl->tpl_vars['IMAGE_INFO']->value['orgname'];
                        $_tmp5 = ob_get_clean();
                        if (!empty($_smarty_tpl->tpl_vars['IMAGE_INFO']->value['path']) && !empty($_tmp5)) {
                            ?>
<img src="<?php 
                            echo $_smarty_tpl->tpl_vars['IMAGE_INFO']->value['path'];
                            ?>
_<?php 
                            echo $_smarty_tpl->tpl_vars['IMAGE_INFO']->value['orgname'];
                            ?>
" width="300" height="200"><?php 
                        }
                    }
                    ?>
</div></td><?php 
                    $_smarty_tpl->tpl_vars['COUNTER'] = new Smarty_variable($_smarty_tpl->tpl_vars['COUNTER']->value + 1, null, 0);
                } else {
                    if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('uitype') == "20" || $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('uitype') == "19") {
                        if ($_smarty_tpl->tpl_vars['COUNTER']->value == '1') {
                            ?>
<td class="<?php 
                            echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;
                            ?>
"></td><td class="<?php 
                            echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;
                            ?>
"></td></tr><tr><?php 
                            $_smarty_tpl->tpl_vars['COUNTER'] = new Smarty_variable(0, null, 0);
                        }
                    }
                    if ($_smarty_tpl->tpl_vars['COUNTER']->value == 2) {
                        ?>
</tr><tr><?php 
                        $_smarty_tpl->tpl_vars['COUNTER'] = new Smarty_variable(1, null, 0);
                    } else {
                        $_smarty_tpl->tpl_vars['COUNTER'] = new Smarty_variable($_smarty_tpl->tpl_vars['COUNTER']->value + 1, null, 0);
                    }
                    ?>
<td class="fieldLabel <?php 
                    echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;
                    ?>
" id="<?php 
                    echo $_smarty_tpl->tpl_vars['MODULE_NAME']->value;
                    ?>
_detailView_fieldLabel_<?php 
                    echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getName();
                    ?>
" <?php 
                    if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getName() == 'description' || $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('uitype') == '69') {
                        ?>
 style='width:8%'<?php 
                    }
                    ?>
><label class="muted pull-right marginRight10px"><?php 
                    ob_start();
                    echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('label');
                    $_tmp6 = ob_get_clean();
                    ob_start();
                    echo $_smarty_tpl->tpl_vars['MODULE_NAME']->value;
                    $_tmp7 = ob_get_clean();
                    echo vtranslate($_tmp6, $_tmp7);
                    if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('uitype') == '72' && $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getName() == 'unit_price') {
                        ?>
(<?php 
                        echo $_smarty_tpl->tpl_vars['BASE_CURRENCY_SYMBOL']->value;
                        ?>
)<?php 
                    }
                    ?>
</label></td><td class="fieldValue <?php 
                    echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;
                    ?>
" id="<?php 
                    echo $_smarty_tpl->tpl_vars['MODULE_NAME']->value;
                    ?>
_detailView_fieldValue_<?php 
                    echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getName();
                    ?>
" <?php 
                    if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('uitype') == '19' || $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('uitype') == '20') {
                        ?>
 colspan="3" <?php 
                        $_smarty_tpl->tpl_vars['COUNTER'] = new Smarty_variable($_smarty_tpl->tpl_vars['COUNTER']->value + 1, null, 0);
                        ?>
 <?php 
                    }
                    ?>
><span class="value" data-field-type="<?php 
                    echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType();
                    ?>
" <?php 
                    if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('uitype') == '19' || $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('uitype') == '20' || $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('uitype') == '21') {
                        ?>
 style="white-space:normal;" <?php 
                    }
                    ?>
><?php 
                    echo $_smarty_tpl->getSubTemplate(vtemplate_path($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getUITypeModel()->getDetailViewTemplateName(), $_smarty_tpl->tpl_vars['MODULE_NAME']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('FIELD_MODEL' => $_smarty_tpl->tpl_vars['FIELD_MODEL']->value, 'USER_MODEL' => $_smarty_tpl->tpl_vars['USER_MODEL']->value, 'MODULE' => $_smarty_tpl->tpl_vars['MODULE_NAME']->value, 'RECORD' => $_smarty_tpl->tpl_vars['RECORD']->value), 0);
                    ?>
</span><?php 
                    if ($_smarty_tpl->tpl_vars['IS_AJAX_ENABLED']->value && $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isEditable() == 'true' && $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType() != Vtiger_Field_Model::REFERENCE_TYPE && $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isAjaxEditable() == 'true') {
                        ?>
<span class="hide edit"><?php 
                        echo $_smarty_tpl->getSubTemplate(vtemplate_path($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getUITypeModel()->getTemplateName(), $_smarty_tpl->tpl_vars['MODULE_NAME']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('FIELD_MODEL' => $_smarty_tpl->tpl_vars['FIELD_MODEL']->value, 'USER_MODEL' => $_smarty_tpl->tpl_vars['USER_MODEL']->value, 'MODULE' => $_smarty_tpl->tpl_vars['MODULE_NAME']->value), 0);
                        if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType() == 'multipicklist') {
                            ?>
<input type="hidden" class="fieldname" value='<?php 
                            echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('name');
                            ?>
[]' data-prev-value='<?php 
                            echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getDisplayValue($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue'));
                            ?>
' /><?php 
                        } else {
                            ?>
<input type="hidden" class="fieldname" value='<?php 
                            echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('name');
                            ?>
' data-prev-value='<?php 
                            echo Vtiger_Util_Helper::toSafeHTML($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getDisplayValue($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue')));
                            ?>
' /><?php 
                        }
                        ?>
</span><?php 
                    }
                    ?>
</td><?php 
                }
                if (count($_smarty_tpl->tpl_vars['FIELD_MODEL_LIST']->value) == 1 && $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('uitype') != "19" && $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('uitype') != "20" && $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('uitype') != "30" && $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('name') != "recurringtype" && $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('uitype') != "69" && $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('uitype') != "105") {
                    ?>
<td class="fieldLabel <?php 
                    echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;
                    ?>
"></td><td class="<?php 
                    echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;
                    ?>
"></td><?php 
                }
            }
            if (end($_smarty_tpl->tpl_vars['FIELD_MODEL_LIST']->value) == true && count($_smarty_tpl->tpl_vars['FIELD_MODEL_LIST']->value) != 1 && $_smarty_tpl->tpl_vars['COUNTER']->value == 1) {
                ?>
<td class="fieldLabel <?php 
                echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;
                ?>
"></td><td class="<?php 
                echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;
                ?>
"></td><?php 
            }
            ?>
</tr></tbody></table><br><?php 
        }
    }
    function content_5685e9aa54cfd($_smarty_tpl)
    {
        ?>
<span class="span2"><?php 
        $_smarty_tpl->tpl_vars['IMAGE_DETAILS'] = new Smarty_variable($_smarty_tpl->tpl_vars['RECORD']->value->getImageDetails(), null, 0);
        $_smarty_tpl->tpl_vars['IMAGE_INFO'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['IMAGE_INFO']->_loop = false;
        $_smarty_tpl->tpl_vars['ITER'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['IMAGE_DETAILS']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['IMAGE_INFO']->key => $_smarty_tpl->tpl_vars['IMAGE_INFO']->value) {
            $_smarty_tpl->tpl_vars['IMAGE_INFO']->_loop = true;
            $_smarty_tpl->tpl_vars['ITER']->value = $_smarty_tpl->tpl_vars['IMAGE_INFO']->key;
            if (!empty($_smarty_tpl->tpl_vars['IMAGE_INFO']->value['path'])) {
                ?>
<img src="<?php 
                echo $_smarty_tpl->tpl_vars['IMAGE_INFO']->value['path'];
                ?>
_<?php 
                echo $_smarty_tpl->tpl_vars['IMAGE_INFO']->value['orgname'];
                ?>
" alt="<?php 
                echo $_smarty_tpl->tpl_vars['IMAGE_INFO']->value['orgname'];
                ?>
" title="<?php 
                echo $_smarty_tpl->tpl_vars['IMAGE_INFO']->value['orgname'];
                ?>
" width="65" height="80" align="left"><br><?php 
            } else {
                ?>
<img src="<?php 
                echo vimage_path('summary_Contact.png');
                ?>
" class="summaryImg"/><?php 
            }
        }
        if (empty($_smarty_tpl->tpl_vars['IMAGE_DETAILS']->value)) {
            ?>
<img src="<?php 
            echo vimage_path('summary_Contact.png');
            ?>
" class="summaryImg"/><?php 
        }
        ?>
</span><span class="span8 margin0px"><span class="row-fluid"><h4 class="recordLabel pushDown" title="<?php 
        echo $_smarty_tpl->tpl_vars['RECORD']->value->getDisplayValue('salutationtype');
        ?>
&nbsp;<?php 
        echo $_smarty_tpl->tpl_vars['RECORD']->value->getName();
        ?>
"> &nbsp;<?php 
        if ($_smarty_tpl->tpl_vars['RECORD']->value->getDisplayValue('salutationtype')) {
            ?>
<span class="salutation"><?php 
            echo $_smarty_tpl->tpl_vars['RECORD']->value->getDisplayValue('salutationtype');
            ?>
</span>&nbsp;<?php 
        }
        $_smarty_tpl->tpl_vars['COUNTER'] = new Smarty_variable(0, null, 0);
        $_smarty_tpl->tpl_vars['NAME_FIELD'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['NAME_FIELD']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['MODULE_MODEL']->value->getNameFields();
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['NAME_FIELD']->key => $_smarty_tpl->tpl_vars['NAME_FIELD']->value) {
            $_smarty_tpl->tpl_vars['NAME_FIELD']->_loop = true;
            $_smarty_tpl->tpl_vars['FIELD_MODEL'] = new Smarty_variable($_smarty_tpl->tpl_vars['MODULE_MODEL']->value->getField($_smarty_tpl->tpl_vars['NAME_FIELD']->value), null, 0);
            if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getPermissions()) {
                ?>
<span class="<?php 
                echo $_smarty_tpl->tpl_vars['NAME_FIELD']->value;
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['RECORD']->value->get($_smarty_tpl->tpl_vars['NAME_FIELD']->value);
                ?>
</span><?php 
                if ($_smarty_tpl->tpl_vars['COUNTER']->value == 0 && $_smarty_tpl->tpl_vars['RECORD']->value->get($_smarty_tpl->tpl_vars['NAME_FIELD']->value)) {
                    ?>
&nbsp;<?php 
                    $_smarty_tpl->tpl_vars['COUNTER'] = new Smarty_variable($_smarty_tpl->tpl_vars['COUNTER']->value + 1, null, 0);
                }
            }
        }
        ?>
</h4></span><span class="row-fluid"><span class="title_label">&nbsp;<?php 
        echo $_smarty_tpl->tpl_vars['RECORD']->value->getDisplayValue('title');
        ?>
</span><?php 
        if ($_smarty_tpl->tpl_vars['RECORD']->value->getDisplayValue('account_id') && $_smarty_tpl->tpl_vars['RECORD']->value->getDisplayValue('title')) {
            ?>
&nbsp;<?php 
            echo vtranslate('LBL_AT');
            ?>
&nbsp;<?php 
        }
        echo $_smarty_tpl->tpl_vars['RECORD']->value->getDisplayValue('account_id');
        ?>
</span></span><?php 
    }
    function content_567d6302ceee3($_smarty_tpl)
    {
        ?>

<div class="row-fluid main-container">
	<div class="inner-container">
		<div class="row-fluid">
			<div class="span10">
				<h4><?php 
        echo vtranslate('LBL_WELCOME', 'Install');
        ?>
</h4>
			</div>
			<div class="span2">
				<a href="https://wiki.vtiger.com/vtiger6/" target="_blank" class="pull-right">
					<img src="<?php 
        echo vimage_path('help.png');
        ?>
" alt="Help-Icon"/>
				</a>
			</div>
		</div>
		<hr>

		<form class="form-horizontal" name="step2" method="get" action="index.php">
			<input type=hidden name="module" value="Install" />
			<input type=hidden name="view" value="Index" />
			<input type=hidden name="mode" value="Step3" />

			<div class="row-fluid">
			<div class="span12">
				<div class="license">
				<div class="lic-scroll">
					<p>PLEASE READ THE FOLLOWING LICENSE AGREEMENT CAREFULLY. ANY USE OF SOFTWARE DOWNLOADED OR ORDERED FROM VTIGER IS PERMITTED ONLY UNDER LICENSE WITH VTIGER. 
						BY DOWNLOADING THIS SOFTWARE YOU AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE AGREEMENT. 
					</p>
					<strong>
					<p style="font-size:15px;font-family:Verdana;">Vtiger Public Licence</p>
					</strong>
					<br>
					The vtiger Public License Version 1.2 is based on the Mozilla Public License Version 1.1 with the additional terms in Exhibit B. The original Mozilla Public License 1.1 can be found at: http://www.mozilla.org/MPL/MPL-1.1.html
					<br>
					vtiger Public License
					Version 1.2
					<br><br>
					Copyright (c) 2004-2013 www.vtiger.com All rights reserved.
					<br><br>
					<!--
									PLEASE READ THE FOLLOWING LICENSE AGREEMENT CAREFULLY. ANY USE OF SOFTWARE DOWNLOADED OR ORDERED FROM VTIGER IS PERMITTED ONLY UNDER LICENSE WITH VTIGER. BY DOWNLOADING THIS SOFTWARE YOU AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE AGREEMENT.
					--><ol>
					<li> Definitions.
						<dl>
						<dd>1.0 "Commercial Use" means distribution or otherwise making the Covered Code available to a third party.

						</dd><br><dd>1.1. "Contributor" means each entity that creates or contributes to the creation of Modifications.

						</dd><br><dd>1.2. "Contributor Version" means the combination of the Original Code, prior Modifications used by a Contributor, and the Modifications made by that particular Contributor.

						</dd><br><dd>1.3. "Covered Code" means the Original Code or Modifications or the combination of the Original Code and Modifications, in each case including portions thereof.

						</dd><br><dd>1.4. "Electronic Distribution Mechanism" means a mechanism generally accepted in the software development community for the electronic transfer of data.

						</dd><br><dd>1.5. "Executable" means Covered Code in any form other than Source Code.

						</dd><br><dd>1.6. "Initial Developer" means the individual or entity identified as the Initial Developer in the Source Code notice required by Exhibit A.

						</dd><br><dd>1.7. "Larger Work" means a work which combines Covered Code or portions thereof with code not governed by the terms of this License.

						</dd><br><dd>1.8. "License" means this document.
							<dl>
							<dd>1.8.1. "Licensable" means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently acquired, any and all of the rights conveyed herein.
							</dd></dl>
						</dd><br><dd>1.9. "Modifications" means any addition to or deletion from the substance or structure of either the Original Code or any previous Modifications. When Covered Code is released as a series of files, a Modification is:
							<dl>
							<dd>A. Any addition to or deletion from the contents of a file containing Original Code or previous Modifications.

							<dd>B. Any new file that contains any part of the Original Code or previous Modifications.</dd>
							</dl>
						</dd><br><dd>1.10. "Original Code" means Source Code of computer software code which is described in the Source Code notice required by Exhibit A as Original Code, and which, at the time of its release under this License is not already Covered Code governed by this License.

						</dd><br><dd>1.10.1. "Patent Claims" means any patent claim(s), now owned or hereafter acquired, including without limitation,  method, process, and apparatus claims, in any patent Licensable by grantor.

						</dd><br><dd>1.11. "Source Code" means the preferred form of the Covered Code for making modifications to it, including all modules it contains, plus any associated interface definition files, scripts used to control compilation and installation of an Executable, or source code differential comparisons against either the Original Code or another well known, available Covered Code of the Contributor's choice. The Source Code can be in a compressed or archival form, provided the appropriate decompression or de-archiving software is widely available for no charge.

						</dd><br><dd>1.12. "You" (or "Your")  means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License or a future version of this License issued under Section 6.1. For legal entities, "You" includes any entity which controls, is controlled by, or is under common control with You. For purposes of this definition, "control" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity.
						</dd></dl><br>
					</li><li>
						 Source Code License.
						<br>
						<dl>
						<dd> 2.1.The Initial Developer Grant.<br>
							The Initial Developer hereby grants You a world-wide, royalty-free, non-exclusive license, subject to third party intellectual property claims:
							<dl>
							<dd>(a) under intellectual property rights (other than patent or trademark) Licensable by Initial Developer to use, reproduce, modify, display, perform, sublicense and distribute the Original Code (or portions thereof) with or without Modifications, and/or as part of a Larger Work; and

							</dd><dd>(b) under Patents Claims infringed by the making, using or selling of Original Code, to make, have made, use, practice, sell, and offer for sale, and/or otherwise dispose of the Original Code (or portions thereof).
							</dd><dd>(c) the licenses granted in this Section 2.1(a) and (b) are effective on the date Initial Developer first distributes Original Code under the terms of this License.

							</dd><dd>(d) Notwithstanding Section 2.1(b) above, no patent license is granted: 1) for code that You delete from the Original Code; 2) separate from the Original Code;  or 3) for infringements caused by: i) the modification of the Original Code or ii) the combination of the Original Code with other software or devices.
							</dd></dl>
						</dd><br><dd>     2.2. Contributor Grant.
							Subject to third party intellectual property claims, each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license
							<dl>
							<dd>(a) under intellectual property rights (other than patent or trademark) Licensable by Contributor, to use, reproduce, modify, display, perform, sublicense and distribute the Modifications created by such Contributor (or portions thereof) either on an unmodified basis, with other Modifications, as Covered Code and/or as part of a Larger Work; and

							</dd><dd>(b) under Patent Claims infringed by the making, using, or selling of  Modifications made by that Contributor either alone and/or in combination with its Contributor Version (or portions of such combination), to make, use, sell, offer for sale, have made, and/or otherwise dispose of: 1) Modifications made by that Contributor (or portions thereof); and 2) the combination of  Modifications made by that Contributor with its Contributor Version (or portions of such combination).

							</dd><dd>(c) the licenses granted in Sections 2.2(a) and 2.2(b) are effective on the date Contributor first makes Commercial Use of the Covered Code.

							</dd><dd>(d) Notwithstanding Section 2.2(b) above, no patent license is granted: 1) for any code that Contributor has deleted from the Contributor Version; 2)  separate from the Contributor Version;  3)  for infringements caused by: i) third party modifications of Contributor Version or ii)  the combination of Modifications made by that Contributor with other software  (except as part of the Contributor Version) or other devices; or 4) under Patent Claims infringed by Covered Code in the absence of Modifications made by that Contributor.
							</dd></dl>
						</dd></dl><br>
					</li><li>
						 Distribution Obligations.
						<br>
						<dl><dd>3.1. Application of License.
      The Modifications which You create or to which You contribute are governed by the terms of this License, including without limitation Section 2.2. The Source Code version of Covered Code may be distributed only under the terms of this License or a future version of this License released under Section 6.1, and You must include a copy of this License with every copy of the Source Code You distribute. You may not offer or impose any terms on any Source Code version that alters or restricts the applicable version of this License or the recipients' rights hereunder. However, You may include an additional document offering the additional rights described in Section 3.5.

						</dd><br><dd>      3.2. Availability of Source Code.
      Any Modification which You create or to which You contribute must be made available in Source Code form under the terms of this License either on the same media as an Executable version or via an accepted Electronic Distribution Mechanism to anyone to whom you made an Executable version available; and if made available via Electronic Distribution Mechanism, must remain available for at least twelve (12) months after the date it initially became available, or at least six (6) months after a subsequent version of that particular Modification has been made available to such recipients. You are responsible for ensuring that the Source Code version remains available even if the Electronic Distribution Mechanism is maintained by a third party.

						</dd><br><dd>      3.3. Description of Modifications.
      You must cause all Covered Code to which You contribute to contain a file documenting the changes You made to create that Covered Code and the date of any change. You must include a prominent statement that the Modification is derived, directly or indirectly, from Original Code provided by the Initial Developer and including the name of the Initial Developer in (a) the Source Code, and (b) in any notice in an Executable version or related documentation in which You describe the origin or ownership of the Covered Code.

						</dd><br><dd>      3.4. Intellectual Property Matters
							<dl>
							<dd>(a) Third Party Claims.
            If Contributor has knowledge that a license under a third party's intellectual property rights is required to exercise the rights granted by such Contributor under Sections 2.1 or 2.2, Contributor must include a text file with the Source Code distribution titled "LEGAL" which describes the claim and the party making the claim in sufficient detail that a recipient will know whom to contact. If Contributor obtains such knowledge after the Modification is made available as described in Section 3.2, Contributor shall promptly modify the LEGAL file in all copies Contributor makes available thereafter and shall take other steps (such as notifying appropriate mailing lists or newsgroups) reasonably calculated to inform those who received the Covered Code that new knowledge has been obtained.

							</dd><dd>(b)Contributor APIs.
            If Contributor's Modifications include an application programming interface and Contributor has knowledge of patent licenses which are reasonably necessary to implement that API, Contributor must also include this information in the LEGAL file.

							</dd><dd>(c)Representations.
            Contributor represents that, except as disclosed pursuant to Section 3.4(a) above, Contributor believes that Contributor's Modifications are Contributor's original creation(s) and/or Contributor has sufficient rights to grant the rights conveyed by this License. 
							</dd>
							</dl>

						</dd><br><dd>      3.5. Required Notices.
							You must duplicate the notice in Exhibit A in each file of the Source Code.  If it is not possible to put such notice in a particular Source Code file due to its structure, then You must include such notice in a location (such as a relevant directory) where a user would be likely to look for such a notice.  If You created one or more Modification(s) You may add your name as a Contributor to the notice described in Exhibit A.  You must also duplicate this License in any documentation for the Source Code where You describe recipients' rights or ownership rights relating to Covered Code.  You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Code. However, You may do so only on Your own behalf, and not on behalf of the Initial Developer or any Contributor. You must make it absolutely clear than any such warranty, support, indemnity or liability obligation is offered by You alone, and You hereby agree to indemnify the Initial Developer and every Contributor for any liability incurred by the Initial Developer or such Contributor as a result of warranty, support, indemnity or liability terms You offer.

						</dd><br><dd>     3.6. Distribution of Executable Versions.
							You may distribute Covered Code in Executable form only if the requirements of Section 3.1-3.5 have been met for that Covered Code, and if You include a notice stating that the Source Code version of the Covered Code is available under the terms of this License, including a description of how and where You have fulfilled the obligations of Section 3.2. The notice must be conspicuously included in any notice in an Executable version, related documentation or collateral in which You describe recipients' rights relating to the Covered Code. You may distribute the Executable version of Covered Code or ownership rights under a license of Your choice, which may contain terms different from this License, provided that You are in compliance with the terms of this License and that the license for the Executable version does not attempt to limit or alter the recipient's rights in the Source Code version from the rights set forth in this License. If You distribute the Executable version under a different license You must make it absolutely clear that any terms which differ from this License are offered by You alone, not by the Initial Developer or any Contributor. You hereby agree to indemnify the Initial Developer and every Contributor for any liability incurred by the Initial Developer or such Contributor as a result of any such terms You offer.

						</dd><br><dd>     3.7. Larger Works.
							You may create a Larger Work by combining Covered Code with other code not governed by the terms of this License and distribute the Larger Work as a single product. In such a case, You must make sure the requirements of this License are fulfilled for the Covered Code.
						</dd></dl><br>
					</li><li>
						 Inability to Comply Due to Statute or Regulation.
						<br>
						<dl><dd>If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Code due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be included in the LEGAL file described in Section 3.4 and must be included with all distributions of the Source Code. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it. 
						</dd></dl><br>
					</li><li>
						 Application of this License.
						<br><dl><dd>
							This License applies to code to which the Initial Developer has attached the notice in Exhibit A and to related Covered Code. 
						</dd></dl><br>
					</li><li>
						 Versions of the License.
						<br>
						<dl><dd>      6.1. New Versions.
     vtiger may publish revised and/or new versions of the License from time to time. Each version will be given a distinguishing version number. 

						</dd><br><dd>      6.2. Effect of New Versions.
      Once Covered Code has been published under a particular version of the License, You may always continue to use it under the terms of that version. You may also choose to use such Covered Code under the terms of any subsequent version of the License published by vtiger. No one other than vtiger has the right to modify the terms applicable to Covered Code created under this License.

						</dd><br><dd>    6.3. Derivative Works.
     If You create or use a modified version of this License (which you may only do in order to apply it to code which is not already Covered Code governed by this License), You must (a) rename Your license so that the phrases "vtiger'or any confusingly similar phrase do not appear in your license (except to note that your license differs from this License) and (b) otherwise make it clear that Your version of the license contains terms which differ from the vtiger Public License. (Filling in the name of the Initial Developer, Original Code or Contributor in the notice described in Exhibit A shall not of themselves be deemed to be modifications of this License.)
						</dd></dl><br>
					</li><li>
						 DISCLAIMER OF WARRANTY.
						<dl><dd>
							COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER. 
						</dd></dl><br>
					</li><li>
						 TERMINATION.

						<dl><dd>
							8.1.  This License and the rights granted hereunder will terminate automatically if You fail to comply with terms herein and fail to cure such breach within 30 days of becoming aware of the breach. All sublicenses to the Covered Code which are properly granted shall survive any termination of this License. Provisions which, by their nature, must remain in effect beyond the termination of this License shall survive.

						</dd><br><dd>      8.2.  If You initiate litigation by asserting a patent infringement claim (excluding declatory judgment actions) against Initial Developer or a Contributor (the Initial Developer or Contributor against whom You file such action is referred to as "Participant")  alleging that:

							(a)  such Participant's Contributor Version directly or indirectly infringes any patent, then any and all rights granted by such Participant to You under Sections 2.1 and/or 2.2 of this License shall, upon 60 days notice from Participant terminate prospectively, unless if within 60 days after receipt of notice You either: (i)  agree in writing to pay Participant a mutually agreeable reasonable royalty for Your past and future use of Modifications made by such Participant, or (ii) withdraw Your litigation claim with respect to the Contributor Version against such Participant.  If within 60 days of notice, a reasonable royalty and payment arrangement are not mutually agreed upon in writing by the parties or the litigation claim is not withdrawn, the rights granted by Participant to You under Sections 2.1 and/or 2.2 automatically terminate at the expiration of the 60 day notice period specified above.

							(b)  any software, hardware, or device, other than such Participant's Contributor Version, directly or indirectly infringes any patent, then any rights granted to You by such Participant under Sections 2.1(b) and 2.2(b) are revoked effective as of the date You first made, used, sold, distributed, or had made, Modifications made by that Participant.

						</dd><br><dd>     8.3.  If You assert a patent infringement claim against Participant alleging that such Participant's Contributor Version directly or indirectly infringes any patent where such claim is resolved (such as by license or settlement) prior to the initiation of patent infringement litigation, then the reasonable value of the licenses granted by such Participant under Sections 2.1 or 2.2 shall be taken into account in determining the amount or value of any payment or license.

						</dd><br><dd>     8.4.  In the event of termination under Sections 8.1 or 8.2 above,  all end user license agreements (excluding distributors and resellers) which have been validly granted by You or any distributor hereunder prior to termination shall survive termination.
						</dd></dl><br>
					</li><li>
						 LIMITATION OF LIABILITY.
						<br><dl><dd>
							UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THIS EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU. 
						</dd></dl><br>
					</li><li>
						 U.S. GOVERNMENT END USERS.
						<br><dl><dd>
							The Covered Code is a "commercial item," as that term is defined in 48 C.F.R. 2.101 (Oct. 1995), consisting of "commercial computer software" and "commercial computer software documentation," as such terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48 C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995), all U.S. Government End Users acquire Covered Code with only those rights set forth herein. 
						</dd></dl><br>
					</li><li>
						 MISCELLANEOUS.
						<br><dl><dd>
							This License represents the complete agreement concerning subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. This License shall be governed by Indian laws (except to the extent applicable law, if any, provides otherwise), excluding its conflict-of-law provisions. With respect to disputes in which at least one party is a citizen of, or an entity chartered or registered to do business in India, any litigation relating to this License shall be subject to the jurisdiction of the Courts in Chennai, with venue lying in Tamil Nadu State, India, with the losing party responsible for costs, including without limitation, court costs and reasonable attorneys' fees and expenses. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not apply to this License.  
						</dd></dl><br>
					</li><li>
						 RESPONSIBILITY FOR CLAIMS.
						<br><dl><dd>
							As between Initial Developer and the Contributors, each party is responsible for claims and damages arising, directly or indirectly, out of its utilization of rights under this License and You agree to work with Initial Developer and Contributors to distribute such responsibility on an equitable basis. Nothing herein is intended or shall be deemed to constitute any admission of liability. 
						</dd></dl><br>
					</li><li>
						 MULTIPLE-LICENSED CODE.
						<br><dl><dd>
							Initial Developer may designate portions of the Covered Code as ^Multiple-Licensed^.  ^Multiple-Licensed^ means that the Initial Developer permits you to utilize portions of the Covered Code under Your choice of the MPL or the alternative licenses, if any, specified by the Initial Developer in the file described in Exhibit A. 
						</dd></dl><br>
					</li>
					</ol>
					EXHIBIT A -vtiger Public License.
					<br><br>
					"The contents of this file are subject to the vtiger Public License Version 1.1 (the "License"); you may not use this file except in compliance with the License."
					<br><br>
					Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
					<br><br>
					The Original Code is vtiger.
					<br><br>
					The Initial Developer of the Original Code is vtiger. Portions created by  vtiger are Copyright (C) www.vtiger.com. All Rights Reserved.
					<br><br>
					Contributor(s): ______________________________________.
					<br><br>
					[NOTE: The text of this Exhibit A may differ slightly from the text of the notices in the Source Code files of the Original Code. You should use the text of this Exhibit A rather than the text found in the Original Code Source Code for Your Modifications.]
					<br><br>
					EXHIBIT B - Vtiger CRM and Logo
					<br><br>
					This License does not grant any rights to use the trademarks "Vtiger" and "Vtiger CRM" and "Vtiger" logos even if such marks are included in the Original Code or Modifications.
					<br><br>
				</div>
				</div>
			</div>
			</div>
			<div class="row-fluid">
				<div class="span12">
					<div class="button-container">
						<input name="back" type="button" class="btn btn-large" value="<?php 
        echo vtranslate('LBL_DISAGREE', 'Install');
        ?>
"/>
						<input id="agree" type="submit" class="btn btn-large btn-primary" value="<?php 
        echo vtranslate('LBL_I_AGREE', 'Install');
        ?>
"/>
					</div>
				</div>
			</div>
		</form>
	</div>
</div><?php 
    }