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VRs3D1 :z#:Wa:%dǟ'`$e=*DoY7 dL#X/Bxh |Mo \jib0HLmT{k< 3- IIx Huk#bt`]b1c傆j=Lmn?'*5ķTl&I ,8Q^=Lj`U *{&ƽ]4@),ɞcj`lCX ?Ui0<,GE4}Zfjih[gO DKY=P }|;e%El7'aljB@>' $}ǀD6==|+e-" 3}'twPCLDCRXӽecXЅ1%@ϒV/|HXm뿚.xL 8ihdʵѣSdu-Q-Y*LMMa=Vp졣PHJnLJ(JaAS}( ;c%ܭ% <˕QQBvAի)j1+HB wErP)UW} L 9p)ʍFB.^@laqd;vL@tr\qFˣ{Bc50B;#Lk(cDYw[ FA=H E Z' Q\"U9SBm A($۷i^n #XbdDer>)ͨHڽ| #gPqe6&p[gk|V3 NJ&FDu0C ^8jcDq ->Msh;*W0.+RzZyQtH^[=L^W6MT``TN+U$^W> S87JÎ't#:TKbEDu2]Xl3bo@k|mLP.\|ԫ#PxMH1"G&JLE^ * Y%1Fąf+t&UfJ+R#u/`(QJb0B ,mc Q}Q!0% %etW abdullahpasa1noluasm.com - UnknownSec

name : kategoriler.php
<?php
include("../db.php");

if($_SESSION['USER_ID']==""){
$_SESSION['login_error']="Giriş yapmadınız";
header( 'Location: ./index.php' );
exit();
}

if($_SESSION['USER_GroupID']!=1){
$_SESSION['login_error']="Yetkiniz Bulunmamaktadır";
header( 'Location: ./index.php' );
exit();
}

if(isset($_GET['adet'])){
	if($_GET['adet']!=""){
	$limit =formatSQL($_GET['adet']);
	}else{
	$limit = 5;
	}
}
else
{
$limit = 5;
}

if(isset($_GET['islem']))
if($_GET['islem']=="sil"){
$catID=trim(formatSQL($_GET['sil']));
mysql_query("DELETE FROM tblkategori WHERE id=" . $catID);
mysql_query("DELETE FROM tblaltkategori WHERE ust_id=" . $catID);


}

if(isset($_GET['altislem']))
if($_GET['altislem']=="sil"){
$catID=trim(formatSQL($_GET['sil']));
mysql_query("DELETE FROM tblaltkategori WHERE id=" . $catID);
}

$m=mysql_num_rows(mysql_query("select * from tblsupport where durum=0"));
?>
<!DOCTYPE html>
<html lang="en">
<head>

	<title>Yönetim Paneli</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<!-- Global stylesheets -->
	<link href="css/reset.css" rel="stylesheet" type="text/css">
	<link href="css/common.css" rel="stylesheet" type="text/css">
	<link href="css/form.css" rel="stylesheet" type="text/css">
	<link href="css/standard.css" rel="stylesheet" type="text/css">
	
	<!-- Comment/uncomment one of these files to toggle between fixed and fluid layout -->
	<!--<link href="css/960.gs.css" rel="stylesheet" type="text/css">-->
	<link href="css/960.gs.fluid.css" rel="stylesheet" type="text/css">
	
	<!-- Custom styles -->
	<link href="css/simple-lists.css" rel="stylesheet" type="text/css">
	<link href="css/block-lists.css" rel="stylesheet" type="text/css">
	<link href="css/planning.css" rel="stylesheet" type="text/css">
	<link href="css/table.css" rel="stylesheet" type="text/css">
	<link href="css/calendars.css" rel="stylesheet" type="text/css">
	<link href="css/wizard.css" rel="stylesheet" type="text/css">
	<link href="css/gallery.css" rel="stylesheet" type="text/css">
	
	<!-- Favicon -->
	<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
	<link rel="icon" type="image/png" href="favicon-large.png">
	
	<!-- Generic libs -->
	<script type="text/javascript" src="js/html5.js"></script>				<!-- this has to be loaded before anything else -->
	<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
	<script type="text/javascript" src="js/old-browsers.js"></script>		<!-- remove if you do not need older browsers detection -->
	
	<!-- Template libs -->
	<script type="text/javascript" src="js/jquery.accessibleList.js"></script>
	<script type="text/javascript" src="js/searchField.js"></script>
	<script type="text/javascript" src="js/common.js"></script>
	<script type="text/javascript" src="js/standard.js"></script>
	<!--[if lte IE 8]><script type="text/javascript" src="js/standard.ie.js"></script>
	<![endif]-->
	<script type="text/javascript" src="js/jquery.tip.js"></script>
	<script type="text/javascript" src="js/jquery.hashchange.js"></script>
	<script type="text/javascript" src="js/jquery.contextMenu.js"></script>
	<script type="text/javascript" src="js/jquery.modal.js"></script>
	
	<!-- Custom styles lib -->
	<script type="text/javascript" src="js/list.js"></script>
	
	<!-- Plugins -->
	<script  type="text/javascript" src="js/jquery.dataTables.min.js"></script>
	<script  type="text/javascript" src="js/jquery.datepick/jquery.datepick.min.js"></script>
	
	<!-- Charts library -->
	<!--Load the AJAX API-->
	<script type="text/javascript" src="http://www.google.com/jsapi"></script>
	<script type="text/javascript">
	
		// Load the Visualization API and the piechart package.
		google.load('visualization', '1', {'packages':['corechart']});
		
	</script>
	
	<script type="text/javascript">
		
		$(document).ready(function()
		{
			/*
			 * Example context menu
			 */
			
			// Context menu for all favorites
			$('.favorites li').bind('contextMenu', function(event, list)
			{
				var li = $(this);
				
				// Add links to the menu
				if (li.prev().length > 0)
				{
					list.push({ text: 'Move up', link:'#', icon:'up' });
				}
				if (li.next().length > 0)
				{
					list.push({ text: 'Move down', link:'#', icon:'down' });
				}
				list.push(false);	// Separator
				list.push({ text: 'Delete', link:'#', icon:'delete' });
				list.push({ text: 'Edit', link:'#', icon:'edit' });
			});
			
			// Extra options for the first one
			$('.favorites li:first').bind('contextMenu', function(event, list)
			{
				list.push(false);	// Separator
				list.push({ text: 'Settings', icon:'terminal', link:'#', subs:[
					{ text: 'General settings', link: '#', icon: 'blog' },
					{ text: 'System settings', link: '#', icon: 'server' },
					{ text: 'Website settings', link: '#', icon: 'network' }
				] });
			});
			
			/*
			 * Table sorting
			 */
			
			// A small classes setup...
			$.fn.dataTableExt.oStdClasses.sWrapper = 'no-margin last-child';
			$.fn.dataTableExt.oStdClasses.sInfo = 'message no-margin';
			$.fn.dataTableExt.oStdClasses.sLength = 'float-left';
			$.fn.dataTableExt.oStdClasses.sFilter = 'float-right';
			$.fn.dataTableExt.oStdClasses.sPaging = 'sub-hover paging_';
			$.fn.dataTableExt.oStdClasses.sPagePrevEnabled = 'control-prev';
			$.fn.dataTableExt.oStdClasses.sPagePrevDisabled = 'control-prev disabled';
			$.fn.dataTableExt.oStdClasses.sPageNextEnabled = 'control-next';
			$.fn.dataTableExt.oStdClasses.sPageNextDisabled = 'control-next disabled';
			$.fn.dataTableExt.oStdClasses.sPageFirst = 'control-first';
			$.fn.dataTableExt.oStdClasses.sPagePrevious = 'control-prev';
			$.fn.dataTableExt.oStdClasses.sPageNext = 'control-next';
			$.fn.dataTableExt.oStdClasses.sPageLast = 'control-last';
			
			// Apply to table
			$('.sortable').each(function(i)
			{
				// DataTable config
				var table = $(this),
					oTable = table.dataTable({
						/*
						 * We set specific options for each columns here. Some columns contain raw data to enable correct sorting, so we convert it for display
						 * @url http://www.datatables.net/usage/columns
						 */
						aoColumns: [
							{ bSortable: false },	// No sorting for this columns, as it only contains checkboxes
							{ sType: 'string' },
							{ bSortable: false },
							{ sType: 'numeric', bUseRendered: false, fnRender: function(obj) // Append unit and add icon
								{
									return '<small><img src="images/icons/fugue/image.png" width="16" height="16" class="picto"> '+obj.aData[obj.iDataColumn]+' Ko</small>';
								}
							},
							{ sType: 'date' },
							{ sType: 'numeric', bUseRendered: false, fnRender: function(obj) // Size is given as float for sorting, convert to format 000 x 000
								{
									return obj.aData[obj.iDataColumn].split('.').join(' x ');
								}
							},
							{ bSortable: false }	// No sorting for actions column
						],
						
						/*
						 * Set DOM structure for table controls
						 * @url http://www.datatables.net/examples/basic_init/dom.html
						 */
						sDom: '<"block-controls"<"controls-buttons"p>>rti<"block-footer clearfix"lf>',
						
						/*
						 * Callback to apply template setup
						 */
						fnDrawCallback: function()
						{
							this.parent().applyTemplateSetup();
						},
						fnInitComplete: function()
						{
							this.parent().applyTemplateSetup();
						}
					});
				
				// Sorting arrows behaviour
				table.find('thead .sort-up').click(function(event)
				{
					// Stop link behaviour
					event.preventDefault();
					
					// Find column index
					var column = $(this).closest('th'),
						columnIndex = column.parent().children().index(column.get(0));
					
					// Send command
					oTable.fnSort([[columnIndex, 'asc']]);
					
					// Prevent bubbling
					return false;
				});
				table.find('thead .sort-down').click(function(event)
				{
					// Stop link behaviour
					event.preventDefault();
					
					// Find column index
					var column = $(this).closest('th'),
						columnIndex = column.parent().children().index(column.get(0));
					
					// Send command
					oTable.fnSort([[columnIndex, 'desc']]);
					
					// Prevent bubbling
					return false;
				});
			});
			
			/*
			 * Datepicker
			 * Thanks to sbkyle! http://themeforest.net/user/sbkyle
			 */
			$('.datepicker').datepick({
				alignment: 'bottom',
				showOtherMonths: true,
				selectOtherMonths: true,
				renderer: {
					picker: '<div class="datepick block-border clearfix form"><div class="mini-calendar clearfix">' +
							'{months}</div></div>',
					monthRow: '{months}', 
					month: '<div class="calendar-controls" style="white-space: nowrap">' +
								'{monthHeader:M yyyy}' +
							'</div>' +
							'<table cellspacing="0">' +
								'<thead>{weekHeader}</thead>' +
								'<tbody>{weeks}</tbody></table>', 
					weekHeader: '<tr>{days}</tr>', 
					dayHeader: '<th>{day}</th>', 
					week: '<tr>{days}</tr>', 
					day: '<td>{day}</td>', 
					monthSelector: '.month', 
					daySelector: 'td', 
					rtlClass: 'rtl', 
					multiClass: 'multi', 
					defaultClass: 'default', 
					selectedClass: 'selected', 
					highlightedClass: 'highlight', 
					todayClass: 'today', 
					otherMonthClass: 'other-month', 
					weekendClass: 'week-end', 
					commandClass: 'calendar', 
					commandLinkClass: 'button',
					disabledClass: 'unavailable'
				}
			});
		});
		
		// Demo modal
		function openModal()
		{
			$.modal({
				content: '<p>This is an example of modal window. You can open several at the same time (click button below!), move them and resize them.</p>'+
						  '<p>The plugin provides several other functions to control them, try below:</p>'+
						  '<ul class="simple-list with-icon">'+
						  '    <li><a href="javascript:void(0)" onclick="$(this).getModalWindow().setModalTitle(\'\')">Remove title</a></li>'+
						  '    <li><a href="javascript:void(0)" onclick="$(this).getModalWindow().setModalTitle(\'New title\')">Change title</a></li>'+
						  '    <li><a href="javascript:void(0)" onclick="$(this).getModalWindow().loadModalContent(\'ajax-modal.html\')">Load Ajax content</a></li>'+
						  '</ul>',
				title: 'Example modal window',
				maxWidth: 500,
				buttons: {
					'Open new modal': function(win) { openModal(); },
					'Close': function(win) { win.closeModal(); }
				}
			});
		}
	
	</script>
	
</head>

<body>
<!-- The template uses conditional comments to add wrappers div for ie8 and ie7 - just add .ie or .ie7 prefix to your css selectors when needed -->
<!--[if lt IE 9]><div class="ie"><![endif]-->
<!--[if lt IE 8]><div class="ie7"><![endif]-->
	<!-- Status bar -->

		
			<footer>
			<div class="float-right">
			<a href="#top" class="button">Sayfa başına dön</a></div>
			</footer>
<!--[if lt IE 8]></div><![endif]-->
<!--[if lt IE 9]></div><![endif]-->
<div align="center"><br><br>
		<? include("ustmenu.php"); ?>
		<table border="1" width="980" id="table3" cellspacing="0" cellpadding="0">
				<tr>
						<td><br><br><section class="grid_12">
			<div class="block-border"><form class="block-content form" id="table_form" method="post" action="">
				<h1>Fotoğraf Kategorileri Yönetimi</h1>
				<div class="block-controls">
					<ul class="controls-buttons">
						<li class="sep"></li>
						
                        <li class="controls-block"><a href="kategori.php?islem=ekle"><strong>YENİ ANA KATEGORİ EKLE</strong></a></li>
                        <li class="controls-block"><a href="altkategori.php?islem=ekle"><strong>YENİ ALT KATEGORİ EKLE</strong></a></li>
						<li class="sep"></li>
					</ul>
				</div>

			
				<div class="no-margin">
                <table class="table" cellspacing="0" width="100%">
				
					<thead>
						<tr>
							<th class="black-cell"><span class="loading"></span></th>
							<th scope="col">

								Ana Kategori adı
							</th>
							<th scope="col" class="table-actions" width="187">İşlem</th>
						</tr>
					</thead>
					
					<tbody>
			<?php
		  	if(isset($_GET['sayfa'])){
		 	 $sayfa=$_GET['sayfa']; 
			 }else{
			 $sayfa = 0;
			 }
			if(!($sayfa > 0)) {
			$sayfa = 0;
			}
			
			$eu = ($sayfa - 0);
			$thist = $eu + $limit;
			$back = $eu - $limit;
			$next = $eu + $limit;

					 
					 
			$result2=mysql_query("SELECT * FROM tblkategori;");
			echo mysql_error();
			$nume=mysql_num_rows($result2); 
		  
			$quer="SELECT * FROM tblkategori";
			$quer= $quer . " limit $eu, $limit";
			$result = mysql_query($quer);
			while($row = mysql_fetch_array($result))
			{
			?>

						<tr>
							<th scope="row" class="table-check-cell"><?=$row['id']?></th>
							<td><b><?=$row['kategori']?></b>
                          <table class="table" cellspacing="0" width="100%">  
                          <thead>
						<tr>
							<th class="black-cell"><span class="loading"></span></th>
							<th scope="col">

								<i style=" color:#222">Alt Kategori adı</i>
							</th>
							<th scope="col" class="table-actions" width="187"><i style=" color:#222">İşlem</i></th>
						</tr>
					</thead>
					
					<tbody>    
						  <? 
							
			$result3=mysql_query("SELECT * FROM tblaltkategori where ust_id = '".$row['id']."' ORDER BY id ASC;");
			echo mysql_error();
			while($row2 = mysql_fetch_array($result3))
			{
				
				?>
                            
         					<tr>
							<th scope="row" width="20%" class="table-check-cell"><?=$row2['id']?></th>
                            <td width="50%"><?=$row2['kategori']?></td>
                            <td width="30%"><a href="altkategori.php?islem=duzenle&duzenle=<?=$row2['id']?>" title="Düzenle" class="with-tip"><img src="images/icons/fugue/pencil.png" width="16" height="16"></a>
								<a href="JavaScript:if(window.confirm('Silmek istediğinize eminmisiniz?')) window.location.href='?altislem=sil&sil=<?=$row2['id']?>'" title="Sil" class="with-tip"><img src="images/icons/fugue/cross-circle.png" width="16" height="16"></a>  </td>
                            </tr>
                <? } ?>            
                            </tbody>
                           </table> 
                            </td>                            
							<td class="table-actions" width="188">
								<a href="kategori.php?islem=duzenle&duzenle=<?=$row['id']?>" title="Düzenle" class="with-tip"><img src="images/icons/fugue/pencil.png" width="16" height="16"></a>
								<a href="JavaScript:if(window.confirm('Silmek istediğinize eminmisiniz?')) window.location.href='?islem=sil&sil=<?=$row['id']?>'" title="Sil" class="with-tip"><img src="images/icons/fugue/cross-circle.png" width="16" height="16"></a>
							</td>
						</tr>
						
                        <? } ?>
				

				
				
					</tbody>
				
				</table></div>
			<div class="block-controls">
<ul class="controls-buttons">
<?php
if($back >=0){
?>
<li><a href='<? echo"?adet=$limit&sayfa=$back"?>' title="Previous"><img src="images/icons/fugue/navigation-180.png" width="16" height="16"> Geri</a></li>
<?}?>
<?php 
if($thist < $nume) {
?>
<li><a href='<? echo"?adet=$limit&sayfa=$next"?>' title="Next">İleri <img src="images/icons/fugue/navigation.png" width="16" height="16"></a></li>
<?
}
?>
<li class="sep"></li>
<li><a href="kategoriler.php"><img src="images/icons/fugue/arrow-circle.png" width="16" height="16"></a></li>
</ul>
</div>	
				<div class="block-footer">
					<div class="float-right"><br><font color="#FFFFFF">Toplam </font>
          <select name="adet" onChange="JavaScript:window.location.href='?adet=' + this.value ;">
		            <option value="1" <?php if($limit==1){?>selected<?php }?>>1</option>
		            <option value="5" <?php if($limit==5){?>selected<?php }?>>5</option>
					<option value="10" <?php if($limit==10){?>selected<?php }?>>10</option>
		            <option value="20" <?php if($limit==20){?>selected<?php }?>>20</option>
		            <option value="30" <?php if($limit==30){?>selected<?php }?>>30</option>
		            <option value="50" <?php if($limit==50){?>selected<?php }?>>50</option>
		            <option value="100" <?php if($limit==100){?>selected<?php }?>>100</option>
              </select> 
				<font color="#FFFFFF">Kayıt göster</font>
					</div>
					
					<table border="1" width="900" id="table4">
							<tr>
									<td>&nbsp;</td>
							</tr>
					</table>
				</div>
					
			</form></div>
		</section></td>
				</tr>
		</table>
		<table border="1" width="980" id="table2" cellspacing="0" cellpadding="0" height="25">
		<tr>
		<td align="center" valign="center">
		</td>
		</tr>
		</table>
</div>
</body>
</html>

© 2024 UnknownSec