<?php /* Smarty version Smarty-3.1.8, created on 2019-12-24 11:42:12
         compiled from "/home/stg70/public_html/agmc-v2/application/core/views/manage/standard/UrlRewriteAdd.tpl" */ ?>
<?php /*%%SmartyHeaderCode:5922240995e01c154b7b691-73824411%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'afa3237c0afd8d8a1053240abd815748b8190d00' => 
    array (
      0 => '/home/stg70/public_html/agmc-v2/application/core/views/manage/standard/UrlRewriteAdd.tpl',
      1 => 1577167929,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '5922240995e01c154b7b691-73824411',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'language' => 0,
    'view_styles' => 0,
    'rewriteID' => 0,
    'requestPath' => 0,
    'type' => 0,
    'product' => 0,
    'parentID' => 0,
    'category' => 0,
    'menu' => 0,
    'page' => 0,
    'view_images' => 0,
    'redirectOption' => 0,
    'sysKeys' => 0,
    'common_js' => 0,
    'view_javascript' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5e01c154c2cc91_72049621',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5e01c154c2cc91_72049621')) {function content_5e01c154c2cc91_72049621($_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['lblURLRewriteManagement'];?>
:<?php echo $_smarty_tpl->tpl_vars['language']->value['lblAddNewURL'];?>
</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 href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/jqueryui.plugin.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" />
<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;?>
/banner-add.css" media="screen" />
<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 $_smarty_tpl->tpl_vars["rewriteID"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['rewriteID']->value)===null||$tmp==='' ? '' : $tmp), null, 0);?>
  <?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 add-new-formlisting">
    <?php if ($_smarty_tpl->tpl_vars['rewriteID']->value>0){?>    <?php }else{ ?> <div class="fixing_right"><?php echo $_smarty_tpl->getSubTemplate ('ContentLanguageOptions.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
</div><?php }?>
    <h2><?php echo $_smarty_tpl->tpl_vars['language']->value['lblAddNewURL'];?>
</h2>
	<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->start(array('name'=>"formUrlRewrite",'method'=>"post",'action'=>'','enctype'=>"multipart/form-data"),$_smarty_tpl);?>

     <div class="section_wrap clearfix ">	
            
          
            <div class="clearfix"></div>
            <div class="full_width clearfix">
                 <div id="common_message" ></div>	
             <div class="form_listing">
        	      <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"rewriteID"),$_smarty_tpl);?>
<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"objectID"),$_smarty_tpl);?>

                  <?php if ($_smarty_tpl->tpl_vars['rewriteID']->value>0){?>    
                     
                     <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"parentID"),$_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'=>"isSystem"),$_smarty_tpl);?>

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

                     <?php }?>
                <ul>
               <?php if ($_smarty_tpl->tpl_vars['rewriteID']->value>0){?>
                     <li class="selection clearfix" id="content">
                        <div class="leftside01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblType'];?>
  </div>
                        <div class="rightside01 mandatory" tabindex="12">
                            <?php echo ucfirst($_smarty_tpl->tpl_vars['type']->value);?>

                         </div> 
                    </li> 
                         <?php if ($_smarty_tpl->tpl_vars['type']->value=='product'){?>
                        <li class="selection clearfix" id="content">
                        <div class="leftside01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblProduct'];?>
  </div>
                        <div class="rightside01 mandatory" tabindex="12">
                            <?php echo ucfirst($_smarty_tpl->tpl_vars['product']->value);?>

                         </div> 
                        </li> 
                         <?php if ($_smarty_tpl->tpl_vars['parentID']->value>0){?>
                             <li class="selection clearfix" id="content">
                        <div class="leftside01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblCategory'];?>
  </div>
                        <div class="rightside01 mandatory" tabindex="12">
                            <?php echo ucfirst($_smarty_tpl->tpl_vars['category']->value);?>

                         </div> 
                        </li> 
                            <?php }?>
                        <?php }elseif($_smarty_tpl->tpl_vars['type']->value=='catalog'){?>
                             <li class="selection clearfix" id="content">
                        <div class="leftside01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblCategory'];?>
  </div>
                        <div class="rightside01 mandatory" tabindex="12">
                            <?php echo ucfirst($_smarty_tpl->tpl_vars['category']->value);?>

                         </div> 
                        </li> 
                         <?php }elseif($_smarty_tpl->tpl_vars['type']->value=='menu'){?>
                            <li class="selection clearfix" id="content">
                        <div class="leftside01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblMenu'];?>
  </div>
                        <div class="rightside01 mandatory" tabindex="12">
                            <?php echo ucfirst($_smarty_tpl->tpl_vars['menu']->value);?>

                         </div> 
                        </li> 
                          <?php }elseif($_smarty_tpl->tpl_vars['type']->value=='page'){?>
                            <li class="selection clearfix" id="content">
                        <div class="leftside01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblPage'];?>
  </div>
                        <div class="rightside01 mandatory" tabindex="12">
                            <?php echo ucfirst($_smarty_tpl->tpl_vars['page']->value);?>

                         </div> 
                        </li> 
                         <?php }?>
                         
                 <?php }else{ ?>
                    <li class="selection clearfix" id="content">
                        <div class="leftside01 mandatory"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblType'];?>
  </div>
                        <div class="rightside01" tabindex="12">
		<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('onChange'=>"listObjectTypes()",'name'=>"type",'validate'=>"required",'error'=>$_smarty_tpl->tpl_vars['language']->value['errSelectType'],'tabindex'=>"3",'class'=>"select-box width_20per",'options'=>"->Select~*catalog->".($_smarty_tpl->tpl_vars['language']->value['lblCategory'])."~*product->".($_smarty_tpl->tpl_vars['language']->value['lblProduct'])."~*menu->".($_smarty_tpl->tpl_vars['language']->value['lblMenu'])."~*page->".($_smarty_tpl->tpl_vars['language']->value['lblPage'])."~*blog->".($_smarty_tpl->tpl_vars['language']->value['lblMenuBlogs'])."~*blogCategory->".($_smarty_tpl->tpl_vars['language']->value['lblBlogCategories'])."~*custom->".($_smarty_tpl->tpl_vars['language']->value['lblCustom'])),$_smarty_tpl);?>

                          <span id="cityLoc_loader" class="hide">&nbsp;<img src="<?php echo $_smarty_tpl->tpl_vars['view_images']->value;?>
/loader.gif" /></span>
                        </div> 
                    </li>
                            <li id="AjaxDivList" class="selection clearfix" ></li>   
                            <li class="selection clearfix" id="content"> <div class="leftside01 mandatory">
                                </div> 
                                <div class="rightside01" tabindex="12">
                                <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->validate(array('name'=>"categorySelected",'validate'=>"type->isnotequal->~*categorySelected->required",'error'=>$_smarty_tpl->tpl_vars['language']->value['errSelectAnyObject']),$_smarty_tpl);?>
 
                               
                                </div>
                            </li>
                             <li id="AjaxDivProductCategoryList" class="selection clearfix" ></li>    
                 <?php }?>
                </ul>
          
            </div>
                            </div>
            <div class="clearfix"></div>
            <div class="full_width" id="AjaxObjectPath"  <?php if ($_smarty_tpl->tpl_vars['rewriteID']->value==0){?>style="display:none"<?php }?>>
        	 <div class="form_listing">
                <ul>
                     <li class="selection clearfix">
                        <div class="leftside01 mandatory"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblIdPath'];?>
  </div>
                        <div class="rightside01" tabindex="12">
                            <?php ob_start();?><?php if ((($tmp = @$_smarty_tpl->tpl_vars['type']->value)===null||$tmp==='' ? '' : $tmp)!='custom'){?><?php echo "readonly";?><?php }?><?php $_tmp1=ob_get_clean();?><?php ob_start();?><?php if ((($tmp = @$_smarty_tpl->tpl_vars['type']->value)===null||$tmp==='' ? '' : $tmp)!='custom'){?><?php echo " disabled";?><?php }?><?php $_tmp2=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('readonly'=>$_tmp1,'tabindex'=>"3",'name'=>"idPath",'class'=>"textbox width_50per".$_tmp2,'maxlength'=>"225",'validate'=>"required",'error'=>$_smarty_tpl->tpl_vars['language']->value['errUrlPath']),$_smarty_tpl);?>

                        </div> 
                    </li>   
                   
                    <li class="selection clearfix">
                        <div class="leftside01 mandatory"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblRequestPath'];?>
  </div>
                        <div class="rightside01" tabindex="12">
                            <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"oldrequestPath",'value'=>(($tmp = @$_smarty_tpl->tpl_vars['requestPath']->value)===null||$tmp==='' ? '' : $tmp)),$_smarty_tpl);?>

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

                         <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('tabindex'=>"3",'name'=>"requestPath",'class'=>"textbox width_50per",'maxlength'=>"225",'validate'=>"required~*isRequestPath~*requestPath->database->url_rewrite,requestPath,rewriteID!='".($_smarty_tpl->tpl_vars['rewriteID']->value)."' AND languageID='".($_smarty_tpl->tpl_vars['currentLanguageID']->value)."'",'error'=>(((($_smarty_tpl->tpl_vars['language']->value['errUrlPath']).("~*")).($_smarty_tpl->tpl_vars['language']->value['errValidProductIDKey'])).("~*")).($_smarty_tpl->tpl_vars['language']->value['errRequestPathExists'])),$_smarty_tpl);?>

                <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"countExists",'value'=>"0",'id'=>"countExists"),$_smarty_tpl);?>
               
                <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->validate(array('name'=>"validateState",'validate'=>"countExists->isequal->1~*existStateName->required",'error'=>$_smarty_tpl->tpl_vars['language']->value['errRequestPathExists']),$_smarty_tpl);?>

               
                        </div>
                    </li>
                     <li class="selection clearfix">
                        <div class="leftside01 mandatory"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblTargetPath'];?>
  </div>
                        <div class="rightside01" tabindex="12">
                            <?php ob_start();?><?php if ((($tmp = @$_smarty_tpl->tpl_vars['type']->value)===null||$tmp==='' ? '' : $tmp)!='custom'){?><?php echo "readonly";?><?php }?><?php $_tmp3=ob_get_clean();?><?php ob_start();?><?php if ((($tmp = @$_smarty_tpl->tpl_vars['type']->value)===null||$tmp==='' ? '' : $tmp)!='custom'){?><?php echo "disabled";?><?php }?><?php $_tmp4=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('readonly'=>$_tmp3,'tabindex'=>"3",'name'=>"targetPath",'class'=>"textbox width_50per ".$_tmp4,'maxlength'=>"225",'validate'=>"required",'error'=>$_smarty_tpl->tpl_vars['language']->value['errUrlPath']),$_smarty_tpl);?>

                        </div> 
                    </li> 
                      <li class="selection clearfix">
                        <div class="leftside01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblRedirect'];?>
  </div>
                        <div class="rightside01" tabindex="12">
                            <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('class'=>"width_20per",'name'=>"redirectOption",'options'=>"->Select~*RP->Permanent Redirect~*R->Redirect"),$_smarty_tpl);?>

                        </div> 
                    </li>  
                       <li class="selection clearfix">
                        <div class="leftside01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblDescription'];?>
  </div>
                        <div class="rightside01" tabindex="12">
                            <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textarea(array('class'=>"width_50per",'name'=>"description"),$_smarty_tpl);?>

                        </div> 
                    </li>     
                </ul>
            </div>
            </div>
        </div><!--section wrap :: Ends-->
        <div class="submit-block clearfix textto_center"> 
        <span>&nbsp; </span>
        <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->submit(array('name'=>"submitUrlRewrite",'tabindex'=>"8",'id'=>"submitUrlRewrite",'class'=>"curve-3",'value'=>($_smarty_tpl->tpl_vars['language']->value['lblSave'])),$_smarty_tpl);?>
 <?php echo $_smarty_tpl->tpl_vars['language']->value['lblOr'];?>

         <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>'urlrewrite/index/','name'=>"cancel",'tabindex'=>"9",'caption'=>($_smarty_tpl->tpl_vars['language']->value['lblCancel'])),$_smarty_tpl);?>

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

  <!--End:Content Container-->
  <?php echo $_smarty_tpl->getSubTemplate ('CommonBottom.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

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

  <?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);?>

<!--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 errSelectType	=	"<?php echo $_smarty_tpl->tpl_vars['language']->value['errSelectType'];?>
";
var sysKeys = '<?php echo $_smarty_tpl->tpl_vars['sysKeys']->value;?>
';
</script>
<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['view_javascript']->value;?>
/urlrewrite.page.js"></script>

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