<?php /* Smarty version Smarty-3.1.8, created on 2021-01-24 10:53:42
         compiled from "/home/agmc/beta/application/core/views/manage/standard/FormSubmissions.tpl" */ ?>
<?php /*%%SmartyHeaderCode:18873193255e79dd9558f944-55819776%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '3c507fc5802c77d68868fb5e837e92286eb64354' => 
    array (
      0 => '/home/agmc/beta/application/core/views/manage/standard/FormSubmissions.tpl',
      1 => 1605520856,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '18873193255e79dd9558f944-55819776',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5e79dd95652982_82392183',
  'variables' => 
  array (
    'language' => 0,
    'common_js' => 0,
    'view_styles' => 0,
    'addPrivilege' => 0,
    'editPrivilege' => 0,
    'formID' => 0,
    'resultForm' => 0,
    'searchField' => 0,
    'field' => 0,
    'resSubmissions' => 0,
    'resultElement' => 0,
    'element' => 0,
    'formElementName' => 0,
    'cstatusPrivilege' => 0,
    'showPrivilege' => 0,
    'deletePrivilege' => 0,
    'extraAttributes' => 0,
    'date_format' => 0,
    'attributeType' => 0,
    'formElementID' => 0,
    'view_javascript' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5e79dd95652982_82392183')) {function content_5e79dd95652982_82392183($_smarty_tpl) {?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $_smarty_tpl->tpl_vars['language']->value['lblAdmin'];?>
 : <?php echo $_smarty_tpl->tpl_vars['language']->value['lblFormSubmission'];?>
</title>
<?php echo $_smarty_tpl->getSubTemplate ('CommonStyles.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

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

<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['common_js']->value;?>
/jsrender.plugin.js"></script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['common_js']->value;?>
/dateformat.plugin.js"></script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['common_js']->value;?>
/jsrender.helper.js"></script>
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/grid_listing.css" />
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/right-menu.css" />
<link href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/jquery-ui-1.8.19.custom.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/ui.daterangepicker.css" />
<?php echo $_smarty_tpl->getSubTemplate ('CommonCustomStyles.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

</head>
<body>
<div class="outer_container"> <?php echo $_smarty_tpl->getSubTemplate ('CommonTop.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

  <!--End:Header Container-->
  <!--*****************************************************END HEADER CONTAINER**********************************************-->
  <div class="content_container2 clearfix">
    <div class="right-sidebar">
      <div class="side_wrapper"><?php if ($_smarty_tpl->tpl_vars['addPrivilege']->value){?> <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('priv_href'=>"form/new/",'href'=>"form/new/",'caption'=>"<strong><span class='add'></span>".($_smarty_tpl->tpl_vars['language']->value['lblAddNewForm'])."</strong>",'class'=>"custom-btnt"),$_smarty_tpl);?>
<?php }?>
        <ul>
          <li><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('priv_href'=>"form/index/",'href'=>"/form/index/",'rel'=>"listcontentsection",'class'=>"side_menu_a ",'content'=>($_smarty_tpl->tpl_vars['language']->value['lblListForms'])."<br />
            <span>".($_smarty_tpl->tpl_vars['language']->value['lblManageForms'])."</span>"),$_smarty_tpl);?>
 </li>		
			<li><?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value){?>
				<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('priv_href'=>"form/build/",'href'=>"form/build/id/".($_smarty_tpl->tpl_vars['formID']->value)."/",'class'=>"side_menu_a",'content'=>($_smarty_tpl->tpl_vars['language']->value['lblEditForm'])."<br /><span>".($_smarty_tpl->tpl_vars['language']->value['lblEditThisForm'])."</span>"),$_smarty_tpl);?>
 
			<?php }?>
			</li>	
        </ul>
      </div>
    </div>
    <!--End: Right Block-->
    <div class="left_wrapper">
      <div class="content_wrapper">
        <h2><?php echo $_smarty_tpl->tpl_vars['language']->value['lblForms'];?>
 - <?php echo $_smarty_tpl->tpl_vars['resultForm']->value['formName'];?>
 </h2><?php if ($_smarty_tpl->tpl_vars['resultForm']->value['formStatus']=='Inactive'){?><?php echo $_smarty_tpl->tpl_vars['language']->value['lblInactive'];?>
<?php }?>
        <div class="clear"></div>
        <div id="common_message" ></div>
		<div class="clearfix"><?php echo $_smarty_tpl->getSubTemplate ('ContentLanguageOptions.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
</div>
           <div class="search_container">
            <div class="inner wide-box"> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->start(array('name'=>"formContentSearch",'action'=>'','method'=>"post",'enctype'=>"multipart/form-data"),$_smarty_tpl);?>
              <ul class="clearfix">
            	<li class="column">
                	<p class="label-field01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblSubmittedDate'];?>
</p>
                    <span class="form-field01">
				     <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('class'=>"select-box width-234px",'name'=>"searchSubmittedDate"),$_smarty_tpl);?>
 
                   </span>
                </li>
				<?php  $_smarty_tpl->tpl_vars['field'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['field']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['searchField']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['field']->key => $_smarty_tpl->tpl_vars['field']->value){
$_smarty_tpl->tpl_vars['field']->_loop = true;
?> 
					<?php if ($_smarty_tpl->tpl_vars['field']->value['type']=='text'||$_smarty_tpl->tpl_vars['field']->value['type']=='email'||$_smarty_tpl->tpl_vars['field']->value['type']=='textarea'||$_smarty_tpl->tpl_vars['field']->value['type']=='website'){?>
					<li class="column">
						<p class="label-field01"><?php echo $_smarty_tpl->tpl_vars['field']->value['label'];?>
</p>
						<span class="form-field01">
						 <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('class'=>"textbox width-234px",'name'=>($_smarty_tpl->tpl_vars['field']->value['name'])),$_smarty_tpl);?>
 
					   </span>
					</li>
					<?php }elseif($_smarty_tpl->tpl_vars['field']->value['type']=='select'||$_smarty_tpl->tpl_vars['field']->value['type']=='checkbox'||$_smarty_tpl->tpl_vars['field']->value['type']=='radio'){?>
					<li class="column">
						<p class="label-field01"><?php echo $_smarty_tpl->tpl_vars['field']->value['label'];?>
</p>
						<span class="form-field01">
						 <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('class'=>"select-box width-234px",'caption'=>"->".($_smarty_tpl->tpl_vars['language']->value['lblSelect']),'options'=>$_smarty_tpl->tpl_vars['field']->value['options'],'name'=>($_smarty_tpl->tpl_vars['field']->value['name'])),$_smarty_tpl);?>
 
					   </span>
					</li>
					<?php }elseif($_smarty_tpl->tpl_vars['field']->value['type']=='country'){?>
					<li class="column">
						<p class="label-field01"><?php echo $_smarty_tpl->tpl_vars['field']->value['label'];?>
</p>
						<span class="form-field01">
						 <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('class'=>"select-box width-234px",'caption'=>"->".($_smarty_tpl->tpl_vars['language']->value['lblSelect']),'options'=>$_smarty_tpl->tpl_vars['field']->value['options'],'name'=>($_smarty_tpl->tpl_vars['field']->value['name'])),$_smarty_tpl);?>
 
					   </span>
					</li>
					<?php }elseif($_smarty_tpl->tpl_vars['field']->value['type']=='businesstype'){?>
					<li class="column">
						<p class="label-field01"><?php echo $_smarty_tpl->tpl_vars['field']->value['label'];?>
</p>
						<span class="form-field01">
						 <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('class'=>"select-box width-234px",'content'=>$_smarty_tpl->tpl_vars['field']->value['options'],'name'=>($_smarty_tpl->tpl_vars['field']->value['name'])),$_smarty_tpl);?>
 
					   </span>
					</li>
					<?php }elseif($_smarty_tpl->tpl_vars['field']->value['type']=='date'){?>
					<li class="column">
						<p class="label-field01"><?php echo $_smarty_tpl->tpl_vars['field']->value['label'];?>
</p>
						<span class="form-field01">
						 <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['field']->value['name'];?>
<?php $_tmp1=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>$_tmp1,'class'=>"textbox width-234px"),$_smarty_tpl);?>

									<script type="text/javascript">
											//<![CDATA[
                                            $(document).ready(function(){
												$("#<?php echo $_smarty_tpl->tpl_vars['field']->value['name'];?>
").datepicker();
											});
											//]]>
									</script>	
					   </span>
					</li>
					 <?php }?>
				<?php } ?>
                <li class="column"> 
				<?php if (count($_smarty_tpl->tpl_vars['searchField']->value)%4!=0||count($_smarty_tpl->tpl_vars['searchField']->value)==0){?>
                <p class="label-field01">&nbsp;</p>   
				<?php }?>             	
                    <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->submit(array('name'=>"submitSearch",'tabindex'=>"1",'class'=>"button01",'value'=>($_smarty_tpl->tpl_vars['language']->value['lblSearch'])),$_smarty_tpl);?>
 
                    <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"/form/submission/id/".($_smarty_tpl->tpl_vars['formID']->value)."/",'tabindex'=>"1",'caption'=>$_smarty_tpl->tpl_vars['language']->value['lblListAll'],'class'=>"action-link"),$_smarty_tpl);?>

                </li>
              </ul>
              <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->close(array(),$_smarty_tpl);?>

              <div class="clear"></div>
            </div>
           </div>
        <?php if ($_smarty_tpl->tpl_vars['resSubmissions']->value){?>
		<div class="clearfix">
        <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('class'=>"button-link01 fixing_right",'href'=>"/form/export/type/submission/id/".($_smarty_tpl->tpl_vars['formID']->value)."/",'content'=>($_smarty_tpl->tpl_vars['language']->value['lblExport'])),$_smarty_tpl);?>
</div>
        <div class="grid_table00 submission-list"><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->start(array('name'=>"frmContentList",'action'=>'','method'=>"post"),$_smarty_tpl);?>

          <table width="100%" border="0" cellspacing="0" cellpadding="0" id="contentList" >			
			<thead id="submissionlistHead">
            </thead>
			<tbody id="submissionlistBody">
			</tbody>			
			<script id="submissionlistHeadData" type="text/x-jsrender">
				<tr class="nodrag nodrop">
					<th align="left" valign="middle"  class="checkbox_column" width="35"> 
						<div class="chekingdiv">
							<ul>
							  <li>
								 <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('id'=>"ListStatusLinkCheckbox",'class'=>"fixing_left",'tabindex'=>"1"),$_smarty_tpl);?>

							
							  </li>
							</ul>
						</div>						
					</th>
					<?php  $_smarty_tpl->tpl_vars['element'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['element']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['resultElement']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['element']->key => $_smarty_tpl->tpl_vars['element']->value){
$_smarty_tpl->tpl_vars['element']->_loop = true;
?>
						<?php $_smarty_tpl->tpl_vars["formElementName"] = new Smarty_variable((($_smarty_tpl->tpl_vars['element']->value['attributeType']).("_")).($_smarty_tpl->tpl_vars['element']->value['formElementID']), null, 0);?>
						[[if ~<?php echo $_smarty_tpl->tpl_vars['formElementName']->value;?>
]] 	
							<?php if ($_smarty_tpl->tpl_vars['element']->value['attributeType']!='html'&&$_smarty_tpl->tpl_vars['element']->value['attributeType']!='submit'&&$_smarty_tpl->tpl_vars['element']->value['attributeType']!='text_opt'){?>
								<th align="left" valign="middle"><?php echo $_smarty_tpl->tpl_vars['element']->value['formElementLabel'];?>
</th>
							<?php }?>
						[[/if]] 	
					<?php } ?>
					[[if ~submittedIP]] 
						<th align="left" valign="middle"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblSubmittedIP'];?>
</th>
					[[/if]]		
					<th align="left" valign="middle"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblCreatedDate'];?>
</th>
					</th>
					<?php if ($_smarty_tpl->tpl_vars['cstatusPrivilege']->value||$_smarty_tpl->tpl_vars['showPrivilege']->value||$_smarty_tpl->tpl_vars['deletePrivilege']->value){?> 
					<th width="70" align="left" valign="middle">
					 <span>
						<div class="tool-tip02 fieldlist"> 
							<div class="main-strip clearfix">
								<span class="arw"></span> <span class="arw1"></span> 
							</div>
							<div class="list-box">
							<?php  $_smarty_tpl->tpl_vars['element'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['element']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['resultElement']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['element']->key => $_smarty_tpl->tpl_vars['element']->value){
$_smarty_tpl->tpl_vars['element']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['element']->key;
?>
							<?php $_smarty_tpl->tpl_vars["formElementName"] = new Smarty_variable((($_smarty_tpl->tpl_vars['element']->value['attributeType']).("_")).($_smarty_tpl->tpl_vars['element']->value['formElementID']), null, 0);?>
							<?php if ($_smarty_tpl->tpl_vars['element']->value['attributeType']!='html'&&$_smarty_tpl->tpl_vars['element']->value['attributeType']!='submit'&&$_smarty_tpl->tpl_vars['element']->value['attributeType']!='text_opt'&&$_smarty_tpl->tpl_vars['element']->value['attributeType']!='file'&&$_smarty_tpl->tpl_vars['element']->value['attributeType']!='image'){?>
								<div class="elements sub-strip clearfix"  data-element="<?php echo $_smarty_tpl->tpl_vars['formElementName']->value;?>
">
											[[if ~<?php echo $_smarty_tpl->tpl_vars['formElementName']->value;?>
]] 	
											<span class="clmn c1">
												<span class="show02 icon-set" title="<?php echo $_smarty_tpl->tpl_vars['language']->value['lblShow'];?>
"></span>
											</span>
											[[/if]]
											<span class="clmn c2"><?php echo $_smarty_tpl->tpl_vars['element']->value['formElementLabel'];?>
</span>
								</div>
								<?php }?>
							<?php } ?>
								<div class="elements sub-strip clearfix"  data-element="submittedIP">
											[[if ~submittedIP]] 	
											<span class="clmn c1">
												<span class="show02 icon-set" title=" title="<?php echo $_smarty_tpl->tpl_vars['language']->value['lblShow'];?>
"></span>
											</span>
											[[/if]]
											<span class="clmn c2"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblSubmittedIP'];?>
</span>
								</div>
							</div>
						</div>
					  </span>	
					</th><?php }?>
              </tr>
			</script>
			<script id="submissionlistBodyData" type="text/x-jsrender">
				<tr>
					<td align="left" >
					<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('name'=>"submissions[]",'value'=>"[[>submissionDetailsID]]",'class'=>"checkbox01 ListAll List[[>submittedDataStatus]]"),$_smarty_tpl);?>

					</td>      
					<?php  $_smarty_tpl->tpl_vars['element'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['element']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['resultElement']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['element']->key => $_smarty_tpl->tpl_vars['element']->value){
$_smarty_tpl->tpl_vars['element']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['element']->key;
?>
						<?php $_smarty_tpl->tpl_vars['extraAttributes'] = new Smarty_variable(json_decode($_smarty_tpl->tpl_vars['element']->value['extraAttributes']), null, 0);?>
						<?php if ($_smarty_tpl->tpl_vars['element']->value['attributeType']!='html'&&$_smarty_tpl->tpl_vars['element']->value['attributeType']!='submit'&&$_smarty_tpl->tpl_vars['element']->value['attributeType']!='text_opt'){?>
							<?php $_smarty_tpl->tpl_vars["formElementName"] = new Smarty_variable((($_smarty_tpl->tpl_vars['element']->value['attributeType']).("_")).($_smarty_tpl->tpl_vars['element']->value['formElementID']), null, 0);?>
								[[if ~<?php echo $_smarty_tpl->tpl_vars['formElementName']->value;?>
]] 	
									
								<?php if (isset($_smarty_tpl->tpl_vars['extraAttributes']->value->allowUserChoice->child)&&$_smarty_tpl->tpl_vars['extraAttributes']->value->allowUserChoice->child!=''){?>
									<td align="left" valign="middle">	
										[[><?php echo $_smarty_tpl->tpl_vars['formElementName']->value;?>
]] 
										[[><?php echo $_smarty_tpl->tpl_vars['extraAttributes']->value->allowUserChoice->child;?>
]]
									</td>
								<?php }else{ ?>
									<td align="left" valign="middle">	
										<?php if ($_smarty_tpl->tpl_vars['element']->value['attributeType']=='date'){?>
											[[if <?php echo $_smarty_tpl->tpl_vars['formElementName']->value;?>
!='0000-00-00 00:00:00']] 	
												[[>~formatDate(<?php echo $_smarty_tpl->tpl_vars['formElementName']->value;?>
,'<?php echo $_smarty_tpl->tpl_vars['date_format']->value;?>
',true)]] 	
											[[else]] 	
												-
											[[/if]] 	
										<?php }else{ ?>
											[[if <?php echo $_smarty_tpl->tpl_vars['formElementName']->value;?>
!='-']] 	
												[[><?php echo $_smarty_tpl->tpl_vars['formElementName']->value;?>
]] 	
											[[else]] 	
												-
											[[/if]] 	
										<?php }?>
									</td>
								<?php }?>
								[[/if]] 	
						<?php }?>
					<?php } ?>
					[[if ~submittedIP]] 
						<td align="left" valign="middle">
							[[>submittedIP]] 	
						</td>
					[[/if]]		
						<td align="left" valign="middle">
								[[>~formatDate(dateSubmitted,'<?php echo $_smarty_tpl->tpl_vars['date_format']->value;?>
',true)]] 	
						</td>	
<?php if ($_smarty_tpl->tpl_vars['cstatusPrivilege']->value||$_smarty_tpl->tpl_vars['showPrivilege']->value||$_smarty_tpl->tpl_vars['deletePrivilege']->value){?> 								
					<td align="left" valign="top"> 
					<?php if ($_smarty_tpl->tpl_vars['cstatusPrivilege']->value){?>
					[[if submittedDataStatus=='Active']]
						<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('ajax_href'=>"/form/changeSubmissionStatus/formid/".($_smarty_tpl->tpl_vars['formID']->value)."/id/[[>submissionDetailsID]]/status/Inactive",'title'=>"[[>submittedDataStatus]]",'class'=>"changeStatus status-active icon-set",'content'=>''),$_smarty_tpl);?>

					[[else]]
						<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('ajax_href'=>"/form/changeSubmissionStatus/formid/".($_smarty_tpl->tpl_vars['formID']->value)."/id/[[>submissionDetailsID]]/status/Active",'title'=>"[[>submittedDataStatus]]",'class'=>"changeStatus status-inactive icon-set",'content'=>''),$_smarty_tpl);?>

					[[/if]]
					<?php }?>
					<?php if ($_smarty_tpl->tpl_vars['showPrivilege']->value){?>
					<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"form/showsubmission/formid/".($_smarty_tpl->tpl_vars['formID']->value)."/did/[[>submissionDetailsID]]/",'title'=>($_smarty_tpl->tpl_vars['language']->value['lblPreview']),'history'=>"yes",'class'=>"preview icon-set",'content'=>''),$_smarty_tpl);?>

					<?php }?>
					<?php if ($_smarty_tpl->tpl_vars['deletePrivilege']->value){?>
					<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"form/submissiondestroy/formid/".($_smarty_tpl->tpl_vars['formID']->value)."/did/[[>submissionDetailsID]]/",'title'=>($_smarty_tpl->tpl_vars['language']->value['lblDelete']),'history'=>"yes",'content'=>'','class'=>"delete02 icon-set",'confirm'=>($_smarty_tpl->tpl_vars['language']->value['msgSelectAtleastOne']),'confirm_head'=>($_smarty_tpl->tpl_vars['language']->value['lblDelete'])),$_smarty_tpl);?>

				  <?php }?>
				  </td>
				  <?php }?>
				</tr>
			</script>
			<script type="text/javascript">
				var data=<?php echo json_encode($_smarty_tpl->tpl_vars['resSubmissions']->value);?>
;
				var show={ submittedIP:false};
				<?php  $_smarty_tpl->tpl_vars['element'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['element']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['resultElement']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['element']->key => $_smarty_tpl->tpl_vars['element']->value){
$_smarty_tpl->tpl_vars['element']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['element']->key;
?>
					<?php $_smarty_tpl->tpl_vars["formElementID"] = new Smarty_variable($_smarty_tpl->tpl_vars['element']->value['formElementID'], null, 0);?>
					<?php $_smarty_tpl->tpl_vars["attributeType"] = new Smarty_variable($_smarty_tpl->tpl_vars['element']->value['attributeType'], null, 0);?>
					<?php $_smarty_tpl->tpl_vars["formElementName"] = new Smarty_variable((($_smarty_tpl->tpl_vars['attributeType']->value).("_")).($_smarty_tpl->tpl_vars['formElementID']->value), null, 0);?>
					<?php $_smarty_tpl->tpl_vars["extraAttributes"] = new Smarty_variable(json_decode($_smarty_tpl->tpl_vars['element']->value['extraAttributes']), null, 0);?>
					<?php if ((isset($_smarty_tpl->tpl_vars['extraAttributes']->value->defaults->showInList)&&$_smarty_tpl->tpl_vars['extraAttributes']->value->defaults->showInList=='true')&&$_smarty_tpl->tpl_vars['attributeType']->value!='file'&&$_smarty_tpl->tpl_vars['attributeType']->value!='image'){?>
						show['<?php echo $_smarty_tpl->tpl_vars['formElementName']->value;?>
']=true;
					<?php }else{ ?>
						show['<?php echo $_smarty_tpl->tpl_vars['formElementName']->value;?>
']=false;
					<?php }?>
				<?php } ?>
				function switchTemplates() {
					html=$( "#submissionlistBodyData" ).render( data ,show);
					$( "#submissionlistBody" ).html( html );
					html=$( "#submissionlistHeadData" ).render({},show);
					$( "#submissionlistHead" ).html( html );
				}
				switchTemplates();
			</script>	
          </table>
        </div>
         <div class="fixing_right pagination_outer"> <?php echo $_smarty_tpl->smarty->registered_objects['paginate'][0]->layout(array('key'=>"page",'label_record'=>($_smarty_tpl->tpl_vars['language']->value['lblRecorsFound']),'label_pages'=>($_smarty_tpl->tpl_vars['language']->value['lblPages'])),$_smarty_tpl);?>
 
          <!--end: Pagination-->
          <div class="clear"></div>
        </div>
		<?php if ($_smarty_tpl->tpl_vars['cstatusPrivilege']->value){?>
        <div class="fixing_left"><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('name'=>"submissionStatus",'class'=>"select-box width-auto",'options'=>"->Select~*Active->".($_smarty_tpl->tpl_vars['language']->value['lblActive'])."~*Inactive->".($_smarty_tpl->tpl_vars['language']->value['lblInactive'])."~*Deleted->".($_smarty_tpl->tpl_vars['language']->value['lblDelete'])),$_smarty_tpl);?>

          <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->submit(array('name'=>"submitBulkStatus",'id'=>"submitBulkStatus",'class'=>"update_btn_table button04",'value'=>$_smarty_tpl->tpl_vars['language']->value['lblUpdate']),$_smarty_tpl);?>
 </div><?php }?>
        <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->close(array(),$_smarty_tpl);?>

        <div class="clear"></div>
        <?php }else{ ?>
        <div class="message_info" id="common_message"><?php echo $_smarty_tpl->tpl_vars['language']->value['msgNoRecords'];?>
</div>
        <?php }?>
	    </div> 
        <!--End:From Listing-->
      </div>
    </div>
    <!--End: left Block-->
    <div class="clear"></div>
  </div>
  <!--End:Content Container-->
  <?php echo $_smarty_tpl->getSubTemplate ('CommonBottom.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
 </div>
<!--End:Outer Container-->
<?php echo $_smarty_tpl->getSubTemplate ('CommonJavaScriptBottom.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->messages_script(array('id'=>"common_message"),$_smarty_tpl);?>

<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->rootpath_script(array(),$_smarty_tpl);?>

<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->basepath_script(array(),$_smarty_tpl);?>

<script type="text/javascript">
	var lblSelectAction	= '<?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelectAction'];?>
';
	var lblSelectItem	= '<?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelectItem'];?>
';
	var msgSelectSearchCriteria="<?php echo $_smarty_tpl->tpl_vars['language']->value['msgSelectSearchCriteria'];?>
";
	var lblSelectStatus	= '<?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelectStatus'];?>
';
	var msgSelectItem	= '<?php echo $_smarty_tpl->tpl_vars['language']->value['msgSelectItem'];?>
';
	var msgDeleteItem	= '<?php echo $_smarty_tpl->tpl_vars['language']->value['msgDeleteItem'];?>
';
</script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/daterangepicker.jQuery.js"></script> 
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/table.plugin.js"></script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/jquery.multiselect.widget.js"></script> 
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['common_js']->value;?>
/date.js"></script> 
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/formsubmissions.page.js"></script>

</body>
</html><?php }} ?>