<?php /* Smarty version Smarty-3.1.8, created on 2024-07-17 12:48:54
         compiled from "/home/agmc/beta/application/core/views/manage/standard/MenuAdd.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1738609855669785767cc919-47401678%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '24e9d6b9f16d7b39ba0ccad9c63dc863234c0cdf' => 
    array (
      0 => '/home/agmc/beta/application/core/views/manage/standard/MenuAdd.tpl',
      1 => 1605520856,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1738609855669785767cc919-47401678',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'menuID' => 0,
    'language' => 0,
    'view_styles' => 0,
    'menuResult' => 0,
    'resPositionList' => 0,
    'imageName' => 0,
    'publishFrom' => 0,
    'date_format' => 0,
    'publishTo' => 0,
    'resUserTypesList' => 0,
    'list' => 0,
    'common_js' => 0,
    'view_javascript' => 0,
    'menuAction' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_6697857682a2a3_68533381',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_6697857682a2a3_68533381')) {function content_6697857682a2a3_68533381($_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["menuID"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['menuID']->value)===null||$tmp==='' ? '' : $tmp), null, 0);?>
<title><?php echo $_smarty_tpl->tpl_vars['language']->value['lblAdmin'];?>
 : <?php if ($_smarty_tpl->tpl_vars['menuID']->value){?><?php echo $_smarty_tpl->tpl_vars['language']->value['lblEditMenu'];?>
<?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['language']->value['lblAddNewMenu'];?>
<?php }?></title>
<?php echo $_smarty_tpl->getSubTemplate ('CommonStyles.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

<?php $_smarty_tpl->tpl_vars["jqueryversion"] = new Smarty_variable('1.9', null, 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;?>
/ui.daterangepicker.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;?>
/inner-formlisting.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_container">
    <div class="content_wrapper">
      <div class="fixing_right"><?php echo $_smarty_tpl->getSubTemplate ('ContentLanguageOptions.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
</div>	
      <h2><?php if ((($tmp = @$_smarty_tpl->tpl_vars['menuID']->value)===null||$tmp==='' ? '' : $tmp)){?><?php echo $_smarty_tpl->tpl_vars['language']->value['lblEditMenu'];?>
<?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['language']->value['lblAddNewMenu'];?>
<?php }?></h2>
      	<div class="inner_content_wrapper"> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->start(array('name'=>"frmMenu",'method'=>"post"),$_smarty_tpl);?>

        <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>'menuID','value'=>(($tmp = @$_smarty_tpl->tpl_vars['menuResult']->value['menuID'])===null||$tmp==='' ? '' : $tmp)),$_smarty_tpl);?>

        <div class="form_listing add-new-formlisting" >
          <div class="section_wrap clearfix">
            <h3><span><?php echo $_smarty_tpl->tpl_vars['language']->value['lblBasicInfo'];?>
</span></h3>
            <div class="clearfix">
              <ul class="left-pane">
             	 <li class="selection clearfix">
                  <div class="leftside01 mandatory"> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblMenuTitle'];?>
 </div>
                  <!--End:Left-->
                  <div class="rightside01"> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('id'=>"menuTitle",'name'=>"menuTitle",'value'=>(($tmp = @$_smarty_tpl->tpl_vars['menuResult']->value['menuName'])===null||$tmp==='' ? '' : $tmp),'validate'=>"required",'error'=>$_smarty_tpl->tpl_vars['language']->value['errMenuTitle'],'class'=>"textbox",'tabindex'=>"1"),$_smarty_tpl);?>
 </div>
                  <!--End:right--> 
                </li>
              	 <li class="selection clearfix">
                  <div class="leftside01 mandatory"> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblMenuKey'];?>
</div>
                  <!--End:Left-->
                  <div class="rightside01"> 
                  <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('id'=>"menuKey",'name'=>"menuKey",'validate'=>"required~*isKey~*callback_checkMenuKey",'class'=>"textbox",'tabindex'=>"1",'maxlength'=>"120",'value'=>(($tmp = @$_smarty_tpl->tpl_vars['menuResult']->value['menuKey'])===null||$tmp==='' ? '' : $tmp),'error'=>(((($_smarty_tpl->tpl_vars['language']->value['errMenuKey']).("~*")).($_smarty_tpl->tpl_vars['language']->value['errValidMenuKey'])).("~*")).($_smarty_tpl->tpl_vars['language']->value['errKeyAlreayExits'])),$_smarty_tpl);?>

                </div>
                  <!--End:right-->
                </li>
      			
                <li class="selection clearfix">
                  <div class="leftside01"> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblMenuDescription'];?>
 </div>
                  <!--End:Left-->
                  <div class="rightside01"> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textarea(array('id'=>"menuDescription",'name'=>"menuDescription",'value'=>(($tmp = @$_smarty_tpl->tpl_vars['menuResult']->value['MenuDesc'])===null||$tmp==='' ? '' : $tmp),'maxlength'=>"200",'onkeyup'=>"return ismaxlength(this)",'onchange'=>"return ismaxlength(this)",'class'=>"length0_50pers",'rows'=>"4",'cols'=>"4",'tabindex'=>"1"),$_smarty_tpl);?>
 </div>
                  <!--End:right--> 
                </li>
                </ul>
                </div>
                
                 <h3><span><?php echo $_smarty_tpl->tpl_vars['language']->value['lblDisplayOptions'];?>
</span></h3>
                 <div class="clearfix">
                 <ul class="right-pane">
                 <li class="selection clearfix">
                  <div class="leftside01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblPosition'];?>
 </div>
                  <!--End:Left-->
                  <div class="rightside01"> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('tabindex'=>"1",'name'=>"position",'value'=>(($tmp = @$_smarty_tpl->tpl_vars['menuResult']->value['defposition'])===null||$tmp==='' ? '' : $tmp),'caption'=>"->".($_smarty_tpl->tpl_vars['language']->value['lblSelect']),'class'=>"width_50per",'options'=>$_smarty_tpl->tpl_vars['resPositionList']->value),$_smarty_tpl);?>
 </div>
                  <!--End:right-->
                </li>
                
                 <li class="selection clearfix menu-add">
                <div class="leftside01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblBackgroundImage'];?>
</div>
                <div class="rightside01 none label-btm-fix"><span tabindex="1">
                 <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->upload_image(array('name'=>"backgroundImage",'path'=>"uploads/menus/",'file'=>(($tmp = @$_smarty_tpl->tpl_vars['imageName']->value)===null||$tmp==='' ? '' : $tmp),'validate'=>"isImage",'error'=>$_smarty_tpl->tpl_vars['language']->value['errValidImage'],'delete_title'=>($_smarty_tpl->tpl_vars['language']->value['lblDelete']),'message_delete'=>($_smarty_tpl->tpl_vars['language']->value['msgimageDelConfirm']),'size_caption'=>$_smarty_tpl->tpl_vars['language']->value['lblMaximumFileSize'],'types_caption'=>$_smarty_tpl->tpl_vars['language']->value['lblFileTypes']),$_smarty_tpl);?>

                 </span> </div>
              </li>
                
                 <li class="selection clearfix">
                  <div class="leftside01"> </div>
                  <!--End:Left-->
                  <div class="rightside01">
					 <?php ob_start();?><?php if ((($tmp = @$_smarty_tpl->tpl_vars['menuResult']->value['showBgImage'])===null||$tmp==='' ? '' : $tmp)=='Yes'){?><?php echo "True";?><?php }?><?php $_tmp1=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('name'=>"showBackground",'value'=>"Yes",'checked'=>$_tmp1,'tabindex'=>"1"),$_smarty_tpl);?>
 <?php echo $_smarty_tpl->tpl_vars['language']->value['lblShowBackground'];?>
 
                  </div>
                  <!--End:right-->
                </li>
                 </ul>
                 <ul class="left-pane">
                         <li class="selection clearfix">
                                <div class="leftside01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblLinkCssStyle'];?>
</div>
                                <div class="rightside01">
                                    <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"cssStyle",'tabindex'=>"1",'maxlength'=>"100",'class'=>"textbox",'value'=>(($tmp = @$_smarty_tpl->tpl_vars['menuResult']->value['cssStyle'])===null||$tmp==='' ? '' : $tmp)),$_smarty_tpl);?>
 
                                </div>
                            </li>  
                       
                <?php ob_start();?><?php echo (($tmp = @smarty_modifier_date_format($_smarty_tpl->tpl_vars['publishFrom']->value,$_smarty_tpl->tpl_vars['date_format']->value))===null||$tmp==='' ? '' : $tmp);?>
<?php $_tmp2=ob_get_clean();?><?php $_smarty_tpl->tpl_vars["publishFrom"] = new Smarty_variable($_tmp2, null, 0);?>
              	<?php ob_start();?><?php echo (($tmp = @smarty_modifier_date_format($_smarty_tpl->tpl_vars['publishTo']->value,$_smarty_tpl->tpl_vars['date_format']->value))===null||$tmp==='' ? '' : $tmp);?>
<?php $_tmp3=ob_get_clean();?><?php $_smarty_tpl->tpl_vars["publishTo"] = new Smarty_variable($_tmp3, null, 0);?>
                <li class="selection clearfix">
                            <div class="leftside01"> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblStartDate'];?>
 </div>
                              <div class="rightside01">
                        <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"publishFrom",'tabindex'=>"1",'validate'=>"isDate",'error'=>$_smarty_tpl->tpl_vars['language']->value['errValidDate'],'class'=>"date_picker_field",'value'=>$_smarty_tpl->tpl_vars['publishFrom']->value),$_smarty_tpl);?>
      
                         </div>
                        </li>
                        
                <li class="selection clearfix">
                    <div class="leftside01"> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblEndDate'];?>
 </div>
                      <div class="rightside01">
                       <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"publishTo",'tabindex'=>"1",'validate'=>"isDate",'error'=>$_smarty_tpl->tpl_vars['language']->value['errValidDate'],'class'=>"date_picker_field",'value'=>$_smarty_tpl->tpl_vars['publishTo']->value),$_smarty_tpl);?>

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

                       <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->validate(array('name'=>"StartEndDatecheck",'validate'=>"hiddenStartEndDate->isequal->1~*required",'error'=>$_smarty_tpl->tpl_vars['language']->value['errStartEndDate']),$_smarty_tpl);?>

                 </div>
                </li>
                        
                 <li class="selection clearfix">
                  <div class="leftside01">  </div>
                  <!--End:Left-->
                  <div class="rightside01">
					<?php ob_start();?><?php if ((($tmp = @$_smarty_tpl->tpl_vars['menuResult']->value['showTitle'])===null||$tmp==='' ? '' : $tmp)=='Yes'){?><?php echo "True";?><?php }?><?php $_tmp4=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('name'=>"showTitle",'value'=>"Yes",'checked'=>$_tmp4,'tabindex'=>"1"),$_smarty_tpl);?>
 <?php echo $_smarty_tpl->tpl_vars['language']->value['lblShowTitle'];?>

                  </div>
                  <!--End:right-->
                </li>
                
                 <li class="selection clearfix">
                          <div class="leftside01">  </div>
                          <!--End:Left-->
                          <div class="rightside01">
                            <?php ob_start();?><?php if ((($tmp = @$_smarty_tpl->tpl_vars['menuResult']->value['showDesc'])===null||$tmp==='' ? '' : $tmp)=='Yes'){?><?php echo "True";?><?php }?><?php $_tmp5=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('name'=>"showDesc",'value'=>"Yes",'checked'=>$_tmp5,'tabindex'=>"1"),$_smarty_tpl);?>
 <?php echo $_smarty_tpl->tpl_vars['language']->value['lblShowDescIntroText'];?>

                          </div>
                          <!--End:right-->
                        </li>
                 <li class="selection clearfix">
                  <div class="leftside01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblAccess'];?>
 </div>
                  <div class="rightside01">
                  <select multiple="multiple" tabindex="1" class="width_50per" id="access" name="access[]">
                      <?php  $_smarty_tpl->tpl_vars["list"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["list"]->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['resUserTypesList']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["list"]->key => $_smarty_tpl->tpl_vars["list"]->value){
$_smarty_tpl->tpl_vars["list"]->_loop = true;
?> 
                              <option value="<?php echo (($tmp = @$_smarty_tpl->tpl_vars['list']->value[0])===null||$tmp==='' ? '' : $tmp);?>
" <?php echo (($tmp = @$_smarty_tpl->tpl_vars['list']->value[3])===null||$tmp==='' ? '' : $tmp);?>
 ><?php echo (($tmp = @$_smarty_tpl->tpl_vars['list']->value[1])===null||$tmp==='' ? '' : $tmp);?>
</option>
                      <?php } ?>  
                  </select>
                  </div>
                </li>
                 <li class="selection clearfix">
                  <div class="leftside01 mandatory"> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblStatus'];?>
 </div>
                  <!--End:Left-->
                  <div class="rightside01">
                    <div id="perioddiv"> 
					 <?php ob_start();?><?php echo (($tmp = @$_smarty_tpl->tpl_vars['menuResult']->value['status'])===null||$tmp==='' ? '' : $tmp) ? $_smarty_tpl->tpl_vars['menuResult']->value['status'] : 'Active';?>
<?php $_tmp6=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->radio(array('name'=>"menuStatus",'class'=>"customradio",'options'=>((("Active->").($_smarty_tpl->tpl_vars['language']->value['lblActive'])).("~*Inactive->")).($_smarty_tpl->tpl_vars['language']->value['lblInactive']),'value'=>$_tmp6,'tabindex'=>"1"),$_smarty_tpl);?>

					</div>
                  </div>
                  <!--End:right-->
                </li>
                
                 </ul>
                 </div>
                 <div class="submit-block clearfix textto_center"> 
                              <span class="line"></span>
                  <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->submit(array('name'=>"submitMenu",'id'=>"submit",'class'=>"curve-3",'value'=>($_smarty_tpl->tpl_vars['language']->value['lblSave']),'tabindex'=>"1"),$_smarty_tpl);?>
 
                  <?php echo $_smarty_tpl->tpl_vars['language']->value['lblOr'];?>
 
                  <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"/custommenu/index/",'content'=>$_smarty_tpl->tpl_vars['language']->value['lblCancel'],'tabindex'=>"1"),$_smarty_tpl);?>
       
                </div>
   			</div>
        </div>
        <!--End:From Listing-->
        <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->close(array(),$_smarty_tpl);?>

      </div>
      <!--End:Border 2-->
    </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 if ((($tmp = @$_smarty_tpl->tpl_vars['menuID']->value)===null||$tmp==='' ? '' : $tmp)){?>
      <?php $_smarty_tpl->tpl_vars["menuAction"] = new Smarty_variable("Edit", null, 0);?>
      <?php }else{ ?>
      <?php $_smarty_tpl->tpl_vars["menuAction"] = new Smarty_variable("Add", null, 0);?>
      <?php }?>
<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->editor_script(array(),$_smarty_tpl);?>

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

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

<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['common_js']->value;?>
/validate.plugin.js"></script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['common_js']->value;?>
/uploadImage.plugin.js"></script> 
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/jquery-ui-timepicker-addon.js"></script> 
 <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/custommenu.page.js"></script>
<script  type="text/javascript">
var menuAction = '<?php echo $_smarty_tpl->tpl_vars['menuAction']->value;?>
';

 $(function(){
	 $("#perioddiv input").customInput('');
	});

</script> 
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/custom-radiobutton.js"></script>
</body>
</html>
<?php }} ?>