<link rel="stylesheet" type="text/css" media="all" href="<?php echo $GLOBALS['mosConfig_live_site']; ?>/includes/js/calendar/calendar-mos.css" title="green" />
<!-- import the calendar script --><script type="text/javascript" src="<?php echo $GLOBALS['mosConfig_live_site']; ?>/includes/js/calendar/calendar.js"></script>
<!-- import the language module --><script type="text/javascript" src="<?php echo $GLOBALS['mosConfig_live_site']; ?>/includes/js/calendar/lang/calendar-en.js"></script>
<form action="index2.php?option=com_sef&act=google" method="post" name="adminForm">
<table width="100%" height="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%">
<div class="toolbar-box">
<div class="toolbar-pad">
<div class="toolbar" id="toolbar">
<table class="toolbar">
<tr>
<?php if ($this->act == 'google' && $this->show == 'generate' ) { ?>
<td class="button" id="toolbar-save">
<a href="javascript:if (document.adminForm.boxchecked.value == 0){ alert('Please make a selection from the list to Make XML File');}else{submitbutton('savexml')}" class="toolbar">
<div class="icon-32-save" title="Save XML File" type="Standard"></div>
<?php echo _T( 'SAVE_XML' ) ?>
</a>
</td>
<?php } ?>
<td class="button" id="toolbar-back">
<a href="javascript:window.history.back();" class="toolbar">
<div class="icon-32-back" title="Back" type="Standard"></div>
<?php echo _T( 'BACK' ) ?>
</a>
</td>
<?php if ($this->act == 'google' && $this->show == 'generate' ) { ?>
<td class="button" id="toolbar-cancel">
<a href="javascript:submitbutton('cancel')" class="toolbar">
<div class="icon-32-cancel" title="Cancel" type="Standard"></div>
<?php echo _T( 'CANCEL' ) ?>
</a>
</td>
<?php } ?>
</tr>
</table>
</div>
<div class="header icon-48-google"> <?php echo _T( 'GOOGLE' ) ?></div>
<div class="clr"></div>
</div>
<div class="clr"></div>
</div>
</td>
</tr>
</table>
<div class="spacer"></div>
<div class="element-box">
<div class="element-pad">
<table width="100%" height="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%">
<?php if ($this->show == 'xmlview'): ?>
<br/>
<table class="adminlist" width="100%">
<tr>
<th class="title" colspan="10">
<?php echo _T( 'G_VIEW_XML' )
?>
</th>
</tr>
<tr>
<td width="100%" align="left">
<pre code>
<?php echo $this->xmlview
?>
</pre>
</td>
</tr>
</table>
<?php endif; /* task == 'generate' */
?>
<?php if ($this->show == 'generate'):
?>
<script language="javascript" type="text/javascript">
function menu_listItemTask( id, task, option ) {
var f = document.adminForm;
check = eval( 'f.' + id );
if (check) {
check.checked = true;
submitbutton(task);
}
return false;
}
</script><script type="text/javascript" language="JavaScript">
<!--
function check_all()
{
for (i=1;i<document.adminForm.length;i++)
{
if (document.adminForm.elements[i].type=='checkbox')
document.adminForm.elements[i].checked=document.adminForm.elements.reference.checked;
}
}
//-->
</script>
<br/>
<?php
$headerRow = true;
if (count( $this->row ) > 0) {
for ($rowNo = 0, $n = count( $this->row ); $rowNo < $n; $rowNo++) {
$rows =& $this->row[$rowNo];
mosMakeHtmlSafe( $rows, ENT_QUOTES );
if ($GLOBALS['mosConfig_sef']) {
$url = google::sefRelToAbs($rows->link);
} else {
$url = $GLOBALS['$mosConfig_live_site']."/".$rows->link;
}
if ($headerRow):
?>
<table class="adminlist" width="100%">
<tr>
<th width="20">
#
</th>
<th width="25" class="title">
<input type="checkbox" name="reference" value="ON" onClick="check_all();" />
</th>
<th width="44%" class="title">
<?php echo _T( 'G_TITLE' ) ?>
<br />
<?php echo _T( 'FRIENDLY_URL' ) ?>
</th>
<th width="25%" class="title" style="text-align: left">
<?php echo _T( 'G_DATE' )
?>
</th>
<th width="14" class="title">
</th>
<th width="15%" class="title" style="text-align: right">
<?php echo _T( 'CONFIG_GOOGLE_FREQUENCY' )
?>
</th>
<th width="10%" class="title" style="text-align: right">
<?php echo _T( 'CONFIG_GOOGLE_PRIORITY' )
?>
</th>
</tr>
<tr class="row">
<td>
1
</td>
<td align="center">
<input type="checkbox" id="check0" name="check[0]" value="ON" checked disabled>
</td>
<td align="left">
<input type="text" name="title[0]" size="50" value="<?php echo $GLOBALS['mosConfig_sitename'] ?>" disabled>
<br />
<input type="text" name="url[0]" size="50" value="<?php echo $GLOBALS['mosConfig_live_site'] ?>" disabled>
</td>
<td align="left">
<input class="text_area" type="text" name="date[0]" size="26" value ="<?php echo $this->today ?>" disabled>
</td>
<td>
</td>
<td align="right">
<input type="text" name="freq[0]" size="10" value ="<?php echo $this->google->google_frequency ?>">
</td>
<td align="right">
<input type="text" name="priority[0]" size="6" value ="<?php echo $this->google->google_priority ?>">
</td>
</tr>
<?php
$rowNo = $rowNo - 1;
else:
?>
<tr class="<?php echo 'row' . ($rowNo % 2 == 0 ? 0 : 1) ?>">
<td>
<?php echo $rowNo + 2
?>
</td>
<td align="left">
<input type="checkbox" id="check<?php echo $rowNo + 1 ?>" name="check[<?php echo $rowNo + 1 ?>]" value="ON" checked>
</td>
<td align="left">
<a href="#edit" onClick="return listItemTask('cb<?php echo $rowNo + 1 ?>', 'edit')"><input type="text" name="title[<?php echo $rowNo + 1 ?>]" size="50" value="<?php echo $rows->title ?>"></a>
<br />
<input type="text" name="url[<?php echo $rowNo + 1 ?>]" size="50" value="<?php echo $url ?>">
</td>
<td align="left">
<input class="text_area" type="text" id="date[<?php echo $rowNo + 1 ?>]" name="date[<?php echo $rowNo + 1 ?>]" size="26" value ="<?php echo $rows->date ?>">
</td>
<td>
<a href="" onClick="return showCalendar('date[<?php echo $rowNo + 1 ?>]', 'y-mm-dd');"><img border="0" src="components/com_sef/includes/images/cal.gif" alt="" align="middle"></a>
</td>
<?php
$name_freq = "freq[";
$name_freq .= $rowNo + 1;
$name_freq .= "]";
?>
<td align="right">
<?php echo mosHTML::selectList($this->list, $name_freq, 'class="inputbox" size="1"', 'value', 'text', $rows->changeFreq)
?>
</td>
<?php
$name_prior = "priority[";
$name_prior .= $rowNo +1;
$name_prior .= "]";
?>
<td align="right">
<?php echo mosHTML::selectList($this->list1, $name_prior, 'class="inputbox" size="1"', 'value', 'text', $rows->priority) ?>
</td>
</tr>
<?php
endif;
$headerRow = false;
}
}
?>
</table>
<?php
// if (is_object( $this->views->pageNav )) echo $this->views->pageNav->getListFooter();
endif; /* task == 'generate' */
if (empty( $this->show ) || $this->show == 'google') :
?>
<br/>
<table class="adminlist" width="100%">
<tr>
<th class="title" colspan="10">
<?php echo _T( 'G_ABOUT_GOOGLE' )
?>
</th>
</tr>
<tr>
<td width="100%" align="left">
<br>
<b><?php echo _T( 'G_INFO' ) ?></b>
<br>
<ul>
<li>
<?php echo _T( 'G_INFO_TEXT_1' )
?>
<a href="http://www.google.com/webmasters/sitemaps/login">Google Sitemap</a>.
</li>
<li>
<?php echo _T( 'G_INFO_TEXT_2' )
?>
</li>
<li>
<?php echo _T( 'G_INFO_TEXT_3' )
?>
</li>
</ul>
</td>
</tr>
</table>
<?php endif; /* task == 'default' */ ?>
</td>
</tr>
</table>
</div>
</div>
<input type="hidden" name="xml_rows" value="<?php echo $this->total ?>" />
<input type="hidden" name="option" value="<?php echo $this->option ?>" />
<input type="hidden" name="act" value="<?php echo $this->act ?>">
<input type="hidden" name="task" value="<?php echo $this->task ?>" />
<input type="hidden" name="show" value="<?php echo $this->show ?>" />
<input type="hidden" name="boxchecked" value="1" />
</form>