<?php /* Smarty version Smarty-3.1.8, created on 2020-12-14 10:55:39
         compiled from "/home/agmc/beta/application/core/views/manage/standard/Forms.tpl" */ ?>
<?php /*%%SmartyHeaderCode:423832325e79dd8f254391-11331545%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '903b21b71858f1858b40516433f7780a1305cb8e' => 
    array (
      0 => '/home/agmc/beta/application/core/views/manage/standard/Forms.tpl',
      1 => 1605520856,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '423832325e79dd8f254391-11331545',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5e79dd8f350660_09348391',
  'variables' => 
  array (
    'language' => 0,
    'view_styles' => 0,
    'adminUsers' => 0,
    'searchCreatedBy' => 0,
    'listBrand' => 0,
    'sortby' => 0,
    'resultForm' => 0,
    'orderby' => 0,
    'links' => 0,
    'link' => 0,
    'cproductkey' => 0,
    'cproducttitle' => 0,
    'cbusinessname' => 0,
    'cproductcreateddate' => 0,
    'editPrivilege' => 0,
    'deletePrivilege' => 0,
    'contentList' => 0,
    'forms' => 0,
    'date_format' => 0,
    'submissionPrivilege' => 0,
    'bulkStatusOptions' => 0,
    'view_javascript' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5e79dd8f350660_09348391')) {function content_5e79dd8f350660_09348391($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include '/home/agmc/beta/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['lblFormList'];?>
</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); ?>

<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/form-list.css" />
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/right-menu.css" />
<?php echo $_smarty_tpl->getSubTemplate ('CommonCustomStyles.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

<style>
.draft{
	background-color: #F84A4A;
	padding: 1px;
	color: #FFF;
	font-size: 10px;
}
</style>
</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 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);?>

        <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 selected",'content'=>($_smarty_tpl->tpl_vars['language']->value['lblListForms'])."<br /><span>".($_smarty_tpl->tpl_vars['language']->value['lblManageForms'])."</span>"),$_smarty_tpl);?>
 
			</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'];?>
</h2>
        <div class="clear"></div>
        <div id="common_message" ></div>
		<div class="search_container">
            <div class="inner"> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->start(array('name'=>"formContentSearch",'action'=>'','method'=>"post"),$_smarty_tpl);?>
              
            <ul class="clearfix">
            	<li class="column">
                	<p class="label-field01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblFormTitleKey'];?>
</p>
                    <span class="form-field01"> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('tabindex'=>"1",'class'=>"textbox",'name'=>"searchTitle"),$_smarty_tpl);?>
</span>
                </li>
                <li class="column">
                	<p class="label-field01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblStatus'];?>
</p>
                    <span class="form-field01">    <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('name'=>"statusSearch",'class'=>"select-box",'options'=>"->".($_smarty_tpl->tpl_vars['language']->value['lblSelect'])."~*draft->".($_smarty_tpl->tpl_vars['language']->value['lblDraft'])."~*publish->".($_smarty_tpl->tpl_vars['language']->value['lblPublished'])),$_smarty_tpl);?>
</span>
                </li>
                <li class="column">
                	<p class="label-field01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblCreatedBy'];?>
</p>
                    <span class="form-field01"> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('class'=>"select-box width-234px",'name'=>"searchCreatedBy",'caption'=>"->".($_smarty_tpl->tpl_vars['language']->value['lblSelect']),'options'=>$_smarty_tpl->tpl_vars['adminUsers']->value,'value'=>$_smarty_tpl->tpl_vars['searchCreatedBy']->value),$_smarty_tpl);?>
 </span>
                </li>
                <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">&nbsp;</p>
                	<?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/index/",'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>
          </div> <?php $_smarty_tpl->tpl_vars["sortby"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['sortby']->value)===null||$tmp==='' ? '' : $tmp), null, 0);?>
        <div class="clearfix"> <?php echo $_smarty_tpl->getSubTemplate ('ContentLanguageOptions.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

		<?php if ($_smarty_tpl->tpl_vars['resultForm']->value){?>
		<div class="sort_links <?php if ($_smarty_tpl->tpl_vars['sortby']->value==''){?>right-pos<?php }?>">
       
	   <span class="sortby-list"> 
			<?php if ($_smarty_tpl->tpl_vars['sortby']->value==''){?>  
				<strong><?php echo $_smarty_tpl->tpl_vars['language']->value['lblSortby'];?>
 </strong>
				</span> 
			<?php }else{ ?>
				<?php if ($_smarty_tpl->tpl_vars['sortby']->value=='sformid'){?>
					<?php echo $_smarty_tpl->tpl_vars['language']->value['lblFormID'];?>

				<?php }elseif($_smarty_tpl->tpl_vars['sortby']->value=='sformtitle'){?>
					<?php echo $_smarty_tpl->tpl_vars['language']->value['lblFormTitle'];?>

				<?php }elseif($_smarty_tpl->tpl_vars['sortby']->value=='ssubmissions'){?>
					<?php echo $_smarty_tpl->tpl_vars['language']->value['lblNumbSubmissions'];?>

				<?php }elseif($_smarty_tpl->tpl_vars['sortby']->value=='screated'){?>
					<?php echo $_smarty_tpl->tpl_vars['language']->value['lblCreatedDate'];?>

				<?php }?>
				</span>
				<?php ob_start();?><?php if ($_smarty_tpl->tpl_vars['orderby']->value=='asc'){?><?php echo "inactive";?><?php }?><?php $_tmp1=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('class'=>"asnd ".$_tmp1,'href'=>"/form/index/".($_smarty_tpl->tpl_vars['links']->value)."sortby/".($_smarty_tpl->tpl_vars['sortby']->value)."/orderby/asc/",'content'=>"<span class='arw'></span><span class='line'></span>"),$_smarty_tpl);?>

                <?php ob_start();?><?php if ($_smarty_tpl->tpl_vars['orderby']->value=='desc'){?><?php echo "inactive";?><?php }?><?php $_tmp2=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('class'=>"dsnd ".$_tmp2,'href'=>"/form/index/".($_smarty_tpl->tpl_vars['links']->value)."sortby/".($_smarty_tpl->tpl_vars['sortby']->value)."/orderby/desc/",'content'=>"<span class='line'></span><span class='arw'></span>"),$_smarty_tpl);?>

			<?php }?>
		    
				<ul class="sort_links_ul"> 
                <li>
                 <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"/form/index/".($_smarty_tpl->tpl_vars['link']->value)."sortby/sformid/orderby/".($_smarty_tpl->tpl_vars['orderby']->value)."/",'title'=>($_smarty_tpl->tpl_vars['language']->value['lblFormID']),'content'=>($_smarty_tpl->tpl_vars['language']->value['lblFormID']),'class'=>(($tmp = @$_smarty_tpl->tpl_vars['cproductkey']->value)===null||$tmp==='' ? '' : $tmp)),$_smarty_tpl);?>

                </li>
                <li><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"/form/index/".($_smarty_tpl->tpl_vars['link']->value)."sortby/sformtitle/orderby/".($_smarty_tpl->tpl_vars['orderby']->value)."/",'title'=>($_smarty_tpl->tpl_vars['language']->value['lblFormTitle']),'caption'=>($_smarty_tpl->tpl_vars['language']->value['lblFormTitle']),'class'=>(($tmp = @$_smarty_tpl->tpl_vars['cproducttitle']->value)===null||$tmp==='' ? '' : $tmp)),$_smarty_tpl);?>
</li>
                <li><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"/form/index/".($_smarty_tpl->tpl_vars['link']->value)."sortby/ssubmissions/orderby/".($_smarty_tpl->tpl_vars['orderby']->value)."/",'title'=>($_smarty_tpl->tpl_vars['language']->value['lblNumbSubmissions']),'caption'=>($_smarty_tpl->tpl_vars['language']->value['lblNumbSubmissions']),'class'=>(($tmp = @$_smarty_tpl->tpl_vars['cbusinessname']->value)===null||$tmp==='' ? '' : $tmp)),$_smarty_tpl);?>
 </li>
                <li class="last"><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"/form/index/".($_smarty_tpl->tpl_vars['link']->value)."sortby/screated/orderby/".($_smarty_tpl->tpl_vars['orderby']->value)."/",'title'=>($_smarty_tpl->tpl_vars['language']->value['lblCreatedDate']),'content'=>($_smarty_tpl->tpl_vars['language']->value['lblCreatedDate']),'class'=>(($tmp = @$_smarty_tpl->tpl_vars['cproductcreateddate']->value)===null||$tmp==='' ? '' : $tmp)),$_smarty_tpl);?>
</li>
              </ul>
			  
		  </div>
		  <?php }?>
		 </div>
        <?php if ($_smarty_tpl->tpl_vars['resultForm']->value){?>
        
          <ul class="form-list">
          <li class="heading clearfix">
          <span class="clm1">
		  
          <div class="chekingdiv">
		  <?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value||$_smarty_tpl->tpl_vars['deletePrivilege']->value){?> 
                    <ul>
                      <li class="clearfix"> 
					  <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('id'=>"ListStatusLinkCheckbox",'class'=>"fixing_left",'tabindex'=>"1"),$_smarty_tpl);?>
 
                      <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>'','id'=>"ListStatusLink",'class'=>"status-arw fixing_left"),$_smarty_tpl);?>

                        <ul id="ListStatusSelection"  class="check_status">
                          <li><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>'','rel'=>"ListActive",'content'=>($_smarty_tpl->tpl_vars['language']->value['lblActive'])),$_smarty_tpl);?>
</li>
                          <li><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>'','rel'=>"ListInactive",'content'=>($_smarty_tpl->tpl_vars['language']->value['lblInactive'])),$_smarty_tpl);?>
</li>
                          <li><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>'','rel'=>"ListAll",'content'=>($_smarty_tpl->tpl_vars['language']->value['lblSelectAll'])),$_smarty_tpl);?>
</li>
                        </ul>
                      </li>
                    </ul>
					<?php }?>	
                  </div>
                  </span>
                   <span class="clm2">  
                  <?php echo $_smarty_tpl->tpl_vars['language']->value['lblForms'];?>
</span>
                 
                   <span class="clm2"> 
                   <?php echo $_smarty_tpl->tpl_vars['language']->value['lblSubmissions'];?>

                   </span>
				    
          </li>
		 
          <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->start(array('name'=>"frmContentList",'action'=>'','method'=>"post"),$_smarty_tpl);?>

         
            <?php $_smarty_tpl->tpl_vars['contentList'] = new Smarty_variable(0, null, 0);?>
            <?php  $_smarty_tpl->tpl_vars["forms"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["forms"]->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['resultForm']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["forms"]->key => $_smarty_tpl->tpl_vars["forms"]->value){
$_smarty_tpl->tpl_vars["forms"]->_loop = true;
?>
            <?php $_smarty_tpl->tpl_vars['contentList'] = new Smarty_variable($_smarty_tpl->tpl_vars['contentList']->value+1, null, 0);?>
            <li class="clearfix">
			<?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value||$_smarty_tpl->tpl_vars['deletePrivilege']->value){?> 
				<span class="clm1">
					<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('name'=>"contentBulkStatus[]",'value'=>$_smarty_tpl->tpl_vars['forms']->value['formID'],'class'=>("checkbox01 ListAll List").($_smarty_tpl->tpl_vars['forms']->value['status'])),$_smarty_tpl);?>

				</span>
			<?php }?>	
             <span class="clm2">  
			<?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value){?>
				<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"form/build/id/".($_smarty_tpl->tpl_vars['forms']->value['formID']),'class'=>"style2",'title'=>($_smarty_tpl->tpl_vars['forms']->value['formName']),'content'=>($_smarty_tpl->tpl_vars['forms']->value['formName'])),$_smarty_tpl);?>

			<?php }else{ ?>
				<?php echo $_smarty_tpl->tpl_vars['forms']->value['formName'];?>
 
			<?php }?>	<?php if ($_smarty_tpl->tpl_vars['forms']->value['formStatus']=='draft'){?><span class="<?php echo $_smarty_tpl->tpl_vars['forms']->value['formStatus'];?>
"> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblDraft'];?>
</span><?php }?>
			 <br />
             <span class="fade-txt"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblModifiedBy'];?>
 <?php echo $_smarty_tpl->tpl_vars['forms']->value['adminname'];?>
 <?php echo $_smarty_tpl->tpl_vars['language']->value['lblOn'];?>
   <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['forms']->value['formModifiedDate'],$_smarty_tpl->tpl_vars['date_format']->value);?>
</span>  <br />
			  <span class="fade-txt"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblCreatedOn'];?>
 <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['forms']->value['formCreatedDate'],$_smarty_tpl->tpl_vars['date_format']->value);?>
</span>
                          <?php if ((($tmp = @$_smarty_tpl->tpl_vars['forms']->value['brandName'])===null||$tmp==='' ? '' : $tmp)!=''){?><br /><span class="fade-txt"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblMenuBrands'];?>
: <?php echo $_smarty_tpl->tpl_vars['forms']->value['brandName'];?>
</span><?php }?>
            
             </span>
                          
			 <span class="clm2"> 
					<?php if ($_smarty_tpl->tpl_vars['submissionPrivilege']->value){?>
						<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"form/submission/id/".($_smarty_tpl->tpl_vars['forms']->value['formID']),'class'=>"style01",'title'=>($_smarty_tpl->tpl_vars['language']->value['lblSubmissions']),'content'=>"<strong>".($_smarty_tpl->tpl_vars['forms']->value['submissions'])."</strong> ".($_smarty_tpl->tpl_vars['language']->value['lblSubmissions'])),$_smarty_tpl);?>

					<?php }else{ ?>
						<strong><?php echo $_smarty_tpl->tpl_vars['forms']->value['submissions'];?>
</strong> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblSubmissions'];?>

					<?php }?>
				   <?php if ($_smarty_tpl->tpl_vars['forms']->value['submissions']>0){?>
				   <br />
                   <span class="fade-txt"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblLastSubmissionon'];?>
 <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['forms']->value['lastSubmitted'],$_smarty_tpl->tpl_vars['date_format']->value);?>
</span>
				  
				   <?php }?>
				   
			</span>	
            <span class="clm3">
				<?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value||$_smarty_tpl->tpl_vars['deletePrivilege']->value){?> 
					<?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value){?>
						<?php if ($_smarty_tpl->tpl_vars['forms']->value['status']=='Active'){?>
							<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('title'=>($_smarty_tpl->tpl_vars['language']->value['lblActive']),'href'=>"form/changeformstatus/id/".($_smarty_tpl->tpl_vars['forms']->value['formID'])."/status/Inactive/",'class'=>"status-active icon-set"),$_smarty_tpl);?>

						<?php }else{ ?>
							<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('title'=>($_smarty_tpl->tpl_vars['language']->value['lblInactive']),'href'=>"form/changeformstatus/id/".($_smarty_tpl->tpl_vars['forms']->value['formID'])."/status/Active/",'class'=>"status-inactive icon-set"),$_smarty_tpl);?>

						<?php }?>
						<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"form/build/id/".($_smarty_tpl->tpl_vars['forms']->value['formID'])."/",'title'=>($_smarty_tpl->tpl_vars['language']->value['lblEdit']),'history'=>"yes",'class'=>"edit02 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/destroy/id/".($_smarty_tpl->tpl_vars['forms']->value['formID'])."/",'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 }?>	
				<?php }?>	
                <span class="tooltip-style01">
                	<span class="head1"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblMore'];?>
</span>
                    <span class="cnt-box">
						<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"../form/key/".($_smarty_tpl->tpl_vars['forms']->value['formID']),'target'=>"_blank",'content'=>('<span class="icon-set preview" >&nbsp;</span>').($_smarty_tpl->tpl_vars['language']->value['lblPreview'])),$_smarty_tpl);?>

						
						<?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value){?>
						<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"/form/build/id/".($_smarty_tpl->tpl_vars['forms']->value['formID'])."/settings/",'content'=>('<span class="icon-set preview" >&nbsp;</span>').($_smarty_tpl->tpl_vars['language']->value['lblMenuSettings'])),$_smarty_tpl);?>

						<?php }?>
						<?php if ($_smarty_tpl->tpl_vars['submissionPrivilege']->value&&$_smarty_tpl->tpl_vars['forms']->value['submissions']>0){?>
						<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"/form/export/type/submission/id/".($_smarty_tpl->tpl_vars['forms']->value['formID'])."/",'content'=>"<span class='icon-set export' >&nbsp;</span>".($_smarty_tpl->tpl_vars['language']->value['lblExport'])),$_smarty_tpl);?>

						<?php }?>
                    </span>
                </span>
                </span>
           </li>
            <?php } ?>
         </ul>
		<?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value||$_smarty_tpl->tpl_vars['deletePrivilege']->value){?> 
			<?php $_smarty_tpl->tpl_vars["bulkStatusOptions"] = new Smarty_variable("->".($_smarty_tpl->tpl_vars['language']->value['lblDonotchange']), null, 0);?>
			<?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value){?>
				<?php $_smarty_tpl->tpl_vars["bulkStatusOptions"] = new Smarty_variable(($_smarty_tpl->tpl_vars['bulkStatusOptions']->value)."~*Active->".($_smarty_tpl->tpl_vars['language']->value['lblActivate'])."~*Inactive->".($_smarty_tpl->tpl_vars['language']->value['lblInactivate']), null, 0);?>
			<?php }?>
			<?php if ($_smarty_tpl->tpl_vars['deletePrivilege']->value){?>
				<?php $_smarty_tpl->tpl_vars["bulkStatusOptions"] = new Smarty_variable(($_smarty_tpl->tpl_vars['bulkStatusOptions']->value)."~*Deleted->".($_smarty_tpl->tpl_vars['language']->value['lblDelete']), null, 0);?>
			<?php }?>  

        <div class="fixing_left"><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('name'=>"formStatus",'class'=>"select-box width-auto",'options'=>$_smarty_tpl->tpl_vars['bulkStatusOptions']->value),$_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 echo $_smarty_tpl->smarty->registered_objects['form'][0]->close(array(),$_smarty_tpl);?>

        <div class="clear"></div>
		<?php }?> 
        <?php }else{ ?>
        <div class="message_info" id="common_message"><?php echo $_smarty_tpl->tpl_vars['language']->value['msgNoRecords'];?>
</div>
        <?php }?>
        <!--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 lblSelectStatus	= '<?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelectStatus'];?>
';
var msgSelectItem	= '<?php echo $_smarty_tpl->tpl_vars['language']->value['msgSelectItem'];?>
';
var lblSelectItem	= '<?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelectItem'];?>
';
var msgDeleteItem	= '<?php echo $_smarty_tpl->tpl_vars['language']->value['msgDeleteItem'];?>
';
var msgSelectSearchCriteria="<?php echo $_smarty_tpl->tpl_vars['language']->value['msgSelectSearchCriteria'];?>
";
$(document).ready(function(e) {
	$(".tooltip-style01 .head1").click(function() {
	if($(this).siblings(".cnt-box").is(':visible'))
	{
	$(this).parent(".tooltip-style01").removeClass("active");
	$(".cnt-box").hide();
	}
	else{
		$(".cnt-box").hide();
	$(this).siblings(".cnt-box").slideDown("fast");
	$(".tooltip-style01").removeClass("active");
	$(this).parent(".tooltip-style01").addClass("active");	
	}
});
$(".sortby-list").click(function(){ 
	if($(this).siblings(".sort_links_ul").is(':visible'))
	{
	$(this).removeClass("active");
	$(".sort_links_ul").hide();
	}
	else{
	$(this).siblings(".sort_links_ul").slideDown("fast");
	$(this).addClass("active");	
	}  
});
$("#frmContentList").submit(function(){
	if($("[name='contentBulkStatus[]']:checked").length>0){
		if($("#formStatus").val()!=''){
			return true;
		}else{
			jAlert(lblSelectStatus);
			return false;
		}
	}else{
		jAlert(msgSelectItem);
		return false;
	}
});


$('body').click(function (e) {
        if ($(".tooltip-style01").has(e.target).length === 0) {
           $(".tooltip-style01").removeClass('active');
		   $(".cnt-box").hide();
        }
		if ($(".sort_links ").has(e.target).length === 0) {
		   $(".sort_links_ul").hide();
		   $(".sortby-list").removeClass('active');
        }
    });
	
	$("#submitBulkStatus").click(function () {
		var ListAllCheckedCount = $(".ListAll:checked").size();
		var status = $('#formStatus').val();
		if ($(".ListAll:checked").size() == 0) {
			jAlert(msgSelectItem);
			return false;
		} else if (status == "") {
			jAlert(lblSelectAction);
			return false;
		}
		if (status == 'Deleted') {
			jConfirm(msgDeleteItem, lblAlert, function (r) {
				if (r == true) {
					$('#frmContentList').submit();
				}
			});
		} else {
			return true;
		}
		return false;
	});	
	
	
	
});
</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> 

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