<?php include './config.php'; include './auth.php'; $id = $_GET['id']; $can_id = $_GET['can_id']; $ord_id = $_GET['ord_id']; $active_super_category = getSuperCategoryActive(); $editProductsName = editPdoructs($id); $editProducts = editPdoructsOrder($id,$ord_id); $active_category = getCategoryActive(); $ca_id = $editProducts[0]['category_id']; $super_id = $editProducts[0]['supercategory_id']; $active_sub_category = getSubCategoryActive($super_id,$ca_id); $qty = getQty($id,$ord_id); $price = getPriceE($id,$ord_id); ?> <!DOCTYPE html> <html> <head> <title>Edit Sub Category</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link href="style/style.css" rel="stylesheet" type="text/css" media="all" /> <script type="text/javascript" src="js/jquery.min.js"></script> </head> <body> <div id="popup_content"> <!--your content start--> <div id="msg" style="color:#007F2A; font-size: 13px;"></div>
} else { $result = "failure_del"; } } ?> <?php $page=1;//Default page $limit=20;//Records per page $start=0;//starts displaying records from 0 if(isset($_GET['page']) && $_GET['page']!=''){ $page=$_GET['page']; } $start=($page-1)*$limit; $active_category = getSuperCategoryActive($start,$limit); $rows= count(SuperCount()); if ($_REQUEST['new_scat'] == '1') { extract($_POST); $sql_order_id = mysql_query("SELECT id FROM sohorepro_category WHERE parent_id != '0' ORDER BY id DESC LIMIT 1"); $object = mysql_fetch_assoc($sql_order_id); if (count($object['id']) > 0) { $sort_id = ($object['id'] + 1); } else { $sort_id = '1'; }