<?php
/*
$HeadURL$
$LastChangedDate$
$LastChangedRevision$
$LastChangedBy$
*/
?>
<p>Syncing links will make the local selected categories of links match
a central list of links</p>
<?php
$m = $this->loadClass ( 'message' );
$m->message='Make sure to add any local links you wish to keep to the cental list before enabling.';
$m->title='Warning';
echo $m->warning ();
?>
<table class='form-table'>
	<tr>
		<th scope='row' style="vertical-align: top">Source</th>
		<td><input type="radio" name='sync-links[source]'
			value="delicious-account"
			<?php
			echo $this->html_form->checked ( $this->options->values ['sync-links'] ['source'], 'delicious-account' );
			?> /> Delicious<br />
		<input type="radio" name='sync-links[source]' value="opml-feed"
			<?php
			echo $this->html_form->checked ( $this->options->values ['sync-links'] ['source'], 'opml-feed' );
			?> /> OPML Feed<br />
		<input type="radio" name='sync-links[source]' value="no"
			<?php
			echo $this->html_form->checked ( $this->options->values ['sync-links'] ['source'], 'no' );
			?> /> Do Not Sync<br />
		<small> Remember to set either your Delicious account details or OPML
		feed details.<br />
		Not all fields are available to be synced. The following fields will
		be synced:
		<ul>
			<li>Delicous
			<ul>
				<li>Name</li>
				<li>Web Address</li>
				<li>Description ( notes on Delicious )</li>
				<li>Categories ( tags on Delicious )</li>
			</ul>
			</li>
			<li>OPML
			<ul>
				<li>Name</li>
				<li>Web Address</li>
				<li>Categories</li>
				<li>RSS Address</li>
			</ul>
			</li>
		</ul>
		</small></td>
	</tr>
	<tr>
		<th scope='row' style="vertical-align: top">Include</th>
		<td><input style='width: 90%' name='sync-links[include]'
			value='<?php
			echo implode(',',(array)$this->options->values ['sync-links'] ['include']);
			?>' /> <br />
		<small> Comma seperated list.<br />
		OPML category names or Delicious tags from which to sync links.<br />
		Leave blank to sync everything, this is not recomended if you have
		hundreds of links.<br />
		OPML: All links will be retrieved and selected locally.<br />
		Delicious accounts: If you supply more than one tag the all links will
		have to be retrieved and selected locally. It is recommended that you
		only sync one tag. </small></td>
	</tr>
	<tr>
		<th scope='row' style="vertical-align: top">Exclude</th>
		<td><input style='width: 90%' name='sync-links[exclude]'
			value='<?php
			echo implode(',',(array)$this->options->values ['sync-links'] ['exclude']);
			?>' /> <br />
		<small> Comma seperated list.<br />
		OPML category names or Delicious tags from which not to sync links.<br />
		Takes priority over included links.<br />
		</small></td>
	</tr>
	<tr>
		<th scope='row' style="vertical-align: top">Interval</th>
		<td><input name='sync-links[#interval]'
			value='<?php
			echo $this->options->values ['sync-links'] ['#interval'];
			?>' /> hours <br />
		<small> Minimum time between refreshes.<br>
		Syncing initiated by page views.<br />
		</small></td>
	</tr>
	<tr>
		<th scope='row'></th>
		<td><span class='submit' style="border-top: none;"><input
			type='submit' name='sync-links[now]' value='Sync Now' /></span> <br />
		<small>Overide the interval and sync the links now.</small></td>
	</tr>
</table>
