/home/kkco/public_html/home__2939f42/admin/page/artikel_unggulan.php
    <h4 class="text-center"><strong>PILIH ARIKEL UNGGULAN</strong></h4>
	
	<?php
	if (isset($_GET["act"]))
	{
		if ($_GET["act"]=="stat")
		{
	   	$sqlU=mysql_query("update artikel set status='0' where status='1'");
    	$sql=mysql_query("update artikel set status='".$_GET['status']."' where id='".$_GET['id']."'");
		}
	}?>
    <form action="<?php $_SERVER['PHP_SELF']; ?>" method="post">
    <?php
    $sql=mysql_query("select title,status,id from artikel order by id desc");
	echo '<select name="unggulan" class="form-control">';
	while($data=mysql_fetch_array($sql))
	{
		echo '<option value="'.$data['id'].'" '.($data['status']=="1"?"selected":"").' >'.$data['title'].'</option>';
	}
	echo '</select>';
	?>
    <br>
    <input type="submit" value="Simpan" class="btn btn-success btn-block">
	</form>