<?php /* Smarty version Smarty-3.1.8, created on 2024-07-17 13:01:00
         compiled from "/home/agmc/beta/application/core/views/manage/standard/WidgetAdd.tpl" */ ?>
<?php /*%%SmartyHeaderCode:4577684805e71edf3ae5864-12353919%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'cae9cf9526612725b2395c65231ff6356104ac40' => 
    array (
      0 => '/home/agmc/beta/application/core/views/manage/standard/WidgetAdd.tpl',
      1 => 1605520856,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '4577684805e71edf3ae5864-12353919',
  'function' => 
  array (
    'categories' => 
    array (
      'parameter' => 
      array (
        'level' => 0,
        'catValues' => 0,
      ),
      'compiled' => '',
    ),
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5e71edf3bf6969_00306876',
  'variables' => 
  array (
    'widgetID' => 0,
    'tabID' => 0,
    'language' => 0,
    'view_styles' => 0,
    'widgetTitle' => 0,
    'resTabs' => 0,
    'tabs' => 0,
    'tstatus' => 0,
    'showTitle' => 0,
    'listBrand' => 0,
    'bannerIDs' => 0,
    'view_images' => 0,
    'view_public_path' => 0,
    'resWidgetBanner' => 0,
    'widgetbanner' => 0,
    'data' => 0,
    'productCategory' => 0,
    'level' => 0,
    'categoryIDList' => 0,
    'catValues' => 0,
    'categoryName' => 0,
    'resWidgetcategory' => 0,
    'children' => 0,
    'categoryValue' => 0,
    'resCategories' => 0,
    'widgetStartDate' => 0,
    'date_format' => 0,
    'widgetEndDate' => 0,
    'common_js' => 0,
    'view_javascript' => 0,
  ),
  'has_nocache_code' => 0,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5e71edf3bf6969_00306876')) {function content_5e71edf3bf6969_00306876($_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" />
<?php $_smarty_tpl->tpl_vars["widgetID"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['widgetID']->value)===null||$tmp==='' ? '' : $tmp), null, 0);?>
<?php $_smarty_tpl->tpl_vars["tabID"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['tabID']->value)===null||$tmp==='' ? '' : $tmp), null, 0);?>
<title><?php echo $_smarty_tpl->tpl_vars['language']->value['lblAdmin'];?>
 : <?php if ($_smarty_tpl->tpl_vars['widgetID']->value>0){?>  <?php echo $_smarty_tpl->tpl_vars['language']->value['lblWidgetEdit'];?>
  <?php }else{ ?> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblWidgetAddNew'];?>
 <?php }?></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;?>
/inner-formlisting.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" />
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/colorbox.css" />
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/add-edit.css" media="screen" />	
	</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_container4 clearfix">
        <div class="wdgt-tab-section">
        <div class="wdgt-tab-head clearfix">
        	<h4 class="page-head fixing_left inactive"> 
             <?php if ($_smarty_tpl->tpl_vars['widgetID']->value>0){?>
			<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"/widget/edit/id/".($_smarty_tpl->tpl_vars['widgetID']->value),'class'=>"icon-set-af edit",'content'=>($_smarty_tpl->tpl_vars['widgetTitle']->value)),$_smarty_tpl);?>
 
		<?php }else{ ?>			
			<?php echo $_smarty_tpl->tpl_vars['language']->value['lblWidgetAddNew'];?>

		<?php }?>
             
       </h4>
             <ul class="wdgt-tab2 fixing_right tabSort">
		  <?php $_smarty_tpl->tpl_vars["resTabs"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['resTabs']->value)===null||$tmp==='' ? array() : $tmp), null, 0);?>
		  <?php if ((($tmp = @count($_smarty_tpl->tpl_vars['resTabs']->value))===null||$tmp==='' ? 0 : $tmp)>0){?>
		  <?php  $_smarty_tpl->tpl_vars["tabs"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["tabs"]->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['resTabs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["tabs"]->key => $_smarty_tpl->tpl_vars["tabs"]->value){
$_smarty_tpl->tpl_vars["tabs"]->_loop = true;
?>
		  <?php $_smarty_tpl->tpl_vars["tstatus"] = new Smarty_variable('', null, 0);?>
		  <?php if ($_smarty_tpl->tpl_vars['tabs']->value['widgetTabID']==$_smarty_tpl->tpl_vars['tabID']->value){?> <?php $_smarty_tpl->tpl_vars["tstatus"] = new Smarty_variable("active", null, 0);?> <?php }?>
             	<li id="<?php echo $_smarty_tpl->tpl_vars['tabs']->value['widgetTabID'];?>
"><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"/widget/tabs/wid/".($_smarty_tpl->tpl_vars['widgetID']->value)."/tid/".($_smarty_tpl->tpl_vars['tabs']->value['widgetTabID'])."/",'class'=>"tab ".($_smarty_tpl->tpl_vars['tstatus']->value)." icon-set-af",'content'=>"<span class='drag handle'>
                <span class='line1'></span><span class='line1'></span><span class='line1'></span>
                </span>
                ".($_smarty_tpl->tpl_vars['tabs']->value['tabTitle'])),$_smarty_tpl);?>

<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('title'=>($_smarty_tpl->tpl_vars['language']->value['lblDelete']),'rel'=>($_smarty_tpl->tpl_vars['widgetID']->value),'tabID'=>($_smarty_tpl->tpl_vars['tabs']->value['widgetTabID']),'class'=>"delete-tab icon-set"),$_smarty_tpl);?>

		</li>
               <?php } ?>
	        <?php }?>
		 <?php if ($_smarty_tpl->tpl_vars['widgetID']->value>0){?><li class="note">
		<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"/widget/tabs/wid/".($_smarty_tpl->tpl_vars['widgetID']->value),'class'=>"icon-set-bf add-new-btn2",'content'=>($_smarty_tpl->tpl_vars['language']->value['lblAddTab'])),$_smarty_tpl);?>
 
		</li><?php }?>
             </ul>
	</div>
	<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->start(array('name'=>"formWidget",'action'=>'','method'=>"post"),$_smarty_tpl);?>

	<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"postItemIds"),$_smarty_tpl);?>

	<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"widgetID",'value'=>($_smarty_tpl->tpl_vars['widgetID']->value)),$_smarty_tpl);?>

	   <div class="wdgt-tab-cnt">
		<div class="inner_content_wrapper">
		<div id="common_message"></div>
        <div class="clearfix"><div class="fixing_right space-t-l"><?php echo $_smarty_tpl->getSubTemplate ('ContentLanguageOptions.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
</div></div>
		  <div class="form_listing form_listing03">
			<ul>
			      <li class="clearfix">
				<div class="leftside01 mandatory">
					<?php echo $_smarty_tpl->tpl_vars['language']->value['lblWidgetwidgetTitle'];?>

				</div>
				<!--End:Left-->
				<div class="rightside01"> 
					<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"widgetTitle",'class'=>"textbox",'tabindex'=>"9",'validate'=>"required",'error'=>($_smarty_tpl->tpl_vars['language']->value['errWidgetwidgetTitleRequired'])),$_smarty_tpl);?>
						
				</div>
				<!--End:right-->
				<li class="clearfix"><div class="leftside01 ">	<?php echo $_smarty_tpl->tpl_vars['language']->value['lblShowTitle'];?>
				
				</div> <div class="rightside01 top-spc">
					
					<?php ob_start();?><?php if (isset($_smarty_tpl->tpl_vars['showTitle']->value)&&$_smarty_tpl->tpl_vars['showTitle']->value=='Yes'){?><?php echo "checked";?><?php }?><?php $_tmp1=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('name'=>"showTitle",'value'=>"Yes",'checked'=>$_tmp1),$_smarty_tpl);?>

                
				</div>	
			  </li>
	
				<!---->
			 	     
			<li class="clearfix">
				<div class="leftside01 mandatory">
					<?php echo $_smarty_tpl->tpl_vars['language']->value['lblWidgetwidgetDisplayedOn'];?>

				</div>
				<!--End:Left-->
				<div class="rightside01"> 
					<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->radio(array('name'=>"widgetDisplayedOn",'tabindex'=>"5",'options'=>"home->Home~*category->Category",'value'=>"home",'class'=>"displayOn"),$_smarty_tpl);?>
 
				</div>
				<!--End:right-->
			  </li>			
			<li class="clearfix">
				<div class="leftside01 mandatory">
					<?php echo $_smarty_tpl->tpl_vars['language']->value['lblWidgetPlatform'];?>

				</div>
				<!--End:Left-->
				<div class="rightside01"> 
					<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->radio(array('name'=>"widgetPlatform",'tabindex'=>"5",'options'=>"desktop->".($_smarty_tpl->tpl_vars['language']->value['lblDesktop'])."~*mobile->".($_smarty_tpl->tpl_vars['language']->value['lblMobile'])."~*mobileApp->".($_smarty_tpl->tpl_vars['language']->value['lblMobileApp']),'value'=>"desktop"),$_smarty_tpl);?>
 
						</div>
				<!--End:right-->
			  </li>	
                                                 <li class="clearfix">
							<div class="leftside01 mandatory">
								<?php echo $_smarty_tpl->tpl_vars['language']->value['lblMenuBrands'];?>

							</div>
							<!--End:Left-->
							<div class="rightside01"> 
								<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('style'=>"width:28%;",'class'=>"select",'name'=>"brandID",'caption'=>"->".($_smarty_tpl->tpl_vars['language']->value['lblSelect']),'options'=>$_smarty_tpl->tpl_vars['listBrand']->value,'validate'=>"required",'error'=>$_smarty_tpl->tpl_vars['language']->value['errFranchisee']),$_smarty_tpl);?>

							</div>
							<!--End:right-->
						  </li>
                           <li class="clearfix" id="typeDiv">
				<div class="leftside01">
					<?php echo $_smarty_tpl->tpl_vars['language']->value['lblType'];?>

				</div>
				<!--End:Left-->
				<div class="rightside01"> 
					<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->radio(array('name'=>"widget_type",'tabindex'=>"5",'options'=>"product->".($_smarty_tpl->tpl_vars['language']->value['lblProductWidget'])."~*banner->".($_smarty_tpl->tpl_vars['language']->value['lblBanner'])),$_smarty_tpl);?>
 
						</div>
				<!--End:right-->
			  </li>	
                           <li class="clearfix" id="bannerDiv">
                                <div class="rightside01"> 
<div>
                                         <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"bannerIDs",'value'=>(($tmp = @$_smarty_tpl->tpl_vars['bannerIDs']->value)===null||$tmp==='' ? '' : $tmp)),$_smarty_tpl);?>

			<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"type"),$_smarty_tpl);?>

			<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"no_image_path",'value'=>($_smarty_tpl->tpl_vars['view_images']->value)."/thumbnail.gif"),$_smarty_tpl);?>

			<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"image_path",'value'=>($_smarty_tpl->tpl_vars['view_public_path']->value)."/uploads/"),$_smarty_tpl);?>

                                                  <?php ob_start();?><?php if ($_smarty_tpl->tpl_vars['widgetID']->value){?><?php echo "id/";?><?php echo $_smarty_tpl->tpl_vars['widgetID']->value;?><?php }?><?php $_tmp2=ob_get_clean();?><?php ob_start();?><?php if ($_smarty_tpl->tpl_vars['widgetID']->value){?><?php echo $_smarty_tpl->tpl_vars['widgetID']->value;?><?php }?><?php $_tmp3=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('priv_href'=>"widget/loadBanner/".$_tmp2,'href'=>"widget/loadBanner/id/".$_tmp3,'title'=>($_smarty_tpl->tpl_vars['language']->value['lblAddBanner']),'class'=>"add-new-loc",'content'=>"<span class='plus-v'></span> <span class='plus-h'></span><strong>".($_smarty_tpl->tpl_vars['language']->value['lblAddBanner'])."</strong>"),$_smarty_tpl);?>

                                                  <?php if ($_smarty_tpl->tpl_vars['resWidgetBanner']->value){?>
                                                      
                                                  <ul id="contentList" style="display: block" class="item-list"> 
<?php  $_smarty_tpl->tpl_vars['widgetbanner'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['widgetbanner']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['resWidgetBanner']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['widgetbanner']->key => $_smarty_tpl->tpl_vars['widgetbanner']->value){
$_smarty_tpl->tpl_vars['widgetbanner']->_loop = true;
?>  
    <li class="clearfix pickerDataListCommon banner" id="<?php echo $_smarty_tpl->tpl_vars['widgetbanner']->value['bannerID'];?>
" rel="<?php echo $_smarty_tpl->tpl_vars['widgetbanner']->value['bannerID'];?>
">
        <div class="img-div"> 
   <?php if ($_smarty_tpl->tpl_vars['widgetbanner']->value['bannerSize']=='Small'){?> 
       <img	src="<?php echo $_smarty_tpl->tpl_vars['view_public_path']->value;?>
/uploads/banner/thumb/<?php echo $_smarty_tpl->tpl_vars['widgetbanner']->value['bannerImage'];?>
" width="50"/> <?php }else{ ?>
       <img	src="<?php echo $_smarty_tpl->tpl_vars['view_public_path']->value;?>
/uploads/banner/thumb/<?php echo $_smarty_tpl->tpl_vars['widgetbanner']->value['bannerImage'];?>
" width="100"/> <?php }?>
   </div><?php echo $_smarty_tpl->tpl_vars['widgetbanner']->value['bannerTitle'];?>
</li>
    <?php } ?>
                    </ul>
                                                  <?php }else{ ?>
                                                       <ul id="contentList" style="display: none" class="item-list">                    	                      
                    </ul>
                                                      <?php }?>
                                                      <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"hidItem",'value'=>''),$_smarty_tpl);?>
	
                                                  
                                            </div>
                              
		
                                </div>
                             </li>
			<li class="clearfix hide" id="catDiv">
				<div class="leftside01 mandatory">
					<?php echo $_smarty_tpl->tpl_vars['language']->value['lblCategories'];?>

				</div>
				<!--End:Left-->
				<div class="rightside01 "> 
				 <div class="category-section pos-relative">
				  <div class="div-city">
                      <div class="fixed-section width_50per">
                          <h2><?php echo $_smarty_tpl->tpl_vars['language']->value['lblProductCategory'];?>
</h2>
                      <?php $_smarty_tpl->tpl_vars["categoryValue"] = new Smarty_variable('', null, 0);?>
				<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"filterCategories",'class'=>"filterBrands text-box  margin-bottom",'placeholder'=>"Search Categories"),$_smarty_tpl);?>

                          </div>
				<?php $_smarty_tpl->tpl_vars["categoryValue"] = new Smarty_variable('', null, 0);?>
			        <ul  class="dragtree categoryList" id="categoryList">
							  

                <!--menu function-->
                 <?php if (!function_exists('smarty_template_function_categories')) {
    function smarty_template_function_categories($_smarty_tpl,$params) {
    $saved_tpl_vars = $_smarty_tpl->tpl_vars;
    foreach ($_smarty_tpl->smarty->template_functions['categories']['parameter'] as $key => $value) {$_smarty_tpl->tpl_vars[$key] = new Smarty_variable($value);};
    foreach ($params as $key => $value) {$_smarty_tpl->tpl_vars[$key] = new Smarty_variable($value);}?>

                <?php  $_smarty_tpl->tpl_vars["productCategory"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["productCategory"]->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['data']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["productCategory"]->key => $_smarty_tpl->tpl_vars["productCategory"]->value){
$_smarty_tpl->tpl_vars["productCategory"]->_loop = true;
?> 
					
					 <?php if ($_smarty_tpl->tpl_vars['productCategory']->value['productCategoryStatus']=='Inactive'){?>
				  <?php $_smarty_tpl->tpl_vars["categoryName"] = new Smarty_variable((("<span class='inactive'>").($_smarty_tpl->tpl_vars['productCategory']->value['productCategoryName'])).("</span>"), null, 0);?>              
				  <?php }else{ ?>
				  <?php $_smarty_tpl->tpl_vars["categoryName"] = new Smarty_variable($_smarty_tpl->tpl_vars['productCategory']->value['productCategoryName'], null, 0);?> 
				  <?php }?>
					
		
                        <li  data-level="<?php echo $_smarty_tpl->tpl_vars['level']->value;?>
" category="<?php echo $_smarty_tpl->tpl_vars['productCategory']->value['productCategoryID'];?>
" catname="<?php echo $_smarty_tpl->tpl_vars['productCategory']->value['productCategoryName'];?>
" class="left-spacing <?php if ($_smarty_tpl->tpl_vars['productCategory']->value['productCategoryID']==1){?> ui-state-disabled <?php }?> li_catIDs" >
                     
                           
                                  
							
									<?php if (!(in_array($_smarty_tpl->tpl_vars['productCategory']->value['productCategoryID'],(($tmp = @$_smarty_tpl->tpl_vars['categoryIDList']->value)===null||$tmp==='' ? array() : $tmp)))){?>
                                    <span class="expand <?php if (!(!empty($_smarty_tpl->tpl_vars['productCategory']->value['children'])&&is_array($_smarty_tpl->tpl_vars['productCategory']->value['children']))){?>hide<?php }?>"></span>
									<?php }else{ ?>
									<span class="expand colapse <?php if (!(!empty($_smarty_tpl->tpl_vars['productCategory']->value['children'])&&is_array($_smarty_tpl->tpl_vars['productCategory']->value['children']))){?>hide<?php }?>"></span>
									<?php }?>
																		  
									 <?php $_smarty_tpl->tpl_vars["categoryValue"] = new Smarty_variable((($_smarty_tpl->tpl_vars['catValues']->value).(",")).($_smarty_tpl->tpl_vars['productCategory']->value['productCategoryID']), null, 0);?>
										
                                                                        <?php ob_start();?><?php if (in_array($_smarty_tpl->tpl_vars['productCategory']->value['productCategoryID'],(($tmp = @$_smarty_tpl->tpl_vars['resWidgetcategory']->value)===null||$tmp==='' ? array() : $tmp))){?><?php echo $_smarty_tpl->tpl_vars['productCategory']->value['productCategoryID'];?><?php }?><?php $_tmp4=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('name'=>"productCategoryID",'class'=>"categoryTree selectCheckBoxItems",'id'=>"category",'options'=>((($_smarty_tpl->tpl_vars['productCategory']->value['productCategoryID']).("->")).("&nbsp;")).($_smarty_tpl->tpl_vars['categoryName']->value),'value'=>$_tmp4),$_smarty_tpl);?>
 
									 
																			<span class="hiddenTitle hide">	 
												<?php echo $_smarty_tpl->tpl_vars['productCategory']->value['productCategoryName'];?>

											</span>
                         
							<?php $_smarty_tpl->tpl_vars["children"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['productCategory']->value['children'])===null||$tmp==='' ? '' : $tmp), null, 0);?>
                             <?php if (isset($_smarty_tpl->tpl_vars['productCategory']->value['children'])&&is_array($_smarty_tpl->tpl_vars['productCategory']->value['children'])&&!empty($_smarty_tpl->tpl_vars['productCategory']->value['children'])){?>
                               <ul id="" class="categoryList <?php if (!(in_array($_smarty_tpl->tpl_vars['productCategory']->value['productCategoryID'],(($tmp = @$_smarty_tpl->tpl_vars['categoryIDList']->value)===null||$tmp==='' ? array() : $tmp)))){?>hide <?php }?>"> 
                            <?php smarty_template_function_categories($_smarty_tpl,array('data'=>$_smarty_tpl->tpl_vars['children']->value,'level'=>$_smarty_tpl->tpl_vars['level']->value+1,'catValues'=>$_smarty_tpl->tpl_vars['categoryValue']->value));?>
  <!--menu function calling-->
                            </ul>
                          
                        <?php }else{ ?>
                             <?php if ((is_array($_smarty_tpl->tpl_vars['productCategory']->value))&&(isset($_smarty_tpl->tpl_vars['productCategory']->value['menuItemID']))&&(is_numeric($_smarty_tpl->tpl_vars['productCategory']->value['menuItemID']))){?>
                        </li>	
                        <?php }?>
                    <?php }?>
            <?php } ?>  
          <?php $_smarty_tpl->tpl_vars = $saved_tpl_vars;}}?>

          <?php smarty_template_function_categories($_smarty_tpl,array('data'=>$_smarty_tpl->tpl_vars['resCategories']->value));?>
 <!--menu function calling-->
             	 </ul>  
</div>
				</div>				                           
			    <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->validate(array('name'=>"categorySelected",'validate'=>"widgetDisplayedOn->isequal->category~*required",'error'=>$_smarty_tpl->tpl_vars['language']->value['errSelectAnyCategory']),$_smarty_tpl);?>
 	
				
				</div>
				<!--End:right-->
			  </li>
			<li class="clearfix">
				<div class="leftside01">
					<?php echo $_smarty_tpl->tpl_vars['language']->value['lblWidgetwidgetDescription'];?>

				</div>
				<!--End:Left-->
				<div class="rightside01"> 
					<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textarea(array('name'=>"widgetDescription",'class'=>"textarea",'tabindex'=>"10"),$_smarty_tpl);?>
 
				</div>
				<!--End:right-->
			  </li>
			<li class="clearfix">
				<div class="leftside01">
					<?php echo $_smarty_tpl->tpl_vars['language']->value['lblWidgetwidgetStartDate'];?>

				</div>
				<!--End:Left-->
				<div class="rightside01"> 
					<?php if (isset($_smarty_tpl->tpl_vars['widgetStartDate']->value)&&$_smarty_tpl->tpl_vars['widgetStartDate']->value!="0000-00-00"){?>
						<?php ob_start();?><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['widgetStartDate']->value,$_smarty_tpl->tpl_vars['date_format']->value);?>
<?php $_tmp5=ob_get_clean();?><?php $_smarty_tpl->tpl_vars["widgetStartDate"] = new Smarty_variable($_tmp5, null, 0);?>
					<?php }else{ ?>
                              <?php $_smarty_tpl->tpl_vars["widgetStartDate"] = new Smarty_variable('', null, 0);?>	
					<?php }?>
					<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"widgetStartDate",'class'=>"textbox date-field width_28per",'tabindex'=>"1",'validate'=>"isDate",'error'=>$_smarty_tpl->tpl_vars['language']->value['errValidDate']),$_smarty_tpl);?>
 
				</div>
				<!--End:right-->
			  </li>
			<li class="clearfix">
				<div class="leftside01">
					<?php echo $_smarty_tpl->tpl_vars['language']->value['lblWidgetwidgetEndDate'];?>

				</div>
				<!--End:Left-->
				<div class="rightside01"> 
					<?php if (isset($_smarty_tpl->tpl_vars['widgetEndDate']->value)&&$_smarty_tpl->tpl_vars['widgetEndDate']->value!="0000-00-00"){?>
						<?php ob_start();?><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['widgetEndDate']->value,$_smarty_tpl->tpl_vars['date_format']->value);?>
<?php $_tmp6=ob_get_clean();?><?php $_smarty_tpl->tpl_vars["widgetEndDate"] = new Smarty_variable($_tmp6, null, 0);?>
					<?php }else{ ?>
				    <?php $_smarty_tpl->tpl_vars["widgetEndDate"] = new Smarty_variable('', null, 0);?>
					<?php }?>
					<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"widgetEndDate",'class'=>"textbox date-field width_28per",'tabindex'=>"2"),$_smarty_tpl);?>
 
					<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->validate(array('name'=>"StartEndDatecheck",'validate'=>"hiddenStartEndDate->isequal->0~*required",'error'=>$_smarty_tpl->tpl_vars['language']->value['errStartEndDate']),$_smarty_tpl);?>

                    <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"hiddenStartEndDate",'value'=>"2"),$_smarty_tpl);?>
	
				</div>
				<!--End:right-->
			  </li>
			
			<li class="clearfix">
				<div class="leftside01 mandatory">
					<?php echo $_smarty_tpl->tpl_vars['language']->value['lblWidgetstatus'];?>

				</div>
				<!--End:Left-->
				<div class="rightside01"> 
					<div id="perioddiv">
					<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->radio(array('name'=>"status",'class'=>"customradio",'tabindex'=>"7",'value'=>"A",'options'=>"A->".($_smarty_tpl->tpl_vars['language']->value['lblActive'])."~*I->".($_smarty_tpl->tpl_vars['language']->value['lblInactive'])),$_smarty_tpl);?>
 
					</div>
				</div>
				<!--End:right-->
			  </li>
			<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"isTab",'value'=>''),$_smarty_tpl);?>

                        <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"sortOrder",'value'=>''),$_smarty_tpl);?>

			  <li class="clearfix">
				<div class="submit-block clearfix"> 
						<span>  </span>
						<div class="leftside01"> </div>
						<div class="rightside01">	
						<?php ob_start();?><?php if ($_smarty_tpl->tpl_vars['widgetID']->value>0){?><?php echo $_smarty_tpl->tpl_vars['language']->value['lblSave'];?><?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['language']->value['lblSave'];?><?php }?><?php $_tmp7=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->submit(array('name'=>"submitWidget",'class'=>"curve-3",'value'=>$_tmp7),$_smarty_tpl);?>

							<?php echo $_smarty_tpl->tpl_vars['language']->value['lblOr'];?>

							<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"widget/index/",'content'=>($_smarty_tpl->tpl_vars['language']->value['lblCancel'])),$_smarty_tpl);?>

						
						 </div>
					</div>
				<!--End:right-->
			  </li>
			</ul>
		  </div>
		  <!--End:From Listing--> 
		</div>
		<!--End:Border 3--> 
	  </div>
	  <!--End:Border 2--> 
	  <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->close(array(),$_smarty_tpl);?>
 
	  </div>
  </div>
<!--*********************************************END CONTAINER SECTION******************************************************--> 
<!--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); ?>
 
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['common_js']->value;?>
/validate.plugin.js"></script> 
<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->basepath_script(array(),$_smarty_tpl);?>


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

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

<script type="text/javascript">
var lblDelete			= '<?php echo $_smarty_tpl->tpl_vars['language']->value['lblDelete'];?>
';
var msgConfirmDeletetab      = '<?php echo $_smarty_tpl->tpl_vars['language']->value['msgConfirmDelete'];?>
';
</script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/custom-radiobutton.js"></script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/widgetAdd.page.js"></script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/jquery.colorbox.js"></script>
<script type="text/javascript">
$('.tabSort').sortable({		
		items : "li:not(.note)",
		placeholder:'ui-sortable-placeholder',
		cursor:'move',
		handle: '.handle',
		update: function(event, ui) {
			var result = $(this).sortable('toArray');						 
			$("#postItemIds").val(result);
			}
	});
$(".tabSort").disableSelection();
	</script>
<script type="text/javascript">

$(document).ready(function(){

$(".add-new-loc").colorbox({title:function(){var colorboxTitle=$(this).next("span").html();return colorboxTitle;},iframe:true, innerWidth:"80%", innerHeight:"80%", onClosed:function(){parent.$.colorbox.close();}});

});

</script>

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