<?php /* Smarty version Smarty-3.1.8, created on 2019-11-19 14:52:59
         compiled from "/home/stg70/public_html/agmc-v2/application/core/views/manage/standard/OfferSubmission.tpl" */ ?>
<?php /*%%SmartyHeaderCode:4100165505da8377cdce134-64809798%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'c0c95054eb14ac3ce9a7f0cf388ca4d141ef462d' => 
    array (
      0 => '/home/stg70/public_html/agmc-v2/application/core/views/manage/standard/OfferSubmission.tpl',
      1 => 1574160726,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '4100165505da8377cdce134-64809798',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5da8377ce825f1_66929408',
  'variables' => 
  array (
    'language' => 0,
    'view_styles' => 0,
    'view_javascript' => 0,
    'listBrand' => 0,
    'listSubmission' => 0,
    'drive' => 0,
    'date_format' => 0,
    'time_format' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5da8377ce825f1_66929408')) {function content_5da8377ce825f1_66929408($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include '/home/stg70/public_html/agmc-v2/library/template/plugins/modifier.date_format.php';
?><!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['lblMenuSpecialOfferSubmission'];?>
</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 ('CommonCustomStyles.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); ?>

			<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" />
			<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/table.plugin.js"></script>
			</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--> 
			  <!--***********************************************************************START CONTAINER SECTION******************************************************-->
			  <div class="content_container">
				<!--End: Right Block-->
				  <div class="content_wrapper">
					<h2><?php echo $_smarty_tpl->tpl_vars['language']->value['lblMenuSpecialOfferSubmission'];?>
</h2>
					<div class="inner_content_wrapper"> 
					  <div id="common_message"></div>
                                           <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->start(array('name'=>"formSearch",'action'=>'','method'=>"post",'enctype'=>"multipart/form-data"),$_smarty_tpl);?>

						<div class="search_container">
						  <div class="inner single-box">
							<ul class="clearfix">	
								<li class="column">
									<p class="label-field01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblMenuBrands'];?>
</p>
									<span class="form-field01">
										<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('class'=>"select-box",'name'=>"brandID",'caption'=>"->".($_smarty_tpl->tpl_vars['language']->value['lblSelect']),'options'=>$_smarty_tpl->tpl_vars['listBrand']->value),$_smarty_tpl);?>
			                 
									</span>
								</li>
								
								<li class="column">
									<p class="label-field01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblEmailID'];?>
</p>
									<span class="form-field01">
										<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('class'=>"select-box",'name'=>"searchEmail"),$_smarty_tpl);?>
 
										<span class="message_validation hide" id="validate_searchEmail"><?php echo $_smarty_tpl->tpl_vars['language']->value['errValidEmail'];?>
</span>											
										</span>
								</li>	
								
                                                                                <li class="column">
									<p class="label-field01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblOffer'];?>
</p>
									<span class="form-field01">
										<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('class'=>"select-box",'name'=>"searchOffer"),$_smarty_tpl);?>
 			                 
										</span>
								</li>
								<li class="column">
									<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->submit(array('name'=>"search",'value'=>($_smarty_tpl->tpl_vars['language']->value['lblSearch']),'class'=>"button01 margin-r-10"),$_smarty_tpl);?>
 
									<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"/offer/submissionlist/",'class'=>"action-link",'caption'=>($_smarty_tpl->tpl_vars['language']->value['lblListAll'])),$_smarty_tpl);?>

								</li>
							   </ul>
						  </div>
						</div>
						 <?php if ($_smarty_tpl->tpl_vars['listSubmission']->value){?>
						  <div class="sort_links">
							<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->submit(array('class'=>"button-link01 fixing_right",'name'=>"export",'value'=>$_smarty_tpl->tpl_vars['language']->value['lblExport']),$_smarty_tpl);?>

							 <div class="clear"></div>
						  </div>
						  <?php }?>
						<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->close(array(),$_smarty_tpl);?>

						
		
					  <?php if ($_smarty_tpl->tpl_vars['listSubmission']->value){?>
					  <div class="grid_table00"> 
					   <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->start(array('name'=>"formList",'action'=>'','method'=>"post",'enctype'=>"multipart/form-data"),$_smarty_tpl);?>
 
					   <table width="100%" border="0" cellspacing="0" cellpadding="0"   >
						  <tr>
						  
							<th  align="left" valign="middle"  width="6%"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblMenuBrands'];?>
</th>  
							<th  align="left" valign="middle"  width="12%"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblName'];?>
</th>
                                                        <th  align="left" valign="middle"  width="10%"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblPhone'];?>
</th>
							<th  align="left" valign="middle"  width="15%"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblEmailID'];?>
</th>
                                                        <th  align="left" valign="middle"  width="15%"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblShowroom'];?>
</th>
                                                        <th  align="left" valign="middle"  width="20%"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblOffer'];?>
</th>
														 <th  align="left" valign="middle"  width="18%"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblWhereDidYouFindUs'];?>
</th>
														 <th  align="left" valign="middle"  width="10%"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblCreatedDate'];?>
</th>
						  </tr>
		
						  <?php  $_smarty_tpl->tpl_vars['drive'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['drive']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['listSubmission']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['drive']->key => $_smarty_tpl->tpl_vars['drive']->value){
$_smarty_tpl->tpl_vars['drive']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['drive']->key;
?>
						
						  <tr class="shade01">
								<td align="left" valign="middle">
									<?php echo $_smarty_tpl->tpl_vars['drive']->value['brandName'];?>

								</td>
								<td align="left" valign="middle">
									<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['decode_str'][0][0]->getDecodeString($_smarty_tpl->tpl_vars['drive']->value['customer_name']);?>

								</td>
								<td align="left" valign="middle">
									<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['decode_str'][0][0]->getDecodeString($_smarty_tpl->tpl_vars['drive']->value['customer_phone']);?>

								</td>
								<td align="left" valign="middle">
									<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['decode_str'][0][0]->getDecodeString($_smarty_tpl->tpl_vars['drive']->value['emailID']);?>

								</td>
                                                                <td align="left" valign="middle">
									<?php echo $_smarty_tpl->tpl_vars['drive']->value['name'];?>

								</td>
                                                                 <td align="left" valign="middle">
									<?php echo $_smarty_tpl->tpl_vars['drive']->value['offerTitle'];?>

								</td>
								 <td align="left" valign="middle"><?php echo $_smarty_tpl->tpl_vars['drive']->value['findus'];?>
</td>
								 <td align="left" valign="middle">
								 <?php if ($_smarty_tpl->tpl_vars['drive']->value['CreatedDate']!='0000-00-00 00:00:00'){?>
									<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['drive']->value['CreatedDate'],$_smarty_tpl->tpl_vars['date_format']->value);?>
 <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['drive']->value['CreatedDate'],$_smarty_tpl->tpl_vars['time_format']->value);?>

								 <?php }?>
								 </td>
						  </tr>
						  <?php } ?>
						 
						</table>
						</div>
						<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->close(array(),$_smarty_tpl);?>

						<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);?>
 </div>
						<div class="clear"></div>
						<?php }else{ ?>
						<div class="message_info" id="common_message"><?php echo $_smarty_tpl->tpl_vars['language']->value['msgNoRecords'];?>
</div>
						<?php }?>
					  <!--End:From Listing--> 
					</div>
					<!--End:Border 3--> 
				  </div>
				  <!--End:Border 2--> 
				<!--End: left Block-->
				<div class="clear"></div>
			  </div>
			  <!--End: Content--> 
	
			  <?php echo $_smarty_tpl->getSubTemplate ('CommonBottom.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
 </div>
			<!--***********************************************************************END CONTAINER SECTION******************************************************--> 
			<!--End:Content Container--> 
			<!--End:Outer Container--> 
			<?php echo $_smarty_tpl->getSubTemplate ('CommonJavaScriptBottom.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
 
			
			<script type="text/javascript">
			var msgDeleteItem	= "<?php echo $_smarty_tpl->tpl_vars['language']->value['msgDeleteItem'];?>
";
			var msgSelectItem	= "<?php echo $_smarty_tpl->tpl_vars['language']->value['msgSelectItem'];?>
";
			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'];?>
";
			</script>
                        <script type="text/javascript">
                        	$(document).on('click', "#search", function () 
	{
            if ($.trim($('#searchEmail').val()) == "" && $.trim($('#searchShowroom').val()) == ""  && $.trim($('#searchOffer').val()) == "" && $.trim($('#brandID').val()) == "" ) {
            jAlert(msgSelectSearchCriteria);
            return false;
        }
		
		var searchEmail = $('#searchEmail').val();
        var reg = /^[A-Z0-9._%+-]+@(?:[A-Z0-9-]+\.)+[A-Z]{2,4}$/i;
        if ((searchEmail == "") || reg.test(searchEmail)) {
            $('#validate_searchEmail').addClass('hide');
        } else {
			$('#validate_searchEmail').removeClass('hide')
            return false;
        }
		
        return true;
            
        });
            </script>
		
			<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->messages_script(array('id'=>"common_message"),$_smarty_tpl);?>

			</body>
			</html>

		<?php }} ?>