<?php /* Smarty version 2.6.9, created on 2008-10-02 22:28:24

         compiled from admin/generate_url_redirection.tpl */ ?>

<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');

smarty_core_load_plugins(array('plugins' => array(array('modifier', 'translate', 'admin/generate_url_redirection.tpl', 7, false),)), $this); ?>

<script type="text/javascript">

function generateUrl()

{

   var form = document.urlgenerator;

   var prefix = form.tag.value;

   var phpmvUrl = "<?php echo $this->_tpl_vars['PHPMV_URL']; ?>

/phpmyvisites.php";

   var stringRedirection = "<?php echo ((is_array($_tmp='admin_url_generate_download_link_example')) ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp)); ?>

";

   // process output

   var url = phpmvUrl + "?url="+ escape(form.urlRedirect.value) + "&id=" + form.site.value + "&pagename=" + prefix + escape(form.pagename.value);

   form.resultUrl.value = url;

   form.resultLink.value = "<a href='"+url+"'>"+stringRedirection+"</a>";

   form.resultOnClick.value = "<a href=\""+form.urlRedirect.value+"\" onclick=\"pmv_click(phpmyvisitesURL, phpmyvisitesSite,"

   	+" '"+escape(form.urlRedirect.value)+"', '"+escape(form.pagename.value)+"', '"+prefix.substr(0, prefix.length-1)+"')\">"+stringRedirection+"</a>";

}

</script>



<h1><?php echo ((is_array($_tmp='admin_url_generate_title')) ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp)); ?>

</h1>

<p class="texte"><?php echo ((is_array($_tmp='admin_url_generate_intro')) ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp)); ?>

</p>



<form name="urlgenerator">

<div id="urlGeneration">

<ul>

<li><?php echo ((is_array($_tmp='admin_url_generate_site_selection')) ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp)); ?>

 </li>

<div class="centrer">

<select name="site" dir="<?php echo $this->_tpl_vars['dir']; ?>

">

	<optgroup label="Sites">

	   <?php $_from = $this->_tpl_vars['sites_view_available']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):

    foreach ($_from as $this->_tpl_vars['id'] => $this->_tpl_vars['info']):

?>

	   		<option label="<?php echo $this->_tpl_vars['info']; ?>

" value="<?php echo $this->_tpl_vars['id']; ?>

" <?php if ($this->_tpl_vars['site_selected'] == $this->_tpl_vars['id']): ?> selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['info']; ?>

</option>

	   <?php endforeach; endif; unset($_from); ?>

	</optgroup>

</select>

</div>

<li><?php echo ((is_array($_tmp='admin_url_generate_tag_selection')) ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp)); ?>

 </li>



<div class="centrer">

<select name="tag">

	<optgroup label="Tags">

	   <?php $_from = $this->_tpl_vars['prefix_available']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):

    foreach ($_from as $this->_tpl_vars['info']):

?>

	   		<option label="<?php echo $this->_tpl_vars['info']; ?>

" value="<?php echo $this->_tpl_vars['info']; ?>

"><?php echo $this->_tpl_vars['info']; ?>

</option>

	   <?php endforeach; endif; unset($_from); ?>

	</optgroup>

</select>

</div>



<li><?php echo ((is_array($_tmp='admin_url_generate_enter_url')) ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp)); ?>

 </li>

<br />

<textarea name="urlRedirect" rows="3" style="width: 520px;" wrap="virtual"></textarea>

<br />

<small><i><?php echo ((is_array($_tmp='admin_url_generate_help_enter_url')) ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp)); ?>

 </i></small>

<br /><br />



<li>

<?php echo ((is_array($_tmp='admin_url_generate_friendly_name')) ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp)); ?>

 </li><br/>

<input name="pagename"  style="width: 520px;" />

<br/>

<small><i><?php echo ((is_array($_tmp='admin_url_generate_help_friendly_name')) ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp)); ?>

 </i></small>



</ul>

</div>





<p class="boutonsAction">

<input type="button" value="Generate URL"  tabindex="4" onClick="generateUrl();" />

</p>

<p class="texte">

<?php echo ((is_array($_tmp='admin_url_generate_result_url')) ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp)); ?>

 <br/>

<textarea name="resultUrl" onfocus="this.select();" rows="4" style="width: 520px;" wrap="virtual"></textarea>

</p>



<p class="texte">

<?php echo ((is_array($_tmp='admin_url_generate_html_result')) ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp)); ?>

  <br/>

<textarea name="resultLink" onfocus="this.select();" rows="4" style="width: 520px;" wrap="virtual"></textarea>

<p>



<p class="texte">

<?php echo ((is_array($_tmp='admin_url_generate_html_onclick')) ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp)); ?>

  <br/>

<textarea name="resultOnClick" onfocus="this.select();" rows="4" style="width: 520px;" wrap="virtual"></textarea>

<p>



<p><?php echo ((is_array($_tmp='admin_url_generate_image_legend')) ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp)); ?>

 </p><br/>

<img alt="<?php echo ((is_array($_tmp='admin_url_generate_image_legend')) ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp)); ?>

" src="images/help/example-url-redirection-file-download.jpg">

</form>

<?php $_smarty_tpl_vars = $this->_tpl_vars;

$this->_smarty_include(array('smarty_include_tpl_file' => "admin/go_back.tpl", 'smarty_include_vars' => array()));

$this->_tpl_vars = $_smarty_tpl_vars;

unset($_smarty_tpl_vars);

 ?>