<?php /* Smarty version Smarty-3.1.8, created on 2019-11-12 09:31:52
         compiled from "/home/stg70/public_html/agmc-v2/application/core/views/manage/standard/OfferList.tpl" */ ?>
<?php /*%%SmartyHeaderCode:10491139925db0410839cbf3-26416742%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '6bae60abcd3def69934f42e2523de2f17bdb5411' => 
    array (
      0 => '/home/stg70/public_html/agmc-v2/application/core/views/manage/standard/OfferList.tpl',
      1 => 1572498161,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '10491139925db0410839cbf3-26416742',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5db04108476be5_66617739',
  'variables' => 
  array (
    'language' => 0,
    'view_styles' => 0,
    'view_javascript' => 0,
    'listOffer' => 0,
    'listBrand' => 0,
    'editPrivilege' => 0,
    'deletePrivilege' => 0,
    'sortby' => 0,
    'orderby' => 0,
    'link' => 0,
    'offer' => 0,
    'offerID' => 0,
    'statusoptions' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5db04108476be5_66617739')) {function content_5db04108476be5_66617739($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_truncate')) include '/home/stg70/public_html/agmc-v2/library/template/plugins/modifier.truncate.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['lblModuleOffers'];?>
</title>
<?php echo $_smarty_tpl->getSubTemplate ('CommonStyles.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

<?php echo $_smarty_tpl->getSubTemplate ('CommonCustomStyles.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

<?php echo $_smarty_tpl->getSubTemplate ('CommonJavaScript.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/grid_listing.css" />
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/right-menu.css" />
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/table.plugin.js"></script>

</head><body>
<div class="outer_container"> <?php echo $_smarty_tpl->getSubTemplate ('CommonTop.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
 
  <!--End:Header Container--> 
  <!--***********************************************************************START CONTAINER SECTION******************************************************-->
  <div class="content_container2 clearfix">
        <div class="right-sidebar">
          <div class="side_wrapper"> 
          <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('priv_href'=>"offer/new/",'href'=>"offer/new/",'class'=>"custom-btnt",'content'=>"<span class='plus-v'></span><span class='plus-h'></span><strong><span class='add'></span>".($_smarty_tpl->tpl_vars['language']->value['lblOfferAddNew'])." </strong>",'title'=>($_smarty_tpl->tpl_vars['language']->value['lblOfferAddNew'])),$_smarty_tpl);?>

          </div>
        </div>
        <!--End: Right Block-->
        <div class="left_wrapper">
          <div class="content_wrapper">
                <div class="fixing_right">
                    <?php if ($_smarty_tpl->tpl_vars['listOffer']->value){?>
                        <?php echo $_smarty_tpl->getSubTemplate ('ContentLanguageOptions.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

                    <?php }?>
                </div>
                        
                <h2><?php echo $_smarty_tpl->tpl_vars['language']->value['lblModuleOffers'];?>
</h2>
                <div class="inner_content_wrapper"> 
                  <div id="common_message"></div>

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

                        <div class="search_container">
                          <div class="inner single-box">
                                <ul class="clearfix">	
                                        <li class="column">
                                                <p class="label-field01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblOfferofferTitle'];?>
</p>
                                                <span class="form-field01">
                                                    <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('class'=>"textbox ",'tabindex'=>"8",'name'=>"offerTitle"),$_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">
                                            <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->submit(array('name'=>"search",'tabindex'=>"13",'value'=>($_smarty_tpl->tpl_vars['language']->value['lblSearch']),'class'=>"button01 margin-r-10"),$_smarty_tpl);?>
 
                                            <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"/offer/",'tabindex'=>"8",'class'=>"action-link",'caption'=>($_smarty_tpl->tpl_vars['language']->value['lblListAll'])),$_smarty_tpl);?>

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



                  <?php if ($_smarty_tpl->tpl_vars['listOffer']->value){?>
                  <div class="grid_table00"> 
                   <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->start(array('name'=>"formList",'action'=>'','method'=>"post",'enctype'=>"multipart/form-data"),$_smarty_tpl);?>

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

                   <table width="100%" border="0" cellspacing="0" cellpadding="0"   >
                          <tr>
                                <?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value||$_smarty_tpl->tpl_vars['deletePrivilege']->value){?>
                                <th align="left" valign="middle"  class="checkbox_column" style="width:5%;"> <div class="chekingdiv">
                                        <ul>
                                          <li> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('name'=>"ListStatusLinkCheckbox",'id'=>"ListStatusLinkCheckbox",'class'=>"fixing_left",'value'=>''),$_smarty_tpl);?>

                                                <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>'','id'=>"ListStatusLink",'class'=>"status-arw fixing_left",'alt'=>"down arrow"),$_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>
                                  </div>
                                 </th><?php }?>
                                <th  align="left" valign="middle" class="sort<?php if ($_smarty_tpl->tpl_vars['sortby']->value=='sort_offerTitle'){?><?php echo $_smarty_tpl->tpl_vars['orderby']->value;?>
<?php }?>" style="width:35%;" >
                                <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>($_smarty_tpl->tpl_vars['link']->value)."sortby/sort_offerTitle/orderby/".($_smarty_tpl->tpl_vars['orderby']->value)."/",'title'=>($_smarty_tpl->tpl_vars['language']->value['lblOfferofferTitle']),'content'=>($_smarty_tpl->tpl_vars['language']->value['lblOfferofferTitle'])),$_smarty_tpl);?>

                                </th>
                                <th  align="left" valign="middle"  width="10%"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblMenuBrands'];?>
</th>
                                <th  align="left" valign="middle" style="width:50%;">
                                        <?php echo $_smarty_tpl->tpl_vars['language']->value['lblOfferofferDescription'];?>

                                </th>

                                <?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value||$_smarty_tpl->tpl_vars['deletePrivilege']->value){?>
                                <th  align="left" valign="middle" style="width:10%;" > </th>
                                <?php }?>
                          </tr>
                          </table>
                           </div>
<ul id="sort1" class="dragtree connectedSortable">
                          <?php  $_smarty_tpl->tpl_vars['offer'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['offer']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['listOffer']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['offer']->key => $_smarty_tpl->tpl_vars['offer']->value){
$_smarty_tpl->tpl_vars['offer']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['offer']->key;
?>
                          <?php $_smarty_tpl->tpl_vars["offerID"] = new Smarty_variable($_smarty_tpl->tpl_vars['offer']->value['offerID'], null, 0);?>
<li data-id="<?php echo $_smarty_tpl->tpl_vars['offerID']->value;?>
" data-orderid="<?php echo (($tmp = @$_smarty_tpl->tpl_vars['offer']->value['priority'])===null||$tmp==='' ? 0 : $tmp);?>
">
     <table width="100%" cellspacing="0"  cellpadding="0" class="drag_table">
                          <tr class="shade01">
                                        <?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value||$_smarty_tpl->tpl_vars['deletePrivilege']->value){?>
                                                <td align="left" valign="middle" class="checkbox_column" style="width:5%;">
                                                          <?php ob_start();?><?php if ($_smarty_tpl->tpl_vars['offer']->value['status']=='A'){?><?php echo "ListActive";?><?php }else{ ?><?php echo "ListInactive";?><?php }?><?php $_tmp1=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('name'=>"offerID[]",'class'=>"adminUserBulkStatus checkbox01 ListAll 
                                                                ".$_tmp1,'options'=>'','value'=>$_smarty_tpl->tpl_vars['offerID']->value),$_smarty_tpl);?>
                  
                                                </td>
                                        <?php }?>	
                                        <td align="left" valign="middle" style="width:35%;">
                                                <?php echo $_smarty_tpl->tpl_vars['offer']->value['offerTitle'];?>

                                        </td>	
                                        <td align="left" valign="middle" style="width:10%;">
                                                <?php echo $_smarty_tpl->tpl_vars['offer']->value['brandName'];?>

                                        </td>	
                                        <td align="left" valign="middle" style="width:50%;">
                                                <?php echo smarty_modifier_truncate(strip_tags(htmlspecialchars_decode($_smarty_tpl->tpl_vars['offer']->value['offerDescription'], ENT_QUOTES)),250);?>

                                        </td>
                                <?php if ($_smarty_tpl->tpl_vars['deletePrivilege']->value||$_smarty_tpl->tpl_vars['editPrivilege']->value){?>
                                <td align="left" valign="top" style="width:10%;">
                                        <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"offer/view/id/".($_smarty_tpl->tpl_vars['offerID']->value)."/",'class'=>"preview icon-set",'title'=>($_smarty_tpl->tpl_vars['language']->value['lblView']),'caption'=>'','history'=>"yes"),$_smarty_tpl);?>

                                        <?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value){?>			  
                                                <?php if ($_smarty_tpl->tpl_vars['offer']->value['status']=="A"){?>
                                                        <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('title'=>"Change Status",'class'=>"changeStatus status-active icon-set",'id'=>($_smarty_tpl->tpl_vars['offerID']->value),'rel'=>"I"),$_smarty_tpl);?>
  
                                                <?php }elseif($_smarty_tpl->tpl_vars['offer']->value['status']=="I"){?>
                                                        <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('title'=>"Change Status",'class'=>"changeStatus status-inactive icon-set",'id'=>($_smarty_tpl->tpl_vars['offerID']->value),'rel'=>"A"),$_smarty_tpl);?>

                                                <?php }?>
                                                <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"offer/edit/id/".($_smarty_tpl->tpl_vars['offerID']->value)."/",'class'=>"edit02 icon-set",'title'=>($_smarty_tpl->tpl_vars['language']->value['lblEdit']),'caption'=>'','history'=>"yes"),$_smarty_tpl);?>

                                        <?php }?>
                                        <?php if ($_smarty_tpl->tpl_vars['deletePrivilege']->value){?>
                                                <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('confirm'=>($_smarty_tpl->tpl_vars['language']->value['msgDeleteItem']),'confirm_head'=>$_smarty_tpl->tpl_vars['language']->value['lblDelete'],'href'=>"offer/destroy/id/".($_smarty_tpl->tpl_vars['offerID']->value)."/",'title'=>($_smarty_tpl->tpl_vars['language']->value['lblDelete']),'class'=>"delete02 icon-set",'offerID'=>($_smarty_tpl->tpl_vars['offerID']->value)),$_smarty_tpl);?>

                                        <?php }?> 
                                </td>
                                <?php }?>
                        </tr>
     </table>
</li>
                          <?php } ?>
</ul>
                        </table>
                        <br>
                       
                        <?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value||$_smarty_tpl->tpl_vars['deletePrivilege']->value){?>
                                <?php if ($_smarty_tpl->tpl_vars['deletePrivilege']->value&&$_smarty_tpl->tpl_vars['editPrivilege']->value){?>
                                <?php $_smarty_tpl->tpl_vars["statusoptions"] = new Smarty_variable("->".($_smarty_tpl->tpl_vars['language']->value['lblDonotchange'])."~*A->".($_smarty_tpl->tpl_vars['language']->value['lblActivate'])."~*I->".($_smarty_tpl->tpl_vars['language']->value['lblInactivate'])."~*D->".($_smarty_tpl->tpl_vars['language']->value['lblDelete']), null, 0);?>
                                <?php }elseif($_smarty_tpl->tpl_vars['deletePrivilege']->value&&(!$_smarty_tpl->tpl_vars['editPrivilege']->value)){?> 
                                <?php $_smarty_tpl->tpl_vars["statusoptions"] = new Smarty_variable("->".($_smarty_tpl->tpl_vars['language']->value['lblDonotchange'])."~*D->".($_smarty_tpl->tpl_vars['language']->value['lblDelete']), null, 0);?> 
                                <?php }elseif((!$_smarty_tpl->tpl_vars['deletePrivilege']->value)&&$_smarty_tpl->tpl_vars['editPrivilege']->value){?> 
                                <?php $_smarty_tpl->tpl_vars["statusoptions"] = new Smarty_variable("->".($_smarty_tpl->tpl_vars['language']->value['lblDonotchange'])."~*A->".($_smarty_tpl->tpl_vars['language']->value['lblActivate'])."~*I->".($_smarty_tpl->tpl_vars['language']->value['lblInactivate']), null, 0);?> 
                        <?php }?> 

                        <div class="action_box">
                                <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('name'=>"select_status",'class'=>"select-box width-auto",'options'=>$_smarty_tpl->tpl_vars['statusoptions']->value,'value'=>''),$_smarty_tpl);?>

                                <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->submit(array('name'=>"changeStatus",'id'=>"submitBulkStatus",'class'=>"button04",'value'=>($_smarty_tpl->tpl_vars['language']->value['lblUpdate'])),$_smarty_tpl);?>

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

                     
                        <div class="clear"></div>
                        <?php }else{ ?>
                        <div class="message_info" id="common_message"><?php echo $_smarty_tpl->tpl_vars['language']->value['msgNoRecords'];?>
</div>
                        <?php }?>
                  <!--End:From Listing--> 
                </div>
                <!--End:Border 3--> 
          </div>
          <!--End:Border 2--> 
        </div>
        <!--End: left Block-->
        <div class="clear"></div>
  </div>
  <!--End: Content--> 

  <?php echo $_smarty_tpl->getSubTemplate ('CommonBottom.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
 </div>
<!--***********************************************************************END CONTAINER SECTION******************************************************--> 
<!--End:Content Container--> 
<!--End:Outer Container--> 
<?php echo $_smarty_tpl->getSubTemplate ('CommonJavaScriptBottom.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
 

<script type="text/javascript">
var msgDeleteItem	= '<?php echo $_smarty_tpl->tpl_vars['language']->value['msgDeleteItem'];?>
';
var msgSelectItem	= '<?php echo $_smarty_tpl->tpl_vars['language']->value['msgSelectItem'];?>
';
var lblSelectAction			= '<?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelectAction'];?>
';
var msgSelectSearchCriteria	= '<?php echo $_smarty_tpl->tpl_vars['language']->value['msgSelectSearchCriteria'];?>
';
var lblSelectItem			= '<?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelectItem'];?>
';	
var lblAny              =   '<?php echo $_smarty_tpl->tpl_vars['language']->value['lblAny'];?>
';
</script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/offerlist.page.js"></script> 
 <style type="text/css">
.grid_table00 {
	margin-bottom:0!important;
	}
	.drag_table
	{
		border-bottom:#d3d4d8 solid 1px;
		cursor:move;
	}
        .no_drag
	{
		border-bottom:#d3d4d8 solid 1px;
                cursor:default;
	}
.drag_table td 
{
	border:#d3d4d8 solid 1px;
	border-bottom:0px;
	border-top:0px;
	padding:3px;
	font:12px Arial, Helvetica, sans-serif;
}
.drag_table tr:hover {
	background:#edf4f8;
	}
        .no_drag td 
{
	border:#d3d4d8 solid 1px;
	border-bottom:0px;
	border-top:0px;
	padding:3px;
	font:12px Arial, Helvetica, sans-serif;
}
.no_drag tr:hover {
	background:#edf4f8;
	}
.dd-placeholder{
	margin: 5px 0;padding: 0;min-height:25px;background: #f2fbff;border: 1px dashed #b6bcbf;box-sizing: border-box;
-moz-box-sizing: border-box;
}	
</style>
<script type="text/javascript">
    $(document).ready(function(){
       // $('#userOrderList').val(parseTree($("#sort1"),0,0));
       var offerGroupID=$('#offerGroupID').val();
       if(offerGroupID!=''){
       makeSortable();
   }
   });
        function makeSortable(){
      $( '#sort1.connectedSortable,#sort1 .connectedSortable' ).sortable({
        //handle: ".drag" ,
        connectWith: ".connectedSortable",
        placeholder: "dd-placeholder",
        cursor: "move",
        update:function(event,ui){
                /*$( '#sort1.connectedSortable li,#sort1 .connectedSortable li' ).each(function(){
                                var key=parseInt($(this).parents('ul').length);
                                $(this).find('.chk-bx').css('left',key*(-25)+"px");
                });
                */

                $("#sort1 li").each(function(){
                        var obj=$(this);
                        var ulCount=obj.find('ul').length;
                        var liCount=obj.find('li').not('.addNew').length;
                        if(!obj.hasClass('addNew')){
                                var level=parseInt(obj.parents('ul').length)-1;
                                obj.attr('data-level',level);
                        }
                        if(!ulCount ){
                                obj.append(' <ul class="connectedSortable  addOn"><li class="addNew"></li></ul>');
                        }
                        else{
                                obj.find('.addNew').remove();
                        }
                        if(liCount>0){
                                obj.find('.expand').removeClass('hide');
                        }
                        else{
                                obj.find('.expand').addClass('hide');
                        }

                });
                $("#sort1 li .addOn").each(function(){
                        if($.trim($(this).html())==''){
                                $(this).html('<li class="addNew"></li>');
                        }
                });
                ui.item.parent('ul').parent('li').find('.expand:first').addClass('minus').text("-");
                makeSortable();
        },
        over:function(event,ui){
                var currheight=ui.helper.css('height');
                $('.dd-placeholder').css('height',currheight);
        },
        receive:function(event,ui){
                $('#sort1').css('min-height',(parseInt($('#sort1').css('height'))+25)+"px");
        },
        beforeStop:function(event,ui){
               //$('#offerPriority').val(parseTree($("#sort1"),0,0));
                $.ajax({
                        type:"POST",
                        async: false,
                         data: 'offerPriority=' + parseTree($("#sort1"),0,0),
                         url:GLOBAL_BASE_PATH + "/offer/ajaxUpdateOfferPriority/",
                         success : function (data) { 
                        //location.reload(); 

                         }
                })
        }
}).disableSelection();
        }
	function parseTree(ul,val,preKey){
	var tags = "";
	var i=1;
	$('#sort1 li').each(function(){
		if(!$(this).hasClass('addNew')){
			if(typeof $(this).data("id")!='undefined'){
				var obj = $(this).data("id") + ":" + i;
				i=i+1;
				if(tags){
				tags=tags+","+obj;	
				}
				else{
					tags=obj;
				}
			}
		}
	});
	
	return tags;
}

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

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