<?php
defined('_JEXEC') or die('Restricted access');
$content_id=JRequest::getVar('id');
$db	=& JFactory::getDBO();
$query="select a.*,c.title from `#__content_allarticleannounce` as a left join `#__content` as c on c.id=a.content_id where a.content_id='".$content_id."'";
$db->setQuery($query);
$history=$db->loadObject();
JToolBarHelper::cancel('Cancel','Close');
?>
<form action="index.php" method="post" name="adminForm">
<fieldset>
	<legend><?php echo JText::_( 'Detail' ); ?></legend>
	<table class="admintable">
		<tr>
			<td width="110" class="key">
				<label for="name">
					<span title=''>
						<?php echo JText::_( 'Content ID' ); ?>:
					</span>
				</label>
			</td>
			<td>
				<?php echo $history->content_id;?>
			</td>
		</tr>
		<tr>
			<td width="110" class="key">
				<label for="name">
					<span title=''>
						<?php echo JText::_( 'Content Title' ); ?>:
					</span>
				</label>
			</td>
			<td>
				<?php echo $history->title;?>
			</td>
		</tr>
		<tr>
			<td width="110" class="key">
				<label for="name">
					<span title=''>
						<?php echo JText::_( 'To Twitter' ); ?>:
					</span>
				</label>
			</td>
			<td>
				<?php echo ($history->published_t=='1')?'Yes':'No';?>
			</td>
		</tr>
		<?php
		if($history->published_t=='1')
		{
		?>
		<tr>
			<td width="110" class="key">
				<label for="name">
					<span title=''>
						<?php echo JText::_( 'Date' ); ?>:
					</span>
				</label>
			</td>
			<td>
				<?php echo $history->published_t_date;?>
			</td>
		</tr>
		<tr>
			<td width="110" class="key">
				<label for="name">
					<span title=''>
						<?php echo JText::_( 'Detail' ); ?>:
					</span>
				</label>
			</td>
			<td>
				<?php echo $history->published_t_text;?>
			</td>
		</tr>
		<?php
		}
		?>
		<tr>
			<td width="110" class="key">
				<label for="name">
					<span title=''>
						<?php echo JText::_( 'To Facebook' ); ?>:
					</span>
				</label>
			</td>
			<td>
				<?php echo ($history->published_f=='1')?'Yes':'No';?>
			</td>
		</tr>
		<?php
		if($history->published_f=='1')
		{
		?>
		<tr>
			<td width="110" class="key">
				<label for="name">
					<span title=''>
						<?php echo JText::_( 'Date' ); ?>:
					</span>
				</label>
			</td>
			<td>
				<?php echo $history->published_f_date;?>
			</td>
		</tr>
		<tr>
			<td width="110" class="key">
				<label for="name">
					<span title=''>
						<?php echo JText::_( 'Detail' ); ?>:
					</span>
				</label>
			</td>
			<td>
				<?php echo $history->published_f_text;?>
			</td>
		</tr>
		<?php
		}
		?>
	</table>
</fieldset>
<input type="hidden" name="option" value="com_allarticleannounce" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="boxchecked" value="0" />
<?php echo JHTML::_( 'form.token' ); ?>	
</form>